Coding Notes

MISC

By Rae

MISC

Git

VS Code

Notes

  • Client requests to see site --> server sends client's device HTML, CSS, JS, Assets, Fonts (some websites won't send fonts, because they're using a web-safe font)
  • Git VS Github
    • Git - Version control system
    • Git - Runs locally on your own machine
    • Git - Helps keep a history of changes you've made to your project
    • Github - Online platform that stores git repositories (folder of code your tracking changes of)
    • Github - Runs online in cloud
    • Github - Helps share your code (and history of changes) with others
  • alt + shft + F organizes code indents in VS Code.
  • You can drag and drop HTML file into browser and it will show its content in the browser.
  • ctrl + d = highlights all similar text and changes the appropriate text.
  • SSH and GPG use Public Key Cryptography
  • Public/Private Keys
    • a method for securely passing data from one place to another.
    • Provides a very high level confidence that the data is coming from the place it claims to be coming from.
  • The client and the server
    • The client is the part of a web application that users interact with directly.
    • Examples of the client are the browser, mobile apps, smart watch, ect.
    • The server is a remote machine which handles data and dends back information or content to the client in response to requests.
    • Typically the relationship between the client and server is the client sends a request to the server and the server sends a response back.
    • REST API
      • REST stands for Representational State Transfer
      • A REST API allows a client to talk to a server to get access to (and possibly edit or add to) some data stored remotely. A client can go to a server and get data.
      • Some examples: Weather data, currency exchange rates, stock prices.
    • Controlling communication between client and server
      • Browser's dev tools Network Tab (ctrl + shift + i on windows)
      • CURL (terminal)
      • VS Code extensions
      • Postman