Raising Exceptions

Programming Journey Blog

Check me out on GitHub

Posts

Explanation of Magic in The Witcher

09 Dec 2019 | rants

I came across a poignant explanation of magic in The Witcher: Blood of Elves by Andrzej Sapkowski. The explanation came from sorceress Yennefer as she was teaching her student Ciri about the power of magic. It captured the essence of magic in the novel.

Read more →

An Elegant Local WordPress Solution

28 Nov 2019 | technology

WordPress logo

If someone who knows nothing about making websites asked me how they can make one, my answer has always been the same: WordPress. While that seems like the obvious, it’s really the best option for them. I’ve been using WordPress way before I learned to write my first line of code. While it has a learning curve if you’ve never used it before, there are plenty of resources available to help you out. If those resources cannot solve your problems, there are many people who develop and use WordPress that can answer your questions.

Read more →

Basics of Working with Git

18 Nov 2019 | technology

Git is one of those things that I put off learning about even though it’s one of the most useful technology for any programmer. The funny thing about my aversion is that I really thought you can only use Git through the command line at first. I didn’t realize that it has a GUI that you can use without typing in any command. I avoided using it as long as I could and it made my learning experience much more painful.

Read more →

Getting Disqus to Work

05 Nov 2019 | web-development

My blog is chugging along so far but it’s still missing a vital component, the comment section. When I was running my blog on WordPress, the feature was already included so I never thought much about it. After migrating over to Jekyll, I noticed the missing comment box at the bottom. It wasn’t a big deal for me because barely anyone dropped by my blog anyway.

Now that I have some free time to update my blog more often, it feels incomplete. While my blog is a way for me to write about programming, it’s also something I want to share with others. Not having a comment box defeats that purpose. In this post, I will go over the process of adding Disqus.

Read more →

Bisection Search Implementation Complexities

28 Oct 2019 | programming

This post drew from MIT 6.00.1x course on edX. I saw something very interesting in a lecture when professor Grimson compared two different implementations of bisection search. The algorithm for bisection search given a sorted list is:

  1. Pick an index i that divides the list in half
  2. Ask if L[i] == e
  3. If not, ask if L[i] is larger or smaller than e
  4. Depending on answer, search left or right half of L for e

After every iteration, the list is cut in half so the complexity of this algorithm should be O(log n). But as we’ll see, this is not always the case.

Read more →