Details
Joined devRant on 5/14/2016
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
-
My biggest dev blunder. I haven't told a single soul about this, until now.
👻👻👻👻👻👻
So, I was working as a full stack dev at a small consulting company. By this time I had about 3 years of experience and started to get pretty comfortable with my tools and the systems I worked with.
I was the person in charge of a system dealing with interactions between people in different roles. Some of this data could be sensitive in nature and users had a legal right to have data permanently removed from our system. In this case it meant remoting into the production database server and manually issuing DELETE statements against the db. Ugh.
As soon as my brain finishes processing the request to venture into that binary minefield and perform rocket surgery on that cursed database my sympathetic nervous system goes into high alert, palms sweaty. Mom's spaghetti.
Alright. Let's do this the safe way. I write the statements needed and do a test run on my machine. Works like a charm 😎
Time to get this over with. I remote into the server. I paste the code into Microsoft SQL Server Management Studio. I read through the code again and again and again. It's solid. I hit run.
....
Wait. I ran it?
....
With the IDs from my local run?
...
I stare at the confirmation message: "Nice job dude, you just deleted some stuff. Cool. See ya. - Your old pal SQL Server".
What did I just delete? What ramifications will this have? Am I sweating? My life is over. Fuck! Think, think, think.
You're a professional. Handle it like one, goddammit.
I think about doing a rollback but the server dudes are even more incompetent than me and we'd lose all the transactions that occurred after my little slip. No, that won't fly.
I do the only sensible thing: I run the statements again with the correct IDs, disconnect my remote session, and BOTTLE THAT SHIT UP FOREVER.
I tell no one. The next few days I await some kind of bug report or maybe a SWAT team. Days pass. Nothing. My anxiety slowly dissipates. That fateful day fades into oblivion and I feel confident my secret will die with me. Cool ¯\_(ツ)_/¯12 -
my team mate thinks that function name should be descriptive so you can understand what It will do.
Here are the examples of functions he created:
createArrayOfConsentChangedEventObjectForAConsentForAllDataProcessorsWithoutNameInEvent()
createArrayOfConsentChangedEventObjectForAConsentForAllDataProcessorsWithNameInEvent()
createAndPushConsentChangedEventWithAndWithoutNameForAParticularConsent()
I was supposed to review his code but this names are so annoying that I gave up on reviewing and just passed his code since functionalities were working as expected. -_-
Am I the only one who gets annoyed by long function names?17 -
I'll admit - I come from a WordPress background of almost 9 years in the making. I guess I can justify it because of all of the sites I created using it, it was the best that it could be on WP. Fast, efficient, custom - none of that off-the-shelf themeforest crap. I created everything custom. I actually knew what was going on behind the scenes of WP.
And then a buddy of mine and I had an idea for a new company/software project. I was smart enough to know that WP was not the foundation for this, so I did some NodeJS/Express tutorials. Started learning React, and really getting into the Javascript world.
And now I'm wondering WHY IN THE ABSOLUTE FUCK I ever bothered trying to become an expert in WP. It's the largest use of PHP in the fucking world and it doesn't even have native composer support. And by the time you actually get your project set up using composer you have to add a fucking mirror of the wordpress.org plugin repo to get anything to work. It's 2018 and you'd think that WP and composer would have all of this shit figured out by now.
And don't get me started on git - as soon as you have more than 1 person working on a WP site, I hope you have hourly backups of your DB because someones work will get overwritten. So you all either need to work on the same staging area of work around each other by pushing/pulling the DB and schedule your workflows.
I guess WP CLI and the REST API are a step in the right direction, but the foundation of everything is just so fucked up.
I don't feel like I've wasted my web dev career, but I definitely wish I had started down this path a lot earlier. I guess you don't know what you don't know. Thanks for reading!2 -
Stupid shitheads among the web designers, fucking listen up. Your fucking design is not the point of websites - the content is. You are not supposed to shove the content away to have your moron design shine in its purest debility.
Yeah I know, white space minimalism yadda yadda, clean interface - and you dumbasses just remove functionality to simulate a clean interface, to the point of using hamburger fuckups on desktop. Pull your heads out of your asses, that's not how to design an interface! Not to mention that you idiots still guzzle through the megabytes and dozens of domain lookups for your chickenshit minimalism.
While we're at it, not everyone is 20 years old like you youngsters - you won't believe it, but there is life beyond 40, and while such age is unthinkable to you because you are so dumb that you will hardly reach that age anyway, others on this planet have managed to get there. No 20/20 laser sight, you know.
Fuck you with your light grey thin fonts on white background because it looks "clean", it just SUCKS you wankers. Fuck you with your stupid ghost buttons that don't even look like a button. You know how to operate the shit you made, but reality check here, users spend most of their time on fucking other websites than on the abomination you have designed!
Get that into the shit bubble that you call your brain and read WCAG 2.1! That's not only for disabled people, but everyone will be able to use that shit better!8 -
Got this today from my gf (only one part of birthday invitation card).
So cuuuuute 😍
English: "I'm 18, will I get something now?"18 -
Every second I’m spending on this iPhone is getting me more annoyed.
I’m about to fucking compromise and get a non-lineage phone but At least a rootable one because I want or throw this piece of shit away as soon as possible.
I wouldn’t even pay 1 euro for an iOS device.
I told myself I’d go for an iPhone for a month or so but I’ll be looking for an extremely cheap android phone because I can’t bare working with this thing for much longer.
No offense to anyone and this is a personal opinion.
Fuck.30 -
NEED HELP
An ant has entered my monitor and running all over the screen from inside. It's super irritating.
How can I get it out?73 -
Fun fact: If you type "jquery is shit" into DuckDuckGo, the third result is devRant.
More than that: Whenever something about programming is combined with "shit", "fuck" etc., it's very likely that you will eventually end up at devRant.
That's amusing.8 -
"Don't give your 100%. Never. Once you gave, managers will start expecting more than that." - My mentor.16
-
"WiFi is better than Ethernet because the air is bigger so it can hold more internet."
Yes, and horse-drawn carriages are better than cars because they have bigger wheels.13 -
I deleted my Facebook so now you guys have to like the photo I just took.
Ohhh and have a great fuckin' weekend, you fucks.21 -
I was at Leeds Central train station the other day, waiting for the platform to be announced on the screen in the main bit. I noticed a commotion to my right. There was a teenage girl screaming and writhing around on the floor, her mother was knelt on one knee trying to calm her. I walked over without thinking, I know nothing about Epilepsy or first aid, at a push I could probably figure out the recovery position from a faint diagram i have stored in the unused part if my brain...
(it’s where I keep the washing machine instructions, which incidentally were designed for maximum confusion, if Id designed a washing machine it would have 1 button labelled ‘wash’)...
Sorry, back to the story. So i walked over and just before I got there, with the mother looking directly at me, I realised, what the fuck am I doing, meanwhile the daughter was screaming still and writhing, a bit like a rapid angel print you would make in the snow as a kid (until your hand touched the dog shit).
I couldn’t help it, the words just came out, like a dumb fucker, i said ‘Has she got epilepsy?’ , i stood there waiting for the sarcastic comment or the murderous stare, even a fuck off would suffice, so that I could remove myself from the situation.
To my surprise, and shock, she looked at me, calmly and said “oh no, it’s not epilepsy or anything like that.... she’s lost her iPhone”.5