A Hundred Days of Code, Day 005

Still working on the journal program. But made significant progress today. Learnt how to read and write from files (lots more practice required) Learnt how to pass variables around between modules, that are spread across files (still find it confusing. guess that’ll ease with practice) Learnt what all that __name__ stuff is all about. (pretty simple actually. if main is not my name, i refuse to run. you call me in vain1) And finally, learnt what docstrings are. They’re basically bread crumbs I leave for myself and other folks reading the code, to figure out, for example, what a function does, what input it expects, what output it’ll poop out and all that jazz. Basically, documentation for programmers, by programmers. Once I document my code up tomorrow, I will be done. Here’s to more productive days! ...

April 18, 2020 · Mario Jason Braganza

A Hundred Days of Code, Day 004

After a series of disasters in the kitchen today, I fear my hundred days of code is going to turn into a hundred and one days of code. My box of new eggs shattered on the floor. My box of old eggs turned out rancid and extremely foul smelling. I had to clean up the whole sordid mess. Not before I boiled a few of the old ones. Now I have a smelly cooker too. The house smells of rotten eggs. My wife is about to puke. I have rotten egg on my hands literally (and on my face, metaphorically). Oh, and the chicken is on the stove, burning. ...

April 17, 2020 · Mario Jason Braganza

A Hundred Days of Code, Day 003

Still on the Journal program. Learnt how to split functionality between files, so that I don’t have a giant hodge-podge of code. Ran out of time. File I/O tomorrow, I guess

April 16, 2020 · Mario Jason Braganza

A Hundred Days of Code, Day 002

Creating a small personal journal program. Day 2 and I have already switched allegiances :) Decided to do the TalkPython Jumstart Course, since I wanted to get my hands dirty and mind working with real world-ish problems. Started with App 4, that deals with building a small journal app. In one hour, I managed to create the bones of the app. I can read, write and exit the app. I learnt how to sanitise input, so that erroneous input does not crash the app. I kept pausing the video and then trying to code it up myself and then seeing if my stuff matched up to what was being shown. For the most part, it did. Was happy to see that. It affirmed that I had a good grasp of the basics. ...

April 15, 2020 · Mario Jason Braganza

A Hundred Days of Code, Day 001

Yak Shaving day. Setup VS Code. Cleaned my repos. Setup Python. Hopefully, tomorrow is better!

April 14, 2020 · Mario Jason Braganza

A Hundred Days of Code, Day 000

Well, life caught up with me again. And so, ridiculous as it may sound, I’m starting over, again! An hour a day. For a hundred days. I did 37 days last time. Here’s to a hundred and lots more learning this time. Continuing with the Talk Python, #100DaysOfCode in Python. Will do it at my pace. And mix and match other little programs and challenges as I come across them. Wish me luck! ...

April 14, 2020 · Mario Jason Braganza