JavaScript for Line of Business Applications
596.5K views | +1 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 tag: 'javascript'. Clear
Scoop.it!

konacha - Test your Rails application's JavaScript with mocha and chai

konacha - Test your Rails application's JavaScript with mocha and chai | JavaScript for Line of Business Applications | Scoop.it

konacha - Test your Rails application's JavaScript with the mocha test framework and chai assertion library.

It is similar to Jasmine and Evergreen, but does not attempt to be framework agnostic. By sticking with Rails, Konacha can take full advantage of features such as the asset pipeline and engines.

No comment yet.
Scoop.it!

reSRC · List of Free Programming Books

reSRC · List of Free Programming Books | JavaScript for Line of Business Applications | Scoop.it

* Algorithms & Datastructures
* Theoretical Computer Science
* Operating systems
* Database
* Networking
* Compiler Design
* Programming Paradigms
* Parallel Programming
* Software Architecture
* Open Source Ecosystem
* Information Retrieval
* Datamining
* Machine Learning
* Mathematics
* Misc
* Web Performance
* MOOC
* Professional Development
* Security

No comment yet.
Scoop.it!

JavaScript debugging for beginners

JavaScript debugging for beginners | JavaScript for Line of Business Applications | Scoop.it

Over the last five years, thanks largely to the rise of frameworks such as jQuery and Prototype, JavaScript has risen to become a first tier language for scripting on the web. This increased popularity and ease of use, has led to the creation of fully fledged applications such as Gmail, which contain thousands of lines of JavaScript code that required teams of talented developers to create.

As a result of this increasing complexity however, when something does go wrong developers need powerful JavaScript debugging tools in order to quickly root out the cause of the issue and fix it efficiently. A simple var dump via the alert() dialogue simply won’t cut it anymore.

In this tutorial I’ll outline some of the features of modern developer tools that you can use today to help make JavaScript debugging less painful. We’ll focus primarily on the Chrome developer tools and Firebug but many of these features are available in other tools such as Opera Dragonfly.

 

No comment yet.
Scoop.it!

Crossfilter - Fast Multidimensional Filtering for Coordinated Views

Crossfilter - Fast Multidimensional Filtering for Coordinated Views | JavaScript for Line of Business Applications | Scoop.it

Crossfilter is a JavaScript library for exploring large multivariate datasets in the browser. Crossfilter supports extremely fast (<30ms) interaction with coordinated views, even with datasets containing a million or more records; we built it to power analytics for Square Register, allowing merchants to slice and dice their payment history fluidly.

Since most interactions only involve a single dimension, and then only small adjustments are made to the filter values, incremental filtering and reducing is significantly faster than starting from scratch. Crossfilter uses sorted indexes (and a few bit-twiddling hacks) to make this possible, dramatically increasing the perfor­mance of live histograms and top-K lists. For more details on how Crossfilter works, see the API reference.

No comment yet.
Scoop.it!

We should all just decide on JavaScript and solve the interesting problems instead

We should all just decide on JavaScript and solve the interesting problems instead | JavaScript for Line of Business Applications | Scoop.it

Our endless bickering over the merits of different languages and paradigms isn’t all that productive, nor is it very interesting. You’re not a Ruby/C#/Java/Elixir developer, you’re a goddamn problem solver. Remove the programming language from your LinkedIn/Twitter bio, that’s not who you are.

All the things that make other languages and platforms more or less sexy are 90 % community and culture. All the loudmouths in the developer community hype things that aren’t “enterprise”. So only 10 % of the sexiness is the actual language*. And the goods news are that we humans can change culture, that’s what we do best when we really want to.

We’re now at the stage when JavaScript is hugely popular and a lot of innovation is taking place in that community. Also, it’s a pretty open language, i.e. it’s not owned by Oracle, Microsoft or IBM. We have the chance of running the same language on the front-end and the back-end. Heck, you can even use it as an officially supported language to write FirefoxOS, Ubuntu Touch and Windows 8 desktop/phone apps.

No comment yet.
Scoop.it!

DOM Enlightenment - Exploring the relationship between JavaScript and the modern HTML DOM

DOM Enlightenment - Exploring the relationship between JavaScript and the modern HTML DOM | JavaScript for Line of Business Applications | Scoop.it

