Development on Various Platforms
12.9K views | +0 today
Follow
Development on Various Platforms
Your new post is loading...
Your new post is loading...
Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

Knex.js - A SQL Query Builder for Javascript

Knex.js - A SQL Query Builder for Javascript | Development on Various Platforms | Scoop.it

Knex.js is a "batteries included" SQL query builder for Postgres, MySQL, MariaDB and SQLite3, designed to be flexible, portable, and fun to use. It features both traditional node style callbacks as well as a promise interface for cleaner async flow control, a stream interface, full featured query and schema builders, transaction support, connection pooling and standardized responses between different query clients and dialects.


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

An Introduction to Server-Side JavaScript (SSJS)

An Introduction to Server-Side JavaScript (SSJS) | Development on Various Platforms | Scoop.it

The creation, proliferation, and discovery of JavaScript-driven HTTP requests has given rise to highly interactive websites and applications. In turn, this has driven the need for faster JavaScript engines and for developers to do significant programming both on the client and the server. With the demand to build quick, high-performance, high-quality web applications, there is a growing trend to use a single programming language for both the client and server-side implementation. Server-Side JavaScript (SSJS) has been getting a lot of buzz these days and is now being considered as the next big advancement in web development.

* Node.js

* RingoJS

* Narwhal

* Wakanda


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

7 Tips for new node.js users

7 Tips for new node.js users | Development on Various Platforms | Scoop.it

I've been working with node.js almost a year. Here's my tips for new node.js users.

* Make it Named
* Unreference earlier
* No copy
* Careful when involve new modules
* Use async or promise
* Client may be very slow
* Emit when finished, or even later
* Maybe more?


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

NodeJS: the good parts? A skeptic’s view

NodeJS: the good parts? A skeptic’s view | Development on Various Platforms | Scoop.it

Chris Richardson, founder of the original CloudFoundry.com, is a server-side Java developer who wasn't too thrilled about JavaScript in the browser, let alone on the server. In fact, he might even suggest that we are slaves to JavaScript because people have simply started to accept its weirdness and flaws, much like a Stockholm Syndrome phenomenon. Despite his misgivings, Chris has discovered an appreciation for Node.JS. In this talk from JAXConf 2013, Chris will walk you through the consequences of combining the event-driven programming model with a prototype-based, weakly typed, dynamic language. Ultimately, however, you will learn how to effectively use Node in modern, polyglot applications.


Via Jan Hesse
more...
Oriol Lluch's curator insight, October 6, 2013 4:09 PM

Some of the architectural concepts behind node.js

Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

Buster.JS - A Browser and NodeJS JavaScript testing toolkit.

Buster.JS - A Browser and NodeJS JavaScript testing toolkit. | Development on Various Platforms | Scoop.it

Buster.JS is a JavaScript test framework for node and browsers.

It does browser testing with browser automation (think JsTestDriver), QUnit style static HTML page testing, testing in headless browsers (PhantomJS, jsdom), and more. Write your test case with Buster.JS and run it both in Node.js and in a real browser.

There’s a public API for almost everything. You can write reporters for customizing the output of buster test (we already have xUnit XML, traditional dots, specification, tap, TeamCity and more), write extensions that wrap other testing frameworks (we already have buster-jstestdriver), add your own testing syntax (we ship with xUnit and BDD), and much more. Again, the overview lists many of these things.

 


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

Create a Multi-user Presentation with Reveal.js

Create a Multi-user Presentation with Reveal.js | Development on Various Platforms | Scoop.it

Creating impressive presentation is an art. For a long time PowerPoint stood alone as the de facto tool for creating presentations.

 

Now, things have changed, as the web has become the focal point for all businesses, and as browser capabilities improved tremendously. Modern browsers are now capable of rendering 3-D graphics and animations just like in any other native applications.

 

Then there came some cool presentation libraries based on HTML5 and CSS3. Reveal.js is a highly popular library for creating stunning presentations.

 

Websockets is a new standard defined as a part of HTML5 spec, which enables bi-directional, full-duplex communication in browsers. There are number of JavaScript libraries that make working with Websockets easier, of which Socket.IO is a prominent one.

 

In this article we’ll discuss how to create a Reveal.js presentation that can be controlled by multiple users. We’ll make use of Socket.IO for sending and receiving slide change events in real-time. Reveal.js already comes with a multiplexer plugin, but this is a bit difficult to set up so we’ll ignore that for the time being. Let’s focus on how we can write a Socket.IO server that’ll suit our purpose.


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

Dependency Injection in Node.JS

Dependency Injection in Node.JS | Development on Various Platforms | Scoop.it

Dependency injection frameworks are relatively uncommon in node. On the client, Angular uses dependency injection, but the learning curve of Angular is so steep that the core of dependency injection ends up being obscured by all the other concepts. Generally, javascripters think of dependency injection as "that thing Martin Fowler invented."

