Archives de
Auteur : Erik Shea

Introduction au langage de programmation Kotlin

Introduction au langage de programmation Kotlin

Dans le cadre du développement Android via Android Studio, je me suis rabattu sur deux choix pour le langage : Java car je le connais déjà, et Kotlin car c’est actuellement le langage le plus populaire pour cet environnement1. J’ai choisi ce dernier, car j’étais intrigué par son originalité et sa réputation de langage propre et bien conçu. Java et Android Par défaut, Android Studio propose une version de Java basée sur la dernière version non-commerciale : Java 8. Il n’est…

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

Embedded Databases

Embedded Databases

An embedded database doesn’t need a server: data is stored on the same machine as the application that uses it (typically in a sub-folder of the application). Advantages Extremely fast read/write operations. Not dependent on a database hosting service, avoiding all associated costs. No need for a network connection because queries are executed locally. Drawbacks The database is not shared between different machines, and is therefore limited to storing local data. Execution speed of queries is harder to predict because…

Lire la suite Lire la suite

The <canvas> element

The <canvas> element

<canvas> is an HTML5 element that allows the creation and manipulation of graphical elements (paths, shapes, text, bitmap images) via a scripting language, most often JavaScript. All modern browsers support it natively, and can render it using hardware acceleration. To start, we add the following tag to the page, specifying the width and height attributes: Drawing lines Let’s draw a primitive C using two lines: Drawing a shape Now, let’s add a D using the context method arc. It accepts the following arguments: Drawing text Next up, we’ll write an A using…

Lire la suite Lire la suite