JavaScript for Li...
Follow
Find
391.3K views | +87 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...
Scoop.it!

A 10 minute primer to the new Angular router

A 10 minute primer to the new Angular router | JavaScript for Line of Business Applications | Scoop.it

With the new router being released and not a huge amount of documentation being available yet, I decided to share my own personal notes I gathered while experimenting with the new router.

If you're currently using ngRoute or ui-router, it will take some mental shifting to get used to the new router and its concepts, so hopefully this article helps you avoid some of the pitfalls I encountered.

While ui-router is a state based router, I'd like to consider the new Angular router a component router, where components are fundamental building blocks of the modern web.

more...
No comment yet.
Scoop.it!

React Two Way Data Binding

React Two Way Data Binding | JavaScript for Line of Business Applications | Scoop.it

In this tutorial, I’ll build a small interactive form in 3 different CSS frameworks.

I want to demonstrate how to use two-way data binding for complex objects in react using react-binding.

React-binding is lightweight mixin called BindToMixin in react.

more...
No comment yet.
Scoop.it!

Testing React applications with wallaby.js

Testing React applications with wallaby.js | JavaScript for Line of Business Applications | Scoop.it

Wallaby.js is a continuous test runner. It runs your tests as you type and displays various results right inside your code editor. Wallaby.js allows you to test your React applications and get an instant feedback from your tests, no matter how large your codebase is and whether you are using browser environment or node.js with jsdom. With wallaby.js, you can use any popular testing framework of your choice.


In this article I will describe how to test React application, specifically React components, using Jasmine and wallaby.js with code coverage, including code coverage inside JSX element JavaScript expressions. You can find the full code in this repository.

more...
No comment yet.
Scoop.it!

Testing ReactJS Components with Karma and Webpack

Testing ReactJS Components with Karma and Webpack | JavaScript for Line of Business Applications | Scoop.it

I switched over to Karma to test my components, and spent my time building my test assets and loading them up to Karma, but that ended up being kind of slow because I never cached the builds and ran a clean webpack build for each bundle. Ugh. Facebook went on to release Jest and I switched over. I thought it was great, but I quickly ran into some issues...

more...
No comment yet.
Scoop.it!

React: Create maintainable, high-performance UI components

React: Create maintainable, high-performance UI components | JavaScript for Line of Business Applications | Scoop.it

Go beyond the browser DOM with the React JavaScript library for maintainable web UIs

Start using React, an open source JavaScript library for easily creating UI view components and composing them to form modern web UIs. Follow this tutorial's examples to learn prescribed best practices for crafting React components in a maintainable and reusable manner.

Jan Hesse's insight:

https://github.com/Sing-Li/react-starter

more...
No comment yet.
Scoop.it!

Mithril vs. Angular vs. React

Mithril vs. Angular vs. React | JavaScript for Line of Business Applications | Scoop.it

The Mithril authors are brilliant and onto something with their tiny 5KB, easy-to-learn JavaScript MVC library.

Mithril gives you hierarchical MVC, URL routing, customizable data binding, and safe-by-default templates with intelligent DOM diff-ing for high-performance rendering. And unlike other frameworks, Mithril does not require you to extend from base classes, allowing you to structure your code however you prefer. Mithril is orthogonal to the module system and compiled syntaxes you use, so you are free to use ES3, ES5 or ES6, asynchronous module definitions, commonJS modules, browserify, TypeScript, sweet.js, babel.js, browserify, and so on.

more...
No comment yet.
Scoop.it!

flummox for isomorphic Flux with ReactJS

flummox for isomorphic Flux with ReactJS | JavaScript for Line of Business Applications | Scoop.it
flummox - Idiomatic, modular, testable, isomorphic Flux. No singletons required.
more...
No comment yet.
Scoop.it!

Learning the Ionic Framework as a Sencha Touch Developer: Part 1

Learning the Ionic Framework as a Sencha Touch Developer: Part 1 | JavaScript for Line of Business Applications | Scoop.it
This will be useful as a getting started guide in a general sense, but I will also be making comparisons to Sencha Touch along the way. This will allow you to
more...
No comment yet.
Scoop.it!

Advancing JavaScript without breaking the web

Advancing JavaScript without breaking the web | JavaScript for Line of Business Applications | Scoop.it

Current advancements in ECMAScript are a great opportunity, but also a challenge for the web. Whilst adding new, important features we’re also running the danger of breaking backwards compatibility.

JavaScript doesn’t force you to write organised code. From a syntax point of view and when it comes to type safety and memory allocation it is an utter mess. This made JavaScript the success it is now. It is a language used in client environments like browsers and apps. 

