Bonnes Pratiques Web & Cloud
58.8K views | +0 today
Follow
Bonnes Pratiques Web & Cloud
Administration cloud et développement web
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'javascript'. Clear
Scooped by Mickael Ruau
Scoop.it!

State of JavaScript 2021 : React reste de loin le framework front-end le plus utilisé par les développeurs, mais en terme de satisfaction il est éclipsé par Solid et Svelte

State of JavaScript 2021 : React reste de loin le framework front-end le plus utilisé par les développeurs, mais en terme de satisfaction il est éclipsé par Solid et Svelte | Bonnes Pratiques Web & Cloud | Scoop.it
Mais en terme de satisfaction il est éclipsé par Solid et Svelte
Mickael Ruau's insight:

Créé en 1995, JavaScript est aujourd'hui le langage le plus populaire selon de nombreux baromètres. C'est également l'écosystème dans lequel on voit le plus de technologies naitre tous les jours. Comme conséquence, il est parfois très difficile de faire des choix ou de voir une technologie s'imposer comme la norme à moins d'avoir de puissants sponsors pour la propulser. Selon les catégories, certaines technologies arrivent toutefois à se distinguer. C'est dans le but d'identifier clairement ces dernières qu'entre en jeu le State of JavaScript, une enquête annuelle internationale sur l'écosystème JavaScript.

Les résultats de l'édition 2021 sont disponibles et nous présentons ici les points saillants.

L'enquête State of JavaScript de 2020 est issu d'une enquête auprès de 23 000 développeurs. 2021 était le résultat d'un peu plus de 16 000. Et bien que les États-Unis soient en tête, leur part de répondants au sondage est tombée à 14 % et la Russie a grimpé à la troisième place derrière l'Allemagne avec 4 %. La France a produit 4,2 % des réponses de l'enquête, ce qui correspond à 668 développeurs JavaScript.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Top Seven JavaScript Kanban Widgets - DZone Web Dev

Top Seven JavaScript Kanban Widgets - DZone Web Dev | Bonnes Pratiques Web & Cloud | Scoop.it
In this article, we are going to review popular JavaScript Kanban widgets that can be integrated into project management apps for effective task management.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Learning JavaScript Design Patterns

Learning JavaScript Design Patterns | Bonnes Pratiques Web & Cloud | Scoop.it
The classic JavaScript design patterns book, updated to ES2015+ syntax.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

10 JavaScript Frameworks You Should Know in 2021

10 JavaScript Frameworks You Should Know in 2021 | Bonnes Pratiques Web & Cloud | Scoop.it

Svelte is an open-source JavaScript framework written in Typescript. It converts the project to JavaScript at build time, not runtime. As a result, application development with Svelte is generally faster compared to other JavaScript frameworks. Companies like Codustry and Kontist use Svelte for their projects.
Pros

Uses less boilerplate code to get the same functionality as other frameworks.
Converts code into Vanilla JS.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Compile Time Safe Code - Java and JavaScript Examples - DZone Java

Compile Time Safe Code - Java and JavaScript Examples - DZone Java | Bonnes Pratiques Web & Cloud | Scoop.it
This post covers how to avoid errors before running the application, explains what compile-time safe is and how to use it, and example with Java full-stack application.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Short-Circuiting in JavaScript - DZone Web Dev

Short-Circuiting in JavaScript - DZone Web Dev | Bonnes Pratiques Web & Cloud | Scoop.it


In JavaScript, short-circuiting refers to the partial evaluation of expressions to avoid unnecessary computation. This blog post describes the short-circuiting operators and assignments in JavaScript and how to use them.
No comment yet.
Rescooped by Mickael Ruau from Time to Learn
Scoop.it!

Cet outil permet de générer des boutons "Add-to-Calendar"

Cet outil permet de générer des boutons "Add-to-Calendar" | Bonnes Pratiques Web & Cloud | Scoop.it
Add-to-Calendar Button est un snippet JavaScript pratique, qui permet de créer des boutons pour ajouter des événements à leurs calendriers.

Via Frédéric DEBAILLEUL
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Stimulus Handbook

The three core concepts in Stimulus

Stimulus rolls up the best of those patterns into a modest, small framework revolving around just three main concepts: Controllers, actions, and targets.

It’s designed to read as a progressive enhancement when you look at the HTML it’s addressing. Such that you can look at a single template and know which behavior is acting upon it.

