When Double.TryParse fails in international sites.

Today I had a very bizarre bug in which latitudes and longitudes that needed to be parsed from string to double was failing. The code was simple:

double checklat;
bool isValidLat = Double.TryParse(currentLocation.latitude, out checklat);
if(isValidLat) {
     //do something
View Post

Writing a task based Gulp plugin

Gulp is such an amazing workflow tool, it can automate aspects of the most complex workflows so you can focus more on programming your project and less on managing it. It called “The streaming build system” by its developers. Is has similar capabilities as Grunt, however, for anyone who uses Grunt currently, I strongly suggest looking into making the switch. But that is another discussion.

Gulp is written using the node.js framework and its managed by the powerful node package manager (npm). For those who are not familiar with node.js, in a nutshell I like to think of it as server side, real time, javascript. Although that description alone is not enough to fully quantify all that its capable of.

What this means is when your developing your Gulp-based work flow, you have not just the thousands of Gulp plugins available, but you can also leverage the power of the thousands of plugins available for node.js through npm.

View Post

Building your own Programming Language

Have you ever wondered how programming languages are made? I have. I reached the point in my journey as a programmer when I decided that I need to stop taking the languages and programs that I write in for granted and I need to understand what’s going on under the hood. It’s like how most of us drive cars to work every day but have no clue how the car actually works. 

Well I decided that in order to gain a deep understanding on how programming languages actually work that I want to create my own. This is the first article in a series of articles that I’m going to write on the creation of a new programming language I decided to call MOPLIS (MOwn Programming Language ISweet!)

Programming a language at its core is all about programming a compiler. Most Computer Science majors should have at least a class or two on how compilers work and how to build a simple one. Unfortunately, for those like me who are primarily self-taught we have to figure this kind of stuff out on my own.

View Post