background preloader

Later

Facebook Twitter

An In-Depth Introduction To Ember.js. With the release of Ember.js 1.0, it’s just about time to consider giving it a try.

An In-Depth Introduction To Ember.js

This article aims to introduce Ember.js to newcomers who want to learn about this framework. Users often say that the learning curve is steep, but once you’ve overcome the difficulties, then Ember.js is tremendous. This happened to me as well. While the official guides1 are more accurate and up to date than ever (for real!) , this post is my attempt to make things even smoother for beginners. First, we will clarify the main concepts of the framework. The unstyled demo below will help you follow each step of the tutorial. Unstyled demo3 Source code4 Enhanced demo5 Table of Contents Link Definitions Of Main Concepts The diagram below illustrates how routes, controllers, views, templates and models interact with each other. Let’s define these concepts. Models Suppose our application handles a collection of users.

The Router There is the Router, and then there are routes. Controllers Views Components Templates Helpers. Inversion of Control Containers and the Dependency Injection pattern. In the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive application.

Inversion of Control Containers and the Dependency Injection pattern

Underlying these containers is a common pattern to how they perform the wiring, a concept they refer under the very generic name of "Inversion of Control". In this article I dig into how this pattern works, under the more specific name of "Dependency Injection", and contrast it with the Service Locator alternative. The choice between them is less important than the principle of separating configuration from use. One of the entertaining things about the enterprise Java world is the huge amount of activity in building alternatives to the mainstream J2EE technologies, much of it happening in open source.

A lot of this is a reaction to the heavyweight complexity in the mainstream J2EE world, but much of it is also exploring alternatives and coming up with creative ideas. Components and Services A Naive Example class MovieLister... Execution in the Kingdom of Nouns. Hello, world!

Execution in the Kingdom of Nouns

Today we're going to hear the story of Evil King Java and his quest for worldwide verb stamp-outage.1 Caution: This story does not have a happy ending. It is neither a story for the faint of heart nor for the critical of mouth. If you're easily offended, or prone to being a disagreeable knave in blog comments, please stop reading now. Before we begin the story, let's get some conceptual gunk out of the way. The Garbage Overfloweth All Java people love "use cases", so let's begin with a use case: namely, taking out the garbage. If you're a normal, everyday, garden-variety, English-speaking person, and you're asked to describe the act of taking out the garbage, you probably think about it roughly along these lines: get the garbage bag from under the sink carry it out to the garage dump it in the garbage can walk back inside wash your hands plop back down on the couch resume playing your video game (or whatever you were doing) Of course our thoughts are also filled with nouns.

Understanding node.js. Node.js has generally caused two reactions in people I've introduced it to.

Understanding node.js

Basically people either "got it" right away, or they ended up being very confused. If you have been in the second group so far, here is my attempt to explain node: It is a command line tool. You download a tarball, compile and install the source.It let's you run JavaScript programs by typing 'node my_app.js' in your terminal.The JS is executed by the V8 javascript engine (the thing that makes Google Chrome so fast).Node provides a JavaScript API to access the network and file system "But I can do everything I need in: ruby, python, php, java, ... ! ". I hear you. "Get to the point! " Alright, I will. "Huh? " That's right, everything runs in parallel, except your code. The day starts by one servant waking up the king and asking him if he needs anything. Once a servant finishes a task, he lines up outside the kings quarter to report. "That's fantastic, but could you quit the silly metaphor and speak geek to me?

" Main - browsersec - Browser Security Handbook landing page - Browser Security Handbook.