JavaScript for Line of Business Applications
606.6K views | +7 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!

Implementing Private and Protected Members in JavaScript

While it's always been possible to meet even the most stringent privacy needs (the myriad of compile-to-js languages proves this), the extraneous ceremony required to really do it right is often too much of a turn-off for most developers — especially to those coming from other languages where privacy is built in.

In JavaScript we like to prefix our private members with an underscore to let other developers know not to touch them. In fact, many of the more popular JavaScript style guides (airbnb, Dojo, aloha) recommend this. But unless you have a way to enforce such a convention, it can never really be trusted.

In my opinion, the only way we're really going to solve this problem is if we take the hoops away, or at least minimize them. In this article I present some ideas to do both.

No comment yet.
Scoop.it!

Run .NET and Node.js code in-process with Edge.js

Run .NET and Node.js code in-process with Edge.js | JavaScript for Line of Business Applications | Scoop.it
Tomasz Janczuk has created Edge.js, which allows users to combine the power of .NET with Node.js. Curious about how to add non-blocking communication to your .NET project? Looking for a way to move computationally intensive code out of your Node thread? Janczuk's article provides a great starting point on how Edge works and the benefits it can bring to your next application.
No comment yet.
Scoop.it!

you have ruined javascript

The great/awesome/amazing thing about JS is that nobody wanted to go near it and in enterprise organisations they just wanted to stay in their safe little world of well organised layers of abstraction ordered by factory and XML super injection frameworks.

That was great for people like me who wanted to get paid enterprise rates but didn't want to have to put up with layers of awful "best practises" and performance problems that came from the irrational fear of letting anybody who wasn't a DBA touch the database.

Even better, when those performance problems arose, we could save the day by writing a front-end in JS that pretended they didn't exist and gave the users a great experience despite the shoddy workmanship on the backend.

Jan Hesse's insight:

see the comments

No comment yet.
Scoop.it!

Setting up a serious Ember project

Setting up a serious Ember project | JavaScript for Line of Business Applications | Scoop.it

This is the first edition in what I hope will be a multi-part series covering Ember. In this screencast, I give some background information on who and how this screencast might help you get started with using Ember to build real production applications.

A big part of the learning curve to Ember is in the setup. What's important to me is to find a way to separate my front-end & back-end codebases without inconveniencing my development workflow. As a result, this guide will show you how to build an Ember project with Lineman that proxies API requests back to a separate Rails application which will provide a JSON API using ActiveModel::Serializers.

Jan Hesse's insight:

Part 2: http://blog.testdouble.com/posts/2014-05-02-ember-routes-models-templates-and-controllers.html

No comment yet.
Scoop.it!

Test-Driven Development of Ember.js Applications

In this session, I will present a walkthrough of Ember.js core features. I will showcase a test-driven development of Ember.js application using Jasmine. I will also explain Ember.js' data bindings that allow for creation of views that update automatically in response to model changes. I will demo ease of Ember.js and Rails integration. Finally, I will utilize Ember.js components to create reusable UI elements.

Jan Hesse's insight:

Slides:

https://speakerdeck.com/antityping/test-driven-ember-dot-js

Code:

https://github.com/AntiTyping/EmberDo

No comment yet.
Scoop.it!

Unit Tests with EmberJS

Unit Tests with EmberJS | JavaScript for Line of Business Applications | Scoop.it

Recently I’ve built Ember technology demonstrator, to learn the framework and it’s ecosystem: MVC pattern, data binding, performance, tests and automation.

Ember documentation contains section for Integration Tests. My first intention was to use Jasmine as my test framework of choice. Unfortunately, after hours of digging, I’ve found that there is no good way to test Ember code with Jasmine. The only official way to test Ember apps is an Ember-QUnit, which includes adapter for async operations and helper functions for unit and integration tests.

Long story short, here is GitHub Repository that demonstrates Ember app with integration tests, which can be executed both in terminal and in browser. It uses grunt to automate tasks, and testem to run the tests. Feel free to use it as a starting point for your Ember unit tests.

No comment yet.
Scoop.it!

Single Page Application Demo With Hapi.js, AngularJS And Azure Table

Single Page Application Demo With Hapi.js, AngularJS And Azure Table | JavaScript for Line of Business Applications | Scoop.it

