News for hackers. Stuff that matters.
Re:Is there any value in just writing HTML and CSS? by stephenr on Friday September 15, 2017 @01:25AM (#15254857)
Here's the thing: despite what JS fans will tell you, you can make visually appealing, quick-loading, useful page/site with just HTML+CSS(+images/svgs etc) client side.

You don't need JavaScript.

The reverse isn't true. You can't make a page out of just JavaScript. Even if JS builds your DOM and builds the styles for it (because hey, crazy people have crazy ideas) the DOM and styles are still HTML + CSS. You still need to know what the JS should build.

Re:Is there any value in just writing HTML and CSS? by mrsernine on Friday September 15, 2017 @07:21AM (#15256169)
> The reverse isn't true. You can't make a page out of just JavaScript. Even if JS builds your DOM and builds the styles for it (because hey, crazy people have crazy ideas) the DOM and styles are still HTML + CSS. You still need to know what the JS should build.

Not exactly true. Some frameworks (like DHTMLX) allows one to generate forms, pages, images and even complex UI layouts with just code and without a single line of html or css.

Re:Is there any value in just writing HTML and CSS? by krapp on Saturday September 16, 2017 @06:20PM (#15267080)
That javascript still must, at some point, no matter how complex, abstract or fancy it is, either call document.createElement or element.innerHTML.

Although I concede it's arguable whether or not this still counts as "just javascript," it's still true that, in the end, you wind up with just HTML, either machine generated or human generated.

Re:Is there any value in just writing HTML and CSS? by mrsernine on Monday September 18, 2017 @04:01AM (#15274109)
Yes, in the end you end up with just HTML and CSS, but the library abstracts the developer away so well, he doesn't need to know about the DOM.

I'm not saying this is a perfect situation, but the truth is that html and css skills are somewhat less valuable for a web developer nowadays.

Just an example, this UI takes 35 lines of javascript code to be created using DHTMLX:

https://dhtmlx.com/docs/products/visualDesigner/live/?previe...

for those who want to play around:

https://dhtmlx.com/docs/products/visualDesigner/live/#c403w3

Re:Is there any value in just writing HTML and CSS? by drivingmenuts on Friday September 15, 2017 @02:01AM (#15254982)
What do you call a Javascript programmer who doesn't know HTML and CSS?

A backend programmer.

Re:Is there any value in just writing HTML and CSS? by AstralStorm on Friday September 15, 2017 @02:59AM (#15255191)
Only for tiny backs or huge rears. ;)

(Doing big things in JS right now is still asking for trouble.)

Re:Is there any value in just writing HTML and CSS? by stephenr on Friday September 15, 2017 @02:10AM (#15255004)
Depends on your definition of "know" I guess.