Comments (7)
Hey, I was just browsing your discussions (because why not) and thought would chime in. There's a convention for acronym naming in the guidelines: https://twitter.com/arekholko/status/799573361546252288
from ios-foundation.
@fastred welcome to the party mate and thanks for sharing.
For me, this pretty much settles the debate - https://swift.org/documentation/api-design-guidelines/#follow-case-conventions
ping @JohnSundell @onmyway133 @vadymmarkov
from ios-foundation.
I vote option 2, unless the abbreviation is the first word, like urlTask
๐
from ios-foundation.
I vote for option 1, I think it's more consistent. When we have a var url
, we can't really name it as URL
.
from ios-foundation.
This has been a conundrum for me for some time now, glad to see that someone else also brings it up! My vote is on option 2 with @JohnSundell suggestion. Even if that is more rules to follow, for me it feels like the most natural option.
So it would be something like this:
var url: URL
var urlTask: URLTask
var taskURL: TaskURL
from ios-foundation.
I used to go with taskURL
, but I found that taskUrl
looks pretty and is more consistent. I treat abbreviation as word, and uppercase the first letter. So I like option 1 more
from ios-foundation.
Seems like we are at a tie here, let the Hunger Games begin, may the odds be ever in your favor.
from ios-foundation.
Related Issues (20)
- Use releases on GitHub HOT 5
- Class/struct structure HOT 9
- Danger HOT 3
- Compile time HOT 4
- MainThread guard HOT 5
- InjectionApp HOT 6
- Pull Requests HOT 7
- Investigate Circle CI for open source repositories HOT 4
- NavigationController style transition HOT 1
- On using lokalise HOT 2
- Swift 4 migration HOT 1
- About UICollectionViews ๐ค HOT 3
- Setup blog on Medium HOT 1
- Create iOS โawesomeโ repo to showcase libraries HOT 7
- Make a list of libraries we donโt want to maintain HOT 2
- Go through existing libraries to find potential new features HOT 3
- Unifying teams HOT 1
- Use shields.io for tagging repository status in README's for our libraries
- Make iOS Foundation logo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-foundation.