concept development in category javascript

appears as: development, development
Data Wrangling with JavaScript

This is an excerpt from Manning's book Data Wrangling with JavaScript.

If your team already has code running in production, the answer is easy. Install the same version of Node.js for development that your team is running in production. Your code will be much more likely to run correctly in the production environment.

This chapter is all about dealing with live and dynamic data, and we’ll try to do this in a real context. We’ll see more software architecture in this chapter than we’ve yet seen in the book because the work we’re doing is getting more complex and we need more powerful ways to organize our code. We’ll work toward building our application on an event-based architecture. To emulate how I’d really do the development, we’ll start simple and then restructure our code partway through to incorporate an event hub that will decouple the components of our app and help us to manage the rising level of complexity.

JavaScript Application Design: A Build First Approach

This is an excerpt from Manning's book JavaScript Application Design: A Build First Approach.

The top of figure 1.2 zooms in on the build portion in the build process workflow (shown back in figure 1.1), detailing the concerns as you aim for either development or release. If you aim for development, you’ll want to maximize your ability to debug, and I bet you’ll like a build that knows when to execute parts of itself without you taking any action. That’s called continuous development (CD), and you’ll learn about it in chapter 3. The release distribution of a build isn’t concerned with CD, but you’ll want to spend time optimizing your assets so they perform as fast as possible in production environments where humans will use your application.

Understanding the interaction between development, staging, and production environments and build distributions is vital to creating a build process that can be used regardless of environment, allowing you to develop your application in a setting loyal to what your end users will see, but that can still be debugged with ease. Additionally, this understanding will allow you to create middle-tier environments, which are instrumental to robust deployment mechanisms, which we’ll discuss in the next chapter.

The Build First approach carries a slew of benefits when it comes to the development environment, and that’s the meat of this chapter. We’ll talk about tools and mechanisms that are famously helpful during development. Let’s save the fun for last; we need to talk about configuration first. We’ll go over your options when it comes to managing, reading, and storing the sensitive data of your environment-level configuration in a sensible way, so as not to expose your secrets to potential intruders.

Prototype and Scriptaculous in Action

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.

The year 2005 saw an explosion in the number of Ajax and JavaScript frameworks, helper libraries, and other projects aimed at assisting in the development of Ajax apps. Ajax in Action (by Dave Crane and Eric Pascarello with Darren James) included a list of over forty frameworks, and several were certainly left out. The pioneers were being followed by a wave of settlers, staking out territory and busily setting up small settlements. Inevitably, some of these withered, and others grew into small towns. Over the next year or two, we can expect to see a reduction in completely hand-coded Ajax applications, as best practices and the results learned from other people’s mistakes crystallize into frameworks and utilities.

There are several criteria that we can take into consideration, such as ease of development, support for the approach by our toolset, the efficiency and performance of the application, and how future-proof each solution is as our requirements expand. Breaking down our assessment in this way won’t get us off the hook entirely—we’ll still have a difficult decision to make at the end of the day, but at least it will be an informed decision. So let’s consider each of our criteria in turn.

4.3.1. Considering ease of development

Ease of development cannot be measured in a hard and fast way, as it is ultimately subjective. Let’s begin with the assumption that all code is difficult to write, and therefore the less code written, the easier the project is. It isn’t as simple as that in reality, of course, and we’ll unpack some of the nuances shortly, but this approach allows us to put forward some numbers to start the discussion.