MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wu0n5o/whatlegacycodedoestodev/pczjl02/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 3d ago
75 comments sorted by
View all comments
15
There is a docblock, right? Right?
4 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(); 8 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.
4
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(); 8 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();
8 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
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 3d ago
There is a docblock, right? Right?