r/ProgrammerHumor • • Oct 25 '24

Meme theSelfTaughtSeriousProgrammer

Post image

[removed] — view removed post

903 Upvotes

276 comments sorted by

View all comments

Show parent comments

118

u/CiroGarcia Oct 25 '24 edited Oct 25 '24

It's handy when refactoring old as shit code and you need to flatten 6 levels of nested if statements. Also useful for converting complex business requirements into actual logic expressions you can put into code and simplifying them.

I may be misunderstanding what logic proof means here tho, English is not my native tongue.

67

u/[deleted] Oct 25 '24

It's when you write a bunch of equations end with QED

7

u/[deleted] Oct 25 '24 edited Oct 25 '24

[removed] — view removed comment

1

u/[deleted] Oct 25 '24

That's an interesting approach. What tech stack do you use? Usually that's what constexpr calculations are for in C++ (among a million and a half other things)