Mickael Ruau's insight:

Before I get to Stimulus, our new modest JavaScript framework, allow me to recap the proposition of Turbo.

 

Turbo descends from an approach called pjax, developed at GitHub. The basic concept remains the same. The reason full-page refreshes often feel slow is not so much because the browser has to process a bunch of HTML sent from a server. Browsers are really good and really fast at that. And in most cases, the fact that an HTML payload tends to be larger than a JSON payload doesn’t matter either (especially with gzipping). No, the reason is that CSS and JavaScript has to be reinitialized and reapplied to the page again. Regardless of whether the files themselves are cached. This can be pretty slow if you have a fair amount of CSS and JavaScript.

 

To get around this reinitialization, Turbo maintains a persistent process, just like single-page applications do. But largely an invisible one. It intercepts links and loads new pages via Ajax. The server still returns fully-formed HTML documents.

This strategy alone can make most actions in most applications feel really fast (if they’re able to return server responses in 100-200ms, which is eminently possible with caching). For Basecamp, it sped up the page-to-page transition by ~3x. It gives the application that feel of responsiveness and fluidity that was a massive part of the appeal for single-page applications.

 

But Turbo alone is only half the story. The coarsely grained one. Below the grade of a full page change lies all the fine-grained fidelity within a single page. The behavior that shows and hides elements, copies content to a clipboard, adds a new todo to a list, and all the other interactions we associate with a modern web application.

Prior to Stimulus, Basecamp used a smattering of different styles and patterns to apply these sprinkles. Some code was just a pinch of jQuery, some code was a similarly sized pinch of vanilla JavaScript, and some again was larger object-oriented subsystems. They all usually worked off explicit event handling hanging off a data-behavior attribute.

 

While it was easy to add new code like this, it wasn’t a comprehensive solution, and we had too many in-house styles and patterns coexisting. That made it hard to reuse code, and it made it hard for new developers to learn a consistent approach.

 

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Secret Behind JavaScript Performance: V8 & Hidden Classes | by Chameera Dulanga | Bits and Pieces

Secret Behind JavaScript Performance: V8 & Hidden Classes | by Chameera Dulanga | Bits and Pieces | Bonnes Pratiques Web & Cloud | Scoop.it
Today, JavaScript has become one of the most used languages for web development. However, it has to pass so many hurdles to climb up to this stage. One such milestone is behind its execution speed…
Mickael Ruau's insight:

When you create a new object, the V8 engine will create a new hidden class for that. Then, if you modify that same object by adding a new property, the V8 engine will create a new hidden class with all the properties from the previous class and include the new property.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

JavaScript - Apprendre le développement web | MDN

JavaScript - Apprendre le développement web | MDN | Bonnes Pratiques Web & Cloud | Scoop.it
JavaScript est un langage de programmation qui vous permet de mettre en œuvre des éléments complexes sur des pages Web (une page Web contenant plus que de simples informations statiques). Chaque fois qu'une page affiche des mises à jour de contenu en temps réel, des cartes interactives, des animations graphiques 2D / 3D ou un juke-box vidéo défilant, etc. — vous pouvez parier que JavaScript est probablement impliqué.
Mickael Ruau's insight:

 

 

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

The 13 Best Telosys Alternatives (2021)

The 13 Best Telosys Alternatives (2021) | Bonnes Pratiques Web & Cloud | Scoop.it
What are the best Telosys alternatives? A list based on our research ✅jHipster, ✅Spring Roo, ✅cloudlayer.io, ✅CUBA.platform, ✅OpenXava, ✅PHP Generator for MySQL, and ✅Codesmith.
Mickael Ruau's insight:

elosys is a lightweight code generator designed to reduce developers workload and to bootstrap any kind of project.

Telosys offers a simple and pragmatic approach for code generation.

