Let’s say I’m trying to learn a programming topic like self hosting. Is it better to in a way that DIY first or better to learn in a way that helps you a lot with magic
For example, nginx vs caddy. Docker vs manually building your project and running it with systemd etc.
Assume I want to learn and deepen my technical skills, which way should I start first?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Short answer
If your main goal is to deepen your technical skills, do the “manual” way at least once, then automate.
Think of it like learning to drive stick before hopping in a Tesla: you’ll appreciate how things work under-the-hood, and you’ll be able to fix them when the auto-pilot glitches.
Long(ish) answer
Why start manual first?
• Mental model – Doing it the hard way forces you to learn the moving parts: ports, processes, permissions, logs, networking, TLS, etc.
• Debug super-powers – When something breaks inside the “magic” wrapper later, you’ll know where to look.
• Transferable skills – systemd, Firewalld/iptables, logrotate, service hardening … they show up everywhere, not just on a home lab.
Why switch to magic after?
• Repetition gets boring – Once you’ve proved you can hand-craft a reverse-proxy or build from source, let tools remove the tedium.
• Reliability & security – Docker’s immutability or Caddy’s auto-renewing Let’s Encrypt certs reduce the “oops, I forgot” factor.
• Time – You get more cycles to play with new ideas instead of typing the same 14 commands again.
Side-by-side comparison
Task
Low-level / DIY
Higher-level / “Magic”
Reverse-proxy
nginx + certbot + cron
Caddy (auto HTTPS, single file)
App process mgmt
systemd service units
Docker + docker-compose / Kubernetes
Upgrades
manually recompile, restart
docker pull && docker-compose up -d
TLS renewal
certbot renew timer
Caddy does it for you
Debugging
log files in /var/log, journalctl
docker logs, but still need the basics if container fails
Learning depth
🔥 High
Moderate (unless you dig into the internals)
Day-to-day effort
🛠️ More typing
Less typing
Suggested learning path
Step 0: Pick a tiny real project (e.g., personal blog written in Go or Flask).
Bare-metal first (one weekend)
bash
sudo apt update && sudo apt install nginx ufw certbot python3-certbot-nginx
# Point a domain to your box ➜ configure nginx server block ➜
sudo certbot --nginx -d example.com
# Create a systemd unit
sudo nano /etc/systemd/system/myblog.service
# ... ExecStart=/opt/myblog/myblog
sudo systemctl enable --now myblog
journalctl -u myblog -f
What you’ll learn: images vs containers, volumes, network bridging, rolling upgrades.
Replace nginx+certbot with Caddy (30 mins)
Caddyfile
example.com {
reverse_proxy blog:8080
}
What you’ll learn: how opinionated defaults can shrink config ∼90 %.
Bonus round: automate the entire host with Ansible/Terraform, or migrate the stack to Kubernetes or Nomad.
Rules of thumb
• “One source of truth” – keep the canonical config checked into git no matter the tool.
• “You should be able to ssh in and fix it” – so learn what those commands would be.
• After you can do something by hand in <10 min from a blank VM, it’s time to automate it.
Resources
• DigitalOcean / Linode guides on nginx, systemd, Docker (free, bite-sized).
• Julia Evans’ zines on networking, Linux tools.
• “Modern System Administration” by Lorin Hochstein (great deep dive).
• Caddy docs – especially the “Automatic HTTPS” section.
• Docker’s “Play with Docker” playground for quick experiments.
TL;DR
Build it raw once → grok the guts.
Automate the boring parts → reclaim your evenings.
Keep toggling between the layers; mastery comes from seeing both the gears and the GUI.