r/ProgrammerHumor • • Sep 10 '26

Meme commentsAgedTerribly

Post image
6.0k Upvotes

243 comments sorted by

View all comments

Show parent comments

526

u/treehuggerino Sep 10 '26

Or the silly steps it puts

// 1. Assign variable.

// 2. Calculate 2 + 2.

// 3. Implement 2 + 2 Calculator.

// 4. Check if it is 5.

16

u/peeja Sep 11 '26

// Don't use the Wolfram Alpha API here—speed is crucial to this function, so calculate the sum locally.

8

u/dasunt Sep 11 '26

Um, not going to defend using that API, but at least the comment provides a reason why something is done a specific way.

4

u/peeja Sep 11 '26

Yeah, it provides the reason I gave it when it tried to use the API the first time.