by jedschmidt on 11/9/12, 4:44 PM with 75 comments
by jedschmidt on 11/9/12, 5:36 PM
I'm still working on how to get the message across, but the idea is this:
We all know CSS. We all know HTML. Most of us agree that neither is powerful enough to build modern web apps, hence the explosion of CSS-preprocessors and templating engines.
If we're going to build tools to improve browser technologies like CSS and HTML, let's build them using another browser technology: JavaScript. Instead of adding incompatible extensions to CSS and HTML, let's first port them as-is to JavaScript syntax and then do the extending there, where at least the tools we build will interoperate.
Instead of learning increasingly arcane/proprietary/underpowered syntax for looping or doing arithmetic or writing functions, let's just use the tools we already have. Not to mention this gives us a streamlined development process and lower cognitive overhead for free.
Feedback welcome.
by duked on 11/9/12, 5:15 PM
by ashray on 11/9/12, 7:09 PM
I took a look at the examples and I'm sure that this style of coding would solve some problems. But how many would it create ?
by ConstantineXVI on 11/9/12, 5:55 PM
by antonpug on 11/9/12, 5:11 PM
by IsaacSchlueter on 11/9/12, 5:35 PM
Other comments on this page so far show predictable HN-style "Hate anything new" bias. The page is pretty easy to understand what's going on, and all of the objections don't make any sense. Good work. Ignore the bozos.
by jasonkostempski on 11/9/12, 6:19 PM
by shaunxcode on 11/9/12, 5:11 PM
by strictfp on 11/9/12, 8:48 PM
It's also funny that there was such a strong movement which tried to separate the view from the code, and now everyone just accepts that you need to code to make ui. Crazy times, makes me think of all those wasted efforts.
by Semaphor on 11/9/12, 5:15 PM
It's not supposed to be used instead of HTML and CSS overall.
by JoelMcCracken on 11/9/12, 5:28 PM
Imagine, for example, using this to semantically declare the frontend elements that your website uses, and thus allowing your server to render them, your css to style them, and your javascript to render/manipulate them, all using the same, DRY data. I much prefer something like elements.user_login_form.class_name to needing to remember / deal with naming conflicts.
edit:
I'd love to see someone mix in some http://lispyscript.com/ with this
by njharman on 11/9/12, 6:16 PM
Sounds like PHP, ColdFusion and other similar great ideas from the past.
by akdetrick on 11/9/12, 6:14 PM
by amix on 11/9/12, 8:15 PM
by anons2011 on 11/9/12, 5:04 PM
by lemiffe on 11/9/12, 7:37 PM
by __david__ on 11/9/12, 8:45 PM
Also, these are similar, though not function based: http://www.jsonml.org/ and http://jsml.org/
by tseven on 11/9/12, 5:27 PM
by jeffreybaird on 11/9/12, 7:55 PM
by conorwade on 11/9/12, 6:12 PM
- The all CAPS make me feel it will be a pain to type. - The CSS looks more verbose than SASS or LESS. The STYLE keyword each time seems like needless repetition. - I feel like the HTML templating is less readable than plain HTML or Slim or such tempting engines.
Just my thoughts, I would love to know what others think.
by IWentToTheWoods on 11/9/12, 5:44 PM
by leeoniya on 11/9/12, 8:30 PM
EDIT: now here: https://github.com/cadorn/domplate
by perfunctory on 11/9/12, 8:15 PM
by batgaijin on 11/9/12, 6:03 PM
by v33ra on 11/10/12, 6:35 AM
by camus on 11/9/12, 8:31 PM