Ranter
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
Comments
-
Eldius6815yI like to use "silly error messages" like
"Oops! It should never have happened"
"It was like this when I got here"
"Someone screwed up everything here... And it`s not my fault"
But it just in my own projects... Unfortunately my employers don`t like this kind of messages... -
When I took over our codebase I found a couple fun console logs. My favorite is "This is dumb and I should have done it sooner"
-
@Eldius previous dev had "that didn't work, try again later" strewn all across the codebase, as hardcoded strings...
Really fucking hard to get error messages from customers on their locally deployed solution when that's all it says...! -
Eldius6815y@arcaneeye I use a distinct message for each error, to help search for the error point...
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
erdlof16Pun of the day Boss: I heard your colleagues hate dealing with code you wrote. Why? Me: No comment
I am glad that I usually include comments, which make me smile years later...
What are your best findings when you look at your old code?
something like:
// having any and all at the same hierarchy is not valid (and stupid)
someMistakeDeep: 1 // deep fail
// TODO: find out, why the cache is behaving like this. And fix it ¯\_(ツ)_/¯
or my all time favorite comments
// this should not happen.
// wat?
or testing emails like
- tldsAreNotCheckedBTW@something.idontthinkthisdoesexist
- nonValidEmail.com
or urls...
- ProtocolMissing.com
- www.stillNoProtocol.com
And when I'm out of ideas, something like this
messageContent: 'Bla Bla Bla. Exception in FS on Host https://w.com/hpsa',
{ SmsVerb: 'randomVerb' }, // unknown Attribute
joke/meme
this should not happen
wtf
comments
wat