DEV Community

Arttu Pyykönen
Arttu Pyykönen

Posted on

Day 21 of 100DaysOfCode


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.

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 script and the WakaTime app.

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:

Given the following code, what does the if __name__ == "__main__": do?

# Threading example
import time, thread

def myfunction(string, sleeptime, lock, *args):
    while True:

if __name__ == "__main__":
    lock = thread.allocate_lock()
    thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))
    thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock))

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.

Further reading

Eloquent JavaScript - 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!


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

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.


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


You can check my answers to the exercises of Eloquent JavaScript. You'll find them here.

Have a great day and see you all tomorrow!

Top comments (0)