Live data from Hacker News

HTML, the Programming Language

html-lang.org

51–60 of 141 posts

Re: HTML, the Programming Language

#51
post #42

Earlier quoted context omitted.

> Genuine question, I don't use stack based langs. How and why not? What languages do you use?

Common ones like JavaScript, Java, C#, etc. They all have a stack, but aren't stack oriented like Assembly or Forth. The stack in modern languages is abstracted so you don't have to worry about pushing/popping values in a specific order, and you can't explicitly reference it. C and Rust is probably the closest I get with Heap v Stack memory, but even that is not truly stack oriented. https://en.wikipedia.org/wiki/Sta…

Ah gotcha. Thanks.

Re: HTML, the Programming Language

#52
post #8

Is this "HTML-based" or "HTML, based"?

is an obscure tag that I think allows to exploit accidental turing completeness similar to the checkbox hack.

Or is it? I once considered using that tag for some price calculator widget, but it couldn't even replace a div because of styling issues or something.

That being said, I spent like half a minute trying to figure out the point of this post and then lost interest...

Will try again, was hoping for a funny Rube Goldberg machine instead of T-shirt merchandise.

So nah, it's about as "based" as blogging about JS frameworks IMO.

Re: HTML, the Programming Language

#55
post #42

Earlier quoted context omitted.

> Genuine question, I don't use stack based langs. How and why not? What languages do you use?

Common ones like JavaScript, Java, C#, etc. They all have a stack, but aren't stack oriented like Assembly or Forth. The stack in modern languages is abstracted so you don't have to worry about pushing/popping values in a specific order, and you can't explicitly reference it. C and Rust is probably the closest I get with Heap v Stack memory, but even that is not truly stack oriented. https://en.wikipedia.org/wiki/Sta…

Was literally reading that wikipedia page last night before bed, so this is all very timely for me.

Re: HTML, the Programming Language

#56
One suggestion - it would be really cool to allow FFI. Something like

    
      const foo = (bar) => {
        document.getElementById('my-element');
        // More here!
      };
    
That way you could really leverage the full power of HTML, the programming language!

Re: HTML, the Programming Language

#57
post #11

Giving me memories of tag based Coldfusion days.

Same. I liked ColdFusion for what it was, but I also don't miss it. The spaghetti code I had to fix is what I remember most. While spaghetti code isn't a unique problem to CF, it is made so much harder to fix when you don't have a debugger and you can't right-click to find references. The horrors of endlessly nested cfloops inside cfifs with cfaborts and cflocation tucked away wherever the programmer needed it. never again!

Re: HTML, the Programming Language

#58

The best part is how they have to keep repeating "HTML, the programming language" or "HTML, the markup language" everywhere in an attempt to keep things clear :) It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. Thank you for posting this, it made my day a bunch brighter!

HTPL?

I appreciate their joke, but “HyperText Markup Language, the markup language” is a little redundant.

Some of us have had to include XSLT programming in our careers. We have seen into the dark abyss… and been paid to do it!

Post reply on HN