Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
in langs where it is interchangeable:
' for internal strings
" for strings the user will see/the program will output -
C0D4669027yThis is language dependent, not all languages like “ which drives you crazy when you’re used to putting strings in “
-
Depends on the positioning of the moon in its current orbit, when aligned and the aurora borealis is present the mirk hamster crawls out its hole to press the ' key, otherwise gravity pulls down the " key... joking, like everyone else said, depends on the language
-
I generally use " for strings and ' for chars and other params, options, etc unless I have to use a ' inside of " or vice versa, then I adjust accordingly.
-
Fucking always ' for chars and " because CONSISTENCY
Even in JavaScript and Python
I will fucking change your code if I see you doing some 'Hello world!' bullshit. I will change your code and shove HDMI cables up your ass.
Let's end this...
" -or- '
question
'
"