
2-Minute Rule to Learn Coding - Atomic Habits
2-Minute Rule to Learn Coding - Atomic Habits
In this video, I will cover best Coding Habits to Adopt in 2023. I’ll also talk about How To Stay Motivated When Learning To Code. This will help you learn coding efficiently.
Grab your copy of Atomic Habits at https://amzn.to/3IRcabM
► For more content like this, subscribe to our channel: / powercouple26
► Follow us on Linkedin:
https://www.linkedin.com/in/gabag26
https://www.linkedin.com/in/sarrabounouh
► Let’s be FRIENDS! https://www.instagram.com/power_coupl…
► For business inquiries, reach us on: [email protected]
#learncoding #programming #atomichabits
Content
0 -> Do you ever feel like you are just watching online
video tutorials but not actually getting closer
4.26 -> to becoming a Software Engineer? You always
tell yourself that this time, you are going
8.22 -> to finish the online course you started. But
when you actually sit down to learn coding,
12.06 -> it just feels like any other boring task like
washing dishes or doing laundry. And you find
16.92 -> it impossible to make any progress. So, the
question is “How do you stay motivated
20.82 -> when learning to code?”. And that’s where
Atomic Habits by James Clear comes in. If
24.48 -> you have not heard about this book, you are
probably not into self help books at all. This book
28.38 -> answers questions like What are habit loops? How
to prime your environment to make progress on your
32.7 -> goals? And How to use Dopamine Spikes to stick
to good habits? By answering all these questions,
37.26 -> I will show how you can build the life changing
habit of learning programming. Let’s do this.
41.7 -> Imagine a plane taking off from Los Angeles
for New York. Just before the take off,
46.44 -> the pilot accidentally changes the flight path by
3.5 degrees which is almost negligible. It’s such
52.14 -> a small change that neither the cabin crew nor the
passengers notice anything. When the plane lands,
56.7 -> the passengers find themselves doing a sniff
test because they are walking on the clean
61.02 -> streets of Washington DC instead of New York. The
point is that very small changes can completely
66.48 -> change the trajectory of our lives. And
just like the cabin crew and the passengers,
70.14 -> we do not see the immediate results
of these changes. But in the long run,
73.8 -> the effect of these tiny changes compound and
the final outcome can be very different.
78.12 -> As a new programmer, you would think that you
need to build something revolutionary to make
82.14 -> it into the tech industry. But in reality, all you
need to do is take small steps towards your goal
86.94 -> everyday and you will be there before you know it.
Keep scrolling Instagram or watching Youtube and
90.96 -> you will be no better programmer than today in one
year. Build tiny atomic habits that help you learn
95.76 -> programming every day and you will be very close
to landing that Software Engineer job in one year.
99.96 -> Building habits is fine but sticking to
them is where the real challenge lies. That’s
104.22 -> because you might not feel that your programming skills
are improving from day to day. When you start
108.18 -> learning programming, you expect to see a linear
improvement. But here is what actually happens.
112.38 -> In the beginning, you will not see any results.
James Clear calls this part of the graph “The
117.48 -> valley of disappointment”. This is where most
people lose motivation, give up and go back to
122.16 -> their old habits. But in reality, the returns for
your effort are actually delayed. Once you go past
127.56 -> this initial phase, you will start feeling
like a superhuman. Learning a new language,
131.4 -> building projects and getting a job you want will
suddenly start coming naturally to you. And when
135.78 -> you look back at that first piece of code you
wrote, you will definitely laugh at yourself. My
139.8 -> wife and I still make fun of the first portfolio
website I made, to this day. By the way, that's
144.6 -> not the website I made. I am too ashamed to show
my website but I will just say this. The website
149.16 -> I made had this rotating cube where each side of
the cube had the name of one of my tech skills.
153.6 -> Anyway, in the rest of the video,
155.22 -> we will not just learn how to build these
atomic habits but also how to stick to them.
159.36 -> Let’s start with how to build the habit of
learning programming. Before I can answer that,
163.38 -> we first need to understand how we build any
new habit. And that’s where “Habit Loop” comes
167.7 -> in. Cue, Carving, Response, Reward. That’s
the loop that builds any good or bad habit
172.68 -> that we repeat over and over again. Let’s
understand the habit loop with the help of a
176.58 -> bad habit that we all suffer from. The phone
vibrates, that’s your Cue. You crave to see
181.38 -> who the notification is from. Response, you
pick up the phone. And the reward, 30 minutes
186.42 -> of Dopamine release scrolling Instagram. Cue,
feeling bored with the video tutorial. Craving,
191.4 -> want to see something entertaining. Response, pick
up the phone. Reward, watched entertaining Mrbeast
197.34 -> videos for another hour. Soon, your mind starts
making associations between watching youtube when
202.5 -> you're getting bored with the tutorial. And you end
up building the bad habit of wasting your time
206.4 -> during your programming session. But can you
use the same habit loop to build good habits?
210.6 -> Let’s start with the Cue. When you want to
learn programming, what is that one thing that
214.5 -> you need with you without which you can not even
start your lesson? No, I am not talking about a
218.28 -> cup of coffee here. I am talking about your
laptop. Can you use your laptop as your cue
222.42 -> and guilt you into learning programming? The
answer is Yes and that’s exactly what James
226.92 -> Clear recommends in Atomic Habits. He suggests
you should make your cue unmissable by placing
231.66 -> it in the middle of your room - in full view.
Even better if you
234.48 -> can place it where you waste the most amount
of your time. If you play a lot of video games,
238.02 -> place it near your gaming chair so
it’s visible when you start a new game.
242.04 -> Cue alone would not be sufficient, you also
need to use implementation intentions to your
246.54 -> advantage. Studies have shown that often why
people don’t stick to good habits is not because
250.92 -> of lack of motivation, but because they don’t
have clarity of what they want to achieve. When
255 -> you say “Tomorrow, I will learn programming”.
It’s just an intention that has no clarity. So,
259.14 -> instead of saying that, you should attach an
implementation plan to your intention. So,
263.22 -> instead of just learning programming, you
should say something like “Everytime the
266.88 -> alarm goes off in the morning, I would get up
and do a programming lesson for 2 hours on my
271.14 -> desk”. By making this small change, you
will provide your mind clarity on what to
274.98 -> do right after you wake up. Another way to do
the same thing is by stacking habits. Stacking
279.3 -> habits simply means attaching the new habit
you want to build with a current habit. So,
283.08 -> instead of doing a programming lesson when the alarm goes off, you would say something like “Right after I brush my teeth,
288.54 -> which I hope is a habit you have already built,
I would do a programming lesson for 2 hours on
293.28 -> my desk”. If you stack habits like this, you are
more likely to stick to them if you practice them
298.02 -> long enough. And don’t forget to place your laptop
in the middle of the room for this to work.
302.1 -> Cue along with implementation intention
will give you the motivation you need to start
305.88 -> learning programming. But, this motivation
by itself is not enough to keep you going.
309.48 -> That's because we humans don’t do things
for which we get nothing in return.
312.9 -> To understand why that is, we need to first
learn about the motivation hormone, Dopamine.
318.24 -> In 1954, neuroscientists did a study where they
blocked the release of Dopamine in lab rats with
324.24 -> the help of electrodes. And what they found was
astonishing. Without Dopamine, these rats lost
329.52 -> their will to eat, drink or reproduce. And as
a result, all of them died. This sad experiment
335.16 -> tells us how important Dopamine is for motivation
and here is how it affects us humans. Dopamine is
340.92 -> released every time you swipe up on an Instagram
reel. And the same Dopamine is also released
345.06 -> when people do drugs. In both cases, Dopamine is
responsible for creating the cravings that make
350.28 -> us perform these bad actions again and again
to a point where these actions become our habits.
354.48 -> But can we trick ourselves into using
the same Dopamine to build good habits?
358.08 -> Before I answer that, if you want
to give me a huge Dopamine spike,
361.44 -> you can subscribe to the channel.
363.06 -> Moving on, an engineering student from Ireland named Ronan managed to use Dopamine to his advantage. Ronan wanted to become fit by
370.2 -> exercising more but he could not find motivation to workout.
Instead he would spend hours watching
375.36 -> Netflix. So, what did he do to exercise more?
He combined the two. He connected his bike to
380.22 -> the laptop and wrote a program that would let
him watch Netflix only if he was cycling above
384.42 -> a certain speed. This is called Temptation
bundling. You take something that you already
388.32 -> enjoy doing and use it as a reward for the
habit that you want to build. Here’s how
392.28 -> you can use temptation bundling to help you
progress in your programming lessons. You can
396.48 -> write a program that tracks the amount of time
you spend in your code editor. This program can
400.68 -> then use this time to control the amount of time
you get to spend on your phone. By doing this,
404.82 -> you can directly tie learning programming
to a habit that you already enjoy doing.
408.6 -> If anyone in the Power Community wants to
take up the challenge to build this program,
412.26 -> let me know in the comments. I will make sure to
share your program with everyone in the community.
416.46 -> Another thing that can help you build the habit
of programming is “The 2 minute rule”. When you
421.02 -> set unrealistic goals for yourself, it becomes
very difficult to stay motivated to work on them.
425.52 -> James Clear recommends making habit building easy
by taking small steps every day. He recommends
430.38 -> starting with only 2 minutes a day. For example,
if you want to build the habit of reading more,
434.28 -> you can start by reading just 2 minutes
a day. And if the book is interesting,
438.06 -> you will be reading much more than that
in no time. For programming in Java,
442.02 -> that would mean writing this “public static void
main'' function. And that would do us no good. So,
446.94 -> here is what I recommend: “2 exercises a
day”. And if you stick to it for 30 days,
451.14 -> I am very sure that you will be doing much
more than 2 exercises in a day at the end.
454.74 -> If you are willing to take this as a challenge,
write “#30DayChallenge” in the comments.
459.12 -> Come back after 30 days and post a reply to this
comment to share your progress. I’ll be waiting.
463.68 -> Building the habit to learn coding is
one thing, but being efficient when learning to
467.58 -> code is even more important. If you want
to know how to learn more in less time,
471.06 -> watch this video. My name is Sahil
and I will see you in the next one.
Source: https://www.youtube.com/watch?v=25RdTDN2Trg