A Hundred Days of Code, Day 006

Journal progam done! Yay! Find the code over at Gitlab or Github. The program is a lot more basic than I expected. It does not let me keep multiple journals :) But I’m happy with what I learnt. How to put together a program How to use modules Found a little extension in VSCode, called VSCode autoDocstring, that makes typing in docstrings a breeze. Oh, I learnt about docstrings, to help document what I am doing. And brushed up on the basics, loops, conditionals, etc. Here’s to more happy programming. ...

April 19, 2020 · Mario Jason Braganza

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