12 rules to learn to code


Hi Reader,

This week I want to share my learning from 12 rules to learn to code by Dr. Angela Yu.

1. Trick your Brain with the 20 min Rule

  • No brain will perceive a 20-min task as a lot of effort and you end you tricking your brain to take advantage of your time.

2. Code for a Purpose

  • Follow only those tutorials that make something, anything.
  • Working on your project/ ideas is difficult but it also brings the biggest improvement in your coding ability.

3. There is no “perfect language to Learn”

  • All that matter is what you are trying to do with that language.
  • Programming concepts like loop, conditionals, functions, etc are the same. The difference is mostly syntactical.
  • Decide on the task that you are trying to accomplish, then pick the best tool for that.

4. Understand what you are writing

  • If any tutorial doesn’t explain the code. Then leave it.
  • You will be better served by building a better foundation.
  • Increase the speed if you are comfortable with the subjects or else slow down if you are unfamiliar.

5. It’s OK to not know

  • Software engineers have the largest population of imposter syndrome sufferers.
  • The skill that most employers look for when recruiting is the ability to think.
  • Information is losing value, the ability to think is the stock to buy.
  • The skill you need to home is in asking good questions and understanding the answer.

6. Be a copycat

  • Lacking an idea for the project? Be a copycat make tic-tac-toe, card games, etc. You will figure out how to do things.

7. Be accountable

  • Show your work.
  • Peer learning, feedbacks are good practice.
  • Only what’s measured can be improved.

8. Keep learning

  • Programming keeps evolving, keep re-inventing yourself.

9. Play football

  • Codeless, think more.

10. Get a mentor

  • Getting a good teacher can lead to massive improvement in your ability, all within a few hours.
  • A good mentor doesn’t solve your problems, rather they practice the Socratic method of asking a good question that gets you to think of yourself.

11. Get into Habit of Chunking

  • Break each module down even further.
  • Break the problem into solvable chunks.

12. Break someone else’s code

Never copy-paste code that you don’t understand.

Then what to do?

Step 1: Copy-paste into your program.

Step 2: Make sure it’s functioning properly.

Step 3: Delete the copy-paste code line by line.

Step 4: Each time you delete, check what’s broken.

Step 5: Test your assumptions against the outcome.

Step 6: Swap some of the lines around.

Explore open source, Github. Code something, learn something, make something today.

Wishing you happing coding and learning :))

Regards,

Basanta.

Hi! I'm a Basanta.

ಠ_ಠ

Read more from Hi! I'm a Basanta.
men's washed denim jacket riding a skateboard

Hello Reader, What does selfishness mean to you? Is it about thinking about “me and myself”? Is it the decisions we make without thinking about how our action affects others? Or is it all about not caring about anyone else? Or is it more about self-love? If I had to define selfishness, I'd say it's being more focused on yourself without harming the lives of others. I'm not sure why some people assume it so much negative. Selfishness doesn't always have to be a bad thing. You want to be the...

Hello Reader, Umm, this week also I am not writing anything about technical stuff. I have been doing a bunch of things sitting in front of my laptop. I actually love what I am learning and doing in the technical field, may it be web development, video editing, graphics designing or anything. It makes me feel happy and accomplished. I enjoy my work a lot. I kind of feel productive while I write a code. I love solving problems using technology. Indeed I am in love with whatever I am doing right...

Hello Reader, I found it amazing that many people on this planet quit their well-paying job to fulfil their fantasy of travelling alone. I found it crazy. Why would someone leave their job just to move from one place to another? Will they make money or do they just handle their expenses with their savings? And how long will that saving cover those expenses? And now next question is, who doesn’t love travelling? Who doesn’t like capturing the moment? Who doesn’t love exploring new places? Who...