This is the free online version of the DOM Enlightenment book in its pre-edited/draft form.

This book is not an exhaustive reference on DOM scripting or JavaScript. It may, however, be the most exhaustive book written about DOM scripting without the use of a library/framework. The lack of authorship around this topic is not without good reason. Most technical authors are not willing to wrangle this topic because of the differences that exist among legacy browsers and their implementations of the DOM specifications (or lack thereof).

For the purpose of this book (i.e. grokking the concepts), I'm going to sidestep the browser API mess and dying browser discrepancies in an effort to expose the modern DOM. That's right, I'm going to sidestep the ugliness in an effort to focus on the here and now. After all, we have solutions like jQuery to deal with all that browser ugliness, and you should definitely be leveraging something like jQuery when dealing with deprecated browsers.

No comment yet.
Scoop.it!

Node.js and JavaScript coding and development guidelines

Two years ago I wrote about “How to get started with Node.js”: I think most of the information there are still valid… even the book Node.js in Action is still a MEAP (this time planned for release this month, August 2013).

This summer I’m planning on revising, during my holidays, the architecture of OpenROV, and given the huge number of people that are starting to use it, I want to inject" a bit more of “better ALM” in the mix, so I started to look around for coding conventions, development guidelines and how to do unit testing, continuous integration, build and so on: this post is a collection of some link that I found useful.

* Coding and development guidelines

* Testing framework

* CI and build

* Deployment

No comment yet.
Scoop.it!

Scalable JavaScript Application Architecture

Discover how to build a JavaScript application framework that scales for the challenges of today's complex web applications.
No comment yet.
Scoop.it!

Pong clone in JavaScript

Pong clone in JavaScript | JavaScript for Line of Business Applications | Scoop.it

The ability to create interactive games in JavaScript is getting easier with the constant improvements to JavaScript engines and the ability for browsers to utilize the GPU. To demonstrate how easy it is to write games in JavaScript we’re going to write a pong clone.

No comment yet.
Scoop.it!

Single Page Web Applications: JavaScript End-to-End (The Hard Stuff)

Today, we have the Single Page Application. Most web apps are now in the browsers themselves, and the web is becoming fluid, comfortable, and accessible from any device.

In this talk from HTML5 Dev Conf 3, Josh Powell and Mike Mikowski of snaplogic, teach you their SPA design approach, and then start exploring new techniques like structured JavaScript and responsive design. They also cover server-side JavaScript, NoSQL data stores, and new JavaScript frameworks.

No comment yet.
Scoop.it!

JavaScript UI Library Design

JavaScript UI Library Design | JavaScript for Line of Business Applications | Scoop.it

Yes, most websites use jQuery these days (including all of Coursera), but it'd be better if there was a standard way to write UI libraries that did not depend on any libraries, and the UI library would only bring the libraries in that it truly needed. Plus, some of the best plugins are dependent on jQuery UI, since it includes the widget factory and offers features like draggable/sortable, and jQuery UI is a heavy addition to an app that isn't otherwise using it. It's also often difficult to use the jQuery UI JS without the CSS and its subsequent look & feel.

After trying to write some custom Coursera UI widgets as jQuery plugins, we decided that it might be more useful for us to start over and figure out how to architect our UI libraries for everything that we wanted out of them. We wanted many of the things that developers want in jQuery plugins, like customization and events, but we also wanted zero dependencies, AMD-compatibility, designer-friendly declarative usage, and more. 

No comment yet.
Scoop.it!

Writing a Javascript REST client with KnockoutJS, Bootstrap and jQuery

Writing a Javascript REST client  with KnockoutJS, Bootstrap and jQuery | JavaScript for Line of Business Applications | Scoop.it

We will develop a client application that will run on web browsers, so we need to decide what tools and/or frameworks we will use.

For the base stack we don't really have much of a choice: The layout will be done in HTML, styling will be done in CSS and scripting in Javascript. No surprises here. While there are other choices, these guarantee that most modern browsers will run our application.

But these technologies alone would make for a rough development experience. For example, while Javascript and CSS work in all browsers, implementations differ, many times in subtle or obscure ways. There are three areas in which we would benefit from higher level cross-browser frameworks:

* Presentation and styling* REST request management* Templates and event handling

Let's review each and evaluate what options there are.

