Live data from Hacker News

CSS Minecraft

benjaminaster.com

141–150 of 154 posts

Re: CSS Minecraft

#141

Earlier quoted context omitted.

Sometimes "other developers" is also "coworkers". I've found less ambiguity to be a better thing than not, where possible. Self-closing a tag that can't contain anything is one such example of removing ambiguity for "hobbyists".

One would need to know the tag is self-closing in order to put the closing slash in. Right? So if one knows it's self-closing already, why do they need to add the extra weight? Makes no sense. If one wants to add content to a self-closing element, one has far more problems than we're talking about here.

> If one wants to add content to a self-closing element, one has far more problems than we're talking about here.

Yes.

Re: CSS Minecraft

#142

Hello people, author here! Some comments on this from my side: - You people totally overwhelmed my website... I use(d) Firebase static hosting because it's completely free and super simple, which reached the 10 GB monthly limit now. I changed to Cloudflare in the meantime, but it'll need some time for the DNS records to update. IN THE MEANTIME, PLEASE USE THE GITHUB PAGES LINK INSTEAD: https://benjaminaster.github.io…

This was criminally underrated, great job

Re: CSS Minecraft

#143
post #2

Without a doubt the most impressive thing I've seen with CSS. This immediately brought "A Single Div"[0] to mind, which stood as the coolest CSS demo I'd seen for... 11 years! This one takes the cake. I'll be pouring over it. Thanks! [0]: https://a.singlediv.com/

this is my favorite one one I've seen: https://lyra.horse/css-clicker/

These were 1852 seconds well spent. If you don't hate clickers, try this one, it was definitely made with love.

Re: CSS Minecraft

#144
post #130

Earlier quoted context omitted.

My point is that there will be too many who will look at this and start using CSS in ways it is not intended. Even today, far too many people attempt to use CSS for things best left for SVG.

These sorts of CSS experiments have been around for as long as CSS. There even used to be a site where an entire community would take basic markup and use CSS to turn it into something else. (I just googled that phrase - the site is CSS Zen Garden. It’s impressive Google found it because that was a bad search.) Some people did create monstrosities, others learned the limits of CSS and used that knowledge to advance C…

CSS Zen Garden is not an experiment as shown in the title of this post. The Garden shows how CSS can style the HTML elements in many different ways but it is not there to create or manipulate images as shown in the subject of this post.

That said, I have not looked at the Garden in many years so if you fine one, then you found .... one ... and I loop back to my original comment: that such things are impractical, it's not what CSS is for, and should be avoided.

Re: CSS Minecraft

#145
post #2

Without a doubt the most impressive thing I've seen with CSS. This immediately brought "A Single Div"[0] to mind, which stood as the coolest CSS demo I'd seen for... 11 years! This one takes the cake. I'll be pouring over it. Thanks! [0]: https://a.singlediv.com/

this is my favorite one one I've seen: https://lyra.horse/css-clicker/

Wierd, posting the last blog post crashed firefox.

Re: CSS Minecraft

#146
post #81

Earlier quoted context omitted.

Obviously... That's why it was done For fun and to see whether it could be done

My point is that there will be too many who will look at this and start using CSS in ways it is not intended. Even today, far too many people attempt to use CSS for things best left for SVG.

This is basically the same take as "violent videogames cause school shootings"

Re: CSS Minecraft

#147
Did anyone else involuntarily let out multiple expletives when they saw it and it dawned on them how hard this must have been?

This is insane to me.

Re: CSS Minecraft

#148
post #27

Very impressive! As I've hit my mid-life slide and (regressed|progressed) back to my youth-self, I've found myself just writing a bunch of apps and sites in html and css and really enjoying it. One thing I still would like to see cracked is a random-like number in pure CSS. You can almost us there with some of the math functions and browser attributes, but I haven't found anything reliable.

you can pretty easily get randomness for clickable stuff by animating the z-index of multiple objects

Re: CSS Minecraft

#150

Earlier quoted context omitted.

Sometimes "other developers" is also "coworkers". I've found less ambiguity to be a better thing than not, where possible. Self-closing a tag that can't contain anything is one such example of removing ambiguity for "hobbyists".

One would need to know the tag is self-closing in order to put the closing slash in. Right? So if one knows it's self-closing already, why do they need to add the extra weight? Makes no sense. If one wants to add content to a self-closing element, one has far more problems than we're talking about here.

It can be done by libraries, for example, which want their output to be valid in both HTML and XHTML.

Note that's it's not a syntax error in HTML - because HTML doesn't have syntax errors. The HTML5 spec tried to codify all the weird Postel's law quirks of existing HTML4 parsers, and in this case, tells you how to ignore the extra / if you're a parser. Nothing is a syntax error.

Post reply on HN