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 - "poo"
-
This code review gave me eye cancer.
So, first of all, let me apologize to anyone impacted by eye cancer, if that really is a thing... because that sounds absolutely horrible. But, believe me, this code was absolutely horrible, too.
I was asked to code review another team's script. I don't like reviewing code from other teams, as I'm pretty "intense" and a nit-picker -- my own team knows and expects this, but I tend to really piss off other people who don't expect my level of input on "what I really think" about their code...
So, I get this script to review. It's over 200 lines of bash (so right away, it's fair game for a boilerplate "this should be re-written in python" or similar reply)... but I dive in to see what they sent.
My eyes.
My eyes.
MY EYES.
So, I certainly cannot violate IP rules and post any of the actual code here (be thankful - be very thankful), but let me just say, I think it may be the worst code I've ever seen. And I've been coding and code-reviewing for upwards of 30 years now. And I've seen a LOT of bad code...
I imagine the author of this script was a rebellious teenager who found the google shell scripting style guide and screamed "YOU'RE NOT MY REAL DAD!" at it and then set out to flagrantly violate every single rule and suggestion in the most dramatic ways possible.
Then they found every other style guide they could, and violated all THOSE rules, too. Just because they were there.
Within the same script... within the SAME CODE BLOCK... 2-space indentation... 4-space indentation... 8-space indentation... TAB indentation... and (just to be complete) NO indentation (entire blocks of code within another function of conditional block, all left-justified, no indentation at all).
lowercase variable/function names, UPPERCASE names, underscore_separated_names, CamelCase names, and every permutation of those as well.
Comments? Not a single one to be found, aside from a 4-line stanza at the top, containing a brief description of that the script did and (to their shame), the name of the author. There were, however, ENTIRE BLOCKS of code commented out.
[ In the examples below, I've replaced indentation spacing with '-', as I couldn't get devrant to format the indentation in a way to suitably share my pain otherwise... ]
Within just a few lines of one another, functions defined as...
function somefunction {
----stuff
}
Another_Function() {
------------stuff
}
There were conditionals blocks in various forms, indentation be damned...
if [ ... ]; then
--stuff
fi
if [ ... ]
--then
----some_stuff
fi
if [ ... ]
then
----something
something_else
--another_thing
fi
And brilliantly un-reachable code blocks, like:
if [ -z "$SOME_VAR" ]; then
--SOME_VAR="blah"
fi
if [ -z "$SOME_VAR" ]
----then
----SOME_VAR="foo"
fi
if [ -z "$SOME_VAR" ]
--then
--echo "SOME_VAR must be set"
fi
Do you remember the classic "demo" programs people used to distribute (like back in the 90s) -- where the program had no real purpose other than to demonstrate various graphics, just for the sake of demonstrating graphics techniques? Or some of those really bad photo slideshows, were the person making the slideshow used EVERY transition possible (slide, wipe, cross-fade, shapes, spins, on and on)? All just for the sake of "showing off" what they could do with the software? I honestly felt like I was looking at some kind of perverse shell-script demo, where the author was trying to use every possible style or obscure syntax possible, just to do it.
But this was PRODUCTION CODE.
There was absolutely no consistency, even within 1-2 adjacent lines. There is no way to maintain this. It's nearly impossible even understand what it's trying to do. It was just pure insanity. Lines and lines of insanity.
I picture the author of this code as some sort of hybrid hipster-artist-goth-mental-patient, chain-smoking clove cigarettes in their office, flinging their own poo at their monitor, frothing at the mouth and screaming "I CODE MY TRUTH! THIS CODE IS MY ART! IT WILL NOT CONFORM TO YOUR WORLDLY STANDARDS!"
I gave up after the first 100 lines.
Gave up.
I washed my eyes out with bleach.
Then I contacted my HR hotline to see if our medical insurance covers eye cancer.32 -
Last month: Opening devrant
Facebook, Mark Zuckerberg, FUCK FACEBOOK, ZUCKED ME, KILL MARKBOOK, ATTACK FACEBERG
Last week: Opening devrant
GDRP, GDRP, GGEEDDEERRPPPEEEEE, FUCK GDRP, YEEEY GDRP, WHY GDRP, UPDATED OUR GDRP, FUCKED MY GDRP, PEED IN MY GDRP
this week: Opening devrant
Microsoft, Github, NO Microshit, Burn Github, FUCK GITHUB, POO ON MY MICROHUB, VOMITED ON MY GITSOFT
next week:????
(Google, you better be ready, it's your turn)26 -
I believe by the time Elon Musk sets up a colony on Mars, npm will be done installing those fucking dependencies.10
-
Took an interview today.
Me - What do you think JavaScript is interpreted or compiled.
Guy(5+ years of UI exp) - It's neither of them. It just runs on browser.
At that moment I slowly started fading away into a black hole for the absolute peace and embrace death.15 -
In my previous company, I used to work for a client company which had a terrible website. It was about financial data and people would have to wait too long before the page loaded because there was a freaking 1.2 megs of minified, compressed JS file that needed to load before you could do anything.
Everyone knew that was a pain in the ass and nobody wanted to touch spaghetti code and mess up something they didn't know.
I wanted to however take a shot at it. So an architect from client side and I discussed how we were gonna go about it and how we were gonna find the stuff that needed to load on page load and stuff that could be loaded later.
So we plan for it. We broke everything down from a globals polluting JS, found out the variables and functions that needed to run during first load by literally putting a console statement for each function and finally came up with two bundles.
The primary bundle was 120kb and would during first load and then every module would call it's own secondary bundle when the user interacted with it.
In the process, we removed half a meg of JS and the site became blazing fast.
I did it with a team of two members who, my manager thought were useless, learned a ton of stuff, setup proper process for the transition.
When the client didn't appreciate the amount of brain and effort we had put into it, these two members came forward to tell the client to acknowledge my effort and attributed the success of it to me.
I was totally moved. There was so much respect that I didnt care what anybody else thought. I was just so happy to work with those two humans.
When i left the company, i gifted them stuff they always talked about or wanted. :) Feels good.2 -
So what do you do for a living?
- I fix shit. While i do that, i break some other shit and then i fix that shit.2 -
Sometimes when I code, I plug in my earphones and listen to music, focused, in zone.
* I let everyone think that.
** I actually don't listen to anything.
*** Keeps the buggers away!10 -
Hey PMs!
Fuck you!
Estimates are NOT... I repeat..they are NOT the FUCKING DEADLINES.
If you are asking for an estimate then remember, in your absolutely fucking small fucknugget brain, that it can FUCKING CHANGE!
The last thing you wanna do is grill the dev by asking them to explain in details why the change instead of trusting them. Specially when you don't understand a thing of the technology.
- Dev on whom you are shitting you asshole!18 -
It bothers me that IntelliJ IDEs and Documents on Google Drive don't require Ctrl + S to be pressed to save a file.
That's like my birthright taken away from me!8 -
devRant has rose astronomically to become my favorite bathroom browsing material. Thanks for making poops that much better, everyone!7
-
Keep your arrogance, your fucking stupid logic and religious belief about everthing you say is right aside.
when somebody says there is a better way to solve a problem.. you can do two things. you either listen to them, validate the idea and accept or reject based on discussion or you just be an arrogant fucking prick and stick to your fucking reasoning, about your "right" way.
Don't do the latter. Wont help you become better neither at work nor in life.
FUCK YOU.
- a teammate7 -
When you have a product owner who, on her first day of the project, asks you ' What do you mean by UI?' and a week later question a UI dev why should something take 3 days?
Are you fucking kidding me? I am done with this shit.3 -
why the fuck people name variables endig with numbers? why? how the hell do you even figure out what's what?
checkStatus1
checkStatus2
checkStatusMyAss10 -
me : hey tried allo?
her : what is that?
me : it's an amazing new chat app with google built in and you can do blah blah blah.......
*goes on to explain cool stuff*
her: can i send messages to whatsapp from allo?
me : I AM DONE8 -
The startup life culture is probably killing a lot of talent and taking away peace of mind.
Everything is needed
- too fast
- to work well
Forcing people to compromise on personal life and health.
It also takes away the interest to work on something as an interesting problem and makes it feel like "just another job to get finished".7 -
In the last project i worked in, the product owner wouldn't treat people as people but as resources.
The problem with that is you just look at people and their work in terms of a checklist and remain blind about real humans face.
She wouldn't understand the challenges of building something with an absolutely new stack which people needed to learn from scratch and put pieces together. She wouldn't be supportive of people trying out things and fail.
One fine day I told her that I was spending too much time on meetings and i should be excluding that time from available sprint timings.. she made me open my calendar in a screenshare session with all team members. Made me go through go through every meeting invite i had on calender and ordered which ones should i be attending from then and which ones i wont. That was insulting. It broke the trust.
I decided to not work with the project. Stopped putting my heart and soul into it and eventually got out of it in a month time.
Don't put your team into a position like this ever. You have to trust them with the problems they face and try to find a solution. Scrutinizing and micro management will always kill the team.1 -
<lifeRant> My two year old daughter gets a sticker for going "poo-poo on the potty".... Meanwhile I'm stalking my one rant that is close to getting me a squishy ball! Who's really making progress in their life, me or her? </lifeRant>5
-
I will be working from home tomorrow.
*Today*
I am at office because fuck me! I forgot my laptop charger here. -
For fuck sake Facebook! do position:fixed for your goddam toolbar on mobile site because you have that fucking infinite scroll!3
-
Why do so many companies think that frontend work can be stuffed at the end of the product development right before a release is expected.
And to top it off, expect all things to be working, smooth, animating, responsive, crisp, fast with 100 fucking lighthouse score.
🖕 To everyone who thinks frontend work is meh!, Not real programming and similar. Fuck you!7 -
Scientists have found that If you just kill the Chrome process, it can give you enough charge to fully charge your Mobile Phone.2
-
It feels like you are talking to yourself while commits when you create a github repo and you are the only contributor. :p2
-
That feeling when a coworker screws up totally. doesn't accept it as their fault.
You look at the code and see so much of redundancy and bad practice galore.
You look at it for a while and think you can rewrite it from scratch. But you finally end up saying "fuck this" and feel hopeless because there is not enough time.
Hate that feeling. Hate it. Depresses.2 -
Friend : hey! I wanna buy a laptop.. range is about entry level nothing hi fi! But it should work for 3-4 years.
Me : sure.. give me a few hours..i'll get back.
*Looks all around foe the best thing in that price range.
*Sends a list of laptops ranked based on value for money.
Friend : bought it! Yay! 😎😎😎
*Buys the shittiest laptop they could find at that price range with an absolute old age processor.
Why the fuck did you even ask me at the first place? Fucked couple of hours for me.7 -
#LifeRightNow
- need to find a new place and roommates to live with
- my gf's father doesn't want us to marry.
- my joint family wants to get separated.
- my boss wants me to be at our primary office ( i work remotely ) asap irrespective of anything since it is our biggest production yet.
- i am about the least productive i can be from last couple of weeks.
- going through a serious allergic condition.
#FuckMyLife8 -
I asked one of my engineering classmate which processor they had in their laptop.
Ans : 3GB.
I dont know whether they dont know a shit about computers or they are too bad at english.10 -
well a 🖕🏼 to everybody who thinks CSS isn't really "coding". Stop shaming CSS and people who love it because the moment you would be asked a simple alignment problem, you'll shit your pants.
No! not because it's a hard thing to do in CSS(there are tons of ways to do it.) but because you are ignorant and have prejudice.
🖕🏼 you again!12 -
You know how some kid says "poo" like it's the best joke ever? That's exactly what your shitty "programmer" jokes are like, and we're all fucking tired of them (not to mention we've already heard them countless times).8
-
PCs are a clusterfuck these days. Microsoft has abandoned the niceness of Win-7 and opted for Win-10 - with spyware, untested forced updates and forced online licence checks to make sure you have to get the shit. Macs are total crap, and Apple doesn't care because they instead prefer to milk customers with overpriced iShit. Linux sucks and looks like a Soviet tractor, but at least, it doesn't fuck up itself just by switching it on.
I had Linux as only OS from 2001 to 2010, and while I obviously can deal with it, I finally hated it enough to switch over to Win-7. From 2020 on, it looks like I will be back because Microsoft has managed to fuck up Windows even worse (and then these suckers wonder why Github users don't trust them). Maybe I'll buy a Tux when I install Linux so that I can punch it in the face.
Progress was yesterday - today it's about damage control. Welcome to a world where the brightest CS guys are thinking about how not only to shove up even more ads into peoples' asses, but how to also transmit lab data of the poo.7 -
A friend of mine asked me yesterday for help for his bachelor thesis.
He wants to write about MySQL internals in regards to BLOB storage / usage.
We had a veeeerrrry long discussion....
And found a loooot of scary internet pages.
It's so .... Insane....
What some people with doctor titles or higher education generate...
Isn't content. More poo...
Most "blogs" / "articles" or whatever the author named it were missing all kinds of relevant data (version, configuration, anything relevant) but full of opinionated / biased bullshit.
Highlights were:
- we store lot of BLOB data, Backups take long and require more space
(you store additional data in an database, whaddya expect???!!!!)
- interesting guesswork about locking without any reference (interesting since it was sometimes so far away from reality that it looked more like quantum physics)
- storing blobs means that _each_ blob entry will be stored in a separate file (without any reference, but if an RDBMs did that... It would end in an amazing fireball I guess)
- BLOB's bad since it can represent only the file content, the database cannot distinguish wether it's an MP3 / MPG or anything like that...
(Ehm. Yeah. And an database cannot distinguish if you store under "Name" an Name or gibberish?!)
I somehow think that some people made an doctor and post this gibberish nonsense so people stay dumb to give them a job...
Like the TV repair men who steals the batteries from the remote.
Even conspiracy theories were more convincing -
- UI Developer Interview
- 5+ years of revelant experience.
- Says pretty good at CSS
- Have not heard of box model.
FUCK INTERVIEWS. FUCK EXPERIENCE. FUCK EVERYTHING.2 -
Me - 1+1 is 2
Client : Did you say 1+1 is 2
Because even i thought 1+1 is 2 and i think we should go ahead with 1+1 2 because that seems like a good thing to me.
***"1+1 is 2" can be replaced by some long tech discussion
#my brain hurts3 -
In my previous job, the head of tech was a bully and my project manager had an affair and probably sex at work with him after I rejected her attentions. They both played against me at work. Not to talk about the call centre there.. Have you ever tried to focus on programming whilst people at call centre talk loud about how often they walk their dog to poo? I've been used there and then kicked out in a very sneaky way. They didn't fire me because I've been awesome (as far as my colleagues said) at work, they just made me want to leave after increasing my salary. I left that job with disgust and indignation. My new job now is far better but still hear the voice of the head of tech sometime as a ghost in my head. If I was another kind of person I would have probably punched his mouth until it stopped offending and harassing me because of too much bleed in the teeth.5
-
Many of them. Can't decide which one is the biggest.
- when the asshole in front of me picks up a call and is loud as hell. Wanna kick his nuts.
- Chats. Hangouts. Whatsapp. Just name it.
- retards who don't know how to google something or even worse..what to google and come straight to me to get a solution.
- My own fucking head at times. You start talking about space tech and i'll have to jump into it. And i end up wasting half an hour.1 -
to whomever it may concern...
if i wanted to do code review keeping in mind how asshole you have been and made it my personal vendetta, i would not review it at all.
i would let you and your shitty code rot in hell. -
This is incredibly interesting. How the frikkin-frik did the WiFi and Bluetooth die on my Raspberry Pi 3. Yes, I realize they work in tandem but how does something like this just die after just sitting around and performing light duty tasks for just a few months.
Reinstalled Rasbpain 2 times, nothing. USB WiFi dingle works great.
Not really a rant but I wonder how shit like this happens.
The Pi is in a case away from my cats, in a temperature controlled environment and adorned with the official power adapter.
Things that make you go hmmmmmmm. -
why the fuck no client underdtands that a native select input cant be styled to show fairies and angels. and the same goes with many other browser elements.1
-
Best part of being a dev is that you get to be part of an amazing community like devRant.
Also the kind of jokes and stories devs get to share and laugh about is beyond anything. 😍 -
Disclaimer!!!
Do at your own risk.
-----------------------------------
- Take a strong magnet, like a neodymium magnet.
- Hold it in your hand.
- Move your hand across a Macbook 15"'s keyboard. Say from left to right or vice versa. Almost touching they keys.
You'll see the screen dimming. If you just hold it there for a little longer, it'll lock your macbook. It's funny, but I am not sure if it's doing some damage to hardware.9 -
At this point there's a poo poking its nose out my butthole but only a few more minutes and I can finally see the output of this program, finish, go to the loo and then go home.3
-
Learning information security yet again after doing multiple information security things for company and manager is pushing to do it saying "due immediately" and they're after sending "a number of emails" (it's due in a month and they sent 1 email).
Annoying that these things must be done again and again just because someone in sales let something slip or left their journal behind like a dumb dumb. It's not like I'm never off-site with my stuff or I interact with customer(s) yet1 -
I realized only now that OOP is POO when read backwards. I wonder if this is a secret message encoded by somebody to make us all switch to functional programming2
-
Motherfuck oh clients! My goodness their requirements.
They want a tiny part of an app load inside an iframe in a different app and have the data communicate both ways and the ui should look seamless and mobile responsive too.
What the actual fuck? iframe in 2016 ? Seriously?5 -
Been using Macbook Pro for 6 months now for development work. Except for the retina display and the battery, I don't like a shit. I would love to go back to ubuntu and a normal keyboard layout.4
-
A game lover and anticipator of No Man's Sky. It's the shittiest, most boring, most repetative game i ever played. the graphics sucks. the game assets suck...the game sucks. The apparent lack of variety and stuff you can do will piss you off. This is thr game which could have been one od the best but turned out to be worst.3
-
I get a chill or an eerie feeling when there are more programs open than needed and I go ahead and kill them.
Is it just me or happens to others too?2 -
Does anyone else feel like their brains aren't working, like they cant focus on anything and this has been going on for more than a week now?
I know there are things to do. I have gone through huge pain created github issues for those things but my brain just seems to reject the idea that it can solve those issues. Just feels like playing a game or just killing time would be best!
Needless to say I hate it.
Happens/happening with others?2 -
What do people feel about remote work?
I got into my current work about 8 months and we all were remote working.
In 8 months, we met in person several times and worked together at one place for a week or two.
We have never overcome the feeling of a disconnect when we work remotely. There's less focus and less clarity on things to do.
Is this common? How do people be focused and productive in remote work?
Also how do people communicate effectively?2 -
I worked hard to learn it so I can impress and then ended up loving way too much that it became my career.
-
You know what? You can all go plug your heads into each other's arseholes, Cocoapods people, just like the human centipede. I've had enough with you.
I have several libraries that were created back in version 0.38 or something. All of the sudden, you jump to v1.0 and call it ready for prime time. Except the pod doesn't build anymore and I can't publish to the trunk.
When running pod install on them, I get a hopeful message saying it's "re-creating CocoaPods due to major version update", but 2ms later the humongous pile of dog poo crashes, because it was expecting some file to be somewhere. Still not happy, it messes up the remote URL on git.
So I deleted everything and created a new project using v1.0 and populated it with my library, only to find out that now the project won't build because it's fucking Xcode with your shitty piece of software on top of it.
It's already too much of a pain to deal with Xcode's tantrums, but deliberately having to put up with Cocoapods' horseshit on top of that is just torture.
Hope you lose all internet connectivity for three hours today, right in the middle of something important. Because that's how much of my life you've stolen from me. -
so what is worse than monday morning?
It's finding the right angle for your macbook pro screen because the office changed the fucking lights and they reflect more than ever.
AND THEY ARE BRIGHT AS HELL. MY EYES BURN!3 -
During the last two weeks I have come to realize that I dislike holidays. Or maybe I don't, maybe it's just now that almost everyone is forced to use their holidays at the same time... anyway, I just know some junior has made a hot spaghetti mess that needs a'fixin and I don't look fwd to attending to those issues when I get back to the office... worst case the buggy spaghetti poo is already in prod1
-
every fucking time when the product owners start talking absolute shit that you have no idea and you would never need to know or listen to.
ITS A WASTE OF MY FUCKING TIME. SHUT THE FUCK UP AND TAKE IT OFFLINE. -
so i took a deep dive into my work at the previous company, the amount of effort i put in and the amout of new things i learned. At that time I was pissed every moment that I had to work there and it was such a pathetic place..but now I feel i created amazing things there. brought a smile today. Not a rant.. but something my fellow devs might have felt.
-
1. Only thing where correct logic doesn't backfire at you.
2. It is a wonderful thing where you get the satisfaction of solving something, organizing things and making things look beautiful all at once.
3. Its the only thing I know how to do to make money :p -
I'm working in a project that seems to be like a Multiplayer Tetris of Little Poo:
- figure out what the heck you have to code, because there is no debugging, the deploy to your devenv takes ages, the documentation does not exist or is unreadable, plus you are new and you are in a different timezone
- once you have your code, slowly pass the reviews of your remote team that will complain for every little extra line you've added for readability, slowly converting your code into a poo-like form, until it is completely shaped as shit
- repeat steps 1-2 until you pass the linter
- the carefully place your shit-shaped-code in the right place of the pile of shit
- wait for someone else to complain (like 'please rebase' 'new lint rule please fix' - oh, did I mention that? lint rules do not match between local, review and deploy?
- repeat from step 1 until you quit your job (which will happen in a few weeks) -
this happens when i am learning something new and however much i try, i cannot solve a problem, i go home and cook. Clean the kitchen in best possible way. Eat with peace and voila.. things start making sense. :)
-
Darn!
It's simply the Parkinson's Law guys, it says that 'work' expands as until it reaches it's deadlines (if any), so for indefinite time, I guess I'll plan and admire many projects but COMPLETE NONE!
DEADLINES ARE NECESSARY,
else I'll keep kn moving from one project to another without any plans of completion :31