more...
No comment yet.
Scoop.it!

Reapp - a new way to build apps with React and JavaScript.

Reapp - a new way to build apps with React and JavaScript. | JavaScript for Line of Business Applications | Scoop.it

Reapp is everything you need to build amazing apps with React: a collection of packages that work together, our UI kit, and a CLI that scaffolds your app and includes a server and build system.

Jan Hesse's insight:

https://github.com/reapp

more...
No comment yet.
Scoop.it!

Getting Started with React.js in ASP.NET MVC

Getting Started with React.js in ASP.NET MVC | JavaScript for Line of Business Applications | Scoop.it

In this post we will learn how to Getting Started with React.js in ASP.NET MVC.

  • React top feature is SPEED.

ReactJS.NET makes it easier to use Facebook’s React and JSX from C# and other .NET languages, focusing specifically on ASP.NET MVC. It supports on-the-fly JSX to JavaScript compilation, also bundling and minification.


more...
No comment yet.
Scoop.it!

Boost the Performance of an AngularJS Application Using Immutable Data

Boost the Performance of an AngularJS Application Using Immutable Data | JavaScript for Line of Business Applications | Scoop.it

A react component gets rendered the same way when it receives the same input parameters and it has the same state (if you implement it properly). React even provides the PureRenderMixin, which can make the “pure component” rendering even faster!

React is awesome, there are no two opinions. I’m also huge AngularJS fan. A few years ago I wrote the first AngularJS Style Guide“AngularJS in Patterns”AngularAOP and a few other AngularJS modules/components/examples, which got popular. So I started wondering whether I can use the same idea of immutability of the model in AngularJS, at least for accelerating the data-binding watchers.

more...
No comment yet.
Scoop.it!

Fixing Memory Leaks in AngularJS and other JavaScript Applications

Fixing Memory Leaks in AngularJS and other JavaScript Applications | JavaScript for Line of Business Applications | Scoop.it

Dealing with memory leaks in JavaScript applications can be a complex process. In this article I'm going to show you how to identify whether you have memory leaks, analyse them and ultimately resolve them.

I'm using an AngularJS application to demonstrate the concepts and approaches, but much of this material applies to any JavaScript application.


Contents:

  • Understanding Memory Leaks What is a Memory Leak? Why is a Memory Leak Bad?
  • Identifying Memory Leaks Method 1: The Wrong Way Method 2: The Timeline Method 3: Recording Heap Allocations Method 4: Heap Snapshots
  • Analysing Memory Leaks Analysing the leak in Scenario 2 More on Graphs
  • Fixing Memory Leaks Three golden rules Anti-patterns to avoid
  • The Future Weak Maps AngularJS 2 Even Better Browsers
  • Appendices Thanks Mysteries Futher Reading
more...
No comment yet.
Scoop.it!

Webinar Replay: A Single-Page Application with Spring Security and Angular JS

Spring Security, Spring Boot and Angular JS all have nice features for making it really easy to produce modern applications, so there is potentially a lot of value in making them work together very smoothly. Things to consider are cookies, headers, native clients, various security vulnerabilities and how modern browser technology can help us to avoid them. 

In this session we show how nice features of the component frameworks can be integrated simply to provide a pleasant and secure user experience. We start with a very basic single-server implementation and scale it up in stages, splitting out backend resources and authentication to separate services. The final state includes a simple API Gateway on the front end implemented declaratively using Spring Cloud, and using this we are able to neatly sidestep a lot of the problems people encounter securing a javascript front end with a distributed back end. 

more...
No comment yet.
Scoop.it!

ECMAScript 6 – New Objects and Updates to Existing Objects

ECMAScript 6 – New Objects and Updates to Existing Objects | JavaScript for Line of Business Applications | Scoop.it

As mentioned in the introduction of the first article, ES6 is designed to fit JavaScript better for writing larger applications. To do so, the language designers added a number of new features that got inspired from typed substitutes of JavaScript and also from a number of other libraries, including some server-side libraries. Following are the new and updated objects at a glance:

  • New data structures that make it easier to store unique values (Sets) or, key-value pairs with unique keys (Maps)
  • Existing objects like Math and Number have got new capabilities to perform more operations as well as perform existing operations in a better way
  • String got some new functions to make parsing easier
  • The type Object got functions to assign an object and compare two objects
  • New functions on Array now makes it handy to find an entry, an index and to copy items inside the array
  • New Proxy object to extend functionality of an existing object or function.
more...
No comment yet.
Scoop.it!

Lint Like It’s 2015

