Step 4: The Repository (The Database Keeper)
The final stop. This file only cares about storage. It takes the data and writes it directly into the physical database (like SQL or MongoDB).
Every single thing that happens on an app—like clicking a button, viewing a profile, or deleting a photo—follows the exact same simple assembly line inside the server.
Step 1: The Router(The Traffic Cop)
The request arrives from the internet. The Router reads the web link and
Step 3: The Service (The Brain)
This file handles all the rules of your app. It doesn't know anything about the web or internet links. It only checks logic:
- "Is this user allowed to do this?"
- "Is this item still in stock?"
Go Interface,
Learning the syntax of it takes maybe minute, if you are not new to programming.
The magic start when you have to get into knowing
- common patterns
- mistakes and
- industry standards
looking to connect people on @X
if you are into
- backend dev.
- AI powered application
- Passionate about linux
- enjoy golang🤪
Say Hi or drop what you're working on looking to follow active ones
ngl
when learning you should build stuffs
i mean you can watch 1000+ hours to write simple calculator app but it won't compare with building it yourself
you can achieve in 10 years than anyone who lived their life being called smart or gifted. this is a pattern you will see more and more people in who were "Geniuses""Smart" growing up to be idk, average.
The older you get the more you realize life rewards consistency more than anything.
You can be a retarded monkey with a brick for brain for the first 20 years of your life. but if you get your shit together and decided to fix things.
i was reading through postgres vs mysql ENUM implementation details. postgres treats ENUMs as actual global custom types (CREATE TYPE), while mysql treats them as column-specific constraints.Both still completely ruin data portability and cross-database replication though.
Do you know in SQL DBs(postgres, mysql) how index works or created?
Most databases automatically create a structure called a B-Tree Index(Balanced True). Instead of a flat list it organizes the data like a family tree or a hierarchy