3 ms·
I can do a web server in one line of code, sudo service apache2 start
by waynesonfire 5y ago
I can do a web server in one line of code,
sudo service apache2 start
- stickyricky 5y agoYou forgot to define the hello-world endpoint.
- de_keyboard 5y agoTotally missing the point. A good web framework lets you get running with a few lines but then allows you to add custom logic with minimal incidental complexity.
- waynesonfire 5y agoI think you're missing the point. It's not how many lines of code it takes. You have to think a bit harder what the desirable properties are. Minimizing complexity is nice, great start. What does that mean? It's certainly not one of the "guiding principles" of this library. It's focusing on, among other things, - "least amount of code" - and "a beautiful code" shrug You minimize complexity by defining primitive expressions, means of combination, and means of abstraction [1]. Sound familiar? [1] https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1 https://mitpress.mit.edu/sites/default/files/sicp/full-text/...
- a_lost_needle 5y agoSo it's not that you're missing the point; it's that you don't have the same values... That's not really valid criticism.