I have developed this simple app for my personal use for just adding bookmarks with priority range from 1 to 5. I mainly created this for following github repositories with a priority so tat I can look on these bookmarks and evaluate it later based on the priority.

Here’s the technology stack used for the demo app:

* REST API – Node.js and Hapi.js
* Data Persistence – Microsoft Azure Table
* Web App – AngularJS


No comment yet.
Scoop.it!

Angular JS blog series – Table of content

Angular JS blog series – Table of content | JavaScript for Line of Business Applications | Scoop.it

This is a series of posts about AngularJS and our experiences with it while migrating the client of a complex enterprise application from Silverlight to HTML5/CSS/JavaScript using AngularJS as a framework. So far I have published the following posts:

* AngularJS, Part 1
* Feedback
* the controller
* Inheritance
* Accessing server side resources
* Pushing data to the server
* Templates
* Get ready to test
* More choice when testing
* value and constants
* Intermezzo
* Promises
* Multi language support
* Services
* End to end tests
* End to end tests and mocking


No comment yet.
Scoop.it!

A List of Foundational JavaScript Tools

A List of Foundational JavaScript  Tools | JavaScript for Line of Business Applications | Scoop.it

General
* Scaffolding Tools (for starting projects)
* Build Tools (automation)
* Package Management Tools


Front End
* MVC Frameworks
* Templates
* Testing


Back End
* Servers
* Databases
* Architectural Style
* Testing
* Assertion Libraries
* Functional Programming Tools

No comment yet.
Scoop.it!

Frontend Web Development: Backbone.js (part 1)

Frontend Web Development: Backbone.js
Jan Hesse's insight:

Part2: https://www.youtube.com/watch?v=TUcyLBymWIw

No comment yet.
Scoop.it!

Learn Angular JS, Explained with Answers, Videos and Fiddles

Learn Angular JS, Explained with Answers, Videos and Fiddles | JavaScript for Line of Business Applications | Scoop.it

Having worked on various enterprise Angular projects our teams have been faced with myriad challenges to overcome and has quite a bit of “in the trenches” experience. I share what I can with other developers through my various blog posts, by answering questions on StackOverflow and through a large collection of JavaScript fiddles. I also realized early on that Angular is a very important library and began recording a video course to help others Master Angular JS. The course has grown to well over 8 hours of content (yes, a full DAY of Angular!) and there are still several lessons left to record. In this post I organize some of the content and resources I’ve created as a guide to help you link into information, code snippets, and other information that may help you build your Angular apps.

No comment yet.
Scoop.it!

How to send live data from a C# Desktop Application to Web using Websockets

How to send live data from a C# Desktop Application to Web using Websockets | JavaScript for Line of Business Applications | Scoop.it

This is a step-by-step guide about how to expose live data from a C# console application to a web browser using WebSockets. The example has been implemented and tested on Windows7.

No comment yet.
Scoop.it!

Gillie · A 4k JavaScript micro framework inspired in Backbone

Gillie · A 4k JavaScript micro framework inspired in Backbone | JavaScript for Line of Business Applications | Scoop.it

Gillie is a lightweight MVC framework inspired in Backbone. It provides useful methods to perform RESTful HTTP requests and allows for a separation of concerns using models, views and handlers. On the other hand offers an events API with which you can make your views listen for model events and take the appropriate actions, following in that way the observer design pattern.

Gillie follows an MVC design, however, the controller is called handler. The idea behind the handler is to listen for DOM events, get their data, and pass it to the model to save it. Once the model finishes saving the data, will trigger an event that usually the view was listening for in order to repaint the DOM.

No comment yet.
Scoop.it!

With Binding Magic! Writing Single Page Application with JQuery Mobile and Knockoutjs

Greetings! Its nice to have yet another post regarding knockoutjs. Today i am going to define how we can create Single Page Application using JQuery Mobile and Knockoutjs. You may already have seen some posts on this topic so what’s new in here? The only thing is that i am going to implement the technique which i defined here. Please go through this post of mine and you will thoroughly understand how easy it is to make SPA with JQuery Mobile andknockoutjs.This is pretty simple and gives a good control over the application. After we finish these steps the application will be ready for phone gap to get hands on it. So lets get started.

