Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Please Stop Using Barrel Files (tkdodo.eu)
11 points by thunderbong on Dec 13, 2024 | hide | past | favorite | 4 comments


Is the term "Barrel file" somehow in common use? I've never heard of it (not a js dev though). I would expect some kind of "umbrella file", "public interface", "reexport facade", or something along those lines.


Yes it's common terminology in the modern js/ts ecosystem. It makes sense because your gathering modules into a single "barrel". We already have plenty of gang of four word vomit terms we don't need anymore.


yes, it is


In my admittedly meagre frontend experience, large startup times for dev instances are terrible for my efficiency.

The worst was a spring boot app at work which would synchronously download the entire key vault, 1 secret at a time.

I switched that out to load lazily, and the app started almost instantly!

My teammates were quite happy with the new state of affairs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: