Posts

Showing posts with the label programming

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 operat...

[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 ...

[Flutter] Useful commands and tips

Image
Here is a list of useful Flutter's commands / tips when you start developing with (in progress...). ( To find a topic try to search a keyword on this webpage... will be updated through time ) Create a new project in visual Studio Code >  CMD + Shift + P to display action palette > flutter: New project Update Flutter to the latest version >  flutter upgrade Check actual Flutter version >  flutter --version Flutter change of (git) channel (master, dev, beta stable) >  flutter channel beta > flutter channel master > flutter pub cache repair //To perform a clean reinstall of the packages in your system cache, use pub cache repair > flutter clean //flutter clean will delete the /build folder Activate / Deactivate web support for a project >  flutter config --no-enable-web >  flutter config --enable-web Disable "debug banner" (MaterialApp's debugShowCheckedModeBanner) // This widget is the root of your application. @ override W...