No comment yet.
Scoop.it!

Getting started with jQuery

jQuery is the new favorite of web developers. This lightweight JavaScript library makes developers love writing JavaScript code again! What needed 20 lines of code first is now reduced to 3 lines. Who wouldn’t be enthusiastic?! Microsoft showed its love for the library by fully integrating it in Visual Studio. I dare to ask: Should you stay behind? In this session, we’ll take a look at jQuery and we’ll teach you what you need to know to get on your way. More specifically, we’ll look at selectors, attributes, working with WCF, jQuery UI and much more.

No comment yet.
Scoop.it!

Ruby on Rails MVC is not the same as Ember.js MVC

Ruby on Rails MVC is not the same as Ember.js MVC | JavaScript for Line of Business Applications | Scoop.it

One of the most confusing parts for people coming from Rails (or any other backend web application framework) it’s that what Ember.js calls MVC is very different to what other frameworks call MVC.

To understand what MVC is in both frameworks I recommend watching Yehuda Katz presentation: A tale of two MVC’s.

Instead of talking about MVC, Yehuda proposes an unified model for GUI programming which is composed by a series of steps and then explains how different frameworks handle each step.

The following are the steps mention by Yehuda and the components in charge of each in both Ruby on Rails and Ember.js...

Jan Hesse's insight:

http://blog.abuiles.com/blog/2014/01/31/getting-started-with-ember-and-ruby-on-rails-using-ember-appkit-rails/

http://blog.abuiles.com/blog/2014/02/07/building-an-app-for-my-mom-with-ember-appkit-rails/

http://blog.abuiles.com/blog/2014/02/21/router-routes-and-templates

http://blog.abuiles.com/blog/2014/04/14/handling-errors-in-ember-dot-js-and-ruby-on-rails/

No comment yet.
Scoop.it!

Master your modals in Ember.js

Master your modals in Ember.js | JavaScript for Line of Business Applications | Scoop.it

Solving modals in Ember.js was such a major PITA for me. I googled a lot and read everything I could only to find as many different approaches as posts, which of none felt like a good fit for me. This post probably just fuels that fire with another approach but this is my way to Master your modals in Ember.js.

So, for this demo we’ll be using Bootstrap, mostly to simplify things. It’s really just the Modal part of Bootstrap we’re interested in but I went ahead and included the full package. 

No comment yet.
Scoop.it!

Testing Ember with Jasmine 2.0

Testing Ember with Jasmine 2.0 | JavaScript for Line of Business Applications | Scoop.it

Testing can be hard and Ember doesn't exactly have the greatest resources for testing. QUnit is the "official" testing framework for Ember.js apps and it has the most resources dedicated to it which can make using something like Jasmine a bit harder.

Ember requires a bit of setup to get working properly with Jasmine. Before anything else, we need to set up our helpers/spec_helper.js file. The following code sets Ember up for testing, gives us our test helpers, and even puts a small div showcasing our app in the bottom right corner...

No comment yet.
Scoop.it!

How to leverage SQL Server with Node.js using Edge.js

How to leverage SQL Server with Node.js using Edge.js | JavaScript for Line of Business Applications | Scoop.it

I’ve looked at Node.js many times over the past few years. It’s hard to ignore all the attention it has received. Unfortunately, being heavily invested in Microsoft technology, one of the reasons I have never got very far in learning Node.js is its lack of support for SQL Server. If you’ve ever tried connecting to MS SQL Server from Node.js, then you know that the modules currently available are incomplete and immature. Microsoft released an official SQL Server driver. However, it is still “preview” technology with a number of missing features and outstanding issues that haven’t been addressed since its release.


One compelling alternative I have discovered is Edge.js. Edge.js is a Node.js module that allows .NET code and assemblies to run in the same process with Node.js. This potentially enables a Node.js developer to leverage technologies that have traditionally been very hard or impossible to use in the past.

No comment yet.
Scoop.it!

Learning Xamarin for Android

Learning Xamarin for Android | JavaScript for Line of Business Applications | Scoop.it

I have embarked on a course of learning Xamarin for Android. By request, here is an evolving Table of Contents of the articles. Each article will point back to this TOC, and this TOC will point to all the articles, in order.

