10. February 2014

Making desktop applications, using NodeJS.

I am suprised to see, how big the javascript community has become! And specifically NodeJS has some serious people in its community. I was trying to do a desktop application in javascript and without searching in the internet, I started out to do it all over again! After a couple of days, out of curiosity, did a search in internet to find, that NodeJS has plenty of options to do the stuff.
Evaluating some options, I settled with Node-Webkit. For now the best 3 in my opinion are;

I must say, NodeJS has already revolutionised the internet. If at all, you think of doing something, search for a NodeJS solution and its possible that the solution is already there.

Happy coding.

01. February 2014

BackboneJS, making an event-dispatching Object.

Making Views, Collections and Models in BackboneJS is as simple as extending the raw BackboneJS objects.

var MyView = Backbone.View.extend({});

Making a generic object and make it dispatch events is also kind of same, but then the syntax is a little different.

var myUtilLib = _.extend({},Backbone.Events);

Everything else remains the same, but then, this little syntax change for an event dispatching object may come in your way, if you are new to BackboneJS. Here is a detailed example of an utility class for BackboneJS.

Happy coding.

31. January 2014

Typography.

Like many other things, there are a lot of nice typography available, which are free to use. There is no hidden spying on you or hidden charges or anything hidden, in the name of free.
I would like to mention, the two types, which are used in the theme Elegant for Wintersmith.

Kaushan Script and TeX Gyre Adventor

I found these fonts at fontsquirrel.

Elegant is a free as in air, theme, and encourage you to take it, hack it and use it, for whatever reason you may want it to use.

Happy hacking.