Better HN
topnewbestaskshowjobs
Log inSign up

mx-bojangles

3 karma · joined Apr 17, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

How do I know that the packages installed by this new manager are trustworthy?

comment 1y ago · link · parent

I agree that the example is easier to read with the single object param. It might be even easier to read using a fluent interface or a builder pattern. You should choose the best tool for the job.

As a counter-example, I prefer

    setEnabled(item, true);
to

    setEnabled({item: item, isEnabled: true});