Lint Like It’s 2015 | JavaScript for Line of Business Applications | Scoop.it
If you write ES6 with Babel but JSHint holds you back, I have some good news!

In early 2015, I switched from React’s JSX compiler to Babel in order to use ES6 (and some ES7) syntax freely. It’s a tad slower but …rest assured, it’s the future. I never regretted switching to Babel for a moment, and I only have the highest praise for its authors and contributors. My only pain was getting Babel code to lint.

more...
No comment yet.
Scoop.it!

Parallel Processing with Promises

Parallel Processing with Promises | JavaScript for Line of Business Applications | Scoop.it
a simple method of writing a collaborative system

Using the design pattern described in this article, programmers can build collaborative systems of threads or processes that are simple and easy to reason about because of the abstraction provided by promises. As promises are available in many languages, this design pattern can be implemented in whichever language is most appropriate or even in multiple languages for each process.

more...
No comment yet.
Scoop.it!

Performance of AngularJS, ReactJS and KnockoutJS Compared

Performance of AngularJS, ReactJS and KnockoutJS Compared | JavaScript for Line of Business Applications | Scoop.it
A performance comparison between React JS, Angular JS and Knockout JS when building large lists of data.
more...
No comment yet.
Scoop.it!

BackboneJS Frontend Web App with Cloud Storage Tutorial Part 1: Building a Minimal App in Seven Steps

BackboneJS Frontend Web App with Cloud Storage Tutorial Part 1: Building a Minimal App in Seven Steps | JavaScript for Line of Business Applications | Scoop.it
Learn how to build a frontend web application with minimal effort in seven steps, using the BackboneJS framework and the cloud storage service Parse.com.; Author: Gerd Wagner; Updated: 11 Mar 2015; Section: Client side scripting; Chapter: Web Development;...
more...
No comment yet.
Scoop.it!

Flux solutions compared by example

Flux solutions compared by example | JavaScript for Line of Business Applications | Scoop.it
Flux solutions compared by example Nowadays Flux (together with React.js) is one of the hottest topics in the tech world. When people talk about Flux they mean more of a pattern than a framework. But...
more...
No comment yet.
Scoop.it!

Boiling React Down to a Few Lines in jQuery

Boiling React Down to a Few Lines in jQuery | JavaScript for Line of Business Applications | Scoop.it

You probably heard something like how React is awesome ‘cause it makes UI a pure function of application state? But even before you started to get that it was complemented with something like how that works on top of immutability and virtual DOM? And then you get free save, load, undo and something insane called time-travel debugging on top of that. Guess what? None of these are necessary to use core React idea and reap its benefits. And I’ll show that in a few lines in jQuery.

more...
No comment yet.
Scoop.it!

Goodbye MongoDB, Hello PostgreSQL

Goodbye MongoDB, Hello PostgreSQL | JavaScript for Line of Business Applications | Scoop.it
Migrating from MongoDB to PostgreSQL

While we can be extremely proud of what we have achieved so far there was always something lurking in the dark: our primary database. From the start of Olery we’ve had a database setup that involved MySQL for crucial data (users, contracts, etc) and MongoDB for storing reviews and similar data (essentially the data we can easily retrieve in case of data loss). While this setup served us well initially we began experiencing various problems as we grew, in particular with MongoDB. Some of these problems were due to the way applications interacted with the database, some were due to the database itself.

more...
No comment yet.
Scoop.it!

What the flux?

What the flux? | JavaScript for Line of Business Applications | Scoop.it
Flux by Facebook is an architectural pattern for using their React library. This post helps explain flux in easy to understand ways....
more...
No comment yet.
Scoop.it!

Visualizing Reactive Streams: Hot and Cold Observables

Visualizing Reactive Streams: Hot and Cold Observables | JavaScript for Line of Business Applications | Scoop.it

Reactive Programming is getting a lot of attention these days, and it promises to reduce frustration, bugs, and greenhouse gas emissions. Unfortunately, there’s a sizeable learning curve involved while you try and get your head to think in streams instead of imperative sequential processes.

One of the things that caught me by suprise is the difference between hotand cold observables, and how they interact with multiple observers.

In this article, I will:

All with lots of visuals. Enjoy!


more...
No comment yet.
Scoop.it!

How to Self Detect a Memory Leak in Node

How to Self Detect a Memory Leak in Node | JavaScript for Line of Business Applications | Scoop.it

Tracking down memory leaks with node.js has always been a challenge. The following discusses how to track memory leaks from within a node application itself with the help of two awesome node modules – memwatch and heapdump.

more...
No comment yet.