13

Bad dev habit I am trying to fix: copy-pasting code without understanding

Comments
  • 1
    Relatable lol
  • 1
    Don't be too hard on yourself. not understanding every low level instruction is not that bad as long as you understand what the snippet is intended to do, and that it's the right thing to do.

    For example
    if you're writing a regex - I'd prefer if you spent 30 minutes determining you've copy pasted the optimal regex for this scenario but you can't explain what every single char does...as opposed to spending 2 hours authoring your own regex that you think you get but is riddled with bugs.
Add Comment