No comment yet.
Scoop.it!

Deferred objects, promises and asynchronous code

Deferred objects, promises and asynchronous code | JavaScript for Line of Business Applications | Scoop.it

Javascript is a highly asynchronous programming language. No matter if you play with ajax calls or a MongoDb query in Node.js, you will step over loads of callbacks being executed asynchronously.
When working with synchronous programming, you know that your code will execute sequentially, starting from the top of the code going downwards.
But When code is executed asynchronously, you provide a callback function to a the asynchronous function. The asynchronous function will then go on and be executed in the background, at the same time as your main code continues to execute. When the asynchronous function is done, the callback function will be called, and you have code being executed in parallel.

But, and this is a rather big one, asynchronous code quickly becomes horribly spaghetti-codish. You have callbacks for successful get’s, callbacks on errors, and when you put an asynchronous call within another, the code will look something written in the eighties. 

No comment yet.
Scoop.it!

The Essentials of Writing High Quality JavaScript

The Essentials of Writing High Quality JavaScript | JavaScript for Line of Business Applications | Scoop.it

The brilliant Stoyan Stefanov, in promotion of his book, “JavaScript Patterns,” was kind enough to contribute an excerpt of the book for our readers, which details the essentials of writing high quality JavaScript, such as avoiding globals, using single var declarations, pre-caching length in loops, following coding conventions, and more.

 

This excerpt also includes some habits not necessarily related to the code itself, but more about the overall code creation process, including writing API documentation, conducting peer reviews, and running JSLint. These habits and best practices can help you write better, more understandable, and maintainable code—code to be proud of (and be able to figure out) when revisiting it months and years down the road.

Jan Hesse's insight:

concise summary

Scoop.it!

Coffeescript vs. Javascript

Coffeescript vs. Javascript | JavaScript for Line of Business Applications | Scoop.it
How to Decide which language for your Project

I’ve worked on large projects in both javascript and coffeescript, and guess what?  You can build an application in either one, and your decision of javascript or coffeescript is not going to make or break you.

If you are working on a project by yourself, then I would pick whichever language you prefer working in.  It’s totally subjective, but you are going to be more productive coding in a language that you like coding in vs. one that you hate coding in.

Now, for the tricky part.  What if you’re working on a team?

No comment yet.
Scoop.it!

The wondrous world of JavaScript

The wondrous world of JavaScript | JavaScript for Line of Business Applications | Scoop.it

If you’re following the latest trends in the web development world, you might have noticed that the last years the popularity of JavaScript increased a lot. Lots of frameworks became popular like Google’sAngularJS, ember.js and of course Backbone.js.

One of the first of these “big” frameworks was Backbone.js. JavaScript code before that time was usually unstructured, contained a lot of spaghetti code and was hard to maintain.
Backbone.js gave you the possibility to follow the MVC (Model-view-controller) design paradigm, or in their case, MVP (Model-view-presenter).

Backbone.js gave you the possibility to divide your application in logical parts andprovided data binding. Only that wasn’t enough of course, because applications needed more components like:
* A module system
* Templating
* Data binding
* Data synchronisation
* Widgets
* Testing framework

And so, other frameworks were born, like: RequireJS, CommonJS, Component, AngularJS, Twitter Bootstrap, Flight, Hogan.js, QUnit, Jasmine, … (and I can probably go on for another hour).

No comment yet.
Scoop.it!

JavaScript: The Real Bad Parts

difficult concepts to grasp in the languagehigh blog post to understanding ratio

* 6 DIFFERENT WAYS TO SET THIS
* WHAT ON EARTH IS PROTOTYPAL INHERITANCE
* SCOPING: BREAKING THE PRINCIPLE OF LEAST SURPRISE
* TAKEAWAYS

No comment yet.
Scoop.it!

Handling concurrency and asynchronous JavaScript

If you’ve worked with JavaScript in a browser, or indeed on the server, for any length of time you’ve probably had to deal with asynchronous spaghetti. This kind of spaghetti is not delicious in any way, shape or form.

You end up with multiple boolean variables and function calls constantly checking if all of those AJAX requests have finished; it is far from ideal. I’m going to show you how to break the problem down and come out of the other side with your sanity still intact.

