Skip to content

Instantly share code, notes, and snippets.

View pranjaljately's full-sized avatar

Pranjal Jately pranjaljately

View GitHub Profile
@hofmannsven
hofmannsven / README.md
Last active May 3, 2024 15:30
Git CLI Cheatsheet
@taniarascia
taniarascia / auth.md
Last active February 11, 2024 23:16
JavaScript Authentication & Authorization Book/Course

Authentication in Real-World Web Apps with JavaScript

Outline of ideas, concepts to cover, potential projects to write.

Setup Idea

  • Book with a video for each chapter.

Prerequisites/Overview

@wesbos
wesbos / commit-msg
Created July 4, 2016 18:55
ESLint 3.0 Git Pre Commit Hook
#!/bin/bash
files=$(git diff --cached --name-only | grep '\.jsx\?$')
# Prevent ESLint help message if no files matched
if [[ $files = "" ]] ; then
exit 0
fi
failed=0
for file in ${files}; do
REST APIs GraphQL
one URL serves only one request which leads to 100s of URL to maintan One URL to serves every request
Multiple roundtrip to get various kinds of data Single trip to get various combinations of data
Unwanted data travel from server to client (Wastage of bandwidth) Only required data is travelled which make response light and minimum number
No flexibility Much more flexible
Keeps Backend and frontend team tightly coupled Backend and frontend team are loosely coupled
Change in structure of APIs needs the client to change as well Change in structure of API is not needed in client side