News for hackers. Stuff that matters.
Re:Show HN: A simple Go web server with logging, tracing, he... by MrF3ynmann on Sunday January 07, 2018 @10:59AM (#16091255)
Yea lets ditch everything we learned about modularization in the past 20 years and put everything in one single binary
Re:Show HN: A simple Go web server with logging, tracing, he... by zzzcpan on Sunday January 07, 2018 @11:09AM (#16091297)
I don't think we did learn anything about modularization in the past 20 years. Programming languages still don't do it even remotely decently. Users still make a common mistake of splitting things into multiple files for the sake of splitting, just as your comment implies. These things are all about UX, which is known to be neglected in programming.
Re:Show HN: A simple Go web server with logging, tracing, he... by ovao on Sunday January 07, 2018 @01:18PM (#16091868)
This is merely an example server with a router, middleware and two route handlers. This isn’t evangelism for monolithic application design, and there’s nothing inherent in Go that forces monolithic application design.
Re:Show HN: A simple Go web server with logging, tracing, he... by eeZah7Ux on Sunday January 07, 2018 @11:15AM (#16091317)
Having to rebuild thousands of binaries every time a vulnerability is found in a popular library is seriously hurting Linux distributions.

That, and having to handle vendorized dependencies.

Re:Show HN: A simple Go web server with logging, tracing, he... by rhencke on Sunday January 07, 2018 @11:24AM (#16091356)
> Having to rebuild thousands of binaries every time a vulnerability is found in a popular library is seriously hurting Linux distributions.

Do you have a source for this?

Re:Show HN: A simple Go web server with logging, tracing, he... by weberc2 on Sunday January 07, 2018 @11:24AM (#16091350)
"Putting everything in one binary" is what we learned in the past 20 years. Most major languages either compile to a single artifact or they have some "bundling" trick to minimize runtime dependencies. Besides that, there are things like Docker which exist to solve the same problem.