16 April 2014

The Ruby Reflector

Topic

ECMAScript

  Source Favicon
By Zeke of Heroku 1 month ago.
Email

Harmony is the working name for ES6, the next edition of the ECMAScript language specification commonly known as JavaScript. Harmony brings lots of exciting new features to JavaScript, many of which are already available in newer versions of node.

Harmony enables many new features like block scoping , generators , proxies , weak maps , etc.

To enable harmony features in your node app, specify a newer node engine like 0.11.x and …

blog.heroku.com Read
  Source Favicon
By Assaf Arkin of Labnotes 4 months ago.
Email

A critical review of ECMAScript 6 quasi-literals . I'm not sure I understand how this is a good feature either.

Element.insertAdjacentHTML . So this feature exists and supported all the way back to IE4.

azproduction/node-request-as-curl will serializes http.ClientRequest as curl command lines. Great for troubleshooting.

coolwanglu/vim.js is a port of VIM to JavaScript. Your move, Emacs!

Ways to Remove Those Pesky console.log Statements …

blog.labnotes.org Read
  Source Favicon
By Assaf Arkin of Labnotes 4 months ago.
Email

Thinking About ECMAScript 5 Parts

Scala โ€” 1โ˜… Would Not Program Again . At last, an article that confirms my bias!

Scala programmers really like types. This has lead to some surprising decisions. The oddest we encountered was the plethora of types blossoming around the HTTP request/response cycle. Instead of two simple maps with keys for status, headers and body there were types. Types galore! There was a request context, a request, a response, a large number of directives …

blog.labnotes.org Read
  Source Favicon
By wycats of Katz Got Your Tongue? over 1 year ago.
Email

…have magic behavior that are extremely difficult to explain in terms of the exposed API of ECMAScript 3. For example, the innerHTML property has side-effects, and ES3 does not provide a mechanism for declaring setters. The ECMAScript 5 specification provides some additional primitives that make it possible to explain more of the existing DOM behavior in terms of JavaScript. While designing ECMAScript 6, the committee has repeatedly discussed how certain new features could help explain …

yehudakatz.com Read
  Source Favicon
On Coding Horror over 1 year ago.
Email

…principled way. I'm pretty fearless about parsers, by the way; I wrote a full ECMAScript parser in a week as a side project.

I want this new language - working name " Rockdown" - to be seen as Markdown with a spec, and therefore only deviate from Markdown's behavior in unobtrusive ways. It should basically be a replacement that paves over the problems and ambiguities in Markdown. I'm trying to draw a line between what behavior is important to preserve …

codinghorror.com Read
  Source Favicon
By John Resig of John Resig over 1 year ago.
Email

Open Source library is some form of in-browser, pure-JavaScript, ECMAScript 5 linter. We use JSHint right now and we'd really appreciate being able to enforce true strict mode ( JSHint's strict mode support is rather limited in nature).

Collaboration and Community

With the Khan CS platform we wanted to provide an environment that effectively mimicked the best aspects of great programming communities like Github .

Students can always see the code …

ejohn.org Read
  Source Favicon
By Forrest Norvell of New Relic almost 2 years ago.
Email

…not a big fan of the linguistic fragmentation this represents, I am glad there are alternatives to ECMAScript 6 (especially if it turns out to be the bloated disaster it's threatening to become.)

On the other end of the web stack, one of Node's most touted advantages is that since it's written in JavaScript, you can share code between the server and the browser. Many presenters suggested that this is true more in theory than in reality, but there has been a lot of work done …

newrelic.com Read
  Source Favicon
By John Resig of John Resig almost 2 years ago.
Email

…the CoffeeScript programming language - which has gone on to influence the upcoming ECMAScript specification itself.

I'm personally making use of all of these features, even today, in my work at Khan Academy. Dynamic code evaluation in the browser is such a powerful feature: You can build in-browser programming environments and do crazy things like inject code into a live runtime. This can result in an extremely compelling way to learn computer programming and provide all sorts of capabilities …

ejohn.org Read
  Source Favicon
By Joey of Global Nerdy 2 years ago.
Email

If you watched the WAT video that I pointed to in this earlier post , you saw some really counterintuitive behaviour from JavaScript and probably laughed and facepalmed at the same time.

A Stack Overflow user going by the handle of Ventero has taken it upon himself/herself to explain each of those JavaScript oddities, by way of pointing to the ECMA-262 standard. If you were scratching your head trying to figure out why those JavaScript…

globalnerdy.com Read
  Source Favicon
By wycats of Katz Got Your Tongue? over 2 years ago.
Email

Because of these concerns, the ECMA working group responsible for ECMAScript, TC39, is considering adding block lambdas to the language. This would mean that the above example could be refactored to:

FileInfo = function ( name ) { this . name = name ; } ; FileInfo. prototype = { mtime : function ( ) { // use the proposed block syntax, `{ |args| }`. this . withFile { | f | // in block lambdas, +this+ is unchanged var mtime = this . mtimeFor ( f ) ; if ( mtime < new Date ( …

yehudakatz.com Read