Top all-time · #10242
Glen Maddern
Personal blog · glenmaddern.com/articleswebprogrammingdesign
Glen Maddern's personal blog at glenmaddern.com covers web, programming and design. Since 2014, 7 different Hacker News readers have linked it 10 times, most often “CSS Modules”. No feed was found, so read it on the site itself.
Too few sampled comments (5) to say how often HN recommends it.?
Why HN links it
HN readers link Glen Maddern's posts on front-end topics such as CSS and HTML modularity, JavaScript tooling ("Javascript in 2015"), and CSS-in-JS with React. Commenters cite them as background for their own points.
Summarised by Claude from a sample of 5 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- CSS Modules4 people · 4 mentions · first linked 2015-08-19
- JavaScript in 20152 people · 2 mentions · first linked 2015-01-07
- AM – Attribute Modules for CSS2 people · 2 mentions · first linked 2014-09-05
What Hacker News says?
This happened because CSS and HTML are a totally broken model, useless for writing larger applications. They don't provide any sort of modularity / encapsulation - everything is in the open, present inside one big giant namespace with class names colliding with other class names and styles cascading through / being inherited by everything you want or don't want. Web Components / HTML Imports kind of solve this thoug…
Comment linking /articles/css-modules
on “What is a coder's worst nightmare? (2014)”Submitted JavaScript in 2015 as a story · 417 points
HN discussionHere is the thing I would like and maybe I could fork your and just try it and see how it looks. I really like attribute based properties for grid, I think this is great idea. Check it here. I think this could make your framework different from me-too frameworks. I think you could improve on it quite a bit, add optional modules for modal for example, maybe some other elements. http://glenmaddern.com/articles/introdu…
Comment linking /articles/introducing-am-css
on “Show HN: Picnic.css, a lightweight Bootstrap alternative”Submitted CSS Modules as a story · 281 points
HN discussionInteresting - I've just started playing around with jspm and system.js as showcased in the "Javascript in 2015" video that did the rounds ( http://glenmaddern.com/articles/javascript-in-2015 ) and I'm wondering if there is a way to achieve something similar with that tooling? Can webpack be used alongside jspm and system.js or do I need to change the way files are required?
Comment linking /articles/javascript-in-2015
on “React Hot Loader: Tweak React Components in Real Time”Submitted AM – Attribute Modules for CSS as a story · 129 points
HN discussionI think what's driving the css-in-js libraries is actually a drive for better separation of different concerns (and the close cousin, better combining of the same concerns). An idiomatic react/redux app will have dumb components which receive data as props, and contain zero business logic; they are solely concerned with presentation. Which is great! Big wins in terms of clarity, conciseness, maintainability, testabi…
Comment linking /articles/css-modules
on “State of React and CSS”Submitted Interoperable CSS as a story · 95 points
HN discussionOn a bit more of a positive note, I highly encourage people to check out CSS Modules. It introduces name mangling to CSS so you get 'locally' scoped CSS classes which you use by 'importing' them in your view component. It's 'compatible' with any preprocessor, because it's working on the CSS itself. I think the cool thing about CSS Modules is that it makes BEM obsolete - that naming pattern is now essentially enforce…
Comment linking /articles/css-modules
on “State of React and CSS”Submitted Metaquery and the end of Media Queries as a story · 16 points
HN discussion