456
got him (lemy.lol)
submitted 3 months ago by ngn@lemy.lol to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] victorz@lemmy.world 8 points 3 months ago

Then perhaps the code you are trying to extract doesn't make a clear and cohesive procedure. Maybe include more or less of the code, or rework the code into logical pieces or steps. Write the algorithm in human language first, then implement the steps using functions.

🤷‍♂️ Or fnck it.

[-] Feathercrown@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

Sometimea the smallest logical unit of an algorithm uses more than 3 levels of indentation

this post was submitted on 09 May 2024
456 points (92.4% liked)

Programmer Humor

31717 readers
919 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS