Details
-
AboutStudent, pentester, network stuff
Joined devRant on 7/22/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
-
Yesterday: Senior dev messages out a screenshot of someone using an extension method I wrote (he didn’t know I wrote it)..
SeniorDev: “OMG…that has to be the stupidest thing I ever saw.”
Me: “Stupid? Why?”
SeniorDev: “Why are they having to check the value from the database to see if it’s DBNull and if it is, return null. The database value is already null. So stupid.”
Me: “DBNull is not null, it has a value. When you call the .ToString, it returns an empty string.”
SeniorDev: ”No it doesn’t, it returns null.”
<oh no he didn’t….the smack down begins>
Me: “Really? Are you sure?”
SeniorDev: “Yes! And if the developer bothered to write any unit tests, he would have known.”
Me: “Unit tests? Why do you assume there aren’t any unit tests? Did you look?”
<at this moment, couple other devs take off their head phones and turn around>
SeniorDev:”Well…uh…I just assumed there aren’t because this is an obvious use case. If there was a test, it would have failed.”
Me: “Well, let’s take a look..”
<open up the test project…navigate to the specific use case>
Me: “Yep, there it is. DBNull.Value.ToString does not return a Null value.”
SeniorDev: “Huh? Must be a new feature of C#. Anyway, if the developers wrote their code correctly, they wouldn’t have to use those extension methods. It’s a mess.”
<trying really hard not drop the F-Bomb or two>
Me: “Couple of years ago the DBAs changed the data access standard so any nullable values would always default to null. So no empty strings, zeros, negative values to indicate a non-value. Downside was now the developers couldn’t assume the value returned the expected data type. What they ended up writing was a lot of code to check the value if it was DBNull. Lots of variations of ‘if …’ , ternary operators, some creative lamda expressions, which led to unexpected behavior in the user interface. Developers blamed the DBAs, DBAs blamed the developers. Remember, Tom and DBA-Sam almost got into a fist fight over it.”
SeniorDev: “Oh…yea…but that’s a management problem, not a programming problem.”
Me: “Probably, but since the developers starting using the extension methods, bug tickets related to mis-matched data has nearly disappeared. When was the last time you saw DBA-Sam complain about the developers?”
SeniorDev: “I guess not for a while, but it’s still no excuse.”
Me: “Excuse? Excuse for what?”
<couple of awkward seconds of silence>
SeniorDev: “Hey, did you guys see the video of the guy punching the kangaroo? It’s hilarious…here, check this out.. ”
Pin shoulders the mat…1 2 3….I win.6 -
I'm at a casino and can't stop thinking about how these terrible machines are programmed, and how likely I am to lose any money I bet.21
-
work from home. desk and pretty much everything with it stolen in family dispute. I'm holding my laptop on a small nightstand. finally got a new pc today at least :/1
-
If the recruiter starts her/his message with "Dear Mr. Doe", when I'm clearly a woman (got a profile picture and a unmistakeable female name) ...
Why is it sooo hard to check at least the first line of your c&p message??6 -
Software developers are like a toilet. Just trying to do their damn job, but end up taking everyone's shit.
-
School time, programming class:
Girl: Hey, Can you help me?
Me: Sure, what's up?
G: I have an error but I don't know why
M: *looks at error stack trace* You're missing a semicolon in line 133 *puts comma, run... 27 more errors* Well, you have more issues up there, why don't you try to fix them?
G: Oh, Ok, thanks
-- 1 hour later --
G: Hey, can you come? I already fixed the other issues but I still have one I can't fix
M: *checks code, same mistake I fixed, missing semicolon, same line* Why did you erase the semicolon?
G: Oh, because if I erase it, I only have 1 error, but if I leave it, I have 27 so....
M: *turn around, walk away*19 -
!rant
Office invested in a new coffee machine. With actual coffee beans.
It also makes hot chocolate.7 -
I hate everybody who says JavaScript is the best language because of loose typing and its easy to learn, YES OF COURSE IT IS EASY!
ITS FUCKING JAVASCRIPT! IT WAS MEANT TO BE EASY! AND THEN SOME ASSHOLE CAME ALONG, CREATED NODE AND THOUGHT THAT IT WAS A GOOD IDEA!
NOW WE HAVE TO DEAL WITH THIS SHIT EVERYWHERE BECAUSE PEOPLE WHO WROTE CODE FOR UX NOW THINK THEY KNOW WHAT NEEDS TO HAPPEN ON THE SERVERSIDE!!
GOD FUCKING DAMNIT I HATE THIS ANALTOY OF A LANGUAGE.
YOU THINK JAVASCRIPT IS THE BEST?! DO YOU REALLY??!!! OH YEAH!?!
WELL FUCK YOU AND GO TO HELL, YOU ARE NOT A DEVELOPER IN MY EYES, GO HOME KIDDO, LEARN C OR ASM OR HOW A FUCKING COMPUTER ACTUALLY WORKS!!
AND THEN TELL ME AGAIN JAVASCRIPT IS A WELL DESIGNED AND PROPER LANGUAGE!!
I'M OUT!32