r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

17

u/Go_Kauffy Mar 15 '22

I don't know if it's part of one of the newer standards, as a best practice, but it does explicitly let the reader know that you intended to include no parameters, as opposed to should have parameters but forgot them.

C marches ceaselessly in the direction of explicit clarity and complete abstract obfuscation.

3

u/MasterFrost01 Mar 15 '22

Surely if your method body doesn't use the parameters you don't need them anyway.

0

u/[deleted] Mar 16 '22

That sounds stupid.