The Basics of Object-Oriented JavaScript

[Fuente: http://code.tutsplus.com/tutorials/the-basics-of-object-oriented-javascript–net-7670 ] Over recent years, JavaScript has increasingly gained popularity, partly due to libraries that are developed to make JavaScript apps/effects easier to create for those who may not have fully grasped the core language yet. While in the past it was a common argument that JavaScript was a basic language and was very ‘slap […]

Browserify handbook

[Fuente: https://github.com/substack/browserify-handbook] introduction This document covers how to use browserify to build modular applications. browserify is a tool for compiling node-flavored commonjs modules for the browser. You can use browserify to organize your code and use third-party libraries even if you don’t use node itself in any other capacity except for bundling and installing packages with npm. The module system that […]

Writing modular javascript

[Fuente: http://addyosmani.com/writing-modular-js/] Writing Modular JavaScript With AMD, CommonJS & ES Harmony Modularity: The Importance Of Decoupling Your Application When we say an application is modular, we generally mean it’s composed of a set of highly decoupled, distinct pieces of functionality stored in modules. As you probably know, loose coupling facilitates easier maintainability of apps by removing dependencies where possible. When this […]

GIT: submodules

[Fuente: http://git-scm.com/book/en/v2/Git-Tools-Submodules] Submodules It often happens that while working on one project, you need to use another project from within it. Perhaps it’s a library that a third party developed or that you’re developing separately and using in multiple parent projects. A common issue arises in these scenarios: you want to be able to treat […]

Facebook SDK API

Fuente: https://developers.facebook.com/docs/javascript/quickstart/v2.3 Quickstart: Facebook SDK for JavaScript The Facebook SDK for JavaScript provides a rich set of client-side functionality that: Enables you to use the Like Button and other Social Plugins on your site. Enables you to use Facebook Login to lower the barrier for people to sign up on your site. Makes it easy to call into Facebook’s Graph API. Launch […]

AngularJS: Modules

[Fuente: https://docs.angularjs.org/guide/module] What is a Module? You can think of a module as a container for the different parts of your app – controllers, services, filters, directives, etc. Why? Most applications have a main method that instantiates and wires together the different parts of the application.Angular apps don’t have a main method. Instead modules declaratively […]

AngularJS: Directive resolve dependencies

If we want to wait for some server data for directive loading this is the pattern: angular.module(‘busuuApp.translations’) .directive(‘trs’, [‘trs’,’$http’, ‘$q’, ‘wordbee’, function(trs,$http, $q,wordbee,wordbeeStrings) { ‘use strict’; var translateArgs = function(str) { try { if (str[0] != ‘”‘ && str[0] != “‘”) { return trs.call(null, str); } else { // Strips the ” or ‘ on […]

AngularJS UI router

[Fuente: https://github.com/angular-ui/ui-router] The de-facto solution to flexible routing with nested views AngularUI Router is a routing framework for AngularJS, which allows you to organize the parts of your interface into a state machine. Unlike the $route service in the Angular ngRoute module, which is organized around URL routes, UI-Router is organized around states, which may optionally have routes, as well as […]

React: A javascript library for building user interfaces

[Fuente: http://facebook.github.io/react/index.html] 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 […]

Cross Site Request Forgery (CSRF)

[Fuente: http://es.wikipedia.org/wiki/Cross_Site_Request_Forgery] El CSRF (del inglés Cross-site request forgery o falsificación de petición en sitios cruzados) es un tipo de exploit malicioso de un sitio web en el que comandos no autorizados son transmitidos por un usuario en el cual el sitio web confía. Esta vulnerabilidad es conocida también por otros nombres como XSRF, enlace hostil, ataque de un click, cabalgamiento de sesión, y ataque automático. Ejemplo Un ejemplo muy clásico […]