Javascript
13 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Rescooped by Shailesh Benake from JavaScript for Line of Business Applications
Scoop.it!

Message Systems in Programming: Callbacks, Events, Pub Sub, Promises, and Streams

Message Systems in Programming: Callbacks, Events, Pub Sub, Promises, and Streams | Javascript | Scoop.it

How you decide to allow objects to talk to each other has pro’s and con’s for each method and it’s good to know your options as you can use many together in effective hybrid approaches.This article will cover the 5 common ones you’ll often encounter.We’ll cover:* Callbacks* Events* Pub Sub* Promises* Streams


Via Jan Hesse
more...
Arik Grinstein's curator insight, November 1, 2014 4:09 PM
A good summary about messaging options
Rescooped by Shailesh Benake from Development on Various Platforms
Scoop.it!

Introduction | Learn Javascript

Introduction | Learn Javascript | Javascript | Scoop.it
Interactive online course for learning Javascript.

Via Eyal Vardi, Ertunç Efeoğlu
more...
No comment yet.
Rescooped by Shailesh Benake from Development on Various Platforms
Scoop.it!

AngularJS: Factory vs Service vs Provider

AngularJS: Factory vs Service vs Provider | Javascript | Scoop.it

When you first get started with Angular, you’ll naturally find yourself flooding your controllers and scopes with unnecessary logic. It’s important to realize early on that your controller should be very thin; meaning, most of the business logic and persistent data in your application should be taken care of or stored in a service. I see a few questions a day on Stack Overflow regarding someone trying to have persistent data in his or her controller. That’s just not the purpose of a controller. For memory purposes, controllers are instantiated only when they are needed and discarded when they are not. Because of this, every time you switch a route or reload a page, Angular cleans up the current controller. Services however provide a means for keeping data around for the lifetime of an application while they also can be used across different controllers in a consistent manner.

Angular provides us with three ways to create and register our own service.

1) Factory
2) Service
3) Provider


Via Jan Hesse, Ertunç Efeoğlu
more...
No comment yet.
Rescooped by Shailesh Benake from Development on Various Platforms
Scoop.it!

JavaScript and the JVM

JavaScript and the JVM | Javascript | Scoop.it

When it comes to server-side JavaScript programming, there are other choices besides v8 based solutions like NodeJS, TeaJS, SilkJS, and others. For the longest time, the Rhino JavaScript engine has been around for the JVM, and recently Java 8 was released with a brand new and improved JavaScript engine for the JVM called Nashorn. There is another project called DynJS that shows a lot of promise as well. In this post, I will investigate the benefits of JavaScript running on the JVM and demonstrate how easy it is to integrate with, or script, Java from JavaScript.

 

Contents:

* Introduction
* JavaScript in the JVM
* Introducing Mozilla Rhino
* Introducting Nashorn
* Conclusion


Via Jan Hesse, Ertunç Efeoğlu
more...
No comment yet.
Rescooped by Shailesh Benake from JavaScript for Line of Business Applications
Scoop.it!

4 Questions to Ask Before Choosing a JavaScript Framework

4 Questions to Ask Before Choosing a JavaScript Framework | Javascript | Scoop.it

While these individual libraries and the resulting custom stack have the potential to do some things very well, the unfortunate reality is that a great deal of the functionality must be gathered together from disparate sources, written in-house and require a dedicated team of maintainers in order to meet the demands of enterprise software development.


Via Jan Hesse
more...
Delchina Angelova's curator insight, October 27, 2014 11:01 AM

Not sure the compare is fair but questions are good.

Rescooped by Shailesh Benake from Development on Various Platforms
Scoop.it!

Angular Part 2– Behavior Driven Development

Angular Part 2– Behavior Driven Development | Javascript | Scoop.it

Via Eyal Vardi, Ertunç Efeoğlu
more...
Eyal Vardi's curator insight, April 4, 2014 6:56 AM

In an earlier posting I discussed, briefly, why Angular is suddenly so popular, and demonstrated how to get started with Angular without writing a line of JavaScript.  It’s time now to turn our attention to a slightly more realistic example.

Many lessons on Angular pay lip-service to the importance of unit-testing and test-driven development, but virtually none actually practice it.  This series will buck that trend and teach Angular and testing Angular at the same time.  In the long run, this will be faster and better than trying to tack testing on at the end.

Rescooped by Shailesh Benake from Development on Various Platforms
Scoop.it!

Object Oriented Javascript

Object Oriented Javascript | Javascript | Scoop.it

If you are reading this I’d like to assume you know what Javascript is and the fact that it’s object oriented, what not many people know though is how to do the most common object oriented “things” in Javascript, such as inheritance, private functions and such.

The fact that Javascript is prototype based and not class based is what makes it hard to get into for most programmers. If you come from Java, PHP, C#, C++, Python, Ruby or pretty much any language you’ll find objects in Javascript are a bit unique, and they certainly are but in a good way!

 

* Prototypes
* Constructor Functions
* Encapsulation
* Inheritance
* Static vs Instance
* Abstracting it up a bit
* Conclusion


Via Jan Hesse, Ertunç Efeoğlu
more...
No comment yet.