Skip to main content

Posts about #100DaysOfCode (old posts, page 15)

A Hundred Days of Code, Day 001 - Beginning With Classes

Notes I’ve taken from the videos I watched, today. This is my attempt at Feynman-ing (below), what I learnt so far.

Classes and Object Oriented Programming started to come together for me, when I saw Kushal using them.

To use my father’s carpentry analogy, I could in theory just hammer nails into wood to join them.
But to make a really strong joint, I could use other methods.
I could screw pieces of wood together, which is markedly better than just nailing them.
I could chisel wood and create a dovetail or mortise joint.

So it all comes down to understanding what I want to do and figuring out the best technique to get it done.

Read more…

A Hundred Days of Code, Day 000 - Begin Again

How do I begin this post?

By simply beginning :) Again!

This probably is the fourth (or is it fifth) time, I’ll be attempting to learn how to program.
And probably the same number of attempts at #100DaysOfCode.
I did 47 days last time and 37 days before that.

I will try my utmost to go the distance this time.
Because even if I didn’t complete a full run, I still learnt tonnes from all my previous efforts.
I do have a beginner’s grasp of Python.
And I hope get even better, much better, this time.

What am I going to do?
Well, I want to do Miguel Grinberg’s Flask Course, but as I stumbled through it the last time, and when I read other folks’ code, I realised that I need to get much better at understanding Object Oriented Programming.

So that’ll be the focus now.
And Reuven Lerner’s OOP Course is what is going to help me.

So here I set sail again …
Now, bring me that horizon!


Premature end to a Hundred Days of Code. Welcome to A Month of Emacs

Life is really kicking my butt right now.
And the 12th studies are not making it any easier.
So am temporarily giving up on A Hundred Days of Code, again.

Hopefully, I will have the time to give Python, in a month.
In the meanwhile, with the limited time I do have, I’d like to learn me some Emacs.
Will write about it everyday.

Hiatus!

Lost a friend to the virus last night.
And a shit-ton of personal issues have cropped up at the same time.

Need to go handle and process all of this.
Will be back, when I am back.

A Hundred Days of Code, Day 047

Follow my whole plodding, Flask journey here.
Crashed and burned even harder today.
Tried to retrace my steps and did all the exercises again.
I reached, once more, all the way upto the forms chapter and it just does not work. Now it won’t even display my login page.

Was it worth doing?
Oh yes.
I gained a much better understanding of how Flask works, of what is required where.
Will work once more at the login page tomorrow.


A Hundred Days of Code, Day 046

Follow my whole plodding flask journey here..

Am still stuck at where I was yesterday.
But made a tiny bit of progress.

Yesterday, it would not even submit the form.
And now I got it to do that.
How? I had forgotten to close the form tag.

Now while I see that it is posting perfectly in the terminal, I cannot get it to reply with a message saying that I indeed have logged in.

Will start watching the videos again tomorrow, to see if I have missed something.
One thing that I am doing different from the course, is that I am using the new style f-strings, while the course uses a slightly older style.
Could it be, that some flask module might not like it?
Will work at it tomorrow and write down, what I figure out.