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
-
dr-ant13445yMy goodness! It happens in real offline life with me with my colleagues. They'll come to me or someone else with a very watered down, surface level version of the problem asking for ideas about fixes. When you tell them there is no easy way to fix this shit or if you ask them why are you doing X in such a complicated way when you can just do Y, they'd respond with a very rude, 'I think I know why I am doing this, right? Can you just tell me if there is a library api to modify a const string?'
-
@dr-ant please tell me that was just an overstatement. Modifying a const? Why would you even..
-
dr-ant13445y@saucyatom I wish. Sadly, it was real.
There's a method returning a const string. This person was trying to process it and then pass the result to a different method.
So they used a const cast.😑
In the end, the change didn't make it to production, not because it was potentially introducing undefined behavior in code but because the PM didn't want the "feature".
Based on how the implementation was designed, I think the whole approach was flawed and very short sighted. -
@dr-ant If it is immutable there is probably a reason for it. But why can't one simply assign its value to a new variable (with the changes) and pass that? (I don't know which language this is in, in C# this wouldn't make any sense)
-
dr-ant13445y@saucyatom yeah it didn't make an iota of sense. That's just the kind of stupid I deal with everyday.
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
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
In a forum far far away...
<user> I need help understanding something about this library.
<various users> This is how it works. This is something to consider. Here is a good way to learn all of this. etc Really helpful people.
<user> I would say more about what I want to do, but I don't want to receive any more "mouthful of unsolicited advises ".
Really? You fucking ask a question on a forum about what you want to learn. Everyone there takes it seriously and provides some really golden shit on how to learn the topic. Then you shit on them for daring to provide ways to learn the topic?
I don't know if this is a language barrier, or if they are using Google translate. I have no idea. But they come across as an asshole.
rant
looking a gifthorse in the mouth
rude fuckers
wtf