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 - "shittycode"
-
It was around 14:55, I had no energy, and was ready to call it a day, but then I messaged my boss on slack, "Ballmer Peak". He comes back 5 mins later and my desk looked like it this.3
-
I was checking an Arduino sketch I wrote in a hurry 2 years ago. I want to cry for the number of shit I've found there 😓
Picture + I had put as int variables that should have been boolean. I needed them for 0 and 1. As well as with no comments and no explicative names.13 -
Got appraises on first day of my job by reducing the calls to redis by half.
All I did was replace SET and EXPIRE with SETEX.1 -
At a previous job I had, there was a bug in the payment code, we did not know anything was wrong until the customer support team began receiving some crazy emails stating that our company emptied their bank account. Then we investigated further and thousands of customers had their banks emptied. So the payment team went big hunting, found the problem to eliminate further chaos.
Unfortunately the person responsible for this huge screw up was not fired immediately, but did resign soon there after.1 -
Did some changes and raised a code review. Some lines' indentation don't align. The senior dev (reviewer) asks me to format according to the project scheme.
Changed all tabs to spaces; lines don't align.
Changed all spaces to tabs (with a heavy heart); surprisingly it still doesn't align!!
I'm like okay, let's dive deeper.. Found that the surrounding lines were indented this way: 4 spaces followed by a tab..!! SERIOUSLY!?! WHY? HOW? I mean how does this kind of shit happen?!
Worst part -> getting ship it after following the current convention! -
We had a group presentations today, and one group had a simple home screen for a reservation system. It consisted of a date picker and some labeled buttons.
My teacher said, "I don't like how the date search field isn't labeled, I don't know that, that field is for a date".
It's a date picker, that date icon is a universal sign for pick a date, the group said.
He was our programming teacher in our first year 🙈7