Posts

Showing posts with the label Javascript

GraphQL vs REST: A Comparative Analysis

Image
  GraphQL vs REST: A Comparative Analysis Introduction In the world of web development, APIs (Application Programming Interfaces) are essential for enabling communication between different software systems. The two dominant paradigms for building APIs are REST (Representational State Transfer) and GraphQL. While REST has been the industry standard for many years, GraphQL is rapidly gaining traction as a more flexible and efficient alternative. This article will compare the two technologies, highlighting their advantages and disadvantages. REST: Overview and Characteristics REST is an architectural style for designing networked applications. It relies on stateless, client-server communication, typically over HTTP, and uses standard HTTP methods (GET, POST, PUT, DELETE) to perform CRUD (Create, Read, Update, Delete) operations. RESTful APIs expose resources (e.g., users, posts, comments) as URIs (Uniform Resource Identifiers) and use HTTP status codes to indicate the result of operations

[GraphQL] Quick Presentation for beginners + example

Image
  What is GraphQL? GraphQL is a query language for APIs and a runtime for executing those queries. It is designed to give clients exactly the data they need and nothing more. Unlike traditional REST APIs, which often require multiple requests to fetch data from different endpoints, GraphQL allows you to retrieve all necessary data in a single, structured query. (See an example of using GraphQL below) Origin of GraphQL GraphQL was developed by Facebook in 2012 to meet the needs of its mobile applications, which required a more efficient way to fetch and manipulate data. In 2015, Facebook open-sourced GraphQL, allowing the developer community to benefit from this revolutionary technology. Since then, GraphQL has grown in popularity and is now used by many large companies, including GitHub, Shopify, and Twitter. Tools to Use with GraphQL To get started with GraphQL, here are some popular tools and libraries that can help: GraphQL.js : The reference implementation for building GraphQL serv

Set your browser on Fire with P5.js

Image
This post is made for those (like me) who like image processing , web development and maybe, for those who want to learn new programming technics ... - I will make you discover p5.js , a javascript library specialized in graphical creation for your web browser ! - I will also talk about the the Youtube channel "The Coding Train" presented by Daniel Shiffman. A lot of its videos are based on P5.js. It was for me a great source of inspiration and made me discover javascript (because I'm a newbie with JS...) So I'm pretty sure, you will learn a lot too... - Finally I will present you my personnal example of what I did with P5.js. It's about an old retro fire effect (used in demoscene few years ago) :) So let's begin with p5.js ! I- What is P5.js ? a- Presentation As I mentionned it previously, P5.js is a graphical Javascript library. With it, you will be able to make great effects in your web pages in a few minutes.  This lib

A Web Game in an Hour

Want to learn more about web latest technologies with fun? You can have a look in here : https://msdn.microsoft.com/en-us/magazine/dn913185.aspx . You will build a 2D game using HTML, Javascript & CSS. It could be a good starting point for people that want to learn those technologies.