frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

God, I hate .env files

17•zidoo•2h ago
There is no reason anyone would ever use this instead of a regular config file.

Comments

the_real_cher•2h ago
Don't people use it with direnv?
myst•2h ago
What makes you believe that abruptly venting on HN will help?
i80and•1h ago
They are right to say it though
Someone•1h ago
I guess they’re thinking God (https://news.ycombinator.com/user?id=God) will read their message and do something about it.
cholantesh•25m ago
Such low karma for a numinous presence!
vincentabolarin•2h ago
Nothing like chasing a process.env that is undefined.
ktpsns•1h ago
Same here. What I hate most is the fact how tooling decides what should be hidden files and what not. Hiding important configuration files (also done by some SSGs) is a bad habit which makes it hard to explore a new project. At least such files should be refered to in some README.
tacoooooooo•1h ago
whats wrong with .env files?
Gormo•1h ago
I think the overuse of .env files is a side effect of the overuse of containers. Working with config files is much more convenient if you're running software normally, but if you're shipping an entire baseline OS along with your application, getting application-specific configuration data into the container becomes non-trivial. Environment variables provide a standardized way of making configuration data set outside the container available from within it.
righthand•1h ago
How are they different than a regular config file? .env and .mytoolconfigrc seem like the same thing to me.
thinkxl•1h ago
.env files are a different use case than config files.

You can use them together. Config files provide configuration to the application. The config file can read environment variables, so you can deploy the same code across different environments, e.g., your local computer, staging, and production.

Then, each environment will provide system-related configuration, e.g., `DATABASE_URL`.

With this setup, the same code will work on each environment.

Now, .env files should live only on your local machine; on any other environment, they should be set differently, not in files.

The .env file is a convenience, but not the only option for environment variables, nowdays you can use 1Password too.

Missile Defense Is NP-Complete

https://smu160.github.io/posts/missile-defense-is-np-complete/
92•O3marchnative•1h ago•53 comments

LiteLLM Python package compromised by supply-chain attack

https://github.com/BerriAI/litellm/issues/24512
193•theanonymousone•1h ago•107 comments

Microsoft's "Fix" for Windows 11: Flowers After the Beating

https://www.sambent.com/microsofts-plan-to-fix-windows-11-is-gaslighting/
513•h0ek•4h ago•387 comments

Debunking Zswap and Zram Myths

https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html
67•javierhonduco•3h ago•12 comments

curl > /dev/sda: How I made a Linux distro that runs wget | dd

https://astrid.tech/2026/03/24/0/curl-to-dev-sda/
70•astralbijection•4h ago•31 comments

I Quit Editing Photos

https://jamesbaker.uk/i-quit-editing-photos/
14•speckx•3d ago•18 comments

Opera: Rewind The Web to 1996 (Opera at 30)

https://www.web-rewind.com
127•thushanfernando•6h ago•70 comments

Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016)

https://burntsushi.net/ripgrep/
175•jxmorris12•7h ago•78 comments

Secure Domain Name System (DNS) Deployment 2026 Guide [pdf]

https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-81r3.pdf
18•XzetaU8•2h ago•0 comments

Box of Secrets: Discreetly modding an apartment intercom to work with Apple Home

https://www.jackhogan.me/blog/box-of-secrets/
210•jackhogan11•1d ago•69 comments

Log File Viewer for the Terminal

https://lnav.org/
230•wiradikusuma•8h ago•28 comments

NanoClaw Adopts OneCLI Agent Vault

https://nanoclaw.dev/blog/nanoclaw-agent-vault/
49•turntable_pride•1h ago•5 comments

Nanobrew: The fastest macOS package manager compatible with brew

https://nanobrew.trilok.ai/
17•syrusakbary•2h ago•5 comments

MSA: Memory Sparse Attention

https://github.com/EverMind-AI/MSA
45•chaosprint•2d ago•3 comments

iPhone 17 Pro Demonstrated Running a 400B LLM

https://twitter.com/anemll/status/2035901335984611412
661•anemll•23h ago•290 comments

Autoresearch on an old research idea

https://ykumar.me/blog/eclip-autoresearch/
389•ykumards•19h ago•86 comments

No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML

https://qitejs.qount25.dev
77•usrbinenv•5d ago•69 comments

BIO – The Bao I/O Co-Processor

https://www.crowdsupply.com/baochip/dabao/updates/bio-the-bao-i-o-co-processor
61•hasheddan•2d ago•15 comments

FCC updates covered list to include foreign-made consumer routers

https://www.fcc.gov/document/fcc-updates-covered-list-include-foreign-made-consumer-routers
377•moonka•16h ago•251 comments

A 6502 disassembler with a TUI: A modern take on Regenerator

https://github.com/ricardoquesada/regenerator2000
65•wslh•3d ago•7 comments

Show HN: Cq – Stack Overflow for AI coding agents

https://blog.mozilla.ai/cq-stack-overflow-for-agents/
178•peteski22•22h ago•74 comments

Dune3d: A parametric 3D CAD application

https://github.com/dune3d/dune3d
196•luu•2d ago•81 comments

Claude Code Cheat Sheet

https://cc.storyfox.cz
509•phasE89•16h ago•163 comments

LLM Neuroanatomy II: Modern LLM Hacking and Hints of a Universal Language?

https://dnhkng.github.io/posts/rys-ii/
14•realberkeaslan•3h ago•3 comments

Microservices and the First Law of Distributed Objects (2014)

https://martinfowler.com/articles/distributed-objects-microservices.html
35•pjmlp•3d ago•23 comments

The Resolv hack: How one compromised key printed $23M

https://www.chainalysis.com/blog/lessons-from-the-resolv-hack/
101•timbowhite•16h ago•145 comments

Pompeii's battle scars linked to an ancient 'machine gun'

https://phys.org/news/2026-03-pompeii-scars-linked-ancient-machine.html
93•pseudolus•4d ago•28 comments

Finding all regex matches has always been O(n²)

https://iev.ee/blog/the-quadratic-problem-nobody-fixed/
240•lalitmaganti•4d ago•63 comments

IRIX 3dfx Voodoo driver and glide2x IRIX port

https://sdz-mods.com/index.php/2026/03/23/irix-3dfx-voodoo-driver-glide2x-irix-port/
89•zdw•15h ago•21 comments

Abusing Customizable Selects

https://css-tricks.com/abusing-customizable-selects/
145•speckx•5d ago•7 comments