background preloader

Software design

Facebook Twitter

Chapter 3. Beans, BeanFactory and the ApplicationContext. Chapter 3.

Chapter 3. Beans, BeanFactory and the ApplicationContext

Beans, BeanFactory and the ApplicationContext Two of the most fundamental and important packages in Spring are the org.springframework.beans and org.springframework.context packages. Code in these packages provides the basis for Spring's Inversion of Control (alternately called Dependency Injection) features. The BeanFactory provides an advanced configuration mechanism capable of managing beans (objects) of any nature, using potentially any kind of storage facility. The ApplicationContext builds on top of the BeanFactory (it's a subclass) and adds other functionality such as easier integration with Springs AOP features, message resource handling (for use in internationalization), event propagation, declarative mechanisms to create the ApplicationContext and optional parent contexts, and application-layer specific contexts such as the WebApplicationContext, among other enhancements.

1179px-Programming_paradigms.svg.png (1179×1024) Blazing fast node.js: 10 performance tips from LinkedIn Mobile. In a previous post, we discussed how we test LinkedIn's mobile stack, including our Node.js mobile server.

Blazing fast node.js: 10 performance tips from LinkedIn Mobile

Today, we’ll tell you how we make this mobile server fast. Web Design Articles. Understanding callback functions in Javascript. Callback functions are extremely important in Javascript.

Understanding callback functions in Javascript

They’re pretty much everywhere. Originally coming from a more traditional C/Java background I had trouble with this (and the whole idea of asynchronous programming), but I’m starting to get the hang of it. Strangely, I haven’t found any good introductions to callback functions online — I mainly found bits of documentation on the call() and apply() functions, or brief code snippits demonstrating their use — so, after learning the hard way I decided to try to write a simple introduction to callbacks myself. Functions are objects To understand callback functions you first have to understand regular functions. Functions in Javascript are actually objects. One benefit of this function-as-object concept is that you can pass code to another function in the same way you would pass a regular variable or object (because the code is literally just an object).

Passing a function as a callback Passing a function as an argument is easy. Blazing fast node.js: 10 performance tips from LinkedIn Mobile. How We Built eBay’s First Node.js Application. For the most part, eBay runs on a Java-based tech stack.

How We Built eBay’s First Node.js Application

Our entire workflow centers around Java and the JVM. Considering the scale of traffic and the stability required by a site like ebay.com, using a proven technology was an obvious choice. But we have always been open to new technologies, and Node.js has been topping the list of candidates for quite some time. This post highlights a few aspects of how we developed eBay's first Node.js application. Scalability It all started when a bunch of eBay engineers (Steven, Venkat, and Senthil) wanted to bring an eBay Hackathon-winning project called "Talk" to production.

How To Node - NodeJS. How browsers work. Introduction Web browsers are probably the most widely used software.

How browsers work

In this book I will explain how they work behind the scenes. We will see what happens when you type 'google.com' in the address bar until you see the Google page on the browser screen. The browsers we will talk about There are five major browsers used today - Internet Explorer, Firefox, Safari, Chrome and Opera. The browser's main functionality The browser main functionality is to present the web resource you choose, by requesting it from the server and displaying it on the browser window. The way the browser interprets and displays HTML files is specified in the HTML and CSS specifications. Browsers' user interface have a lot in common with each other. The browser's high level structure. V8: An Open-Source, High-Performance JavaScript Engine. Download Policy: Content on the Website is provided to you AS IS for your information and personal use only and may not be sold or licensed nor shared on other sites.

V8: An Open-Source, High-Performance JavaScript Engine

SlideServe reserves the right to change this policy at anytime. While downloading, If for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. 1. V8: An Open-Source, High-Performance JavaScript Engine Kasper Lund October 4, 2008. Language-ranking-0912.png (1200×980) Why Developers Should Pay Attention to Node.js. There's a substantial amount of buzz and enthusiasm right now about Node.js.

Why Developers Should Pay Attention to Node.js

So what is it, and why should you care about it (well, other than "I said so")? ReadWriteWeb chatted with Javascript developer Guillermo Rauch, co-founder and CTO of LearnBoost in order to get some insights. ReadWriteWeb: So, what is Node.js? ReadWriteWeb: Why should developers care? Rauch: First of all, most web developers are already using jQuery, MooTools, or similar frameworks to leverage JavaScript on the browser. Secondly, thanks to the expressiveness of JavaScript and the concise yet powerful Node.js API, you can build programs that have been typically considered out of reach or too time consuming. Felix's Node.js Convincing the boss guide. Advanced Web Applications With Object-Oriented JavaScript. Recently I interviewed a software developer with five years experience in developing Web applications.

Advanced Web Applications With Object-Oriented JavaScript

She’d been doing JavaScript for four and a half years, she rated her JavaScript skill as very good, and—as I found out soon after—she actually knew very little about JavaScript. Execution in the Kingdom of 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, ... ! ". Npm. 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.