Wednesday, April 11, 2012

Eloquent JavaScript: A Modern Introduction to Programming

Another JavaScript book...
What makes it different is interactive examples...
No other language (except CoffeeScript) can offer such feature
without a back-end server running interpreter or compiler...

Eloquent JavaScript: A Modern Introduction to Programming

5+ years ago, after reading excellent book Ajax in Action
I have observed potential of JavaScript well beyond simple scripting...
Strange as it may be, that future is coming, along with HTML5...

2013 Nissan Altima

Most fuel efficient mid-size sedan, 27/38 mpg

2013 Nissan Altima Video, First Look: 2012 NY Auto Show | News:

For a long while, rumors had been circulating about a turbocharged inline four-cylinder engine for the Altima, and while that hasn't been 100 percent ruled out, Nissan spokespeople tell us there are absolutely no plans to introduce one at this time. Simply put, the 3.5-liter V6 accounts for a large enough amount of Altima sales that Nissan didn't want to stop offering it. That, and Nissan says their V6-equipped Altima is actually lighter than its turbo-four-powered competitors, namely the Hyundai Sonata and Kia Optima.

Object-Oriented JavaScript

Advanced Web Applications With Object-Oriented JavaScript @ MSDN

In JavaScript, objects are just collections of name/value pairs
—think of a JavaScript object as a dictionary with string keys

var userObject = new Object();
userObject.lastLoginTime = new Date();
does exactly the same thing as this:
var userObject = {}; // equivalent to new Object()
userObject["lastLoginTime"] = new Date();
We can also define the lastLoginTime property directly within userObject’s definition like this:
var userObject = { "lastLoginTime": new Date() };

SQL Server 2012 is Generally Available

SQL Server 2012 is Generally Available! - SQL Server Team Blog - Site Home - TechNet Blogs

Editions, Download

Express Edition (DB size limit 10 GB)

node.js + IIS on Windows

Here is a brief summary why Microsoft supports node.js (and PHP, and Hadoop, etc)

Installing and Running node.js applications within IIS on Windows - Are you mad? - Scott Hanselman

" The IIS folks, the Windows folks, the Azure folks, want to make sure everything runs well on Windows. Remember, we sell Windows, so it's good if it does many things well. ;)"

Makes sense. node.js currently resembles early days of Ruby-on-Rails,
and many of web frameworks used today are influenced by "opinionated" nature of Rails.

How about performance?

ScottH Hello World test:
  • node: 10,000 hello worlds a second and ended up with just under a million normal requests and responses in 90 seconds
  • ASP.NET: IHttpHandler doing the exact same thing on this same machine gets 22,500 requests a second, so node and iisnode has some room to improve...

    For complete comparison memory and CPU usage would also need to be considered...