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!

Fun with Native Arrays

In JavaScript, arrays can be created with the Array constructor, or using the [] convenience shortcut, which is also the preferred approach. Arrays inherit from the Object prototype and they haven't a special value for typeof, they return'object' too. Using [] instanceof Array, however, returns true. That being said, there are also Array-like objects which complicate matters, such as strings, or the arguments object. The arguments object is not an instance of Array, but it still has a length property, and its values are indexed, so it can be looped like any Array.

In this article I'll go over a few of the methods on the Array prototype, and explore the possibilities each of these methods unveil.

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!

KnockOutJS with ASP.NET MVC

Learn what KnockOutJS it and how to get started.
No comment yet.
Scoop.it!

Minty - building a Node driven Blogging engine

Minty - building a Node driven Blogging engine | JavaScript for Line of Business Applications | Scoop.it

I'm building a simple pimple application - and that sentence right there should scare me :). A blog engine should be simple but there are so many concerns - it's overwhelming!

Which is precisely why we're going to focus on one thing at a time.

When thinking about a blog and what it does - well you can break it into a number of smaller parts:

* The CMS Bits (Articles, versioning, etc)

* The Web/CSS (Serving pages, look and feel)

* The Admin site (dig it)

* API stuff (RSS etc)

That's how I would break it out, at least.

Jan Hesse's insight:

This is a multipart series of the process to build out a Node application.

No comment yet.
Scoop.it!

Why frameworks don’t have much to do with how easy it is to add a feature

Why frameworks don’t have much to do with how easy it is to add a feature | JavaScript for Line of Business Applications | Scoop.it

ou’re using the hottest and hippest new framework? You generate Node-powered Erlang templates in a crowdsourced Haskell cluster? You run JavaScript on a Ruby VM that uses a Lisp DSL? You stream events to your MVVC like there’s no tomorrow?

Whatever you do, in a real business, all of these things are unlikely to help you to launch features faster.

Adding a new feature encompasses a lot more than just sitting down and writing some code...

No comment yet.
Scoop.it!

Package Authoring with Paqui

Package Authoring with Paqui | JavaScript for Line of Business Applications | Scoop.it

Creating client-side JavaScript packages is increasingly becoming a painful endeavor. We need to publish our package to different repositories such as bower, component, and npm, and there are others! Crazy. People might be using volo,jam, or Ender... Have I named enough yet?

Then there's building the package for human consumption. That's where things get really cute. You have CommonJS modules and browserify, AMD modules with Require.js, plain-old raw JavaScript, and a bunch of other "input" formats. There is plenty that can be done in that field, and plenty is done indeed. The output isn't that complicated, but everyone expects you to provide at least the minified (and unminified) code for your module tighly packaged in a single .js file.

Solutions such as Grunt or yeoman kind-of solve these problems, but leave you but a bunch of code that you might have no idea how it works.

No comment yet.
Scoop.it!

Eliminating Code Smell With Grunt

I love clean code. There, I said it. I pride myself on passing strict linting standards and keeping my code easy to read. It's not just a personal proclivity, but a choice I hope benefits other developers.

My general experience with teams has been that code style is something people care about and have strong personal preferences. Typically, at some point people get tired of dealing with inconsistency and a standardization meeting is called. This is, of course, an important discussion to have. The problem that tends to occur is either lack of documentation or lack of enforcement of the agreed upon style. Additionally, new team members or contributors may not have access to a clear set of rules.

Beyond the challenge of defining rules lies the supreme annoyance of enforcing them. Code reviews become cluttered with nits to be picked. Time is wasted. The solution I settled on was simply automating the conformance process.

I set forth to solve this problem:

Establish coding standards that are clearly defined and automatically verifiable.

Jan Hesse's insight:

http://flippinawesome.org/2013/12/02/eliminating-code-smell-with-grunt/

No comment yet.
Scoop.it!

Callbacks vs Coroutines

Callbacks vs Coroutines | JavaScript for Line of Business Applications | Scoop.it

There’s been a lot of arguing lately regarding a somewhat recent Google V8 patch providing the ES6 generators. While generators still sit behind the —harmony or —harmony-generators flags it’s enough to get your feet wet! In this post I want to go through my experiences with coroutines and why I personally think they’re a great tool.

