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
-
I do it like this - with indented foo/bar, devRant just doesn't show it.
if (cond)
foo();
else
bar(); -
I used the second example for a long time. But once I got used to the first, I fell in love and kept it.
...still refactoring old style code when I see it... -
@Python it’s something that lets you write all your code on one line.
Scripting languages:
if (a === b) {
}
Compiled:
if (a == b)
{
}
Reason: Counting is easier if they are lined up.
And who cares about a few misplaced curly brackets or any messed up scope in any script kitty language. Yeah... (Even if, scripting > compile...gotta rant on this one!) -
@tamusjroyce How do you get the devRant editor to not putting blank lines between your source lines? I am fighting with this for ages!
-
devios157706y@halfflat Invalid argument exception: Acronyms are pronounced as their own word, not based on the pronunciation of their origins.
-
devios157706y@halfflat I honestly don't care how you pronounce it. I'm just sick of hearing that argument.
There doesn't need to be a correct way. They can both be fine. -
@tamusjroyce both in Firefox and Falkon.
Haven't
tried in
Android App, yet.
Ah! In the Android App it works! Why not in a browser? 😫
Related Rants
The Gif v Jif war but with brackets. The right answer is Gif just as the right bracket style is {
}
joke/meme
code
brackets