JavaScript
Command-Line JavaScript on Rhino
So you want to write command-line JavaScript on Rhino? Here's how you do it on Mac OS:
- Download Rhino 1.7R2: http://www.mozilla.org/rhino/download.html
- Unzip Rhino in for instance Applications/Utilities/Java
- Download JLine: http://jline.sourceforge.net/
- Unzip JLine in for instance Applications/Utilities/Java
- Move jline-0.9.94.jar to /Library/Java/Extensions
- In a shell: cd /Applications/Utilities/Java/rhino_1_7R2
- In the very same shell: java org.mozilla.javascript.tools.shell.Main
Code away!
Building Large-Scale jQuery Applications
A good read on RIA architecture and links to lib and framework choices, not only for jQuery junkies:
JavaScript Primitive Types Becoming Objects
About JavaScript's primitive types and how they become objects when their properties are used:
Scoping and Hoisting in JavaScript
If you haven't looked into scoping and variable assignments in JavaScript, read this and improve your programs:
'String'.replace() Only Replaces First Instance
String.prototype.replace, i.e. 'yourString'.replace(), only replaces the first instance of the regexp. So beware. Twitter made the mistake and got vulnerable because of it. Read about it and a suggested patch:
Non-Blocking JavaScript Loading (and more) With head.js
With Head JS your scripts load like images - completely separated from page rendering, and in parallel!
Web Development
RESTful Design, Patterns and Anti-Patterns
A nice webcast on REST design. For instance brings up the idea of session ids with constant state on the server. But as always, I wonder when the CSRF storm is going to hit all these REST services out there?
Google Chrome is becoming many web developers' favorite browser. The bundled developer tools are good. But check out the extensions too, for instance the CSS reloader:
iframe Loading Techniques and How They Affect Performance
Want your iframes to stop blocking and allow onLoad to fire earlier? Check these techniques out:
http://www.aaronpeters.nl/blog/iframe-loading-techniques-performance
Did I miss a good resource or read? Just fire away below.
Did I miss a good resource or read? Just fire away below.