Angular.js and Go...
Follow
10.5K views | +13 today
 
Scooped by Piyas De
onto Angular.js and Google Dart
Scoop.it!

Single Page Application with Angular.js, Node.js and CouchDB (Cradle Module)

Single Page Application with Angular.js, Node.js and CouchDB (Cradle Module) | Angular.js and Google Dart | Scoop.it
Single Page Application with Angular.js, Node.js and CouchDB (Cradle Module)
more...
No comment yet.
Angular.js and Google Dart
Here we will have latest updates and learning materials on Angular.js and Google Dart
Curated by Piyas De
Your new post is loading...
Your new post is loading...
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Fission - The Reactjs Toolkit doing MVC

Fission - The Reactjs Toolkit doing MVC | Angular.js and Google Dart | Scoop.it

Easy to use
Fission lets you focus on the app, not worry about designing the core system behind it.


Efficient
Fission uses React for extremely efficient rendering, with the best parts of Ampersandjs, model and state.


Customizable API
Fully modifiable API enables swapping out of core elements, such as Sync, for a mulit-service application


Open Source
Fission is, and will always be Fully Open Source.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from Javascript
Scoop.it!

Let’s Write Fast JavaScript

Let's Write Fast JavaScript - The JavaScript Collection - Medium
A few interesting JavaScript benchmarks and tips

Via Jan Hesse, Darlene Tate
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

React Static Site

React Static Site | Angular.js and Google Dart | Scoop.it

I built a doubly static site using React (inc react-router) and Webpack. You can see the current demo here on GitHub or continue reading the following post that explains the steps I took during this experiment. This post proves the basic concept and there will be a followup post covering the fine tuning needed to put this into production.

Why

My blog currently uses Jekyll. Its a great way to build a static site but for a while now I have been wanting to migrate off Jekyll onto something more familiar. I don’t use Jekyll for anything other than my blog so each time I go back to it there is a small learning curve. I don’t feel the need to join the WordPress cult and Javascript is where my heart is so some sort of custom node setup was the likely winner.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Some Thoughts on the Awesomeness of Function and Object Composition in JavaScript

Some Thoughts on the Awesomeness of Function and Object Composition in JavaScript | Angular.js and Google Dart | Scoop.it

In JavaScript, probably due to it’s dynamic character and sparse syntax, we can easily compose both functions and objects. We will start looking at how we can compose functions. My goal is to define a series of functions that have a single responsibility and combine them into new functions that provide a richer functionality and result in more readable, intentional, explicit, terse, reusable JavaScript code.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from Javascript
Scoop.it!

Learning React.js: Getting Started and Concepts

Learning React.js: Getting Started and Concepts | Angular.js and Google Dart | Scoop.it

One of it’s unique selling points is that not only does it perform on the client side, but it can also be rendered server side, and they can work together inter-operably.

The way React works, rather than taking the real person and rebuilding them from the ground up, it would only change the face and the arms. This means that if you had text in an input and a render took place, as long as the input’s parent node wasn’t scheduled for reconciliation, the text would stay undisturbed.


Via Jan Hesse, Darlene Tate
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Spring and Angular JS: A Secure Single Page Application

Spring and Angular JS: A Secure Single Page Application | Angular.js and Google Dart | Scoop.it
In this article we show some nice features of Spring Security, Spring Boot and Angular JS working together to provide a pleasant and secure user experience. It should be accessible to beginners with Spring and Angular JS, but there also is plenty of detail that will be of use to experts in either. This is actually the first in a series of articles on Spring Security and Angular JS, with new features exposed in each one successively. We’ll improve on the application in the second and subsequent installments, but the main changes after this are architectural rather than functional.

Via Jan Hesse
more...
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

High Performance Web Components

High Performance Web Components | Angular.js and Google Dart | Scoop.it
How many photo carousels have you built? Date pickers? Dynamic tables and charts? Wouldn't it be great if there was a way to make these custom elements encapsulated and reusable? Welcome to Web Components!

Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

A Case Study in JavaScript Code Improvement

A Case Study in JavaScript Code Improvement | Angular.js and Google Dart | Scoop.it
Raymond Camden shares how a recent project led him to integrate some workflow tools that helped him improve the quality of his JavaScript code.