Despite its reputation as an obscure Design Pattern, dependency injection is a pretty good idea. In fact, i.TV wrote their own dependency injection framework, dependable, when they realized they were doing it manually throughout their application code. By using dependency injection, we've been able to clean up a bunch of boilerplate code, keep our codebase tidy, and solve Real Problems in application development.


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

7 tips for a Node.js padawan

7 tips for a Node.js padawan | Development on Various Platforms | Scoop.it
Advantages coming from dependency injection can be addicting. It’s a lot easier to configure application structure using injections than doing all resolutions manually.

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

What is the MEAN stack?

What is the MEAN stack? | Development on Various Platforms | Scoop.it

Over the past few weeks I talked to a lot of people and the question I got asked the most was ‘What is the MEAN stack?’ That’s a very legitimate question and in this post I will try to describe my understanding of the MEAN stack and hopefully provide you with a clear understanding on what this new acronym is and how you can set it up on your own.

MEAN is an abbreviation and encompasses some new technologies, namely MongoDB, ExpressJS, AngularJS and NodeJS. The way this stack functions is similar to how the LAMP stack/framework works – let’s do a comparison between the two them:


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

BinaryJS - Realtime binary streaming for the web using websockets

BinaryJS - Realtime binary streaming for the web using websockets | Development on Various Platforms | Scoop.it

BinaryJS is a lightweight framework that utilizes websockets to send, stream, and pipe binary data bidirectionally between browser javascript and Node.js.

* BinaryPack serialization format is fast, binary, and JSON-type compatible. Data stays binary end to end
* Automatically chunks large binary data buffers for streaming performance
* Send multiple streams of data concurrently over multiplexed websocket connection
* API implements Node.js read/write Streams. You can pipe any stream into BinaryJS streams (and vice-versa)
* "pause," "resume," and "end" as in the Streams API


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

Generators vs Fibers

Generators vs Fibers | Development on Various Platforms | Scoop.it

Both ES6 generators and node-fibers can be used to block a coroutine while waiting on some I/O without blocking the entire process.

This means that you can wait for an I/O result within your code but still have the performance benefits of the single-threaded, non-blocking I/O model you all know and love.

Both can do this for arbitrarily deep call stacks. The main difference between the capabilities of the two is how explicit the syntax is. It's the classic battle between wanting to be safe while wanting to be flexible.

* Generators - Safe, but Annoyingly Explicit* Fibers - Powerful, but Flexible


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

Node.js vs. PHP

Node.js vs. PHP | Development on Various Platforms | Scoop.it

PHP is not going to disappear soon, but its position is being undermined even further by the nascent Node.js. When the Internet exploded in the 2000′s, PHP was the thing ”all the cool kids” did.

Over the years, PHP and its apps became vulnerable to security threats (e.g., SQL injections), lacked a centralized packaging registry (was Composer inspired by Node Package Manager?), had an inconsistent API and suffered from subpar performance. It’s easy to argue that there are better alternatives to PHP, for example Ruby on Rails and Django, however nothing is as approachable as Node.js.

For those of you who aren’t familiar with Node.js, or who have heard of it but can’t quite grasp the concept, I like to say that it is functionally similar to the PHP + Apache or ASP + IIS stacks. Nowadays, it is also gaining momentum.

Many people, whether software engineers or entrepreneurs, are often faced with the decision: “What tech stack should I use?” In this article, I’ll try to compare PHP and Node.js using an apples-to-apples approach, looking at the question from different angles including:

* Syntax

* Context switch

* Modules
* Ecosystem
* Frameworks
* Real-time apps
* Database apps
* Third-party services apps
* Web servers
* Hosting
* Performance

 


Via Jan Hesse
more...
Entropic-Synergies's curator insight, September 19, 2013 4:06 AM

Seems an objective comparison

Agtunn Naymin's curator insight, October 8, 2013 3:45 AM

should try appserver.io is multithread PHP Server

Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

Node.js Convincing the boss guide

Now that you're all hyped up about using node.js, it's time to convince your boss. Well, maybe. I have had the pleasure ofconsulting for different businesses on whether node.js is the right technology, and sometimes the answer is simply no.

So this guide is my opinionated collection of advice for those of you that want to explore whether node.js makes sense for their business, and if so, how to convince the management.


Bad Use Cases
* CPU heavy apps
* Simple CRUD / HTML apps
* NoSQL + Node.js + Buzzword Bullshit
Good Use Cases
* JSON APIs
* Single page apps
* Shelling out to unix tools
* Streaming data
* Soft Realtime Applications
Convincing the boss
* Building a prototype
* Finding developers
* Vibrant community
* Performance
* Corporate Backing
Convincing a client


Via Jan Hesse
more...
Sección de Metodologías de la Universidad de Murcia's curator insight, September 4, 2013 2:43 AM