Before getting into the difference between generators and coroutines let’s look what makes generators useful in environments like Node.js or the browser where callbacks dominate the ecosystem.

First off generators are complementary to callbacks, some form of callback is required to “feed” the generators. These “futures”, “thunks”, or “promises” — whatever you prefer to call them allow deferred execution of some logic, this is what you yield a value and allow the generator to handle the rest.

No comment yet.
Scoop.it!

Best Javascript IDE and lightweight Code Editor

Best Javascript IDE and lightweight Code Editor | JavaScript for Line of Business Applications | Scoop.it

If you are a professional developer, you know how simple and fast it makes working and deploying projects if you use IDE. If you are a web developer you should always consider using specific JavaScript IDE for all all JavaScript development. There are some debates on internet about best JavaScript IDE available but personally its all depends on your need and features you want in your IDE. Before you choose any IDE, I would suggest to read “how to choose IDE“, to get an idea what features you want in your IDE. If you have a JavaScript code snippets and you want to run online, there are plenty of JavaScript online compiler available to choose from. 

No comment yet.
Scoop.it!

Javascript Hacks for Hipsters

Javascript Hacks for Hipsters | JavaScript for Line of Business Applications | Scoop.it

Javascript is so much fun, except when it’s not.

There’s always the fear of runtime errors that keeps us thinking all the time while writing code. It makes us better coders - we have no other option than to visualize every line of code as if it’s running as we write it.

That’s why it’s so important to have tidy code. Small code. Pretty code. Code you just fall in love with. Otherwise, Javascript will scare you away.

I gathered some fun snippets I enjoy using instead of boring code that takes too much space. Some makes the code shorter, cleaner and more readable. Other are just plain hacks for debugging.

I learned all of this from open source code (until node.js all javascript code was open source, wasn’t it?), but I’ll write them here is if I invented them.

No comment yet.
Scoop.it!

Internationalization Support in Ember.js

Internationalization Support in Ember.js | JavaScript for Line of Business Applications | Scoop.it

One thing I’m really proud of is that when we launched Discourse, we had first class Internationalization (i18n) support ready to be used. Our first release only English, but thanks to our community we have 18 localizations of our software in progress! On the server side, Discourse uses Rails’ built in i18n support. It has been around for a long time and works easily so I won’t go into that. Check out the documentation for your server side framework of choice for more.

No comment yet.
Scoop.it!

Experiences Building a Hypervideo-based Web App with Ember.js, Popcorn.js and HTML5

Experiences Building a Hypervideo-based Web App with Ember.js, Popcorn.js and HTML5 | JavaScript for Line of Business Applications | Scoop.it
Thomas Herrmann discusses the advantages, challenges and lessons learned in building a multimedia-heavy, interactive HTML5 application with Ember.js.
No comment yet.
Scoop.it!

Building an App with Express and Backbone: Part 8

Building an App with Express and Backbone: Part 8 | JavaScript for Line of Business Applications | Scoop.it

In this episode I take you through the process of adding structure using RequireJS. Rather than take you through it in real time (the process of me converting it all would not have made great viewing), I walk you through the code after I've made the changes and explain how it works.

* Part 1: Set up Express, Mongo and our first route to show all books

* Part 2: Set up a route for viewing a single book and did some tidying of our codebase.

* Part 3: Create a route so new books can be added via a POST request.

* Part 4: Setting up Backbone and creating a model for our books.

* Part 5: Adding Backbone views and rendering data to the frontend.

* Part 6: Adding structure with the Backbone Router

* Part 7: Adding a route for viewing an individual book


No comment yet.
Scoop.it!

First steps with Ember.js: a gentle introduction to a Javascript MVC powerhouse.

Continuing with our exploration of the Javascript MVC landscape, today is the turn of Ember.js. "A framework for creating ambitious web applications" is how it describes itself on its home page, read on to find out if there is any merit to that claim.

There is a lot more to Ember.js than what we can cover here and once you have gone through this tutorial, you will want to browse through the official guides, which are an excellent source of information.

No comment yet.
Scoop.it!

Javascript... FOR SCIENCE!

