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
-
hexc11267yI sometimes do "if (false) {" if I don't feel like wrapping in a comment block if there are comment blocks inside because then ide need to adjust those. Usually don't do this for anything permanent though.
-
@hidden it's not supposed to run those lines. He could have just commented the lines, but nooo...
-
rwoods27yInterestingly enough, there is legitimate code in SQL that requires a syntax similar to that. It the server is in FMTONLY mode, using an if statement with a condition of 1=0 with ferret that out.
-
stisch48147yMy old boss use to do
WHERE 1== 1
at the bottom of SQL queries that had no other WHERE statement. It was just a... 'feel good,' thing
Related Rants
-
l0om44100% Real. And it's not even the worst on the site.
-
Codazed11Being 100% serious, I saw a guy in my Computer Programming I class using MS Word to write code that he would c...
-
dfox8I worked with a good dev at one of my previous jobs, but one of his faults was that he was a bit scattered and...
Once i found a legacy code where the old dev avoided the execution of some lines by wrapping them with a
if (1 == 0) {...}
rant
wk99