The first step in explaining this involves creating a problem, here’s the scenario: You’re running a site like gist.github.com and you need to fetch some meta data for a list of gists from the server. This is going to involve you making multiple requests and then doing something when they’re all finished, you’ll probably want a loading spinner overlay or something while it fetches them as well.

No comment yet.
Scoop.it!

Get Angular, Durandal, and JavaScript Templates with SideWaffle

Get Angular, Durandal, and JavaScript Templates with SideWaffle | JavaScript for Line of Business Applications | Scoop.it

Hungry for some file templates to get you started in the morning? Well now you can fill up on a set of web template packs for Visual Studio 2012 and 2013. SideWaffle is an open source project that creates a Visual Studio extension containing a set of file templates you can use for web projects.
SideWaffle currently has several templates including 10 I contributed for Angular, Durandal, and creating a JavaScript IIFE. One of the best parts is that SideWaffle will be frequently updated with new and useful templates (they do check for high quality templates). I expect that in the near term we’ll see a lot of additions.
* Angular Controller (using Controller As syntax)
* Angular Controller (using $scope)
* Angular Directive (creates a skeleton for a directive)
* Angular Factory (great for data, logging, and other services)
* Angular Module (sets up a module)
* Durandal ViewModel
* Durandal Service
* Durandal main.js (common creation syntax for kicking off Durandal)
* JavaScript IIFE (Basic IIFE using vanilla.js)
I use the Angular templates in my upcoming course at Pluralsight on using Angular and Breeze to build a powerful SPA.

No comment yet.
Scoop.it!

JavaScript for Designers - An Intro to JS Terms and Concepts

JavaScript for Designers - An Intro to JS Terms and Concepts | JavaScript for Line of Business Applications | Scoop.it

a humble 115 slides about JS and its programming patterns in a practical context

No comment yet.
Scoop.it!

Beautiful JavaScript: Easily Create Chainable (Cascading) Methods for Expressiveness

Beautiful JavaScript: Easily Create Chainable (Cascading) Methods for Expressiveness | JavaScript for Line of Business Applications | Scoop.it

Chaining Methods, also known as Cascading, is the technique of repeatedly calling different methods (or the same method) on an object in one continuous line of code. This technique is popular in jQuery and other JavaScript libraries, and it is even inherent in JavaScript’s native methods like the common String methods. It is just so lovely that we can’t resist making our own methods facilitate cascading.

We will learn that this technique is easy and effortless because it is rather straightforward to implement chainable methods in JavaScript. We only have to return this(the object we want subsequent methods to operate on) in each method. Let’s learn this baby quickly and get back to what we were doing.

No comment yet.
Scoop.it!

High-Quality JavaScript Code

JavaScript code is becoming ever more complex. How can we ensure a high level of code quality?

Some associated examples at: https://github.com/dennisodell/High-Quality-JavaScript-Code

No comment yet.
Scoop.it!

Directories for JavaScript resources

Directories for JavaScript resources | JavaScript for Line of Business Applications | Scoop.it

I recently asked on Twitter whether people knew any good directories for JavaScript libraries and got several good answers.

Obviously, you can always directly browse the registries of package managers.

No comment yet.
Scoop.it!

A meta style guide for JavaScript

A meta style guide for JavaScript | JavaScript for Line of Business Applications | Scoop.it

JavaScript has many great style guides. Thus, there is no need to write yet another one. Instead, this blog post describes commonly accepted meta style rules and conventions that I like that are controversial. The idea is to help you make a more informed decision about what is right for you.


* Existing style guides
* General tips
* Commonly accepted best practices
* Controversial rules


Whenever you are considering a style question, ask yourself: what makes my code easier to understand? Resist the temptation to be clever and leave most of the mechanical cleverness to JavaScript engines and minifiers.

No comment yet.
Scoop.it!

Introduction to Map and Reduce in Javascript

Introduction to Map and Reduce in Javascript | JavaScript for Line of Business Applications | Scoop.it

Recently I held a short lecture on the use of functions in Javascript, and how it’s possible to use functionality like map, reduce, filter and Javascript’s amazing variable context. I prefer to useunderscore.js so that I can use the wonderful functionality even on old browsers.

Lets start easy with _.map. Map is easy, what it does is take an input array, send each element into a function, and putting the result in a result array. The resulting array contains mapped versions of each element in the input array.

No comment yet.