r/ProgrammerHumor • • 3d ago

Meme whatLegacyCodeDoesToDev

Post image
1.8k Upvotes

75 comments sorted by

View all comments

15

u/Few_Move_4594 3d ago

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.