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 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 URL.