Fireship · @fireship
10 regrets of experienced programmers
Uploaded May 6, 2024 · Length 8:16
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.
- 0:00
recently I volunteered my time at a
- 0:02
hospice center for dying programmers
- 0:04
also known as X and I asked the question
- 0:06
you're on your deathbed a kid comes to
- 0:08
your side and says grandpa I want to
- 0:10
learn how to code what do you regret
- 0:12
most about programming my immediate
- 0:14
answer would be something like leave me
- 0:15
alone kid and let me die in peace but
- 0:17
it's actually an interesting question
- 0:19
because programming is not like most
- 0:21
careers it has billions of possible
- 0:23
paths with many conflicting opinions and
- 0:25
no single right way to do things despite
- 0:27
its unpredictable nature I found that
- 0:29
there are some Universal traps that
- 0:31
nearly every developer regrets falling
- 0:32
into and in today's video we're going to
- 0:34
look at 10 of them regret number one I
- 0:36
wish I would have written less code it's
- 0:38
extremely important to understand that
- 0:40
code is not an asset it's a liability
- 0:42
every block of code is something that
- 0:43
you'll have to maintain in the future
- 0:45
and something that could break your
- 0:46
application entirely beginners don't
- 0:48
write a lot of code because they don't
- 0:49
know how but as they gain more
- 0:51
experience they start writing more code
- 0:52
eventually everybody realizes that less
- 0:54
is more and the total lines of code
- 0:56
decrease while productivity increases
- 0:58
however someday you may trans send to
- 1:00
the genius level 10x engineer at which
- 1:02
point the lines of code you produce will
- 1:04
go negative I for one am not afraid to
- 1:06
admit that I regret 99% of the code I've
- 1:08
written I distinctly remember feeling
- 1:09
like a genius when I implemented my
- 1:11
first abstraction Factory Singleton
- 1:13
proxy decorator in JavaScript however a
- 1:15
few years later an angel came to me in a
- 1:17
dream and said bro you could have just
- 1:19
made that a regular function an idiot
- 1:21
admires complexity a genius admires
- 1:23
Simplicity and at that point I realized
- 1:25
my entire life was a lie Simplicity is
- 1:27
always a good thing to strive for but
- 1:29
there's a lot of other trade-offs to
- 1:30
consider like readability performance
- 1:32
maintainability testability reusability
- 1:35
and so on in addition what's the
- 1:37
definition of Simplicity is it about
- 1:39
brevity or readability or something else
- 1:41
entirely in my opinion it all comes down
- 1:43
to time the goal is to minimize the
- 1:44
amount of time anyone has to spend
- 1:46
messing around with your garbage code
- 1:48
regret number two I wish I would have
- 1:49
learned to code earlier when you're
- 1:51
young your brain is highly optimized for
- 1:53
learning but as you get old and crusty
- 1:55
and your pineal gland is calcified by
- 1:56
the fluoride in the water your ability
- 1:58
to learn becomes diminished that's why


