The classical fat client is dead! More and more applications instead use to Web client, which barely differ from conventional GUIs. The Dojo Toolkit is designed to simplify and accelerate the development of such clients. The following article presents the library and provides an introduction to working with Dojo.
via Monkey Patching.
As one of the MooTools team and someone who work with the Dojo Toolkit for years, I quickly learned one lesson: you never modify the source of a library when using it on a given web app. Doing so makes upgrades of the library a nightmare and general maintenance impossible. So what do you do while you wait for the library creators to fix their bug? You monkey patch.
So what is monkey patching? It’s the process of replacing methods with updated, “fixing” methods for the original. In this example we’ll presume we have an object with a function called
setTransformStyle. And what’s wrong with this example function? It sets the style of the CSS
transform property but doesn’t set the vendor-prefixed style required by a few browsers. In this example we’ll fix that problem.
via Build your first Node.js website, Part 1.
When my 9-year-old son wanted help writing his first app, I figured we would build a few web pages displaying some information that we’d store in a database. I hadn’t written code in many years, but how hard could it be to create this simple website?
Well, after we consulted various instructional websites and books — and I installed a lot of stuff that I really didn’t want cluttering up my computer — I couldn’t believe how hard it was.
So I decided to give IBM Bluemix™ a try. It was easy to get a sample application running, but then I found myself wading through a bunch of code that I didn’t understand and installing yet more stuff for developing applications — nothing I was ready to subject a 9-year-old to.
My love for Bluemix grew the day I discovered the web IDE on IBM DevOps Services. You can edit an application in the IDE, push it to Bluemix, and run the app — all with no additional software to install. Of course, you can use Bluemix with local development environments such as Eclipse, and with the Bluemix command line. But for getting started and quickly trying out new things, the web IDE is a perfect fit.
Still, all I wanted to do to start was put up an HTML page, yet the Bluemix Node.js web starter includes nothing that looks like good old-fashioned HTML. As for working with a database, the Bluemix sample ToDo application was more than I needed.
That’s what inspired this three-part article, which starts from the bare minimum and takes you step-by-step through building up a dynamic website with Node.js— all with no installation required. This first part covers bringing up a Node.js server for simple request handling. I started with a classic Hello World sample and added a server-side counter. You’ll create a copy of the application for your own use, deploy the app on Bluemix, and then make some code changes and see their effect.
“The Node.js application serves requests from multiple browsers and keeps a count of each request.”
In this presentation recorded at the Hacker Dojo, StrongLoop product manager Shubhra Kar demonstrates how to make use of the open source LoopBack API server. Loopback is an API server build on Node.js that enables you to easily connect devices and apps to backend data and services.
Building Applications with NodeJS: https://www.youtube.com/watch?v=Lgk3g…
Building high quality services at Uber with Node.js: https://www.youtube.com/watch?v=1RMWS…