While writing the JavaScript, I ran into a few bits of code that felt repetitive and seemed ripe for optimization. I intentionally ignored those thoughts and focused on getting the code working. Premature optimization is frowned upon for a reason. Now that the code is released though, I think it makes sense to go back through and look for improvements to the code base.Obviously – and probably more sensible before the optimization, would be the use of unit tests. As this relies upon a remote service, writing tests could be problematic, but even a test that assumes that remote service is running perfectly would be better than no tests. Plus, if I write these tests first, I can then look into code changes and feel secure that I’ve not broken anything.I’m a big fan of JSHint and would like to run it over the code base and make sure it passes that test as well.I’d also like to ship a minified version of the library. To be honest, I’ve never done that before, but if I had to guess, I’d bet there is a command line program I could run to generate that.Finally, I bet I can handle running the unit tests, JSHint checking, and the minification, automatically via a tool like Grunt or Gulp.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Five Traits of Well-Managed JavaScript

Five Traits of Well-Managed JavaScript | Angular.js and Google Dart | Scoop.it
As JavaScript projects grow, they tend to become difficult to manage if you're not careful. We found ourselves running into common problems including code that was difficult to reuse or test, and code that broke when introduced in new pages.

Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Planning A Front-end JavaScript Application

Planning A Front-end JavaScript Application | Angular.js and Google Dart | Scoop.it

Planning a front-end web application is about more than just picking a few JavaScript solutions to aid in the architecture and testing of a web application. While this might be where much of the front-end community focuses, seasoned developers know that building enterprise-grade software is much more than this.

In this article, I am going to describe 16 steps that front-end developers should go through when planning a front-end web application. These steps aim to cover the entire life-cycle of a front-end application. However, before diving in, I need to clarify a few front-end terms that remain unsettled in the industry.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Async Fragments: Rediscovering Progressive HTML Rendering with Marko

Async Fragments: Rediscovering Progressive HTML Rendering with Marko | Angular.js and Google Dart | Scoop.it

Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Breaking Down AngularJS to Smaller Components

Breaking Down AngularJS to Smaller Components | Angular.js and Google Dart | Scoop.it

Separation of concerns has its own tradeoffs. A lot of people doesn’t seem to understand this; they tend to use Controller for everything. Even library authors instruct that way. Although library authors are not to be blamed, it seemed to have been applied in practice by everybody, and that’s not awesome.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Getting To Know Flux, the React.js Architecture

Getting To Know Flux, the React.js Architecture | Angular.js and Google Dart | Scoop.it
Contents:IntroductionWhat is Flux?The DispatcherStoresAction Creators & ActionsController ViewsPutting It All TogetherWrap Up
Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Describing UI state with data

Describing UI state with data | Angular.js and Google Dart | Scoop.it

n this post we build a small example UI following a data-first approach. What the user sees is just a representation of a piece of data, the app state. And when she interacts with the interface, she is just applying transformations to that piece of data.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from Javascript
Scoop.it!

Sort and Filter a Table Using Angular

Sort and Filter a Table Using Angular | Angular.js and Google Dart | Scoop.it
When building Angular applications, one of the cornerstones we will use is ng-repeat. Showing data is something that we do in applications like when we show a table of users or whatever other data we need to show our users....

Via Jan Hesse, Darlene Tate
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Getting Started with React.js

React.js is a JavaScript library for building user interfaces.

- Just the UI: Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.

- Virtual DOM: React uses a virtual DOM diff implementation for ultra-high performance. It can also render on the server using Node.js — no heavy browser DOM required.

- Data flow: React implements one-way reactive data flow which reduces boilerplate and is easier to reason about than traditional data binding.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from AngularJS charting
Scoop.it!

C3.js Brings Charting Power Without the Learning Curve - InfoQ.com

C3.js Brings Charting Power Without the Learning Curve - InfoQ.com | Angular.js and Google Dart | Scoop.it
“The JavaScript charting library, C3.js is a newcomer in an ocean of similar tools. Built on the D3 visualization library, it enables developers to create reusable charts and provides ways to manipulate a chart after it appears on screen.”
Via Jason McClean
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

2015: The End of the Monolithic JavaScript Framework

2015: The End of the Monolithic JavaScript Framework | Angular.js and Google Dart | Scoop.it

We need to move beyond monolithic frameworks to a component/library-based front-end solution, but there’s too much fragmentation/abstraction to create an industry standard approach. Below are some constructive thoughts aimed at building a more viable and stable alternative.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Mercury - A truly modular frontend framework

Mercury -  A truly modular frontend framework | Angular.js and Google Dart | Scoop.it

Some of the core ideas are:

your entire view is a single complex vtreeyour entire view state is a single complex immutable object.your rendering function is pure, it takes just the view state (disclaimer: hooks & widgets are not pure).you declare all user input as channels up front in your view state.the view state supports cursors, you can nest components in components.

Mercury is unidirectional because:

A DOM event triggers a value to be send to a channelThe listener for the channel updates the view stateAn update to the view state triggers a re-renderA new vtree is createddiff() and patch() update the DOM.