Javascript... FOR SCIENCE! | JavaScript for Line of Business Applications | Scoop.it
Angelina Fabbro, Bill Mills call developers to help scientists progress in their research, providing advice, a project and a JavaScript tool that could be the starting point in this endeavor.
No comment yet.
Scoop.it!

Create a reusable AngularJS input form component

Create a reusable AngularJS input form component | JavaScript for Line of Business Applications | Scoop.it

One of the beauty of the AngularJS framework is its ability to isolate complexity with services and directives; This is perfect for segmenting our code, create very testable components, and make them reusable. A directive, which is an anticipation of the future web components, is a piece of isolated javascript, HTML and CSS that encapsulate a specific behaviour and that you can easily reuse in various apps. Once created, a directive is simply invoked by adding it to the DOM via a HTML tag (<accordion></accordion>, or a custom attribute <div accordion></div>, or a CSS class <div class="accordion"></div> (and even as HTML comment).

No comment yet.
Scoop.it!

Lightstreamer: Visual Layer of the JavaScript Client Library for real time messaging

Lightstreamer: Visual Layer of the JavaScript Client Library for real time messaging | JavaScript for Line of Business Applications | Scoop.it

Lightstreamer enables several forms of real-time messaging and is flexible enough to be used in any scenario, including mission critical applications.

Before we could release the visual layer, we had to release a common layer of utilities we shared across our whole library. The idea of a second project, to host the various utilities, was born... Following closer, came the idea to isolate the logging infrastructure in its own project and to also publish our testing framework. In the end, we had 4 projects to publish.

Let me introduce the various libraries to you:

* The toolkit

* The logger

* The test framework

* The visual layer


No comment yet.
Scoop.it!

Testing Ember.js applications with Konacha.

Testing Ember.js applications with Konacha. | JavaScript for Line of Business Applications | Scoop.it

his time I want to show you how to write tests for your Ember.js application, using the Konacha gem.

Basically, Konacha is a Rails engine which allows us to test the Javascript code from our Rails application with the Mochatest framework and Chai assertion library.

This post is focused on Ember.js + Rails web applications.

* Setup
* Running specs
* Spec Helper
* DSL
* More customization
* Testing Routes
* Testing Controllers
* Integration Tests
* Filtering the tests

ali's curator insight, November 28, 2013 12:54 AM

Sears Promo Codes - Latest Sears Promotional & Discount Codes 2013

http://www.stumbleupon.com/su/9TEAsm/promocodeshop.com/Sears/

 

Scoop.it!

Data Visualization with JavaScript without D3

Data Visualization with JavaScript without D3 | JavaScript for Line of Business Applications | Scoop.it

We'll take a dataset of Hollywood movies, and step by step, we'll build up a simple visualization using only JavaScript in the browser.

Let's get this out of the way: D3 is awesome. There's a very good reason it's the de-facto standard library for doing complex data visualization with JavaScript. We use it pretty extensively at Interlincx. I know there's a lot of demand for D3 resources, so here's my reasoning for not covering it here:

I want to concentrate on the fundamentals of creating a browser-based visualization without getting lost in any library-specific way of doing things. Even if you're very experienced with both JavaScript and creating data visualizations, D3 has a bit of a learning curve.

D3 has a whole lot of functionality to help you create some pretty amazing visualizations, but the techniques I'll cover should translate to creating any browser-based visualization, regardless of tool.

While D3 is an amazing tool, it's important to remember it's just one tool in our toolbox. It can be helpful to think about what we want to achieve at more of a conceptual level first before thinking about how to use a specific tool.

Lastly, I will most likely cover D3 in a future talk/article. So stay tuned for that =)

No comment yet.
Scoop.it!

How to do Authorization and Role based permissions in AngularJs

How to do Authorization and Role  based permissions in AngularJs | JavaScript for Line of Business Applications | Scoop.it

We will be adding 3 Layer to implement Authorization in our app* UI manipulation (Showing or hiding part of the screens based on the user permission)* Routing ( When the user access a route that he doesn’t have permission to will redirect him to an error  route )* Http Interceptor (We will Setup an interceptor that will check when the server returns 401 or403  and will redirect the user to an error route)

 