Si estás pensando usar Node.js en una nueva aplicación, te interesa leer este artículo, pues explica claramente cuando merece la pena usar Node.js y cuando no.

Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

Node.js Frameworks

Node.js Frameworks | Development on Various Platforms | Scoop.it

Hand-picked registry of Node.js frameworks.


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

Web-based MongoDB admin interface written with Node.js and express

Web-based MongoDB admin interface written with Node.js and express | Development on Various Platforms | Scoop.it

Current features:
* Connect to multiple databases
* Connect and authenticate to individual databases
* Authenticate as admin to view all databases
* Database blacklist/whitelist
* View/add/rename/delete collections
* View/add/update/delete documents
* Use BSON data types in documents

Planned features:
* Support for replica set connections
* Web-based command-line interface
* Site authentication
* REST interface


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

Developing mobile apps with Node.js and MongoDB, Part 2: Hints and tips

Developing mobile apps with Node.js and MongoDB, Part 2: Hints and tips | Development on Various Platforms | Scoop.it

Get implementation details on using Node.js (server-side JavaScript), rather than Java technology, to develop systems of engagement. In this article, the IBM Extreme Blue team who developed a RESTful backend application using Node.js and MongoDB shares their thought process and recommendations.

In this article, we share lessons we learned in the process of developing a RESTful backend application using Node.js and MongoDB. We highlight our thought process in several high-level design and implementation decisions. We'll cover these topics:
* Leveraging NPM (Node Packaged Modules)
* Understanding asynchronous programming
* Structuring a large Express.js application's routing configuration
* Application-level logging
* Approaching data persistence and modeling
* Solving Passbook-specific challenges including cryptographic functions not supported by Node
* And we address subtle "gotchas" in hopes of expediting the learning process for those interested in Node.js and MongoDB development:
* Don't make assumptions about objects or their properties in a dynamically typed language
* Avoid implicit control flow
* Understand your dependencies' behavior


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

Getting MEAN With MongoDB and AngularJS

Getting MEAN With MongoDB and AngularJS | Development on Various Platforms | Scoop.it

MEAN is a full app development stack including MongoDB, Express, Node.JS and AngularJS. In this hour we'll visit with Valeri Karpov of MongoDB who first coined the term. He'll cover background on why he selected these components and why other developers might choose the same stack. From there, we'll chat with Ward Bell from IdeaBlade discussing how BreezeJS makes managing data simpler in large applications. Our last speakers are from StrongLoop. They'll present on how MEAN can work for mobile enterprise environments. We'll end with a short Q&A.


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

Building Multiplayer Games with Node.js and Socket.IO

Building Multiplayer Games with Node.js and Socket.IO | Development on Various Platforms | Scoop.it

With the release of the Ouya, Xbox One and PS4 this year, couch-based console gaming appears to be as popular as ever. Despite the proliferation of multi-player games available on mobile devices, and even the advent of multi-player experiences available on the web, sitting next to the person you’re playing a game with is still an irreplaceable experience. While experimenting with Node.js and the Socket.IO library, I found a perfect opportunity to not only learn some interesting new technologies, but also experiment with using the web and common devices (computers and mobile phones) to replicate a console-like gaming experience.

This article will give a brief overview of the fundamental concepts of the Socket.IO library in the context of building a multi-player, multi-screen word game. A web browser on a large screen device, such as a TV or computer will be the ‘console’ and mobile browsers will act as the ‘controllers’. Socket.IO and Node.js will provide the necessary wiring for all the browsers to share data and provide a cohesive, real-time game experience.


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

AppJS - SDK on top of nodejs to build desktop apps using HTML5/CSS/JS

AppJS - SDK on top of nodejs to build desktop apps using HTML5/CSS/JS | Development on Various Platforms | Scoop.it

AppJS is an SDK to develop desktop applications using Node.js melded with Chromium. With AppJS you can develop desktop tools and applications using the same libraries and knowledge used to build websites.

Using AppJS you don't need to be worry about coding cross-platform or learning new languages and tools. You are already familiar with HTML, CSS and Javascript. What is better than this stack for application development? Beside, AppJS uses Chromium at the core so you get latest HTML 5 APIs working. So relax and focus on the task your application should do.


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

The wondrous world of JavaScript

The wondrous world of JavaScript | Development on Various Platforms | Scoop.it

If you’re following the latest trends in the web development world, you might have noticed that the last years the popularity of JavaScript increased a lot. Lots of frameworks became popular like Google’sAngularJS, ember.js and of course Backbone.js.

One of the first of these “big” frameworks was Backbone.js. JavaScript code before that time was usually unstructured, contained a lot of spaghetti code and was hard to maintain.
Backbone.js gave you the possibility to follow the MVC (Model-view-controller) design paradigm, or in their case, MVP (Model-view-presenter).

