Why WordPress?

I figured that I should document my reasoning for choosing WordPress for this blog over Jekyll, Octopress, Pelican, or most other popular static site generators. The biggest reason for me was the accessibility of WordPress. I can access the content and update it from my phone or write posts via email! While most static site generators provide a great platform for creating and maintaining a blog via the desktop, very few seem to have the capability to update it when on the go.

Another reason to use WordPress are the themes. The ability to add and switch layouts seamlessly without delving into the code and switching it out yourself makes creating a beautiful blog simple. If you want to make edits to a theme you can (I would suggest using Child Themes so that they are saved between Theme updates). Adding other users who can manage posts or enable comments can all be changed via the dashboard.

Overall, it provides a great platform to blog on for people who don’t want to think about the code behind it.

Ruby and Javascript

I have been working a lot lately with Ruby and Javascript for a couple of website ideas that I have been developing and figured I would document the ways to print out debugging messages. One of the biggest tools for a developer is a debugger. Having a way to print out a debugging message is vital to faster development and fixing bugs or broken code.

console.log(“debugger output”);
Prints out to the Console window in the Chrome debugger.

logger.debug “debugger output”
Prints out to the Log file under the Ruby log folder.

Something to keep in mind when developing in Ruby and Javascript is the separation between server side code and user/client code. Ruby code is mainly server side; anything that it provides to the UI will be static and cannot be altered once it has been rendered. Javascript on the other hand is meant for user/client facing code. It is meant for making changes to a page that has already been rendered and this makes it perfect for most user interactions on a page.

Hello world!

The first post on my first professional blog.

Going through the process of understanding DNS redirections and the differences between CNAME and A records was a little tiresome. I’ve done this a couple times before with different sites, but unlike before, I am using namecheap.com for my domain registration and azure as my content hoster for the WordPress installation.

I managed to successfully forward from my domain name to the azure website by setting up “URL Forwarding” for the Host Names “@” and “www” to the Azure Website URL as a record type “CNAME”.

An initial problem I had was that the forward only lasted for the initial webpage because all links led to the azure website. This was easily solved by going into the WordPress settings and changing “WordPress Address” and “Site Address” to my anthonyngu.com URL.