Live data from Hacker News

Show HN: Descartes.js – Write CSS entirely in JavaScript and bypass the cascade

descartes.io

1–6 of 6 posts

Re: Show HN: Descartes.js – Write CSS entirely in JavaScript and bypass the cascade

#5
I'll walk into an even bigger fire.

I encode all my css, html, and code in JS. I put the entire thing for each module in one page, but my modules are small and granular. I truly believe that separation of concerns does not apply. CSS/HTML/JS are all concerned with each other in a small module. Reading and writing the code becomes much easier and there isn't really any performance hit.