1215
Comenting code (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] Overshoot2648@lemm.ee 5 points 9 months ago* (last edited 9 months ago)

I'll add that you should have a comment anytime you are using some sort of algorithm to explain what it is and the expected result when it's not intuitive or a complex math operation that isn't immediately clear. Ex// I'm using Newton's Method to approximate a solution to speed up the inverse square root

this post was submitted on 28 Sep 2024
1215 points (99.1% liked)

Programmer Humor

37334 readers
465 users here now

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

Rules:

founded 6 years ago
MODERATORS