Day 21 of 100DaysOfCode
Tags: 100daysofcode, python, sorting, codenewbie
Published: 2020-09-13 16:12:19

Hello!

Today I modified the TaskTimer script and made some enhancements on the Twitter bot. 

I also spent some time reflecting on the journey. You can read what I have done and learned so far from the post linked below. 

{% link https://dev.to/arttupyykonen/reflecting-the-first-20-days-of-100daysofcode-2k6g %}

#####Study plan
I decided to make a more robust schedule for coding. My base plan right now is:
1. Read a chapter of EJS in two days. Then do the exercises on the third day. 
2. Do at least ten challenges at FCC every day.
3. Watch a programming related YouTube video or listen to a podcast

This is just the base plan and I'm adding some "spice" to the mix. The spice can be anything that I want to do on that particular day. 

I'll keep this at the beginning of my writings and change it as I see fit. 

I encourage everyone to make a plan. 


###What I did today:

####1. Worked on TaskTimer

####What I did:
* Added a way to get total times for different tasks

####2. Worked on the Twitter bot

####What I did:
* Added an error check so that the bot doesn't crash

####Time spent learning:
Task 'TaskTimer'. Elapsed time 1 h 28 min 4 s
Task 'Twitter bot'. Elapsed time: 0 h 22 min 53 s

#### Total time: 1 h 50 min 57 s
Time spent is tracked by my [TaskTimer](https://www.arttupyykonen.com/tasktimer/) script and the [WakaTime app](https://wakatime.com/about).


###Links and videos

As I said in the study plan, from now on I'm going to watch a programming related video every day. I'll share them here so that others can watch them also. 

**Python if \_\_name__**

I wondered what does the Python syntax of " if \_\_name__ == “\_\_main__”: " mean? I found a great answer on Stack Overflow:

{% stackoverflow 419163 %}

**Sorting Olympics**

Watched this funny and educational video on sorting algorithms. The algorithms competed against each other on different races and it had the feel of a great sporting event. 

{% youtube FNAUuYmkMPE %}


### Further reading


#### [Eloquent JavaScript](https://eloquentjavascript.net/) - My favorite programming book
The book that really teaches you JavaScript. This has been a great read so far! The way the author explains things is both easy to understand and compelling. 

The learning environment which comes with the book makes the experience ten times better. Using the word "book" is a bit misleading. There are lots of code examples that the reader can run in the browser and there are plenty of exercises at the end of chapters. 

And the best part? The book is totally free!

####[Exercism](https://exercism.io/)
A platform for coding challenges. I enjoyed trying it and have read some positive things about Exercism. I liked the way the problems are solved. It requires using your own IDE and the terminal which felt like I was programming like the big boys. 

#### [The Odin Project](https://www.theodinproject.com/)
A great open-source resource for becoming a full-stack developer. It starts with the very basics and gets going after that. Really enjoyed it and look forward to doing more of the lessons. 

#### [FreeCodeCamp](https://www.freecodecamp.org/learn)
Check out FCC for the best interactive exercises! I have finished the Basic JavaScript, ES6, Regex, and Debugging lessons and can recommend them for a beginner

####Psst
You can check my answers to the exercises of Eloquent JavaScript. You'll find them [here](https://www.arttupyykonen.com/ejs-solutions/).

Have a great day and see you all tomorrow!