JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tags: 'RequireJS', 'module'. Clear
Scoop.it!

ES6 Modules: The End of Civilization As We Know It?

ES6 Modules: The End of Civilization As We Know It? | JavaScript for Line of Business Applications | Scoop.it

This article shares some techniques and tools for building web apps using future friendly ES6 module syntax. We begin with an exploration of current module formats and ways to work both forwards and backwards in time.

For many years JS had a single widely accepted module format, which is to say,there was none. Everything was a global variable petulantly hanging off the window object. This invited risky propositions, too sweet to ignore, and some of us began monkey patching built in objects. Chaos prevailed. We had run amuck.The JS of that era was nightmarish, intertwined, lacking order and utterly without remorse.

No comment yet.
Scoop.it!

Getting Started with Browserify

Getting Started with Browserify | JavaScript for Line of Business Applications | Scoop.it

This article introduces the Browserify tool. It also shows how Browserify can be integrated with Grunt and Gulp.

any of us now work with JavaScript modules – independently functioning components that come together to work as a cohesive whole, yet can happily have any component replaced without causing armageddon. Many of us have been using the AMD module pattern and RequireJS to accomplish this neatly.

No comment yet.
Scoop.it!

Small.JS

Small.JS | JavaScript for Line of Business Applications | Scoop.it

The Javascript world is dominated by frameworks, and it is because of our reluctance to having dependencies in our libraries. If you are going to write a Javascript library, you have two options:

  1. Depend on a proven framework.
  2. Depend on no one.

If you choose option #1, you contribute to the worship of the framework.

If you choose option #2, you are faced with a problem. If you make it too small, it may not be useful enough to warrant a download (are you download-worthy?). What happens sometimes is a set of smaller functionalities get packaged up into a larger library to give users more value for the download. Another thing that tends to happen is established libraries get bigger over time as new techniques are discovered and new features invented, because this makes it easier for existing users.


As someone who likes to write small libraries, the dream for me, is this: I want easy dependencies: regardless of how many dependencies and/or nested dependencies my project has, I want to be able tell people "using my library is as easy as 1-2-3."

What I want is something like NPM.

Jan Hesse's insight:

http://smalljs.org/

No comment yet.
Scoop.it!

Modular JavaScript with RequireJS & Browserify

Modular JavaScript with RequireJS & Browserify | JavaScript for Line of Business Applications | Scoop.it

1. Who's talking?
2. The dark past
3. CommonJS & AMD? What is this??
4. RequireJS
5. Browserify
6. UMD
7. What's next?

Scoop.it!

Writing Client-Side JavaScript Modules, AMD, RequireJS & the "wrapper" Module

Writing Client-Side JavaScript Modules, AMD, RequireJS & the "wrapper" Module | JavaScript for Line of Business Applications | Scoop.it

An often overlooked piece of JavaScript examples, tutorials and discussion is the writing of libraries/modules.

While there is a vibrant community of people writing UI centric jQuery Plugins with a de-facto style and methodology, paging through Github repositories of the many libraries, frameworks, plugins, etc will show an extremely disparate set of coding styles and methods.

 

History, ES6, Transpilers and AMD

 

As more and more browsers support experimental ES6 Module Features, and others use transpilers to write in ES6 transpiling to shim'd JavaScript/ECMAScript5 which export to AMD format & client-side JavaScript becomes even more complex and large, users will use module style coding as the standard.

Regardless of whether or not you want to support CommonJS, RequireJS/AMD or just write a library which aliases its' constructor or main method/object to the window: anyone could benefit from writing small, testable and compartmentalized modules.

No comment yet.
Scoop.it!

Modular HTML components with RequireJS

Modular HTML components with RequireJS | JavaScript for Line of Business Applications | Scoop.it

RequireJS is great, and if you are using or planning on using RequireJS for managing JavaScript then you’ll really notice the benefits.

However one of the trickier parts of RequireJS greatness is finding a way to organise JavaScript modules across multiple pages and on a more granular level, multiple HTML modules on those pages.

This post won’t be an intro to what AMD modules are, or even a RequireJS tutorial, as a basic understanding of AMD and RequireJS is assumed but I will break some of the concepts down where necessary.

No comment yet.
Scoop.it!

Modular Javascript using Require.js

Modular Javascript using Require.js | JavaScript for Line of Business Applications | Scoop.it

A look at creating well structured modular javascript using AMD library Require.js

I don't know how many of you use lots of javascript libraries, but we found ourselves using quite a lot within certain projects. One of the strange issues that came about from linking JavaScript files was that we occassionally ran into dependency issues, where by a particular JavaScript source file would have a dependency on another JavaScript source file that was not loaded (and therefor not available) yet.

As luck would have it there is an excellent library for dealing with interlinked JavaScript dependencies and module loading which is called : RequireJs

No comment yet.
Scoop.it!

Five Traits of Well-Managed JavaScript

Five Traits of Well-Managed JavaScript | JavaScript for Line of Business Applications | Scoop.it
As JavaScript projects grow, they tend to become difficult to manage if you're not careful. We found ourselves running into common problems including code that was difficult to reuse or test, and code that broke when introduced in new pages.
No comment yet.
Scoop.it!

Reusing require.js modules in Node.js

Reusing require.js modules in Node.js | JavaScript for Line of Business Applications | Scoop.it
A tutorial on how to reuse require.js AMD modules directly in Node.js at the same time as using the standard Node's modules using AMDrequire library.
No comment yet.
Scoop.it!

Creating standalone JavaScript library builds with browserify, watchify, and uglify-js

Creating standalone JavaScript library builds with browserify, watchify, and uglify-js | JavaScript for Line of Business Applications | Scoop.it

Recently I had the opportunity to use Browserify as one of the tools for creating a JavaScript module for a client that is building a mapping product for architects and urban planners.

In that project I used Browserify and npm scripts to bundle the module into a file the client could use as a standalone library that could be added to any web page that needed to use the tool.

It was a fairly straightforward and flexible build process, and here I'll outline a similar structure that you could use in your projects.

Our example project will be named Pizza, because our example library will do nothing but return the string 'Pizza'. Deal with it.

No comment yet.
Scoop.it!

Using ColtJS in Modular Single Page Applications

Using ColtJS in Modular Single Page Applications | JavaScript for Line of Business Applications | Scoop.it

Building modular single page applications that are scalable has always been a nontrivial task, but with proper tooling, achieving this is a lot easier than you think.

A new framework called ColtJS allows the easy development of JavaScript applications using Asynchronous Module Definition (AMD). It depends upon the highly popular script loader, RequireJS, and aims to be lightweight, flexible and highly efficient.

No comment yet.
Scoop.it!

Conditioner.js • Frizz free, environment-aware, javascript modules.

Conditioner automatically loads and unloads modules based on the state of their surroundings. You define the required state, conditioner takes it from there.

Modules are loaded separate from each other preventing them from getting into fights. Conditioner exposes an API that allows for structured peace negotiations between modules.

No comment yet.
Scoop.it!

Working with AMD modules in Knockout.js

Working with AMD modules in Knockout.js | JavaScript for Line of Business Applications | Scoop.it

After being a bit resistant at first, I have happily moved to using require.js to manage dependencies in most of the Knockout.js applications that I have written in the last year or so. With each application, I have tried a number of patterns to make it easier to work with AMD (Asynchronous Module Definition) modules. Recently, I decided to formalize some of these patterns into a lightweight plugin that makes it simple to bind against modules and pull in templates that live in external files.

No comment yet.