r/programminghumor • • Sep 20 '26

database admin choosing variable names

Post image
903 Upvotes

113 comments sorted by

View all comments

Show parent comment

2

u/AintNoGodsUpHere Sep 21 '26

AND HOW IS THAT A PROBLEM MY MAN? 20 LINES OF CODE, JESUS.

2

u/a3th3rus Sep 21 '26

then show me your 20 lines of code that can handle this case that does not convert it to decode_h_t_m_l_entity.

2

u/AintNoGodsUpHere Sep 21 '26

Now go try different variations until you find an edge case that breaks this very very simple algorithm that I have on my libraries for the past 10 years, then I can tell you to use Humanizer and simplify your life and have something like this; https://dotnetfiddle.net/9TsILi

1

u/a3th3rus Sep 21 '26

Yes, there is one, handlePPPoEHandshake

1

u/AintNoGodsUpHere Sep 21 '26

btw, my bad, it's 30 lines, not 20. Guess I was wrong.

1

u/mrheseeks Sep 21 '26

I love you man, fuck camel case!

1

u/the_king_of_sweden Sep 21 '26

Fuck all the cases, that's why I program in whitespace

1

u/Achereto Sep 22 '26

It's 20 lines if formatted properly (e.g. not putting { on a new line).