Fireship · @fireship

10 regrets of experienced programmers

Uploaded May 6, 2024 · Length 8:16

10 regrets of experienced programmers

Summary

The speaker shares 10 regrets of experienced programmers, including writing too much code, not learning to code earlier, and not finishing projects.

  • programming regrets
  • software development mistakes
  • coding best practices
  • career advice for programmers
  • productivity tips for developers

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    recently I volunteered my time at a

  2. 0:02

    hospice center for dying programmers

  3. 0:04

    also known as X and I asked the question

  4. 0:06

    you're on your deathbed a kid comes to

  5. 0:08

    your side and says grandpa I want to

  6. 0:10

    learn how to code what do you regret

  7. 0:12

    most about programming my immediate

  8. 0:14

    answer would be something like leave me

  9. 0:15

    alone kid and let me die in peace but

  10. 0:17

    it's actually an interesting question

  11. 0:19

    because programming is not like most

  12. 0:21

    careers it has billions of possible

  13. 0:23

    paths with many conflicting opinions and

  14. 0:25

    no single right way to do things despite

  15. 0:27

    its unpredictable nature I found that

  16. 0:29

    there are some Universal traps that

  17. 0:31

    nearly every developer regrets falling

  18. 0:32

    into and in today's video we're going to

  19. 0:34

    look at 10 of them regret number one I

  20. 0:36

    wish I would have written less code it's

  21. 0:38

    extremely important to understand that

  22. 0:40

    code is not an asset it's a liability

  23. 0:42

    every block of code is something that

  24. 0:43

    you'll have to maintain in the future

  25. 0:45

    and something that could break your

  26. 0:46

    application entirely beginners don't

  27. 0:48

    write a lot of code because they don't

  28. 0:49

    know how but as they gain more

  29. 0:51

    experience they start writing more code

  30. 0:52

    eventually everybody realizes that less

  31. 0:54

    is more and the total lines of code

  32. 0:56

    decrease while productivity increases

  33. 0:58

    however someday you may trans send to

  34. 1:00

    the genius level 10x engineer at which

  35. 1:02

    point the lines of code you produce will

  36. 1:04

    go negative I for one am not afraid to

  37. 1:06

    admit that I regret 99% of the code I've

  38. 1:08

    written I distinctly remember feeling

  39. 1:09

    like a genius when I implemented my

  40. 1:11

    first abstraction Factory Singleton

  41. 1:13

    proxy decorator in JavaScript however a

  42. 1:15

    few years later an angel came to me in a

  43. 1:17

    dream and said bro you could have just

  44. 1:19

    made that a regular function an idiot

  45. 1:21

    admires complexity a genius admires

  46. 1:23

    Simplicity and at that point I realized

  47. 1:25

    my entire life was a lie Simplicity is

  48. 1:27

    always a good thing to strive for but

  49. 1:29

    there's a lot of other trade-offs to

  50. 1:30

    consider like readability performance

  51. 1:32

    maintainability testability reusability

  52. 1:35

    and so on in addition what's the

  53. 1:37

    definition of Simplicity is it about

  54. 1:39

    brevity or readability or something else

  55. 1:41

    entirely in my opinion it all comes down

  56. 1:43

    to time the goal is to minimize the

  57. 1:44

    amount of time anyone has to spend

  58. 1:46

    messing around with your garbage code

  59. 1:48

    regret number two I wish I would have

  60. 1:49

    learned to code earlier when you're

  61. 1:51

    young your brain is highly optimized for

  62. 1:53

    learning but as you get old and crusty

  63. 1:55

    and your pineal gland is calcified by

  64. 1:56

    the fluoride in the water your ability

  65. 1:58

    to learn becomes diminished that's why