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
-
Grumm18123yI even write most if if's like :
if x=y
{
//do stuff
}
sure
if x=y
//do one line stuff
works, but if you have to add an other line, it is more work to add the braces. -
The idea is to get through code review by attrition of the reviewer.
Set soft/hard limits of 80/120 columns of monospaced in the style guide and enforce that rule first on review. -
@Oktokolo If I could do a review with those devs of that company, I'd strangle them first...
I got 150k lines of even more tumorous code 🙈 -
@rEaL-jAsE Luckily not that I'm aware of, but this CMS of Doom™ surely feels like a huge growth in my head
@Frederick In-fucking-deed... -
-
hjk10157313yI'm fine with the first one if it is done consistently and in decent manner:
If (temp > ALLOWED_TEMP)
alarm.trigger(TOO_HOT_TO_HANDLE);
Hell no to the second
Related Rants
-
PonySlaystation17Theory: The least experienced developers write code with the higest complexity.
-
PonySlaystation14[Certified CMS Of Doom™ moment] Ah yes, the good old "generate a huge CSV just to know how many rows there ...
-
PonySlaystation22Behold the PHP pyramid of doom! You know what kind of code is coming... a big pile of shite! 😍 Obviously y...
Do NOT "compress" your code by leaving out braces in control structures and putting the 300 char statement on the same fucking line as the control structure!
Yes, your code file becomes vertically shorter than the usual 3000 lines, BUT my brain tumor proportionally grows larger.
rant
phptsd