* Getting Started With Xamarin Android
* Using the Genymotion Emulator
* Logging
* Weirdness Explained
* Application LifeCycle
* Preserving State
* Adding the Spinner Control
* Taking the Plunge – Creating An App
* Preserving State With JSON
* Menus!

No comment yet.
Scoop.it!

Creating your first Angular program with Visual Studio | Tutorial series

Creating your first Angular program with Visual Studio | Tutorial series | JavaScript for Line of Business Applications | Scoop.it

Angular is hot. And with good reason. Angular is a complete framework for building client-side JavaScript applications and includes the features you look for in a framework, such as:

* Two way data binding
* Model-View-Whatever
* Testability
* Dependency Injection
* Templates
* Routing
* View Composition
* Animation
* Patterns and a robust eco-system
* Promises
* Extensibility
In this first in a series of Angular posts, I’ll review creating a simple Angular application that shows off some of Angular’s features without writing any JavaScript at all.

Jan Hesse's insight:

Part 2–Behavior Driven Development:
http://blog.falafel.com/blogs/jesseliberty/jesse-liberty/2014/04/01/angular-part-2-behavior-driven-development


Part 3–BDD With AngularJS:
http://blog.falafel.com/blogs/jesseliberty/jesse-liberty/2014/04/11/angular-part-3-bdd-with-angularjs


Part 4–Testing AngularJS:
http://blog.falafel.com/blogs/jesseliberty/jesse-liberty/2014/04/20/angular-part-4-testing-angularjs

No comment yet.
Scoop.it!

Which Javascript framework to use? Angular vs. Ember vs. Marionette

Which Javascript framework to use? Angular vs. Ember vs. Marionette | JavaScript for Line of Business Applications | Scoop.it

So you've got a new project you want to build and you're going to pick a front-end javascript framework. First make sure you absolutely need the single page application. Chances are you can do without it. However, let's say you want to do a lot of javascript client-side intensive stuff, then how should you decide what framework to use? I've been in this same scenario myself multiple times, so I decided to blog about it. I have a love-hate relationship with all 3 of these frameworks because I have used all of them on work and personal projects. I only focus on client side frameworks here, not server side, e.g. meteor, sailsjs, express. I only included the frameworks I have experience with.

No comment yet.
Scoop.it!

Contractual - Design by contract for JavaScript.

Syntactic sugar for Design by contract in JavaScript.

Design by contract is a very powerful technique for writing robust software, it can be thought of as a formal but convenient method for specifying assertions.

Instead of the developer documenting their assumptions in comments, or worse, not documenting them at all, DbyC gives them a way to express their assumptions in a convenient syntax, and have those assumptions validated at runtime.

Contractual is a transpiler, that takes Contractual JavaScript and turns it into JavaScript which enforces the contracts.

In Contractual, there are two types of contract, preconditions and postconditions.

No comment yet.
Scoop.it!

Building a Single Page Application with ASP.NET and AngularJS

Building a Single Page Application with ASP.NET and AngularJS | JavaScript for Line of Business Applications | Scoop.it

We’ll see how to power an AngularJS Single Page Application using both ASP.NET Web API and SignalR for back-end data services. You’ll learn how to get started building web applications with AngularJS, how to leverage HTML5 features like local storage and pushState, providing efficient server resources via HTTP and web sockets (sing SignalR), important routing configuration concerns, testing and deployment.

No comment yet.
Scoop.it!

Integrating Node.js with a C# DLL

Integrating Node.js with a C# DLL | JavaScript for Line of Business Applications | Scoop.it

Recently I had to integrate a Node.js based server application with a C# DLL. Our software (a web-app) offers the possibility to execute payments over a POS terminal. This latter one is controllable through a dedicated DLL which exposes interfaces like ExecutePayment(operation, amount) and so on. As I mentioned, there is the Node.js server that somehow exposes the functionality of the POS (and some more) as a REST api. (The choice for using Node.js had specific reasons which I wouldn't want to outline right now).

When you start with such an undertaking, then there are different possibilities. One is to use Edge.js which allows you to embed, reference and invoke .Net CLR objects from within your Node.js based applications.

No comment yet.