Home > Latest Articles > Orthogonality and CSS in JS

Orthogonality and CSS in JS

One of the realities of the constant change in the web development world is that “best practices” are often hotly contested. One issue that the front end community doesn’t seem to have come to a consensus on yet is how tightly to bundle JavaScript, HTML and CSS in code. Should they be bundled and managed completely separately? Kept in different files and imported together into JavaScript component files? Or can we remove HTML and CSS files entirely and generate everything in JavaScript? This is a discussion that still comes up all the time in my.

Many new frameworks that encourage a component based architecture (including React, Vue, and Angular2 [1]) provide affordances for including HTML and CSS directly in JavaScript, but those solutions are not yet used universally. Many people are still very happy keeping CSS bundled separately. I have no idea what the best solution is. But I am interested in how people talk about the problem. One major argument I have seen from people advocating both sides is that their preferred approach encourages good “separation of concerns”.

I’d like to take a deeper look at this and give some vocabulary that can hopefully help anyone working through discussions on how to manage CSS for components. I’ll focus specifically on CSS since frameworks tend to be more agnostic to how it is blended with JS than they are about HTML, and on components since that is the main context in which people are arguing for blending of css. For this piece, I’ll consider a component to be a set of HTML, CSS, and JavaScript that combine to form a reusable piece of UI [2].

Read Full Article

By benmccormick.org

admin
The WebRecital is a dedicated User Interface/User Experience professionals who come together to provide design and research workshops, portfolio reviews, and educational outreach to the greater Seattle area.
http://webrecital.com/

14 thoughts on “Orthogonality and CSS in JS

  1. The next time I learn a blog, I hope that it doesnt disappoint me as much as this one. I imply, I know it was my choice to read, however I truly thought youd have something fascinating to say. All I hear is a bunch of whining about something that you may repair if you happen to werent too busy in search of attention.

  2. I actually wanted to send a quick message to thank you for those awesome hints you are showing at this website. My time consuming internet search has finally been compensated with incredibly good information to share with my companions. I ‘d repeat that most of us site visitors actually are really fortunate to be in a good site with many outstanding people with useful techniques. I feel truly fortunate to have used your entire web pages and look forward to tons of more entertaining moments reading here. Thanks a lot once more for all the details.

  3. Can I just say what a reduction to find someone who actually knows what theyre talking about on the internet. You undoubtedly know methods to deliver a problem to gentle and make it important. Extra folks need to read this and understand this aspect of the story. I cant imagine youre no more widespread because you positively have the gift.

  4. Can I just say what a reduction to search out someone who truly is aware of what theyre talking about on the internet. You positively know how you can carry a difficulty to mild and make it important. Extra individuals have to read this and understand this aspect of the story. I cant consider youre no more standard since you definitely have the gift.

  5. Once I originally commented I clicked the -Notify me when new feedback are added- checkbox and now each time a remark is added I get four emails with the same comment. Is there any approach you may remove me from that service? Thanks!

  6. I抦 impressed, I have to say. Really not often do I encounter a blog that抯 both educative and entertaining, and let me inform you, you might have hit the nail on the head. Your concept is excellent; the problem is one thing that not enough individuals are speaking intelligently about. I’m very glad that I stumbled across this in my seek for one thing referring to this.

  7. There are definitely quite a lot of particulars like that to take into consideration. That is a nice point to convey up. I supply the thoughts above as normal inspiration however clearly there are questions like the one you convey up the place crucial thing shall be working in sincere good faith. I don?t know if best practices have emerged round things like that, however I am positive that your job is clearly identified as a fair game. Both girls and boys really feel the influence of only a second抯 pleasure, for the remainder of their lives.

  8. Youre so cool! I dont suppose Ive learn anything like this before. So good to search out somebody with some original thoughts on this subject. realy thanks for starting this up. this website is one thing that’s wanted on the net, somebody with a bit of originality. helpful job for bringing something new to the internet!

  9. After examine a number of of the blog posts in your website now, and I actually like your means of blogging. I bookmarked it to my bookmark website record and will probably be checking again soon. Pls take a look at my web page as effectively and let me know what you think.

  10. My spouse and i felt very fortunate that Albert could do his studies because of the precious recommendations he gained out of the weblog. It’s not at all simplistic to just possibly be releasing tips people today might have been trying to sell. And now we realize we have the writer to thank because of that. Those illustrations you have made, the easy website menu, the relationships your site make it possible to promote – it is most spectacular, and it’s really helping our son in addition to us recognize that the content is thrilling, and that is wonderfully important. Many thanks for everything!

  11. Can I simply say what a reduction to find somebody who really is aware of what theyre talking about on the internet. You definitely know the way to carry an issue to gentle and make it important. More people have to read this and perceive this facet of the story. I cant believe youre no more popular because you undoubtedly have the gift.

  12. I together with my buddies have already been digesting the nice guides found on the website and then then came up with a horrible feeling I never expressed respect to the blog owner for those tips. All the young men were definitely happy to see all of them and have in effect simply been enjoying those things. Thanks for simply being quite considerate and also for going for this form of really good guides millions of individuals are really desperate to be aware of. My honest apologies for not expressing appreciation to you earlier.

Leave a Reply

Your email address will not be published. Required fields are marked *