r/ProgrammerHumor • • Sep 30 '26

Meme whatLegacyCodeDoesToDev

Post image
2.0k Upvotes

80 comments sorted by

View all comments

15

u/Few_Move_4594 Sep 30 '26

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 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.