mercury is similar to react, however it's larger in scope, it is better compared against om or quiescent

mercury leverages virtual-dom which uses an immutable vdom structuremercury comes with observ-struct which uses immutable data for your state atommercury is truly modular, you can trivially swap out subsets of it for other modulesmercury source code itself is maintainable, the modules it uses are all small, well tested and well documented. you should not be afraid to use mercury in production as it's easy to maintain & fix.mercury encourages zero dom manipulation in your application code. As far as your application is concerned elements do not exist. This means you don't need to reference DOM elements when rendering or when handling eventsmercury is compact, it's 11kb min.gzip.js, that's smaller than backbone.mercury strongly encourages FRP techniques and discourages local mutable state.mercury is highly performant, it's faster then React / Om / ember+htmlbars in multiple benchmarks TodoMVC benchmark\ animation benchmarkTodoMVC benchmark sourcemercury comes with FP features like time-travel / easy undo out of the box.mercury is lean, it's an weekend's read at 2.5kloc. (virtual-dom is 1.1kloc, an evening's read.) compared to react which is almost 20kloc (a month's read)
Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Writing AngularJS directives as TypeScript classes

Writing AngularJS directives as TypeScript classes | Angular.js and Google Dart | Scoop.it

TypeScript is a fantastic language that extends JavaScript by providing static typing syntax. Writing TypeScript to utilize AngularJS can be clunky at times, and one pain point for me was in writing directives.

AngularJS expects to be feed a factory function that returns an object that defines parameters and functionality for your directive.

In JavaScript, that looks like this.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

A Comprehensive Story of 'this' in JavaScript

A Comprehensive Story of 'this' in JavaScript | Angular.js and Google Dart | Scoop.it

Variable scoping has always been a part of every programming language. Whether we are using a class based object oriented language (e.g. Java/C#) or a class-less object oriented language, scope has a very important role to play.

What scope defines?
In easiest terms, scope defines the visibility of any variable/data. In JavaScript, you can define a piece of code (function/method) globally or you can keep it within an object and expose it for public use. The keyword 'this' has a special significance when it comes to JavaScript. Other languages also use the 'this' keyword but it needs some serious attention if you are trying to use or understand it in JavaScript world.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Protractor - Testing Angular and Non Angular Sites

Protractor - Testing Angular and Non Angular Sites | Angular.js and Google Dart | Scoop.it

So what if at work you need to write an automated functional regression for non angular site? If you’re a lucky guy/gal you spend your days dealing with AngularJS and you have convinced your manager to use protractor to write the much needed automated functional suite. Now your manager comes back with a smile on his face asking you to create a new set of tests for this other non angularized web application.

Some would be scared, somebody would run, not you! That’s because you know how this thing actually works. You know you can always get the webDriver instance and do some vanilla selenium things. That’s why they call you ‘The Selenium dude’ and sometimes other names which are outside the article’s scope.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

Building scalable applications with Angular.js

AngularJS today is one of the most powerful, user-friendly and popular JS frameworks to work on web applications. Surprisingly, one of the main weaknesses of this framework is poorly structured documentation and the lack of ready-made solutions. In this report, we will try to work out the best approach to the organization of large and very large applications. We will also speak about the tools that will be useful at every stage of the application development and tools and practicesthat will help you to work in the continuous delivery mode.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from JavaScript for Line of Business Applications
Scoop.it!

How we make RWD sites load fast as heck

How we make RWD sites load fast as heck | Angular.js and Google Dart | Scoop.it

In this post, I’ll outline some recent observations and approaches to delivering sites for speed and broader access, and link out to various tools we are using to facilitate our approach. All of the tips mentioned in this post are implemented on this very site, and we’ve tested them heavily to ensure that they’re working as well as they can.

I’ll start with some high-level observations, then later I’ll dive into the more technical how-to. First, some general notes about page loading performance and what we aim to accomplish.


Via Jan Hesse
more...
No comment yet.
Rescooped by Piyas De from Javascript
Scoop.it!

Asynchronous calls with ES6 generators

Asynchronous calls with ES6 generators | Angular.js and Google Dart | Scoop.it

A few months ago Jake Archibald wrote an article about the awesomeness of the asyncfunctions in ES7 and how we can “emulate” them using ES6’s generators, using his spawn function, which has subset of the features of co.

In this blog post we’ll take a look at standard ways of handling asynchronous calls and how we can improve the readability of our code using generators. We’ll also take a further look at the implementation of spawn, since there are few tricky moments there.


Via Jan Hesse, Darlene Tate
more...
No comment yet.