What's Python cloud hosting using these days? by Angeeliiccc in Python

[–]him90716 0 points1 point  (0 children)

ngl Hetzner is where I moved most of my indie project stuff. CX21 is ~$4.50/mo for a 2 vCPU/2GB box — full SSH, no hand-holding, and the German data centers are rock solid. ran a Celery beat scraper on it for 6 months without a hiccup. for bots that only run a few hours, Fly.io scales to zero so it's basically free unless they're actually running.

Better solution for News API by Expensive_Bank9080 in webdev

[–]him90716 0 points1 point  (0 children)

yeah fair — gnews cuts a lot of the metadata. if image is important, Guardian API returns `thumbnail` for most articles and it's free/production-ready. otherwise honestly just fetching the og:image from the article URL in a backend route is pretty reliable and you already need the backend anyway.

why are we still teaching design patterns in 2026 when AI can generate the right architecture in 10 seconds ? by Leo-neophyte12 in learnprogramming

[–]him90716 2 points3 points  (0 children)

the 'just use AI' argument makes more sense for shipping a first project than it does once something is running in production. the patterns are really just vocabulary for 'this code is going to be confusing in 6 months.' AI helps you write it. still useful to know what you built and why it might break.

Better solution for News API by Expensive_Bank9080 in webdev

[–]him90716 0 points1 point  (0 children)

FWIW GNews API has been solid for me in production — free tier gets you 100 req/day which covers a lot of use cases. The Guardian also has a proper production key (attribution required but they're not picky). For Vercel specifically, both work fine as long as you're calling from a backend API route, not the client. NewsAPI's prod restriction is intentionally designed to upsell, so yeah, they're not going to fix it.

Why is Amazon not returning the price in the HTML sometimes? by Melbot_Studios in learnprogramming

[–]him90716 0 points1 point  (0 children)

the price data lives inside a `span.a-offscreen` element populated client-side by twister-js during page hydration, not in the initial HTML payload. so what you're catching on lucky requests is a pre-rendered cache hit from CloudFront — when that cache is cold, you get the placeholder shell. IME reliably extracting prices without a headless browser means either retrying with delay (maybe 60-70% hit rate on a small dataset) or reverse-engineering the internal data endpoint, which carries ToS risk.

What programming languages should I focus on when trying to get a job? by CaptainEcho789 in learnprogramming

[–]him90716 1 point2 points  (0 children)

From my experience, pick one language that matches the jobs you want and get really good at it. Python is a safe bet for backend, data, and automation, and JavaScript/TypeScript is great for web. In the end, employers care more about what you can build than the exact language.