Jaggery.js: The Delicious Javascript Framework
Join the DZone community and get the full member experience.
Join For Freewhy javascript ?
there is no denying that since its inception in the mid 90’s, javascript has become one of the most popular web development languages. so it has become the top language due to its ability to deliver rich, dynamic web content, its relatively lightweight and its high ease of use. in recent years, we’ve seen its continued evolution beyond the desktop to areas such as mobility and server-side web applications. there are strong odds in favor of javascript becoming the dominant language of the enterprise. this isn’t to say every other language will atrophy overnight, (they won’t!) but legacy systems count on them for sure. so yet a revolutionary, a simple, open language, equally adapted to building both client and server-side apps? there’s no such thing as technology perfection, but javascript looks like the next best thing.
a modern web application invariably includes a significant client-side javascript component. why then are we using a completely separate language for server-side programming? you don’t have to switch our brain here and there, now we can use javascript for server-side-programming! for an example, node.js which is based on google’s v8 javascript engine, works wonders. i’m directing this post towards another revolutionary server-side javascript framework called " jaggery.js ". jaggery uses javascript as the server-side programming language, the obvious choice for simplification. let’s get on with it, shall we ?
jaggery is a framework to write web apps and http-focused web services for all aspects of the application: front-end, communication, server-side logic and persistence in pure javascript. one of the intents of this framework is to reduce the gap between writing web apps and web services.
importantly,
jaggery is open-source and released under
apache 2.0
. if you interested to read the full manifesto read it from
here
.
enough said, here’s a simple example, a step beyond the basic hello world to help you get a sample of jaggery’s core implementations. enjoy.
<% var jsonstring = '{"name":"pubudu","company":"wso2"}'; print(parse(jsonstring)); %>
you can try the above code on jaggery-tryit . download jaggery framework form the parent site and do your experiments, here are a few sample implementations which helps you to learn in depth about what jaggery can do.
cheers, happy coding.
resources
Published at DZone with permission of Pubudu Dissanayake. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments