Live data from Hacker News

Fluid Glass

chiuhans111.github.io

61–70 of 125 posts

Re: Fluid Glass

#61

This website is running at >10 FPS at 100% GPU usage

Its interesting that most comments appear to be running it on their phones. I wonder if most links on HN are viewed on phones primarily? Phones are generally newer than laptops and most developers will have the latest technology.

Developers especially with tech demos like this, use the latest tech to develop and don't care about supporting older devices. This attitude can sometimes bleed over into their work where they should care for users using older machines, but its expected for a look-at-the-shiny demonstration to other techies using top of the range hardware.

( I am seeing the same laggy effects on an older linux + firefox laptop with integrated graphics, unsurprisingly )

Re: Fluid Glass

#62

Refreshing that it's built using the vue framework vs the typical react.

Why? React is much better than Vue in my experience. Vue 2 was so bad we ended up painfully porting an entire election app to react at a previous job.

svelte's better than both : ^ )

(someone continue this with framework x)

but seriously, I'm very interested to hear your gripes with Vue that were solved by react, since the latter feels much worse DX-wise than both Vue or Svelte, notwithstanding worse performance as well.

Re: Fluid Glass

#64

Refreshing that it's built using the vue framework vs the typical react.

In practice, it’s been written as plain JS with a tiny bit of gratuitous Vue and SCSS bolted on (see even how Vue’s onMounted and onBeforeUnmount are fed callbacks that just run the actual initOGL and destroy functions). It would have been easier and shorter to write without Vue and SCSS than with them! What’s currently spread across index.html, src/styles.scss, src/main.js and src/App.vue would have worked better all in index.html, or if you really wanted to, you could still split the CSS and JS into files src/styles.css and src/main.js.

Re: Fluid Glass

#67
Imagine adding support for gyroscopes on phones and then you can make the water flow away when you rotate your device! Great work btw

Re: Fluid Glass

#70
post #62

Earlier quoted context omitted.

Why? React is much better than Vue in my experience. Vue 2 was so bad we ended up painfully porting an entire election app to react at a previous job.

svelte's better than both : ^ ) (someone continue this with framework x) but seriously, I'm very interested to hear your gripes with Vue that were solved by react, since the latter feels much worse DX-wise than both Vue or Svelte, notwithstanding worse performance as well.

Svelte's MUCH better than both : ^ )

(You didn't say framework x had to be a different framework than Svelte! x)

Post reply on HN