background preloader

Javascript

Facebook Twitter

Google open sources JavaScript unit testing framework. BicaVM: JVM in JavaScript – Why? | surf the edge. Last weekend I’ve been in Codebits and Made a presentation about computer languages that you can watch here. Like this post, its was presented in poor english, I know that. The gist of it is: I don’t have the same hard on that everyone else is apparently is having with JavaScript. Sure is cute language. Every one likes its functional nature, the prototype base inheritance, but it lacks crap that we decided decades ago that are essential (eg. Modularization) and even has some serious problems (eg. == vs === is a lousy way to handle identity). I believe that the browser should have some kind of virtual machine, in which one of the languages would be JavaScript, but if you are writting a project in some other language, why wouldn’t you want to write the client side in that same language as long you provide the runtime for that language.

Having a virtual machine on the browser also has some interesting side effects. So at this point BicaVM can run Java Code. You can get it here. IEBlog : IE JavaScript Performance Recommendations Part 2: JavaScript Code Inefficiencies. Hello again, this is Peter Gurevich, Performance PM for IE. We have gotten a lot of good feedback from our first post on IE + JavaScript Performance Recommendations so I am eager to hear what you think of our second installment. This is the first of two posts concerning inefficiencies in Javascript code itself.

JScript Code Inefficiencies – Chapter One There are plenty of ways to use JScript (and other Javascript engines) inefficiently since the interpreter performs almost zero optimizations when interpreting code. Most of the recommendations in the previous post are where a rather large inefficiency shows itself in many different forms. Optimize String Manipulations by Avoiding Intermediate Results Most JScript code used for manipulating the IE DOM requires some sort of string manipulation. The first piece of erroneous code comes in using the standard string concatenation operator + when working with strings. Performance articles often note this type of construct is slow. Thanks, Douglas Crockford Video: Advanced JavaScript. Objectifying JavaScript. The web professional's online magazine of choice. In: Columns > Behind the Curtain By Jonathan Snook Published on September 18, 2006 When I first began programming with JavaScript, I created my variables and then encapsulated any functionality I needed to reuse into a function.

As my tasks got more complicated and as I started learning object-oriented programming in other languages, I began to see the benefits of applying that to JavaScript. In JavaScript, a function is an object; creating a function creates an object. As scripts get larger, functions become more interrelated. In a true object-oriented sense, an object represents a thing. The important idea here is simply that objects encapsulate related functionality. In JavaScript, we often perform a series of tasks on existing objects. We’ve established that objects are good and useful, but how do we go about creating them?

Using the object literalusing the new keyword with a function Using the Object Literal Example: Creating Objects. Yahoo! Friday, September 17th, 2010 Progressive enhancement using nothing but JavaScript? Progressive enhancement is still a confusing matter for a lot of people who are very excited about the capabilities of JavaScript in modern browser environments. It can feel anachronistic to write your solutions for a non-JS environment and then once more enhances in JavaScript. I grew up like that so for me it is a Read the rest… Wednesday, August 11th, 2010 Free talk at Yahoo on the 27th about the software revolution that is JavaScript Yahoo invites to their campus in Sunnyvale, California on the 27th of August to hear Douglas Crockford talk about “Loopage”.

Friday, January 29th, 2010 Addmap.js – automatically analyse a text for geo locations and add a map As part of an upcoming article on geo location I am putting together a few Geo Toys for myself and here is the first one. Monday, January 11th, 2010 Using YQL as a proxy for cross-domain Ajax OK, this is nothing shockingly new, but I found it pretty useful.

Ajax

Why Developers Should Pay Attention to Node.js. Closure. Testing. Wtfjs. Natural Docs. Introducing JSON. Cache in with JSON. Crossing borders: JavaScript's language features. Adapt Web applications to work with multiple browsers.