JavaScript for Line of Business Applications
606.5K views | +14 today
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

Scoop.it!

Why Web Components Are Ready For Production

Why Web Components Are Ready For Production | JavaScript for Line of Business Applications | Scoop.it

For the purposes of this article, custom elements are particularly interesting, because — unlike the other parts of web components — the custom elements spec is reasonably sane to polyfill. In total, the custom element specification defines one new method (document.registerElement()), changes to two existing methods (document.createElement() and document.createElementNS()), four callback methods (createdCallback, attachedCallback, detachedCallback, and attributeChangedCallback), and a single new CSS pseudo-selector (:unresolved).

No comment yet.
Scoop.it!

Testing Private Functions in JavaScript Modules

One common convention in scripting languages like JS is to export private functions publicly, but prefix their names with an underscore to denote that they should not be considered part of the public interface.

Although this convention is widely followed, without a way to enforce privacy, consumers of the module may end up ignoring the convention and using the function anyway.

In order to enforce that private functions that are exported publicly can’t be used by consumers of the module, we use an environment variable that denotes whether the code is being required for tests.


No comment yet.
Scoop.it!

Twitter's Typeahead plugin and KnockoutJs

Twitter's Typeahead plugin and KnockoutJs | JavaScript for Line of Business Applications | Scoop.it

Twitter has released an excellent autocomplete jQuery plugin called typeahead.   It’s fast and very customisable.   You can easily provide the user with suggestions from a local array, remote web server or precached data from a remote web server.

If you’re using KnockoutJs in your code, here’s an easy way to integrate typeahead with KnockoutJS.

No comment yet.
Scoop.it!

AngularJS Unit Testing - For Real, Though

AngularJS Unit Testing - For Real, Though | JavaScript for Line of Business Applications | Scoop.it

This article is written for intermediate to advanced developers using AngularJS to build production applications, who would like to reduce some of the pain of testing. It is my hope that feeling secure in testing workflow will enable the reader to practice a TDD workflow and build a more solid app.

No comment yet.
Scoop.it!

Ember.js ajax autocomplete

Ember.js ajax autocomplete | JavaScript for Line of Business Applications | Scoop.it

Purpose of this page is to show my solution for a basic ajax crafted autocomplete service. Since I ran into 1001 problems, I assume this may help others, too.

No comment yet.
Scoop.it!

Creating Knockout JS Custom Bindings

Creating Knockout JS Custom Bindings | JavaScript for Line of Business Applications | Scoop.it

I guess the first thing you need to understand about the concept of custom bindings is that it they are there to integrate external behaviours into the knockout pattern. What this means is that it allows you control what happens in the UI when an observable has changed and vice versa

No comment yet.
Scoop.it!

The State Of JavaScript - A Shift From Imperative To Declarative

The State Of JavaScript - A Shift From Imperative To Declarative | JavaScript for Line of Business Applications | Scoop.it

JavaScript has seen a ton of development even in the past 5 years. The changes haven't been so much in the language itself, but in how the language is being used. This has been a product of the host of libraries and frameworks that have been created that allow developers to consume them and do just about anything. Need a library to build robots to assist you in your evil plot to take over the world? It probably already exists.

If I had to pinpoint the biggest shift in the JavaScript world in the past few years, it would be the transition from imperative to declarative.

No comment yet.
Scoop.it!

Give your Backbone.js apps super-powers with AngularJS style directives

Give your Backbone.js apps super-powers with AngularJS style directives | JavaScript for Line of Business Applications | Scoop.it

Backbone.js is easily extendable. We’ve seen it happen with the likes of Backbone.Relational, Backbone.Validation and other small but important improvements over the basic Backbone library.

Existing Backbone.js code bases can benefit a lot by adding more power to Backbone itself. I think directives will be a good addition and I’ve set to do it.

No comment yet.
Scoop.it!

React.js plays nicely with other tools and other thoughts

React.js plays nicely with other tools and other thoughts | JavaScript for Line of Business Applications | Scoop.it

Fortunately, it turns out to be very easy to use jquery plugins inside of React classes so I just used typeahead.js as is. For the StructureMap diagnostics, I wanted a search bar that allowed users to search for all the assemblies, namespaces, and types configured in the main application container with typeahead recommendations. Since I was going to want to reuse that search bar on a couple different little screens, I did things the idiomatic way React wants to be used anyway and created the small component shown below...

