AboutI create features from bugs.
Joined devRant on 3/11/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Spent 4h+ debugging my code (it was late)...only to realise that my code was not buggy, but the fuckup in design was in the original part I didn't change..FML..
Duuude!? What the fuck?!
First weekend off so I can slack around & now this?! O.o
I don't know what I expected.. I didn't evem do anything to it (yet)..10
I think my IE knows it's crap & is trying to hide.. xD
Actually took me a second to locate the little mofo on the desktop O.o
Ohe yeah, this is actual window size it opened itself in.. the picture is not cropped.. only magnified when uploaded..4
No, dear M$, I can't tell you if sth is helpful after spening 5s on page, especially if 4s were spent loading the content!!!2
Hmm... That's 2 yrs from now.. o.O
Mmm...ok... Keep the job, rewrite old crap (I mean code) I'm maintaining & rock at it..
Personal issues wise, get married get own flat/house & hopefully get back to climbing at least on weekly basis.. Ooh & maybe a doggo & kitteh.. xD
P.S. maybe find a phone that will outsurvive me.. or at least survive me for more than 3 months.. :/6
When you're feeling extra 'peechy' debugging coworker's crap.. I mean code..
Bonus: Anyone get's the reference?? Might have spelled it wrong.. But fuckit! I no longer care.. :\3
“Temper’s the one thing you can’t get rid of, by losing it.” – Dr. Buddy Rydell7
OMFG I don't even know where to start..
Probably should start with last week (as this is the first time I had to deal with this problem directly)..
Also please note that all packages, procedure/function names, tables etc have fictional names, so every similarity between this story and reality is just a coincidence!!
Here it goes..
Lat week we implemented a new feature for the customer on production, everything was working fine.. After a day or two, the customer notices the audit logs are not complete aka missing user_id or have the wrong user_id inserted.
Hm.. ok.. I check logs (disk + database).. WTF, parameters are being sent in as they should, meaning they are there, so no idea what is with the missing ids.
OK, logs look fine, but I notice user_id have some weird values (I already memorized most frequent users and their ids). So I go check what is happening in the code, as the procedures/functions are called ok.
Wow, boy was I surprised.. many many times..
In the code, we actually check for user in this apps db or in case of using SSO (which we were) in the main db schema..
The user gets returned & logged ok, but that is it. Used only for authentication. When sending stuff to the db to log, old user Id is used, meaning that ofc userid was missing or wrong.
Anyhow, I fix that crap, take care of some other audit logs, so that proper user id was sent in. Test locally, cool. Works. Update customer's test servers. Works. Cool..
I still notice something off.. even though I fixed the audit_dbtable_2, audit_dbtable_1 still doesn't show proper user ids.. This was last week. I left it as is, as I had more urgent tasks waiting for me..
Anyhow, now it came the time for this fuckup to be fixed. Ok, I think to myself I can do this with a bit more hacking, but it leaves the original database and all other apps as is, so they won't break.
I crate another pck for api alone copy the calls, add user_id as param and from that on, I call other standard functions like usual, just leave out the user_id I am now explicitly sending with every call.
Ok this might work.
I prepare package, add user_id param to the calls.. great, time to test this code and my knowledge..
I made changes for api to incude the current user id (+ log it in the disk logs + audit_dbtable_1), test it, and check db..
Disk logs fine, debugging fine (user_id has proper value) but audit_dbtable_1 still userid = 0.
WTF?! I go check the code, where I forgot to include user id.. noup, it's all there. OK, I go check the logging, maybe I fucked up some parameters on db level. Nope, user is there in the friggin description ON THE SAME FUCKING TABLE!!
Just not in the column user_id...
WTF..Ok, cig break to let me think..
I come back and check the original auditing procedure on the db.. It is usually used/called with null as the user id. OK, I have replaced those with actual user ids I sent in the procedures/functions. Recheck every call!! TWICE!! Great.. no fuckups. Let's test it again!
OFC nothing changes, value in the db is still 0. WTF?! HOW!?
So I open the auditing pck, to look the insides of that bloody procedure.. WHAT THE ACTUAL FUCK?!
Instead of logging the p_user_sth_sth that is sent to that procedure, it just inserts the variable declared in the main package..
WHAT THE ACTUAL FUCK?! Did the 'new guy' made changes to this because he couldn't figure out what is wrong?! Nope, not him. I asked the CEO if he knows anything.. Noup.. I checked all customers dbs (different customers).. ALL HAD THIS HARDOCED IN!!! FORM THE FREAKING YEAR 2016!!! O.o
Unfuckin believable.. How did this ever work?!
Looks like at the begining, someone tried to implement this, but gave up mid implementation.. Decided it is enough to log current user id into BLABLA variable on some pck..
Which might have been ok 10+ years ago, but not today, not when you use connection pooling.. FFS!!
So yeah, I found easter eggs from years ago.. Almost went crazy when trying to figure out where I fucked this up. It was such a plan, simple, straight-forward solution to auditing..
If only the original procedure was working as it should.. bloddy hell!!11
Code works everywhere except at one client. Ok, I check logs & see something missing.. I go check the code that handles excel files.. try catch and do nothing.. great.. :/ ok let's log this shit to see what is not ok...
Insert logs, build, update, run.. now it freakin works o.O15
Coffeee..loads and loads of it.. music..ignoring certain coworkers..loads of mind emptying breaks (piss breaks)3
Everyone is ranting/posting about Stephen Hawking RIP &such...
And I'm just sitting here, waiting for his chair to take over the world & shit to hit the fan.. O.O
P.S. no discrespect meant to the guy, I think he was awesome..21
I already ranted about the elevator at home being stoooopid for opening doors on way up when you wanna go down..
But our work elevator is awesome!
I figured today that I can play with the authorisation light with the chip for the home elevator.. so from orange to green (work card) to red (home chip) to green to red... OMG!!! Awesome!!
Also the look of horror on coworker's face was priceless (work elevators have a tendency to malfunction as it is, without me playing with them)!!! xD xD xD16
Ok, so I already asked when junior is no longer a junior..got mixed answers. Now I'd like to know what defines seniority level in your country?! Years of experience, having wide range of knowledge, great leadership skills, having boobs (joke).. ?!? But seriously, I have no clue what the standards in my country are, and internet is full of different opinions & examples that are making me wanna go cry in a corner.. o.O
Figured some answers from real people might help me get my head around this, so if it's not too much to ask fellow devs here, please answer this questions to help me grasp this better with examples..& non dev folks, you are welcome to comment too!!
A) What country are you guys from?
B) How is seniority defined there?
C) How are you placed by others?
D) If different, where would you place yourselves? Why?15
What the actual fuuuuuuck?! Google, can you just stop making improooovments on ui that is making your apps work/look like shit?!
Fuck I'm pissed.. 😒7
!rant but True story!
OMG, my coworker (rather elderly if it matters), asked if he needs to open webapp in internet exploder.. < - It was intentional, but this happened in convo over morning coffe and me and some other guy almost choked with laugher & coffee..
Fucking brilliant! IE = Internet EXPLODEr! Love it!
Man, I love my coworkers (some)!!!!6
small victories... leaving little fuck you notes all over the code..
along with all the test cunts that still get incremented on the production..
sorry, had to xD
this dude's reaction is totally me... dafaq?! they all pink?!
Also fuchsia/fusciha/fusiwhatevaa is here.. everything else is shade of pink or range from #fc64ea to #fcSTHELSE O.o7
😂😂😂😂 FB remined me it's been 5 yrs since some scammers tried to mess with me.. I just love the perfect english they used.. 😂😂😂😂😇12
How my customers act when they want something.. create a CR in wenglish (weird english) then go figure what they want.. xD
Do links even work here?! O.o
Fuckin hell, do not ever force disconnect people from (poduction) servers, especially if there is a scheduled upgrade in the middle of a busy working day & you have a very small window for updates!! 😠😠😠
ID10T errors all over da place 😒3
Does spectrum count?!🤔
Jumping jack, loads of tapes & other silly games, my radio & kidnapped tv in the living room 😍😍 yay!
Fucking assholes! Just spent 3h debugging for bugs that weren't there.. Our client insisted we must rollback the whole update, because gui was broken.. after analysing data & testing I figure out that there must be something 'wrong' as there was no data to copy from in the first place...so there should be no bug..
Aaand here goes the best part: they didn't want to point out missing data bug, they just wanted one restriction to be removed, because it 'broke GUI', to allow for empty value on save... WTF?! How can you insist that gui is buggy & that you don't want an update, if you just want something to be optional?! Which was done immediately, one change in one js file?! Dafaaaaaq?!
Kids, English is important!! Otherwise you end up debugging ghosts for 3+ hours withou a cigarette...and waking up a coworker with bad news of rollback at half to midnight... Aaaaaaaargh!!!
!rant, just wanted to share
I invited some coworkers I count as friends to a drink on friday after work..
One of them replied: I hope it's your birhday..Right?? You're not giving up on us & resigning?8
Rather than singling out one person, I wanna present what I see as incompetent/stupid/ignorant:
- no will to learn
- failure to follow the very specific instructions & later asking for help when they FUBR sth & not even knowing what they did to fuck up in the first place
- asking how to solve stuff, then ignoring the suggestions & doing sth totally against recommendations
- failure to remember most basic stuff, especially if not writing it down to look at later when needed
- failure to check logs & 'google' stuff before asking why something isn't working the way they want it
- after two weeks, asking me how feature xy works, mind you they coded it, not me
- asking me why they did something in a specific way - WTF, am I a mind reader?! Who designed that crap?! Me or you?!!
- being passive/aggressive & snarky when told to do something or being asked why isn't it done already
- not testing their shit properly
- not making backups when upgrading (production) servers
- not checking the input value, no validation.. even after many many debacles on production with null ref exceptions
- failure to admit they fucked up
- not learning from (their) mistakes8