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
Search - "death penalty"
-
You can't imagine how many lines of pure and utter horseshit, seemingly written in PHP, I had to dig through this whole weekend. (relating to my 2 previous rants)
How is it even possible to write code this unbelievably ugly?
Examples:
- includes within loops
- included files use variables from parent files
- start- and endtags separated to different files
- SQL queries generated by string concatenation, no safety measures at all (injection)
- repeating DB calls within loops
- multiple directories with the same code (~40 files), only different by ~8 lines, copied
- a mixture of <?php echo ... ?> and <?= ... ?>
- a LOT of array accesses and other stuff prefixed with "@" (suppress error messages)
- passwords in cleartext
- random non-RESTful page changes with a mixture of POST and GET
- GET parameters not URL-encoded
- ...
My boss told me it took this guy weeks and weeks of coding to write this tool (he's an "experienced dev", of course WITHOUT Git).
Guess what?
It took me only 20 hours and about 700 lines of code.
I must confess, since this task, I don't hate PHP anymore, I just simply hate this dev to death.
Addendum: It's Monday, 5:30am. Good night. 😉12 -
Changing the native browser scrollbar should warrant the death penalty.
Do not make it narrower. Do not make the colors blend with the background. Do not hijack it its functionality. Do not minimize it until I hover.
I am so fucking tired of websites that think they are in charge of my browsing "experience" and hide or otherwise marginalize the single most useful part of the page's UI.4 -
I am against the death penalty so I think we should eliminate all references to "execute" in code. (Oh, sorry I said "eliminate". I'm also against killing.)1
-
Death penalty is bad, and here’s why:
- It’s decided and implemented by humans. Thus, sooner or later, an innocent person will be executed. It happened before. To me, one innocent life is worth more than all the money the government saves by executing people rather than feeding/maintaining them indefinitely.
- Solitary confinement for life without parole is a way better of a deterrent for soon-to-be death row inmates. I heard that El Chapo began to mutilate his body as a desperate suicide attempt in ADX Florence, and it scared the hell out of me.
- Botched execution is very painful. Government should not inflict physical pain as a punishment on unarmed people, period.11 -
Murder I can understand and sometimes even empathize with. Yes, it wasn’t up to you to decide who lives and who doesn’t, but here is something poetic, albeit grim, in having revenge against those who made (the best time of) your life miserable. Yes, you should appear before the court of law, but at the very least you’re still a human being.
But if you’re a school shooter who kills indiscriminately, you don’t deserve the air you breathe. You’re lower than the dirtiest pedophile. I don’t consider you a human at all. I’m against the death penalty, but you should be put down like a rabid animal.14