Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT


ARTICLES
Composing DSLs in JavaScript
05/15/2009, by James Coglan



This illustrates a couple of principles when writing your DSL. First, I like to isolate DSL-based code inside a function. This allows cleaner separation from the rest of your program, so you can write helper functions inside the DSL function and not have them polute the global namespace. Second, you should write some test code first: it will make writing the DSL implementation much easier.

For this example I’m going to be writing a simple permissions language that sets up rules about when certain methods may be called. It could be applied to a system for playing monopoly:

   Read More...

 Rate this Ajax Articles
 Rating: 0.0 out of votes cast

AJAX NEWS
04/25/2006 ThickBox - Show html pages as well as images in Lightbox
04/24/2006 AgileGallery - AJAX Photo gallery for Picasa
04/24/2006 TeamSlide: Online Ajax-powered Web Presentations
04/23/2006 Google Blogoscoped Chat Released as Open Source
04/18/2006 Windows Live Academic Beta is now live !
04/18/2006 Ask Cheggers - Ajax powered chat bot


INDUSTRY NEWS
05/19/2006 Ajax grabs center stage at JavaOne, By Tony Baer
05/15/2006 Oracle to boost AJAX, Java , By Paul Krill
05/13/2006 Open AJAX Group Drafts Development Plans, By Stacy Cowley
05/13/2006 AJAX Powers Interactive Marketing ASP, By AjaxWorld News Desk
05/12/2006 AJAX Experts Tackle Security, Other Issues , By Darryl K. Taft
05/11/2006 Adobe Releases Spry Framework for AJAX, By AjaxWorld News Desk
More 
       

      © 2008 ajaximpact.com. All rights reserved.