Backbone.js gave you the possibility to divide your application in logical parts andprovided data binding. Only that wasn’t enough of course, because applications needed more components like:
* A module system
* Templating
* Data binding
* Data synchronisation
* Widgets
* Testing framework

And so, other frameworks were born, like: RequireJS, CommonJS, Component, AngularJS, Twitter Bootstrap, Flight, Hogan.js, QUnit, Jasmine, … (and I can probably go on for another hour).


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

Easy API Scaffolding with Simple-API and Node.js

Easy API Scaffolding with Simple-API and Node.js | Development on Various Platforms | Scoop.it

API’s are often a pain to build. There’s all kinds of moving pieces: routing, data parsing, serialization, database interactions, etc. For years I’ve struggled with writing web API’s in Node.js – there’s just so much complexity required in an API boilerplate. That’s why I wrote Simple API. Simple API is an incredibly easy to use module for writing web-based APIs in Node.js

I often hear people say that they’ve written a library that makes something “simple”, but in reality they’ve just made it a different kind of complex. In this article, I hope to prove that’s not the case with Simple API. This tutorial is going to teach you to write an API for a ToDo list, where the entire project is less than 300 lines of code. That’s the entire project – the API related files are less than 200 lines of code.


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

hapi - Server Framework for Node.js

hapi - Server Framework for Node.js | Development on Various Platforms | Scoop.it

A rich framework for building web applications and services. hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities.hapi enables developers to focus on writing reusable application logic instead of spending time building infrastructure. The framework supports a powerful plugin architecture for pain-free and scalable extensibility.

Hapi is a framework for rapidly building RESTful web services. Whether you are building a very simple set of RESTful services or a large scale, cache heavy, and secure set of services, hapi has you covered. Hapi will help get your server developed quickly with its wide range of configurable options.


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

Tutorial - Getting Started With Node.js, Express, MongoDB

Tutorial - Getting Started With Node.js, Express, MongoDB | Development on Various Platforms | Scoop.it

HE DEAD-SIMPLE STEP-BY-STEP GUIDE FOR FRONT-END DEVELOPERS TO GETTING UP AND RUNNING WITH NODE.JS, EXPRESS, JADE, AND MONGODBSET UP THE FULL STACK AND HAVE A WEBPAGE RUNNING IN 30 MINUTES. MAKE IT TALK TO YOUR DB IN ANOTHER 30.

In my experience, the "next level" tutorials out there seem about 30 levels further along. We go from "Hello, World!" to building out an entire blogging system with comments. Which is also great, but a lot of times those tutorials assume the reader has done a whole bunch of intermediate fiddling, and they often drop a bunch of big functions on you all at once. I tend to learn best by making lots of smaller, intermediate steps, and I don't think I'm the only one.

Well, good news, everyone! I've done the fiddling and read a bunch of tutorials and shouted at my command prompt until things finally worked. I have a web project up and running which uses Node.JS, the Express framework, the Jade HTML pre-processor, and MongoDB for data. I can read to and write from the DB. From there, the sky's the limit.

Here's the deal: I'm going to show you how to get all of this stuff set up. I'll be assuming that you're a front-end developer who knows HTML5/CSS3/JavaScript well enough that I don't have to explain those. If that's you, then this should be a solid primer.

 


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

Using Express.js for APIs

Using Express.js for APIs | Development on Various Platforms | Scoop.it

A few tips and libraries for creating and documenting RESTful APIs with Express.js.

These days I spend more time using Express for APIs that send nothing but JSON. In this post I’ll cover a few libraries and reminders to help keep your code organized and your API friendly for developers.

I’m assuming an API backed by MongoDB, and that we’re using Mongoose. Covering the basics of Mongoose is beyond the scope of this article, but I want to highlight a few lesser-known bits.


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

How Nodejs Makes Network Code More Testable

How Nodejs Makes Network Code More Testable | Development on Various Platforms | Scoop.it

I am currently working on a project called Cloak, which is a network layer for multiplayer HTML5 games that handles lobbies, rooms, chat, reconnection to games, and so on. Cloak has both a client and a server component and handles all the communication between them. Traditionally this would be a huge hassle to write automated tests for, but Node.js has made it easy. Our tests use Nodeunit to run the actual Cloak server and actual Cloak clients at the same time! For example, one test configures a server to automatically create rooms when two users connect, then fires up two clients, connects them both, and confirms that a new room was created for them.

I have always been in favor of writing the types of tests that are most valuable for the application they’re testing. What I just described might be called integration testing(as opposed to unit testing), and to me that is exactly the kind of testing Cloak needs in order to really build confidence in the correctness of the library. Integration testing can be quite challenging on many platforms. Consequently, I’m all the more pleased with my results doing integration testing for Cloak.


Via Jan Hesse
more...
No comment yet.