GithubHelp home page GithubHelp logo

Comments (6)

 avatar commented on July 4, 2024

πŸ‘ +1

from objective-c-style-guide.

ColinEberhardt avatar ColinEberhardt commented on July 4, 2024

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.

 avatar commented on July 4, 2024

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.

ricardo-rendoncepeda avatar ricardo-rendoncepeda commented on July 4, 2024

@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.

ndubbs avatar ndubbs commented on July 4, 2024

@hollance This is a good point! Is there a pull request to add this?

from objective-c-style-guide.

hollance avatar hollance commented on July 4, 2024

@ndubbs I did not make a pull request for it.

from objective-c-style-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.