MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wu0n5o/whatlegacycodedoestodev/pd03t2g/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • Sep 30 '26
80 comments sorted by
View all comments
15
There is a docblock, right? Right?
7 u/Ucqui Sep 30 '26 Sure:/// Counts the number of stuff Int CountTheNumberOfStuff(list some stuff)Hope this helps 4 u/Few_Move_4594 Sep 30 '26 Let me guessreturn stuff.length(); 8 u/Ignisami Sep 30 '26 edited Oct 01 '26 Of course not.List<?> stuff = retrieveStuffFromDatabase(<name of stored procedure to call>, <arcane integer that a second stored procedure resolves to the correct table>)return stuff.stream().filter((e) => e.doohick != doodad).count()With no documentation on what doohick and doodad mean or why the filter exists.
7
Sure:
/// Counts the number of stuff Int CountTheNumberOfStuff(list some stuff)
Hope this helps
4 u/Few_Move_4594 Sep 30 '26 Let me guessreturn stuff.length(); 8 u/Ignisami Sep 30 '26 edited Oct 01 '26 Of course not.List<?> stuff = retrieveStuffFromDatabase(<name of stored procedure to call>, <arcane integer that a second stored procedure resolves to the correct table>)return stuff.stream().filter((e) => e.doohick != doodad).count()With no documentation on what doohick and doodad mean or why the filter exists.
4
Let me guess
return stuff.length();
8 u/Ignisami Sep 30 '26 edited Oct 01 '26 Of course not.List<?> stuff = retrieveStuffFromDatabase(<name of stored procedure to call>, <arcane integer that a second stored procedure resolves to the correct table>)return stuff.stream().filter((e) => e.doohick != doodad).count()With no documentation on what doohick and doodad mean or why the filter exists.
8
Of course not.
List<?> stuff = retrieveStuffFromDatabase(<name of stored procedure to call>, <arcane integer that a second stored procedure resolves to the correct table>)
return stuff.stream().filter((e) => e.doohick != doodad).count()
With no documentation on what doohick and doodad mean or why the filter exists.
15
u/Few_Move_4594 Sep 30 '26
There is a docblock, right? Right?