this post was submitted on 11 Apr 2025
1142 points (99.4% liked)

Programmer Humor

22347 readers
2269 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] perestroika@lemm.ee 7 points 23 hours ago (1 children)

I really like to build from zero, but some things are better copied, no matter if you fully understand them or fall short. :)

For example, I'm not qualified to check if Hamilton and Euler were correct - I only do as they explained, and later double-check the output against input.

[โ€“] firelizzard@programming.dev 3 points 21 hours ago

I didn't say never copy and paste. I'm saying when you push a commit you should understand what all the LOC in that commit do (not counting vendored dependencies). If you don't understand how something works, like crypto (not sure what Hamilton or Euler refers to in this context), ideally you would use a library. If you can't, you should still understand the code sufficiently well to be able to explain how it implements the underlying algorithm. For example if you're writing a CRC function you should be able to explain how your function implements the CRC operations, even if you don't have a clue why those operations work.