Hacker News new | ask | show | jobs
by weberc2 2449 days ago
You see this a lot with HTTP requests. People realize they're often writing the same code over and over and so they pull it out into a middleware of some kind. It's trading off a little readability in exchange for DRYness.