3 ms·
IMHO single most important new CSS tech web badly needs is ShadowDOM - this will make web dev suck less compared to native toolkits development [edit added bel
by tkubacki 12y ago
IMHO single most important new CSS tech web badly needs is ShadowDOM - this will make web dev suck less compared to native toolkits development
[edit added below]
...since we will be able to componentize web apps.
Thinking in terms of components is much easier than trying to manage div soup.
Please don't by shy and say why I'm wrong instead of downvote.
- pothibo 12y agoShadowDOM isn't that much needed and I have concern as to how good this is going to be. ShadowDOM IS a div soup. It's just hidden from you. From a developer standpoint, the DOM still need to be handled. Moreover, I haven't seen any discussion with regards to strings in shadowDOM that needs to be pluralized/genderized. Also, ShadowDOM is outside the scope of the article. This is probably why you got downvoted.
- tkubacki 12y ago1. "shadowDOM isn't that much needed" I gave you an argument why I think it's (components) - you just say your opinion - it' not an argument 2. "I have concern as to how good this is going to be" It IS WORKING already in Chrome. You can try it out [1]. "ShadowDOM IS a div soup." - no it's not. Web component tags are tags like any other HTML tag. You don't get the idea. Div's are like thinking about computer program in terms of electrical signals whereas web components is thinking in terms of program logic. See example video [2] with Google maps component. It just hides unnecessary complexity. " I haven't seen any discussion with regards to strings in shadowDOM that needs to be pluralized/genderized." Sorry. Don't get what do you mean. Could you please evaluate ? "Also, ShadowDOM is outside the scope of the article" well I just express my opinion that there are bigger unsolved issues in webdev than those solved by Constraint CSS [1] http://www.polymer-project.org/ http://www.polymer-project.org/ [2] http://youtu.be/8OJ7ih8EE7s?t=28m26s http://youtu.be/8OJ7ih8EE7s?t=28m26s
- masklinn 12y ago> I gave you an argument why I think it's (components) No you did not. "it sucks less" is not an argument (and it's pretty faint praises), it's just your opinion. > "ShadowDOM IS a div soup." - no it's not. Web component tags are tags like any other HTML tag. And what do you think lives inside the tags, pray tell? > It just hides unnecessary complexity. That's the point, the complexity is still there, just hidden. > "Also, ShadowDOM is outside the scope of the article" well I just express my opinion that there are bigger unsolved issues in webdev than those solved by Constraint CSS That's not a very on-topic opinion to express in a thread dedicated specifically to discussing layout in CSS. It's also wrong, web components make it somewhat easier to reason about the existing mess, they don't actually fix issues. Actually having layouting tools in CSS fixes issues, namely the issue that layouting in CSS is currently intractably brittle.
- tkubacki 12y ago>"it sucks less" is not an argument Yes it's not an argument. It's conventional wisdom that it's easier and faster to create app in native toolkit than in HTML/CSS. I refereed to my components argument not to "suck less". >>tags are tags like any other HTML tag. >And what do you think lives inside the tags, pray tell? You don't have to think about it (you just import the component) as you don't have to think what's current CPU pin state. You just use attributes to communicate with the component. >"That's the point, the complexity is still there, just hidden." And there is a value in this. Higher level langs hide complexity as well (eg. C# vs C) and that makes them usable. >It's also wrong, web components make it somewhat easier to reason about the existing mess, they don't actually fix issues I don't agree. In my entire web dev career single biggest pain in the ass was more or less like "what CSS rule is breaking my div style". Since ShadowDOM brings CSS fence between components as you probably know (do you?), ShadowDOM makes it way easier to create HTML/CSS ui simply because it's hard to make CSS rules breaking whole app view. I do agree layouting is an issue - it's just not that important at least for me - joe average web dev [edit added what gives us Shadow DOM CSS boundry] [edit2 - hell yea! no arguments? just downvote!]
- masklinn 12y ago> It's conventional wisdom that it's easier and faster to create app in native toolkit than in HTML/CSS. Because native toolkit provide tools which let you actually lay out your screens. > I refereed to my components argument I found no such thing, hence my response. > And there is a value in this. I didn't claim there was no value to it. > In my entire web dev career single biggest pain in the ass was more or less like "what CSS rule is breaking my div style". Well we apparently have very different experiences of web development. > Since ShadowDOM brings CSS fence between components as you probably know (do you?), ShadowDOM makes it way easier to create HTML/CSS ui simply because it's hard to make CSS rules breaking whole app view. Again, I didn't claim there was no value to shadow dom, you're strawmanning here. > it's just not that important at least for me I'd kinda understood that at this point. > joe average web dev Yeah… no.
- masklinn 12y agoShadow DOM is no solution to the issue pointed out by OP, which is CSS-based layouting. Flexbox[0] or grid[1]? Sure, they exist specifically to (finally) add actual layouting abilities to CSS. > Thinking in terms of components is much easier than trying to manage div soup. It still does not solve the issue at hand. [0] http://caniuse.com/flexbox http://caniuse.com/flexbox [1] http://caniuse.com/css-grid http://caniuse.com/css-grid
- tkubacki 12y agoyea - sure you are right. I just say - there are bigger issues with HTML/CSS than that.
- masklinn 12y ago> I just say - there are bigger issues with HTML/CSS than that. Yeah… no, not really. That there still is no way to correctly and reliably layout on the web is a much bigger issue than modularity.
- tkubacki 12y agoDo you actually do web dev ? How many times you struggled with mingled CSS ? Since there is no ShadowDOM CSS boundry - it's hard to make sure some top level CSS rule is not breaking your very special div style. Now compare this number with number of times you struggled with layouting your page ? I bet first one is far more common and costly task.
- masklinn 12y ago> Do you actually do web dev ? Yes. > How many times you struggled with mingled CSS ? Not enough times that I'd get blood pressure issues over it. > I bet first one is far more common and costly task. You lost your bet. Which was idiotic, I wouldn't argue web layouting to be a bigger issue if I didn't find it to be.
- 12y ago