4 ms·
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 appr
by torgoguys 7y ago
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...
- ludami 7y agoI really hope it's a joke. I mean it's not even flat. It's just the nesting is represented in a different less intuitive way.
- mebr 7y agoThe reason behind the design is not mentioned. Why would one take this seriously?
- bscphil 7y agoThe 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.
- mdturnerphys 7y agoIt looks like the owner has shared it three times in the last 2 weeks, which suggests it isn't a joke.
- m463 7y agoCome 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
- Stratoscope 7y agoThat is amazing! I hope you can share the toolchain that lets you convert from one to the other so seamlessly?
- zuckluni 7y agoReplugging bepis, another way to write 'flat' HTML using operators with a slightly different operator set: https://github.com/dosyago/bepis https://github.com/dosyago/bepis For me I just wanted to stop writing all the extra syntax (like `< > =` and closing tags) and use symbols my fingers were already reaching for. Just about conciseness, efficiency and enjoyment. I really like the operator choice in this project!
- panic 7y agoOne advantage is security. The text after the equals sign in each string can't be misinterpreted as HTML syntax, so it's safe to build flat HTML using string concatenation.