5 ms·
There's just something wrong about creating a language with a language to produce about in a third language. As Brian Kernighan told Dustin Hoffman one time, "L
by drhowarddrfine 17y ago
There's just something wrong about creating a language with a language to produce about in a third language. As Brian Kernighan told Dustin Hoffman one time, "Learn to code!".
- nopal 17y agoWhile your language^3 comment is technically true, this seems to be simply shifting one markup syntax to another, using a language to perform the translation. In addition, using something like SHPAML requires knowledge of the final output syntax, so the person using it must already know how to code. Edit: In reading my response, it seems too curt. I definitely see your point, but more so in contexts other than this.
- showell 17y agoIt is not a promise, or even a goal, of SHPAML that it will relieve you the burden of understand the final output syntax, whether that is HTML or HTML combined with some template language. SHPAML users are expected to be literate in both HTML semantics and syntax. The semantics of HTML are not abstracted away at all. The syntax is only abstracted away where it is redundant. As a couple folks have pointed out, HTML is a pretty simple language. The problem with HTML is not its lack of simplicity; it is its verbosity. So, if you use SHPAML, you undeniably get the terseness of SHPAML and the powerful semantics of HTML. So the question then comes down to simplicity. Does SHPAML eliminate too much of the simplicity of HTML syntax in trying to achieve terseness?
- tpyo 17y agoHow did Hoffman and Kernighan meet?
- julius_geezer 17y agoPulling your leg. Hoffman, who had learned in the "method acting" schools, apparently stayed up all night to look properly harrowed for a scene. Laurence Olivier, playing opposite, is said to have told him something like "Why don't you try acting, my boy? It's so much simpler."
- showell 17y agoThe Laurnence Olivier analogy is stupid, inaccurate, and irrelevant.
- kashif 17y agoWhat is the problem with using one language to produce another? How do you think your primary programmin language gets converted to assembly and then to machine code? As far as I am concerned this is a useful abstraction on a trivial problem.
- mbreese 17y agoThe problem is that this is a trivial problem. Why add an abstraction on top of something that is already so simple?
- timtadh 17y agoWell machine language is pretty simple especially when you use something like MIPS. It can even be pretty fun to code in if you assembler has good macro support. However there is value is adding an abstraction layer on top of machine code. I think what people are really trying to say in these comments is that this new mini language does not provide useful value vs HTML like C provides vs. MIPS. Cheers.
- showell 17y agoMy problem with HTML is not its lack of simplicity; it is its verbosity. SHPAML solves the (fairly) trivial problem of making HTML less verbose. The abstraction pays off for me insofar as I expect to use SHPAML for the next decade or so, and it's easy to remember the syntax, easy to share the output, etc.
- mbreese 17y agoYeah, but how many other people will be using it? You may be planning on using it for a decade, but you will be in a very small minority. And so to share the output (the very common and portable HTML), you need to add another step to your workflow to convert things. This just seems like too much effort for very little gain.
- showell 17y ago
- Confusion 17y agoRight, just like creating Python with C is 'just wrong' if you're going to be writing applications that produce HTML?