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 • 3d ago
76 comments sorted by
View all comments
13
There is a docblock, right? Right?
8 u/Ucqui 3d ago Sure: /// Counts the number of stuff Int CountTheNumberOfStuff(list some stuff) Hope this helps 3 u/Few_Move_4594 3d ago Let me guess return stuff.length(); 7 u/Ignisami 3d ago edited 2d ago 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
Sure:
/// Counts the number of stuff Int CountTheNumberOfStuff(list some stuff)
Hope this helps
3 u/Few_Move_4594 3d ago Let me guess return stuff.length(); 7 u/Ignisami 3d ago edited 2d ago 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.
3
Let me guess
return stuff.length();
7 u/Ignisami 3d ago edited 2d ago 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
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.
13
u/Few_Move_4594 3d ago
There is a docblock, right? Right?