julian gruber

Month

June 2012

3 posts

namebench - Open-source DNS Benchmark Utility → code.google.com

Cross-platform utility that tests your DNS and other global DNS providers for speed. Only consider the first run of the bench suite since others following will only show proximity. The fastest one for me is Google’s.

Jun 23, 2012
http://felixge.s3.amazonaws.com/11/nodejs - best practices.pdf → felixge.s3.amazonaws.com

when using callbacks:

  • pass errors as the first parameter
  • throw errors if they happen
  • try/catch for anything that could anyhow go wrong
  • log uncaught exceptions globally and exit the process
Jun 20, 2012
Why I switched back from CoffeeScript to Vanilla JS

And there are several reasons:

  • Documentation generators work better with the C comment syntax
  • Future Compability: EcmaScript 5, 6 etc. fix a lot of the problems CoffeeScript fixes in a native way. Who knows whether CoffeeScript will be as fast as V8 in implementing new features
  • Consistent syntax for calling functions: foo 1337 for foo(1337) is cool but foo(1337).bar ‘leet’ ain’t
  • Semicolons aren’t necessary in vanilla js, just add them in front of lines that start with a ( open bracket, like ;(
  • With Coffee constructs like Class etc. available it is tempting using them when a custom prototype system would be more appropriate
  • Not all tools and editors work with CoffeeScript as good as with Vanilla JS
  • If commented thoroughly the C syntax is just as readable and light as coffee’s syntax

What I will miss:

  • Anonymous function syntax
  • String Interpolation
  • Object declaration without commas
Jun 7, 2012
#coffeescript #javascript
Next page →
2011 2012
  • January 9
  • February 40
  • March 30
  • April 36
  • May 16
  • June 3
  • July 4
  • August 4
  • September 1
  • October
  • November
  • December
2011 2012
  • January
  • February
  • March
  • April
  • May
  • June
  • July 87
  • August 29
  • September 1
  • October 3
  • November 2
  • December 10