Web Info & Tutorials

December 3rd, 2007

REALLY SIMPLE HISTORY 0.6 RELEASED!

If you’ve never heard of Really Simple History, it was one of the first bookmarking and browser history implementations available for Ajax applications.

Really Simple History is a lightweight JavaScript library for the management of bookmarking and browser history in Ajax/DHTML applications.

It was originally developed by Brad Neuberg and Brian Dillard recently took over development of Really Simple History and has been working feverishly on getting out a new release for the masses. Today, Brian announced that Really Simple History v0.6 is ready to go and available for download.

Get the full scoop about this release as well as some future enhancement at Brian’s site.

December 3rd, 2007

EVOLUTIONARY PROGRAMMING AND GRADUAL TYPING IN ECMASCRIPT 4

Lars Hansen of Adobe has written Evolutionary Programming and Gradual Typing in ECMAScript 4 which is a tutorial packed with real code for you to diff JS1 and JS2 as it currently stands:

ECMAScript 4 (ES4) provides a range of facilities for evolutionary programming – evolving a program in
stages from a simple script to an ever larger and more reliable software system. The most important facility
for evolutionary programming is the gradual type system; also important are namespaces and packages, union types, generic functions, and reflection.

This tutorial uses a simple library as a running example to illustrate the evolution of a program from the
ES3 “script” stage, via various levels of typing and rigor, to an ES4 package with greater guarantees of
integrity and better performance potential than the original code. We then look at how union types, generic
functions, and reflection can be used to work with a library whose code we can’t modify.

The tutorial uses an example of a browser email system to demonstrate these new features. It takes you step by step through code that evolves to end up looking very JS2-y indeed. You will have to keep an open mind as you look at code filled with classes, namespaces, likes, and more! It is good to see code coming out as part of the conversation.

December 3rd, 2007

SILVERLIGHT TECH TALK FROM TAE

Peter Laudati, Developer Evangelist from Microsoft, gave a presentation at The Ajax Experience titled

December 3rd, 2007

FILTERING JAVASCRIPT FROM HTML CONTENT WITH ANTISAMMY

Jason Harwig has posted about AntiSamy, the Java 1.5 harmonious accumulation that sanitizes away:

JAVA:

  1.  
  2. AntiSamy sanitizer = new AntiSamy();
  3. CleanResults results = sanitizer.scan(request.getParameter(“html”));
  4. String html = results.getCleanHTML();
  5. if (!results.getErrorMessages().isEmpty()) {
  6.     log.warn(“Input contains erorrs”);
  7. }
  8.  

I gave a JavaScript section speech terminal month, and digit of the topics was HTML filtering. I gave examples of how MySpace proven to separate workable code, patch ease allowing HTML tags for formatting. MySpace, of course, unsuccessful to act every move vector, and the Samy insect was born.

HTML filtering was never advisable because it was so arduous to intend right, and with no proven libraries, disagreeable to physique a resolution would nearly sure include section holes.