Lurker News

Comments (245) 47 threads

Earlier comments
rekshaw2 replies#
This is exactly what I needed. However with great abstraction comes great responsibility: you are now the gatekeepers of keeping things efficient in the backend. If I write "require('moment')", will you blindly require, or will you require, tree-shake, minify, etc?

I guess my question is: can I trust Zero to always strive for optimum efficiency, or is it just convenience?

yodon1 reply#
If your requirements include "optimum efficiency", you almost certainly are not in the sweet spot for a general purpose zero configuration product.
rekshaw#
I guess optimum/optimal efficiency is a lot to ask for, of anyone, let alone a convention over configuration framework, but you get my point!
asadlionpk1 reply#
I think that's a valid concern. We can certainly optimize and enable tree-shaking (zero uses Parcel to bundle React and HTML). The idea is to implement common optimizations so users don't have to. But also to provide enough escape hatches so advanced users can 'eject' and fine-tune themselves.
rekshaw#
Yes please do, I just have a pet peeve against npm modules requiring mb's of files to only use a couple functions. Knowing that Zero does tree-shaking and general optimizations for me will make me happily use for most of my projects!
marcrosoft1 reply#
Zero configuration... read "We made choices for you, just trust us. Read our documentation to see what your missing. Oh, also since you didn't configure it we'll change (the defaults) on our next release".
Vinnl1 reply#
> Oh, also since you didn't configure it we'll change (the defaults) on our next release

That doesn't really matter, since I'll only use the next release for my next release, and the previous prototype has either been thrown away or turned into a proper stack.

lotyrin#
I wonder if this what the people who made the things I have to inherit and patch and secure believed.

Current app is EOL Framework Release in an EOL Language Release running on an EOL Distro Release on an unmonitored server without any patches applied... so business as usual.

franciscop1 reply#
I did something very similar but arguably with even less configuration, https://serverjs.io/

    const server = require('server');
    server(() => "Place your Node.js API here.");
However my project doesn't have the automatic routing/installing/React, which looks great! Keep it up, I like the direction where this is going.
tazard#
Hey, that looks cool too. Thanks for sharing it!
juliend2#
Wow, that readme file is a github repo masterpiece.
yowlingcat#
This is wonderful. Great antidote to toy framework fatigue.

Load more comments