Telosys can be used to generate code for any type of language (Java, Python, PHP, JavaScript, C #, HTML, Scala, Go, etc.) with any type of framework (AngularJS, JPA, Spring MVC, etc). All templates are customizable, so you generate exactly what you want.

 

Pricing:
  • Open Source
Platforms:
  • Cross Platform
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Tree-Shaking: A Reference Guide —

“Tree-shaking” is a must-have performance optimization when bundling JavaScript. In this article, we dive deeper on how exactly it works and how specs and practice intertwine to make bundles leaner and more performant.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How to Accelerate JavaScript Development - DZone Web Dev

How to Accelerate JavaScript Development - DZone Web Dev | Bonnes Pratiques Web & Cloud | Scoop.it
Learn how to use tools such as Webpack, Gatsby, and Materialize to accelerate the JavaScript development process and bring your skills to the next level.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

JavaScript for impatient programmers (ES2022 edition)

JavaScript for impatient programmers (ES2022 edition) | Bonnes Pratiques Web & Cloud | Scoop.it

This book makes JavaScript less challenging to learn for newcomers, by offering a modern view that is as consistent as possible.

Highlights:

  • Get started quickly, by initially focusing on modern features.
  • Test-driven exercises and quizzes available for most chapters.
  • Covers all essential features of JavaScript, up to and including ES2022.
  • Optional advanced sections let you dig deeper.

No prior knowledge of JavaScript is required, but you should know how to program.

A chapter in the book explains in detail what is and isn’t included.

 

Mickael Ruau's insight:

Read all essential chapters

  • Preview of book:
    • Online: HTML (all chapters, except three bonus chapters)
    • Files: PDF, EPUB, MOBI (50%)
  • Preview of quiz web app: online (50%)
  • Preview of test-driven exercises: ZIP file (50%)

Also available: TOC of complete book.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Une backdoor invisible en JavaScript

Une backdoor invisible en JavaScript | Bonnes Pratiques Web & Cloud | Scoop.it
Une backdoor invisible en JavaScript
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Connaître les technologies « cachées » d’un site - 01Script

Connaître les technologies « cachées » d’un site - 01Script | Bonnes Pratiques Web & Cloud | Scoop.it
Voici une liste des services Web et d’extensions pour Google Chrome et Firefox permettant de savoir facilement quelles technologies, framework, CMS, bibliothèque (JavaScript, CSS, …), etc. utilise un site Web. « Chrome Sniffer » est une extension pour le navigateur Google Chrome qui permet de connaitre les frameworks et CMS (Joomla, WordPress, Drupal, …), service […]
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Comment activer / désactiver JavaScript dans mon navigateur? | Rapide et facile

Comment activer / désactiver JavaScript dans mon navigateur? | Rapide et facile | Bonnes Pratiques Web & Cloud | Scoop.it
Instructions et explications pratiques pour rendre disponible (activer)✅ JavaScript dans un navigateur Web.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

jsDelivr – Un CDN pour vos bibliothèques Javascript (et autres petites choses)

jsDelivr – Un CDN pour vos bibliothèques Javascript (et autres petites choses) | Bonnes Pratiques Web & Cloud | Scoop.it
jsDelivr est une initiative de jimaek qui souhaite concurrencer de manière frontale le service de bibliothèques hébergées de Google.
Mickael Ruau's insight:

Le service est sponsorisé entre autres par Cedexis, Cloudflare, MaxCDN, ce qui assure une disponibilité et des temps de réponse à toute épreuve grâce au multi-CDN.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Refactor JavaScript Safely Without Test Coverage - DZone Web Dev

Refactor JavaScript Safely Without Test Coverage - DZone Web Dev | Bonnes Pratiques Web & Cloud | Scoop.it
Taking tiny steps using automated refactorings can help, but ideally, this method is combined with high test coverage. Let's discuss how and why that is.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs

swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs | Bonnes Pratiques Web & Cloud | Scoop.it
Javascript library to connect to swagger-enabled APIs via browser or nodejs - GitHub - swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs
Mickael Ruau's insight:

Swagger Client is a JavaScript module that allows you to fetch, resolve, and interact with Swagger/OpenAPI documents.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

10 ES6 Feature everyone should use | by Jahid Apu

10 ES6 Feature everyone should use | by Jahid Apu | Bonnes Pratiques Web & Cloud | Scoop.it
Our code occasionally produces some line value. For example, 20 + 20 is equal to 40. Again some codes only take action. Such as conditional statements. These do not produce any value; take certain…
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Shipping Less JavaScript with Astro Static Site Bundler | by Madushika Perera | Bits and Pieces

Shipping Less JavaScript with Astro Static Site Bundler | by Madushika Perera | Bits and Pieces | Bonnes Pratiques Web & Cloud | Scoop.it

Astro is a modern static site builder that allows you to deliver applications with less JavaScript. As a developer, I found this very interesting since it reduces the bundle sizes without affecting the application features.

However, it’s only been days since Astro was released, and I wanted to give it a try. So in this article, I will explore its core features and explain how it reduces the bundle size with relevant examples.

 
Why We Need Astro?

JavaScript frameworks and libraries help to speed up modern web development.

However, each time we install a new library, the bundle size of our project will increase. Eventually, it affects the application loading time, causing performance issues.

The following graph by HTTP Archive Org shows you, in general, how JavaScript bundle sizes grew over the years.

Mickael Ruau's insight:

Astro uses a technique called Partial Hydration to reduce the bundle size.

It loads the necessary JavaScript to the required component (including the dependencies) while keeping the rest of the pages static.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Les Fondamentaux du Web et le Kit de Démarrage Web de Google

Les Fondamentaux du Web et le Kit de Démarrage Web de Google | Bonnes Pratiques Web & Cloud | Scoop.it
Google a publié un certain nombre de lignes directrices et de fragments de code réutilisable pour la conception de sites responsive multi-plateformes.
Mickael Ruau's insight:

Google a publié un certain nombre de lignes directrices et de fragments de code réutilisable pour la conception de sites responsive multi-plateformes.

Conscient des défis rencontrés par les développeurs à cause de la grande diversité des appareils, en particulier les mobiles, Google a publié Les Fondamentaux du Web, un ensemble de lignes directrices et de meilleures pratiques pour le développement moderne web. Les Fondamentaux du Web incluent des conseils avec des fragments de HTML, de CSS et de JavaScript dans les domaines suivants :

  • Outils. Sélection d'un éditeur, mise en place des outils pour développeurs, mise en place d'un processus de build, débogage avec les DevTools de Chrome, test sur appareil, sur émulateur et dans le cloud, etc.
  • Mise en page. Google recommande la Conception Responsive de Site Web en utilisant des Requêtes Média CSS3 avec de multiples points d'arrêt pour les différentes tailles d'écran, des modèles web responsive - Mise en Page Fluide, Suppression de Colonne, Décalage de Mise en Page, Hors Canvas, plus un certain nombre de modèles de navigation et d'actions - App, Barre d'Onglets et du Bas, Navigation Tiroir.
  • Formulaires & Entrée Utilisateur. Sélection de formulaires qui fonctionnent sur les appareils mobiles, traitement de validation en temps réel, traitement du contact et implémentation des mouvements propriétaires.
  • Images, Audio, Vidéo. Conseils sur l'utilisation d'<img>, de background CSS, de SVG pour les icônes, problématiques de performance d'image, traitement des vidéos, anciennes plateformes, problématiques d'accessibilité, etc.
  • Performance. Optimisation du Chemin de Rendu Critique, utilisation de PageSpeed, réglage de la performance du contenu par l'élimination des téléchargements inutiles, optimisation de l'encodage et des images, utilisation du caching HTTP, etc.
  • Capteurs d'Appareil et Capacités. Conseil pour l'accès à l'emplacement de l'utilisateur, orientation et mouvement de l'appareil, passage d'appels.

En sus des lignes directrices, Google fournit le Kit de Démarrage Web (Web Starter Kit ou WSK), un paquetage comprenant du code réutilisable et des outils pour la création de sites web multi-appareils. Inspiré par Mobile Boilerplate, le Kit de Démarrage Web comprend du code pour les pages HTML mobile, la mise en page responsive, un guide pour la conception visuelle de composants, et l'outil de build optionnel gulp.js.

 

Le code relatif aux Fondamentaux du Web et le code du Kit de Démarrage Web sont tous deux open source et disponibles sur GitHub.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

TogetherJS

TogetherJS | Bonnes Pratiques Web & Cloud | Scoop.it

TogetherJS was a free, open-source JavaScript library that added collaboration features and tools to users’ websites.

Mickael Ruau's insight:

https://github.com/mozilla/togetherjs

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

7 JavaScript Best Practices to Improve Code Quality - DZone Java

7 JavaScript Best Practices to Improve Code Quality - DZone Java | Bonnes Pratiques Web & Cloud | Scoop.it
Here are some of the latest ECMAScript features, and by induction, JavaScript and Node.js that you can make use of to write cleaner, more concise, and mor
No comment yet.