602
No comment (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] glibg10b@lemmy.zip 8 points 2 weeks ago

I love how everyone's missing your point

By default, we write readable and maintainable code. But sometimes the results of profiling indicate that we need to optimize a function so much that it stops being readable. In these cases, you need comments so people can still understand how the function works, so they know how to use and change it if necessary

This is more common in high-performance and real-time applications (the sorts of applications where you need to be thinking about cache locality, CPU pipelining, etc.)

this post was submitted on 25 Sep 2026
602 points (98.9% liked)

Programming Humor

3503 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 3 years ago
MODERATORS