Echo JS 0.11.0

<~>

tracker1 comments

tracker1 388 days ago. link 1 point
I don't change too much with my Biome config... I can say that when I first started, the config options were really hard to figure out without examples, but I think the documentation has expanded since then.  I don't know about your specific case.

I would probably defer to typescript annotations if you want to start setting arguments as optional for a constructor or given methods.  I will usually assign a manual default if I want typed behavior.  But that will involve adding the TS compiler in addition to Biome, which only partially checks TS.
tracker1 391 days ago. link 2 points
At this point, I pretty much just use Biome for linting and formatting.  ESLint just got too slow on a few large projects.
tracker1 399 days ago. link 1 point
Carefull with things like Array.prototype.forEach with built-in functions.  forEach passes a asecond argument for the position within the array, this can have unexpected consequences, such as if you're passing parseInt, or another function that optionally accepts a second parameter.

An anonymous lambda is often the best option.
tracker1 406 days ago. link 1 point
I prefer Caddy over NginX, and also you should really precompress your static assets as part of your build process.
tracker1 416 days ago. link 1 point
I's suggest also looking at generic pool libraries, so you can pool and limit expensive workers.
tracker1 416 days ago. link 1 point
Have to admit, while I really like the idea of Server components, I'm not sure I'd use them on a public site with potentially a lot of users.  I know that Vercel and other cloud options are based around the concept, it just feels like a lot of excessive server overhead IMO.
tracker1 479 days ago. link 1 point
Not sure if this is AI created content... that said:

If you are creating a library or component that others will be able to use, or interacting with a team of developers on a product, you are better off with TypeScript.  The additional context helps a lot with regards to utilization and intent from within most enhanced editors.  This is very useful and will have less blocking and make it less necessary to slow down to lookup documentation.  You can also use JSDoc, but that itself is sometimes more cumbersome than the TS type syntax.

Only if you are working by yourself on very basic or throw-away code should you prefer straight JS at this point.

This is just my take on this... I spent years pushing back against TS, as it never added much (for me), it's only when interacting with others or producing libraries or modules for others that the benefits become strikingly clear.
[more]