I have enclosed in only 5 steps JScript weirdness, hoping all precedent deliriums about functions, standards, and Internet Explorer, will make more sense now.
Here there is the link to original HTML slides, I hope this will help everybody to have clearer ideas.
behind the design
My JavaScript book is out!
Don't miss the opportunity to upgrade your beginner or average dev skills.
Showing posts with label JScript. Show all posts
Showing posts with label JScript. Show all posts
Tuesday, October 13, 2009
Thursday, September 03, 2009
JScript Console - A Simple One
After I've read Ajaxian post about JavaScript as a command line scripting language I thought it could be interesting to know how to create the first Windows console.
A double click in latter file, and that's it, the most basic native JScript console ever has landed in your PCs - enjoy :)
The console.js File
function print(text){
WScript.StdOut.WriteLine(text);
};
function quit(){
WScript.quit(1);
};
while(!WScript.StdIn.AtEndOfStream){
try{
eval(WScript.StdIn.ReadLine());
}catch(e){
print(e.message);
};
};
WScript.StdOut.WriteLine("bye!" + "\r\n");
The console.bat Launcher
@echo off
cscript console.js
A double click in latter file, and that's it, the most basic native JScript console ever has landed in your PCs - enjoy :)
Friday, August 14, 2009
Defeat Internet Explorer - Can You?
While I was creating a stand alone implementation of the LSSP described in my last HTML5 sessionStorage project, I did some test and bench as every Agile developer should do.
Well, what I have discovered, is that apparently Internet Explorer could perform some common task better than any other browser, at least in my good old Intel Centrino 1.6 Ghz.
I have created a benchmark page able to freeze my Firefox 3.5.2, to ask me if I would like to continue an Array.join execution with an average score that points out my Internet Explorer 8 wins with a score under 300 milliseconds against Chrome, Firefox and Safari.
As summary, is my Centrino dead or there's something we all did not consider about JScript engine?
P.S. Opera 10 beta 2 seems to score about 130 milliseconds as average, good stuff!
Well, what I have discovered, is that apparently Internet Explorer could perform some common task better than any other browser, at least in my good old Intel Centrino 1.6 Ghz.
I have created a benchmark page able to freeze my Firefox 3.5.2, to ask me if I would like to continue an Array.join execution with an average score that points out my Internet Explorer 8 wins with a score under 300 milliseconds against Chrome, Firefox and Safari.
As summary, is my Centrino dead or there's something we all did not consider about JScript engine?
P.S. Opera 10 beta 2 seems to score about 130 milliseconds as average, good stuff!
Subscribe to:
Comments (Atom)