No comment yet.
Scoop.it!

Hybrid Mobile App Command-Line Smackdown

Hybrid Mobile App Command-Line Smackdown | JavaScript for Line of Business Applications | Scoop.it

The proliferation of command-line tooling has exploded over the last few years – and hybrid mobile developer tools have been no exception. Where once we were downloading PhoneGap 1.2 and installing Xcode templates to develop our iOS apps, today we have platform-agnostic tools and utilities to help us fulfill the promise of cross-platform mobile app development. Today we have choices – and to help provide some guidance, I present you with a high-level comparison of three of the most popular command-line interfaces (CLIs) available today for hybrid mobile development.

No comment yet.
Scoop.it!

The best way to inherit and extend events in Backbone

The best way to inherit and extend events in Backbone | JavaScript for Line of Business Applications | Scoop.it

My latest client project is a fairly big and complex app, with a lot of small modules for views. In order to keep my code nice and DRY, some good-old-fashioned inheritance has done the trick.

No comment yet.
Scoop.it!

Using ECMAScript 6 today

Using ECMAScript 6 today | JavaScript for Line of Business Applications | Scoop.it

ECMAScript 6 (ES6) still sounds like something from a far-away future. After all, it will only become a standard by mid 2015. However, its features are continually appearing in browsers and there are compilers that translate ES6 code to ES5 code. The latter is already a compelling solution, because the ECMAScript 6 feature set is already frozen.

This blog post gives a brief overview of ECMAScript 6 features and describes tools that enable you to use them today.

No comment yet.
Scoop.it!

Benefits of Protractor in a Angular + Rails API application stack

Benefits of Protractor in a Angular + Rails API application stack | JavaScript for Line of Business Applications | Scoop.it

By splitting the development of the frontend and the Rails backend we could distribute the work over two development teams and keep the application as a whole very extensible.

In my opinion this is the best approach when you split your frontend and backend however not everyone shares that opinion. In this blogpost I will cover why we believe that testing the apps separately and thus mocking the API requests is the way to go.

No comment yet.
Scoop.it!

yadda - A BDD javascript library

yadda - A BDD javascript library | JavaScript for Line of Business Applications | Scoop.it

Yadda brings true BDD to JavaScript test frameworks such as Jasmine, Mocha, QUnit, Nodeunit, WebDriverJs and CasperJS. By true BDD we mean that the ordinary language (e.g. English) steps are mapped to code, as opposed to simply decorating it. This is important because just like comments, the decorative steps such as those used by Jasmine, Mocha and Vows can fall out of date and are a form of duplication.

Yadda's BDD implementation is like Cucumber's in that it maps the ordinary language steps to code. Not only are the steps less likely to go stale, but they also provide a valuable abstraction layer and encourage re-use. You could of course just use CucumberJS, but we find Yadda less invasive and prefer it's flexible syntax to Gherkin's. Yadda's conflict resolution is smarter too.

No comment yet.
Scoop.it!

AngularJS + TypeScript: how to implement validation

AngularJS + TypeScript: how to implement validation | JavaScript for Line of Business Applications | Scoop.it

AngularJs supports all kinds of simple client-side validation. The simplest is data-ng-required which basically says a UI element must be filled in before the form is valid. I am going to make the the phone input screen have validation.

Jan Hesse's insight:

AngularJS + TypeScript – using $resource to talk to a WebApi backend:

http://dotnetbyexample.blogspot.de/2014/07/angularjs-typescript-using-resource-to.html

AngularJS + TypeScript – how to setup a watch (and 2 ways to do it wrong):

http://dotnetbyexample.blogspot.de/2014/07/angularjs-typescript-how-to-setup-watch.html

Angularjs + TypeScript – setting up a basic application with Visual Studio 2013:

http://dotnetbyexample.blogspot.de/2014/07/angularjs-typescript-setting-up-basic.html

No comment yet.
Scoop.it!

Ocrad.js - Optical Character Recognition in Javascript

Ocrad.js - Optical Character Recognition in Javascript | JavaScript for Line of Business Applications | Scoop.it

Ocrad.js is a pure-javascript version of the Ocrad project, automatically converted using Emscripten. It is a simple OCR (Optical Character Recognition) program that can convert scanned images of text back into text. 

No comment yet.
Scoop.it!

AngularJS Tutorial

AngularJS Tutorial | JavaScript for Line of Business Applications | Scoop.it

