News for hackers. Stuff that matters.
Re:In the Turkish locale, "INFO".lower() != "info" by random314 on Sunday August 16, 2020 @07:04PM (#24182138)
This conversation can be simply be avoided by copy pasting your original hacker news comment into the library function header.

I have noticed some coworkers have their ego gratified by being right while everyone else is wrong. Instead of simply explaining what they are doing when they are doing it, they will do something that looks wrong in a very noticeable way and wait for the backlash. The backlash gives them an opportunity to show everyone else how they were right while everyone else was wrong and also an opportunity to play victim. However, in SW development - it is not just the technical details - your behavior also matters in a big way.

In this particular case, the correct approach is to create your own library function with appropriate comments. This is why the concept of a library function was invented. It is its entire raison-d'etre. However, you are doing everything but that. Including providing justifications in hacker news comments instead of your source code.

Now inevitably, someone will change your inline code to use to_lower. This will give you an opportunity to scream bloody murder, show how other engineers don't really understand technical details, correct them and also play victim. Create a library utility with comments and link it in - End of story.

Re:In the Turkish locale, "INFO".lower() != "info" by saagarjha on Sunday August 16, 2020 @09:48PM (#24183080)
I’m reminded of garbage collector blog posts where they do something stupid (“disable it”, “allocate a ballast”) and then get to spend a couple pages explaining why it worked for them.
Re:In the Turkish locale, "INFO".lower() != "info" by kentonv on Sunday August 16, 2020 @07:20PM (#24182244)
Speaking of people wanting to gratify their ego by being right: Everyone on this thread trying to lecture me on software engineering? ¯\_(ツ)_/¯
Re:In the Turkish locale, "INFO".lower() != "info" by random314 on Monday August 17, 2020 @02:36AM (#24184588)
At least, you get to play victim :)