11 November 2017
I am currently learning Swift to expand my programming knowledge. I looked at Swift a few years ago, but am now ready to dive into it.Read More...
05 November 2017
This week was tough. I did not get much time to code as my time was consumed by chores and housework. This list is not great, but, it is what it is. So, the three things I learned this week were:Read More...
29 October 2017
Three things I learned this week were: styling HTML output with Jekyll, checking third party APIs and the
22 October 2017
This week’s post is all about Swift functions.Read More...
15 October 2017
I’m trying something new. I’m going to record three things I learned or found interesting in the past week. I don’t think these will be long or in-depth posts. Just a quick note to myself about where my mindset was for the past week. I’ll see if I can make a habit of it or not.Read More...
11 July 2017
I’ve been playing around with iOS. One challenge I came across was how to make a Web View transparent. I found two ways to do this: using the Interface Builder in Xcode or using Swift.Read More...
10 June 2017
I took the Introduction to Mathematical Thinking class to improve my logical thinking. I found the class difficult, but I enjoyed it. The class covered many topics including truth tables, number theory and real analysis. The following are three things I learned that I can apply to programming or every day life.
When faced with a problem it is natural to want to dive in and solve it. However, it is important stop and examine the problem. Is there a pattern? Does everyone have the same context for the problem? Is there ambiguity about the requirements?
Mathematical thinking focuses on understanding a problem rather than rushing to solve it. This is because finding the answer solves that one problem. But, understanding means the solution can be applied to many problems.
One example from the class was to find the double meaning in the following statement:Read More...
16 January 2017
I’m starting 2017 by taking Coursera’s Introduction to Mathematical Thinking class. In my previous post I noted I should focus on programming projects. I realize I am distracting myself from that goal. However, I am taking this class for the following reasons:Read More...
31 December 2016
What I did in 2016:
What I can do to improve in 2017:
Happy New Year!Read More...
29 November 2016
This blog post is my journey on creating, debugging and deleting a unit test.
A frequent choice every programmer faces is whether a piece of code belongs in a program. I was working on a hobby project recently where I faced this choice. I had written a number of unit tests and after some reflection deleted one of the test to improve my code quality. At first read this sounds counter-intuitive. Don’t unit tests improve code quality? Generally, yes they do. But good unit tests need to be repeatable, maintainable and quick to run.
In my case I had created a Trie and some unit tests to validate it. In my test code I created a small Trie which contained 11 entries. However, I wanted to test against a larger set. So, I decided to use the dictionary file in
I created the following unit test:Read More...