Echo JS 0.11.0

<~>

badsyntax comments

badsyntax 1449 days ago. link 2 points
can you kindly stop posting spam. it seems like this user has previously posted spam, can the user account be banned?
badsyntax 1455 days ago. link 1 point
(This website is rather broken.)

I'm using Tailwind in a Next.js app and am exclusively using the css utilities in my css (combined with css modules). I'm basically using Tailwind as a style library (to define my tokens, breakpoints etc).

I don't think I'll ever be convinced to use the utility css classes, I just don't see the benefit.
badsyntax 1501 days ago. link 2 points
I recently started using a popular framework that uses css-in-js and noticed similar performance issues. Like serious runtime performance issues, and I wasn't doing anything crazy, I was rendering a small table with some row action buttons, and my app would freeze. 
I spent a long time trying to understand how to optimise, but discovered most of the work was being doing in react context and style generation.

It made me laugh, because react was developed to work around the inefficiencies in DOM updates (moving more logic to JS, eg vdom diffing) but now we're seeing huge performance issues in runtime JS! 
I've now seen the authors of said framework move away from css-in-js and back to plain css (sass). 

I'm yet to be convinced css-in-js is a good idea.
badsyntax 1512 days ago. link 1 point
Why are you linking to gitconnected instead of the original domain?
badsyntax 1552 days ago. link 2 points
I find the README somewhat confusing:

> Practice your skills with no assistance from libraries

Then within the rules:

> You are allowed to use libraries,
badsyntax 1597 days ago. link 0 point
I agree there will be extra time required to learn TypeScript and construct your types correctly. Saying that, I find the TypeScript type system _not that hard_ to learn. Yes there will be an initial learning curve but it's easier to learn than other type systems (eg flow). 

Once you've setup your types correctly you can argue it saves you time in the long run, especially when it come to refactoring. Also consuming typed packages is easier, you don't need to refer to the docs to understand expected data types or parameters, the IDE will tell you how to consume 3rd party code. 

TypeScript should complement and not replace existing good practises.
badsyntax 1680 days ago. link 2 points
Why is this posted to echojs if it's a PHP library?
badsyntax 1699 days ago. link 2 points
IMO the title is misleading and should be "tslog: Brand new expressive TypeScript Logger for Node.js".
[more]