We started some exploration with backbonejs one of the first mv* frameworks and had problems working with it and coffee-script, which was mostly user error. Back then there was not a lot of documentation to go around and you had to setup your data-binding manually.
Next, we started down the path of SproutCore2, now Ember and it was our best fit, but you had to manage your own ajax calls. We did finally go with Ember in production and it worked great, the only issue, was that our development team continuously said that it was hard to step back into an ember app after not looking at it for a few months. The application was hard to digest and grok.
Check out this nifty little tool we created called ngfiddle - http://ngfiddle.jit.su - a great place to play around with the AngularJs framework and share your fiddles with other devs.
There is a new release of html2haml.heroku.com, mainly bugfixes, but one upgrade to the new html2haml gem and haml 3.2 beta.
As always, post any issues to github! http://github.com/twilson63/html2haml
AngularJS is a powerful MV-Star framework from Google that has all kinds of neat features, focused on testability and automatic data-binding, it uses a declarative markup style and leverages the strength of the DOM. Yes, the dom is ok at some things. :D
The AngularJS team feels the future of the web is moving more to this declarative style, time will tell, but it definitely makes my life a little less painless.
This example does not really go into the power of AngularJS, but demostrates its simplicity and strong declarative features.
It is a fully functioning contact form that validates every field for being required and validates the the e-mail field for being an e-mail.
It is amazing the amount of functionality you get declaratively, to just do a simple form validation and post.
pipe sql to mssqlx and get json out
should work great on all platforms, especially mac and unix, without any other drivers, just nodejs.
echo 'select * from sysobjects' | mssqlx | prettyjson
Currently, this only works on the command-line, the next version will work via stream api:
var mssqlx = require('mssqlx'),
nconf = require('nconf'),
fs = require('fs'),
conf = nconf.get('production');
@akennedy and I were digging through angularjs, a new client mv* framework from google. When we evaluate new tech, it is nice to go through the examples, but we really need to quickly see how these frameworks will do at solving our needs. Our applications use a lot of autocompletes, dynamic selects and a lot of ajax. So we need to create small little spikes to test these concerns.
NodeJs is great for quickly building small web servers or we could fire up apache or nginx. But this does take time and most of the time we just open a file in the browser.
Today, I created a simple static web server called w3. The big win is that if you have nodejs and npm install w3 -g
Now you have a little web server you can bring up and down in any folder.
Its easy! Just go to a folder create index.html anything else and then run w3 in the folder and you are serving files.
I hope you find this utility as valuable as we do!