Dcode
167 subscribers
162 photos
20 videos
5 files
113 links
I'm Dave , the CLI guy
Download Telegram
Have you wondered why localhost starts with http:// and your deployment starts with https://?
If you’re learning web dev, this difference shows up pretty early—and it feels confusing at first. Like… why is my local app “insecure” but the moment I deploy it, everything suddenly has a lock 🔒?
Let’s break it down without the boring textbook vibes.
Localhost is just you talking to yourself
When you use http://localhost:3000, your browser is talking to your own machine.
No internet involved
No strangers listening
No Wi-Fi snoopers
No attackers in the middle
It’s literally:
browser → your computer → browser


Because of that, encryption doesn’t really matter. Setting up HTTPS locally also means dealing with certificates, keys, warnings, and general pain—so most dev tools just keep it simple and use HTTP.
And that’s totally fine.
Deployed apps live in the wild
Now compare that to a deployed app.
Your request goes:

your device → ISP → routers → servers → data centers → server

That’s a lot of places where someone could:
Read your data
Modify it
Pretend to be your server
So production apps use HTTPS:
Data is encrypted
Server identity is verified
Browsers trust it
Users feel safe
That little lock icon actually matters here.
HTTPS doesn’t mean “this site is perfect”
Quick reality check:
HTTPS only means:
Your connection is secure in transit
It does not mean:
The backend has no bugs
The site can’t be hacked
The app is “well written”
You can have:
Bad code over HTTPS
Secure connection to a broken app
Still, HTTPS is non-negotiable in production.
Can localhost use HTTPS?
Yep. You can do:
https://localhost
People usually do this when:
Testing auth (cookies, OAuth)
Working with payments
Mimicking production closely
But for normal development? 👉 HTTP on localhost is completely okay
The simple takeaway
localhost → HTTP (safe enough, fast, easy)
Deployed app → HTTPS (required, secure, trusted)
HTTP isn’t “bad” — it’s just not meant for the public internet
Once you deploy, encryption stops being optional.
And that’s the whole story—no mystery, no magic 🔐
👍2🔥2
This media is not supported in your browser
VIEW IN TELEGRAM
If tele compete this competition, they'll be champion
Dcode
If tele compete this competition, they'll be champion
But fr tho

If there is bad ux competition


What u gonna do
The main benefit of being a Linux user—especially an Arch user—is the ability to customize shortcuts and keymaps.
For example, I remapped:
Super (Windows) + F → Firefox
Super + T → Telegram
Super + D → WhatsApp
Super + W → Close window
Super + Q → Terminal
And more

For every app you're just 1 key away
🔥3
I use arch btw
🔥2🤔2
Media is too big
VIEW IN TELEGRAM
Miles Munroe...the legend
Some dad jokes for u
😁3
Here is another one
😁4😭2
This media is not supported in your browser
VIEW IN TELEGRAM
Yk , my humour is broken. I still laugh from this video
😁4
Morning
🔥1