Git Product home page Git Product logo

Comments (7)

fastred avatar fastred commented on June 11, 2024 1

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.

zenangst avatar zenangst commented on June 11, 2024 1

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

JohnSundell avatar JohnSundell commented on June 11, 2024

I vote option 2, unless the abbreviation is the first word, like urlTask ๐Ÿ˜„

from ios-foundation.

vadymmarkov avatar vadymmarkov commented on June 11, 2024

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.

zenangst avatar zenangst commented on June 11, 2024

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.

onmyway133 avatar onmyway133 commented on June 11, 2024

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.

zenangst avatar zenangst commented on June 11, 2024

Seems like we are at a tie here, let the Hunger Games begin, may the odds be ever in your favor.

salute

from ios-foundation.

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.