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
-
chadd1746437y@Glamhoth I didn't realize what was wrong with it for a good minute, and when it did, I was baffled by the impressive overengineering.
Maybe the last guy got paid by the line. -
owithg21717yWell I threw up a little. Hopefully they were either paid by the line or drunk... Or the cases modify i... Or SOMETHING
-
Jijel2157yPlease tell us i gets modified in those cases.
And even then I think there are much better solutions. -
lo98be6187yIn the beginning I thought it was the break at the end..
But then I noticed switch(i)
And I cried
Also... How can it default? I mean... Yeah.. WTF!? -
Akio647yBoss: You need to make at least 100 lines of code for this!
Me: Hold my coffee i got this. -
Jijel2157y@Akio I've never been employed. But is that for real? Some bosses really ask you for a certain amount of lines? How is this amount decided? And why is there such a limit? Isn't short code bette, as long as it's readable of course. I have so many questions...
I can understand the need for an upper limit. But not the other way around. -
@Jijel some places do. The best way to avoid that crap hole is to not take a job where they do that kind of shit and if they start doing it then quit. Trust me your time and knowledge is wayyy too valuable to be dealing with crap like that.
-
javanaut607yMaybe it's a shitty state machine:
~~~~
Case 1:
If cond ? i=0 : i=i
~~~~
Much state. So shitty
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
I recently got my first job and I already saw code that I won't ever forget
for(int i=0; i < 2; ++i) {
switch(i) {
case 0:
~~~
break;
case 1:
~~~
break;
case 2:
~~~
break;
default:
~~~
break;
}
}
undefined
first job
who codes like that
wtf
c++