1. Introduction
2. Views And Directives
3. Events
4. AJAX
5. Forms
6. Custom Directives
7. Modularization & Dependency Injection
8. Routes
9. Internationalization
10. Critique

No comment yet.
Scoop.it!

Building Ambitious Web Applications with Ember.js

Ember.js is an exceptionally powerful and exciting technology for building rich, native-feeling experiences on the web. It combines some of the best ideas from classic UI frameworks like Cocoa and UIKit with cutting-edge HTML 5 standards like web components. The result is something truly extraordinary: a fresh, powerful approach to building truly ambitious applications on the most universal runtime the world has ever known, the web. In this talk, we'll explore some of the elements of Ember that will help you build your next ambitious idea and delight your users.

No comment yet.
Scoop.it!

Extending HTML with AngularJS's Directives

Extending HTML with AngularJS's Directives | JavaScript for Line of Business Applications | Scoop.it
The main thing about AngularJS is that it allows us to extend the capabilities of HTML to serve the purpose of today's dynamic webpages. In this article I will show you how you can use AngularJS's Directives to make your development faster, easier and your code more maintainable. | Difficulty: Intermediate; Length: Medium; Tags: AngularJS, JavaScript
No comment yet.
Scoop.it!

Eloquent JavaScript - a free book about JavaScript, programming, and the wonders of the digital.

Eloquent JavaScript - a free book about JavaScript, programming, and the wonders of the digital. | JavaScript for Line of Business Applications | Scoop.it

Contents:

* Introduction
* Values, Types, and Operators
* Program Structure
* Functions
* Data Structures: Objects and Arrays
* Higher-order Functions
* The Secret Life of Objects
* Project: Electronic Life
* Bugs and Error Handling
* Regular Expressions
* Modules
* Project: A Programming Language
* JavaScript and the Browser
* The Document Object Model
* Handling Events
* Project: A Platform Game
* Drawing on Canvas
* HTTP
* Forms and Form Fields
* Project: A Paint Program
* Node.js
* Project: Skill-Sharing Website

No comment yet.
Scoop.it!

batman.js - Meet your new favorite JavaScript superhero

If you love Ruby on Rails, batman.js is the best, most familiar way to build rich web apps in CoffeeScript.

batman.js was created with developer and designer happiness as a top priority. Here's some cool stuff:

  • Structured directory hierarchy
  • Familiar Rails conventions
  • Data bindings for rapid building of HTML
  • Liquid-style filter syntax
No comment yet.
Scoop.it!

Retrieving Data with Backbone and TypeScript

Retrieving Data with Backbone and TypeScript | JavaScript for Line of Business Applications | Scoop.it
Peter creates an AJAX-enabled application using TypeScript with Backbone that talks to a Web API service. He also upgrades to the latest version of Backbone TypeScript support, causing several things to break -- but it does result in better, simpler code.
No comment yet.
Scoop.it!

Building High-Quality Front-End Modules

Building High-Quality Front-End Modules | JavaScript for Line of Business Applications | Scoop.it

I developed Rome out of frustration, because I couldn't find a single date picker that had a reasonable API, didn't depend on jQuery, and still had good browser support. Every single component I found had something I disliked, maybe they didn't allow the human to change the date by typing into the input, they had a <select> for the hour, another one for the minutes, and another for the period (AM or PM). If features weren't the issue, their API was wildly incoherent, like the ones you find in jQuery UI components, or the component depended on jQuery.

No comment yet.
Scoop.it!

5 ways to add machine learning to Java, JavaScript, and more

5 ways to add machine learning to Java, JavaScript, and more | JavaScript for Line of Business Applications | Scoop.it
The pressure is on to harness machine learning for more responsive enterprise apps. So find the open source tool that works best for your programming style and architecture.
No comment yet.
Scoop.it!

AngularJS vs EmberJS - A collation of all the resources

Here is the tl;dr version of all resources comparing the two JavaScript application frameworks.

Contents:

  • Implementation pattern
  • Jargon (only uncommon jargon explained)
  • Router
  • Observing objects & propagating changes
  • Performance
  • Computed properties
  • Templating
  • Structure
  • Web Components
  • Binding objects
  • In-browser debugging
  • Adherence to ECMAScript 6
  • Modular vs Monolithic debate
  • Deviation from plain-old JavaScript
  • Team
  • Large apps in production


No comment yet.