Archives de
Catégorie : Javascript

AddEventListener – Javascript

AddEventListener – Javascript

An event listener is a procedure in JavaScript that waits for an event to occur. The simple example of an event is a user clicking the mouse or pressing a key on the keyboard. The addEventListener() is an inbuilt JavaScript function which takes the event to listen for, and a second argument to be called whenever the described event gets done. Any number of event handlers can be added to a single element without overwriting existing event handlers. Doing different…

Lire la suite Lire la suite

Three.js

Three.js

Three.js Requirement : Basics knowledge on JavaScript. Tips: To begin a strong and fast project you can use vite.js but it needs vue.js. By this way you can import easily and have a render without recharging the page. To resume, Vite is a local server for developers. Vite.js: https://vitejs.dev/ First of all, what are the basics of Three.js ? Based on : Java script. What that : It’s a langage on object. What for ? To build a scene. How ? There are three important’s…

Lire la suite Lire la suite

React Native for Mobile apps

React Native for Mobile apps

React Native is one of the most used language in native mobile app development. Created by Facebook, it runs on the same library as React JS. React Native combines the best parts of native development with React, a JavaScript Library (check my article https://cda.needemand.com/2020/12/07/react-js/ for more information on React JS).Over the past few years, the interest for this language has been increasing nonstop, puting it as one of the best solution for mobile apps, but WHY ?? 1/ Fast technology…

Lire la suite Lire la suite

jQuery in modern web development

jQuery in modern web development

jQuery is a JavaScript library that aims to simplify DOM manipulation, animations, ajax, and event handling. Some examples of jQuery syntax compared to vanilla JavaScript Executing code after the page has finished loading Vanilla Javascript: jQuery: Querying items, and adding a class to all of them Vanilla Javascript: jQuery: Adding a click handler to a div that progressively increases its width by 100px Vanilla Javascript: jQuery: The past When jQuery came out in 20061, ECMAScript (the JavaScript standard implemented by…

Lire la suite Lire la suite

Angular

Angular

The most popular JS framework Angular is a JavaScript framework developed by Google in 2009 and recognized as one of the most popular and complete frameworks. It has received high praise from the developer community. According to the StackOverflow 2019 survey, 30.7% of software engineers are now using AngularJS and the new Angular 2+ version to create user interfaces. Since the start of 2019, the Angular developer community has grown by 50% compared to 2018, as reported in NG-Conf 2019….

Lire la suite Lire la suite

Babel is a JavaScript compiler Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments. Here are the main things Babel can do for you: Transform syntax Polyfill features that are missing in your target environment (through @babel/polyfill) Source code transformations (codemods) And more! 0 0

Vue.js

Vue.js

Créer des applications web dynamiques avec VueJS VueJS a pour objectif de faciliter la création d’applications web dynamiques via la création de composants. Comme Angular et ReactJS, VueJS s’intègre parfaitement et facilement à d’autres technologies, CMS et frameworks. Par exemple, le site de Laravel, Laracasts, IBM, Celtra utilisent VueJS pour une partie de leur site. Pourquoi utiliser VueJS? VueJS propose de très nombreux avantages pour les utilisateur d’où son utilisation importante aujourd’hui ! 1. Légèreté et rapidité ! VueJS est le framework JS le plus léger du marché en effet, l’application Vue 2.0 complète, compilateur…

Lire la suite Lire la suite

AJAX

AJAX

AJAX stands for from Asynchronous JavaScript And XML.It’s not a programming language but rather corresponds to a set of techniques using various technologies to send and retrieve date to and from a server asynchronously, meaning without having to reload the whole page. At the begining, AJAX used the following technologies that gave it its name : -XML for data exchange with the server.-XMLHttpRequest object for asynchronous communication.-JavaScript to display dynamically and allow the user to interact with new information.-HTML and…

Lire la suite Lire la suite

Sécurité en Javascript

Sécurité en Javascript

Ne pas faire confiance à Javascript Le code Javascript utilisé pour une page web est facilement visible par tout le monde, il suffit d’inspecter le code pour le voir. Dans le cas d’une utilisation de login et surtout d’un mot de passe, intégrer ce mot de passe en clair directement dans le code est une erreur fatale. En effet, comme dit plus haut, tout le monde peut voir le code Javascript et donc les informations confidentielles pouvant être inscrites dans…

Lire la suite Lire la suite

EMBER

EMBER

Ember.js est un cadre JavaScript productif et éprouvé pour la création d’applications web modernes. Il comprend tout ce dont vous avez besoin pour créer des interfaces utilisateur riches qui fonctionnent sur n’importe quel appareil. Pour ce faire, il offre aux développeurs de nombreuses fonctionnalités essentielles pour gérer la complexité des applications web modernes, ainsi qu’une boîte à outils de développement intégrée qui permet une itération rapide. Il permet aux développeurs de créer des applications web monopage supportant les montées en…

Lire la suite Lire la suite