First thing we want to get all the user permissions before loading our app (more like a resolve but for every route) then we will store it (using a service) then for showing/hiding sections of our app that require special permissions we will use a directive for that, after that when we define a route we will add an extra parameter “permission” and give it a value for the permission that it requires then after that we will test in a routeChangeStart event to check if the user has permissions for that route (if any), lastly we will set an http interceptor & read the respond status codes if its  401 or403 we will redirect the user to an error page

Its a long list, so lets get starting

 

No comment yet.
Scoop.it!

Play, Scala, and Iteratees vs. Node.js, JavaScript, and Socket.io

Play, Scala, and Iteratees vs. Node.js, JavaScript, and Socket.io | JavaScript for Line of Business Applications | Scoop.it

The Play Framework takes a functional programming approach to stream processing (e.g. Comet, chunked responses, WebSockets) by using abstractions called Iteratees, Enumerators, and Enumeratees. When I originally tried to wrap my head around Iteratees, I found that the existing documentation and sample apps were fairly confusing and ineffective for getting started. Since teaching is often the best way to learn, I decided to write a blog post as a way to become more comfortable with functional I/O.

On the JavaScript side of the world, node.js and socket.io take an imperative programming approach for stream processing by using the EventEmitter API. I've found this imperative approach easy to learn, so for this blog post, I'll show a side by side comparison of the imperative and functional techniques for each example. The focus of the post will be on WebSockets, including a basic "hello world" example, an echo server, and a simple chat application.

No comment yet.
Scoop.it!

Writing performant and quality Jquery code

Writing performant and quality Jquery code | JavaScript for Line of Business Applications | Scoop.it

There are a lot of articles around the web about jquery and javascript performances. So, this is not a final article about the argument, but here I’m just trying to sumarize a bunch of speed tips and some of my advices, to improve your code.  Better code means faster apps and jank free websites, and fast rendering and reactivity means a better user experience.

First of all, we should keep in mind one important thing: jquery is javascript. This means we must adopt same coding conventions, styles guide and best practices for both of them.

So, first of all if you don’t know much about javascript performance improvements, I recomend you to read here and there before starting to mess up with jquery.

However, when you use jquery is a good and strongly recommended practice to follow those guidelines:

No comment yet.
Scoop.it!

Practical AngularJS Part 1 – Introducing AngularJS

Practical AngularJS Part 1 – Introducing AngularJS | JavaScript for Line of Business Applications | Scoop.it

In this series of articles I’m going to be working with AngularJS, a fantastic framework from Google that helps you rapidly build web applications. We’ll see how AngularJS can be used to speed up your development and help you write cleaner, more testable code.

Before I start to advocate the use of a library or framework, I need to demonstrate a need for it. Unless we’re just coding for fun or specifically to learn, the reason we choose to use a library or framework is that we have a problem, or problems to solve.

So as a way of introducing angular, I’m going to start with a trivial task, see how it quickly gets harder, identify problems and demonstrate how angular is a good choice as something that can mitigate these problems.


No comment yet.
Scoop.it!

Handling Oauth2 with Node.js and Angular.js – Passport to the rescue!

Handling Oauth2 with Node.js and Angular.js – Passport to the rescue! | JavaScript for Line of Business Applications | Scoop.it

I’ve recently been working on a small application in AngularJS which will be eventually destined for mobile platforms. Now, I’ve been wanting to get a decent log-in flow for Node happening for a while now; it’s the kind of boilerplate I’m likely to use in a lot of different things. And of course, I want to be able to use the OAuth2 log-in services provided by Facebook, Google et al. A lot of my previous experiments with node and/or angular didn’t require this, and as I try to be prudent with my time it’s always been on the back burner. Until now, that is…

No comment yet.
Scoop.it!

Converting JavaScript Polymer to Dart

Converting JavaScript Polymer to Dart | JavaScript for Line of Business Applications | Scoop.it

I still have more questions than I'd like in my JavaScript implementation of a Polymer + Boostrap element. But I think most of those questions can be deferred until later. Tonight I convert my custom Polymer elements into Dart using Polymer.dart.

I am unsure what the code organization ought to be, so I am going to guess tonight and circle back around later to see if any changes are needed. Loosely following Dart Pub guidelines, I create an assetdirectory to hold my Polymer.dart HTML templates and my bootstrap CSS, a lib directory for my Polymer.dart code, and a web directory for my sample application web page.

No comment yet.