Live data from Hacker News

Flat HTML

github.com

11–20 of 48 posts

Re: Flat HTML

#12
I think markup languages need improvement, but as soon as I saw the syntax in JSON and how it was formatted it was an automatic turnoff.

Have you though instead about just developing a new markup language that has advanced HTML features?

Re: Flat HTML

#13

What has the world come to if this mess is considered easier than writing some nested html tags? (Perhaps I'm not plugged into the SPA scene well enough to appreciate this project. I hope it is useful to some.) In fact, reading the examples made me check to see if the first commit to this project was today, April Fools...

The link was shared here by someone with the same username as the github repo owner - presumably it was a pre-planned April Fools day joke for Hacker News.

Re: Flat HTML

#14
Congratulations on re-inventing Emmet (and a bunch of other tools) very badly, I guess? :)

For anyone interested, the equivalent of the first example in Emmet is:

    div>h1{My Post}+ul>li{I am list item $}*3^ul>li{I am a different list item $}*2
It's a lot terser, but since it uses a CSS-like syntax, it's slightly less bizarre than at first glance and not that hard to pick up. Fun tool, more powerful than it looks, and supported by a ton of editors (I believe it's enabled by default in Jetbrains IDEs, for example...).

https://emmet.io/

Re: Flat HTML

#16

What has the world come to if this mess is considered easier than writing some nested html tags? (Perhaps I'm not plugged into the SPA scene well enough to appreciate this project. I hope it is useful to some.) In fact, reading the examples made me check to see if the first commit to this project was today, April Fools...

Come on, this is cutting edge stuff.

Personally I've been considering an alternative representation of python using YAML.

for example this python:

  if a == 3:
    b = y * 3
  else:
    b = x + 4
could be represented in YAML python as:

  if a == 3:
    b = y * 3
  else:
    b = x + 4

Re: Flat HTML

#17
Bravo, this is exactly what April Fools' jokes should be. Right on the line where you can think "Well, someone really could be crazy enough to propose this seriously!", where it's close enough that many of the replies here I can't even figure out if they are serious or joking.

Re: Flat HTML

#18
I don't think this is a joke, but an attempt of innovation. I think it is just rude to assume it is or make fun as it was.

Years ago I made an attempt to reinvent forums, with comments ordered horizontally instead vertically. It was very interesting to think about, but the end result had a lot of issues. I wouldn't appreciate people just making fun of it.

Some attempts to innovate might generate weird results, but there is no gain to society in pointing and laughing at the weird results. Thoughtful comments on why it's bad in anyone's point of view are much more helpful.

Different people have different perceptions of what is cleaner, or easier, or simpler. It is healthy to have this in mind while criticizing different approaches to a problem.

Re: Flat HTML

#19
post #16

What has the world come to if this mess is considered easier than writing some nested html tags? (Perhaps I'm not plugged into the SPA scene well enough to appreciate this project. I hope it is useful to some.) In fact, reading the examples made me check to see if the first commit to this project was today, April Fools...

Come on, this is cutting edge stuff. Personally I've been considering an alternative representation of python using YAML. for example this python: if a == 3: b = y * 3 else: b = x + 4 could be represented in YAML python as: if a == 3: b = y * 3 else: b = x + 4

That is amazing!

I hope you can share the toolchain that lets you convert from one to the other so seamlessly?

Post reply on HN