Comments (6)
π +1
from objective-c-style-guide.
Couldn't agree more ... I hate it when I see clumsy method names simply because people believe they should read as a sentence:
initWithMinimum:andWithMaximum:andAlsoAnOffset:
yuck!
from objective-c-style-guide.
Additionally, there is a danger if they get used to using "and" and then one day name a method like
initWith:(int)width and:(int)height
I know our guide says not to do that, and why would anyone, except we did have a tutorial a while back where someone did have and and: type of method. It works fine, except if you decide you need to add C++ into your app (which a reader tried to do) and find out that "and" is a reserved word and it breaks (but it doesn't break by saying "and" is a reserved word, which would at least make it easy to find and fix).
My point, I agree. :)
from objective-c-style-guide.
@elephantronic that was my tutorial and I certainly could've used the style guide there! It created a sloppy bug that was difficult to track down, so +1 to method names
from objective-c-style-guide.
@hollance This is a good point! Is there a pull request to add this?
from objective-c-style-guide.
@ndubbs I did not make a pull request for it.
from objective-c-style-guide.
Related Issues (20)
- Init section contradicts Golden path section HOT 2
- Can we lint to enforce some of this style guide? HOT 6
- Symbol prefix: 2 vs. 3 characters HOT 26
- English should be used, really? HOT 7
- What's the point on using properties instead of instance variables? HOT 8
- Direct access to properties. HOT 5
- License for this guide? HOT 1
- Not linking to Official Apple Style Guide HOT 1
- RWT prefix typo in constant definition HOT 1
- What is the recommended line width for Objective-C?
- Use style guide principles in examples
- arrayCount should be named something else HOT 4
- Contradiction between Init Methods and Golden Path
- Error handling
- I want make new branch for Korean ver.
- Google style guide URL is broken HOT 2
- Should self keyword should be used in init methods ?
- How do I indent something like this??? HOT 3
- Xcode behavior regarding indenting block
- ε ³δΊζδΈΎ(Enumerated Types)ηζ³ζ³
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 objective-c-style-guide.