Lurker News

Comments (304) 119 threads

Show all comments

Showing thread 4 of 119

pvsukale36 replies#
I opened this game in an incognito tab. And started dev tools. The entire game is only 2.8 MB. It loads fast. Such graphics, much small. A lesson for modern web developers about website obesity and performance.
subcosmos1 reply#
As an obesity geneticist, I fully approve of your invention of this term! LOL
chickenfries2 replies#
I mean this is nice but it's really not a lesson for web developers. The fact that this is 2.8mb doesn't really teach a web developer any lessons, unless you think that large website payloads exist because developers are literally too lazy or don't know how asset optimization works.

Instead, having worked in web development, I know that website payload size is often driven by having to include vendored javascript for business reasons (analytics and social are big culprits) or because your boss doesn't give you the time to focus on performance because for the business, it is good enough and they want to use their limited web development resources to do something other than shrinking javascript payloads.
Another thing, you're impressed by the graphics and how the developer was able to include them while keeping the payload small. It seems to be made using vectors and particle effects. Both of these techniques are not heavy in terms of payload. Shaders and particle effects are generally very small amounts of code. Think about how this is different for a website that heavily relies on all sorts of user-generated content: jpgs, mp4, gif, png, etc. Much larger assets than a few shaders and svg.

rev_bird3 replies#
>unless you think that large website payloads exist because developers are literally too lazy or don't know how asset optimization works.

For what it's worth, I do think this. It's easy to just drag another JS library into your code without thinking of how long it's going to take to load.

chickenfries6 replies#
I don't know what to tell you if you're convinced that's the problem. I know and work with many web developers who do care about performance. I follow the blogs of many web developers who write about performance.

I don't doubt that there are junior web developers who don't know much better. But I don't really meet anyone who says that they just don't care about performance.

Continue this thread — 6 replies

sebringj7 replies#
If you balance pay vs. skill and the rarity of such an incredible web game...things are quite the way they should be. Reality. No one is going to pay an average web developer to care that much because they themselves do not care enough to invest in the talent or the time involved.

Continue this thread — 7 replies

kbutler6 replies#
Website payload is easily measurable (it is probably the most easily measurable factor), and optimizing it is attractive to developers. That doesn't mean it is the most important factor, much less the only important aspect of development.

Rather than "lazy" or "don't know", how about:
- it's fast enough
- have other priorities (security, stability, usability, functionality)
- optimize developer time
...

Continue this thread — 6 replies

manigandham1 reply#
This is true for the sites, however then it's the vendors who are then lazy and put out bloated packages, which is much worse since they have an outsized impact on all the sites they're included on.
chickenfries#
Yes. Not only that, it's the cumulative effect of having to include tags from so many vendors.
WhitneyLand1 reply#
Yes, also the immediacy of experience. No signup, no prompts or forms, no friction. Just one click and you’re immersed in the action.

When companies clutter first experience with legal disclaimers, signup offers, and every other thing, I wonder if they are always carefully balancing the competing interests of business and product design as a big picture weighing everything together.
To the extent they do that’s great, but it seems sometimes its a lawyer trying to do and think only of their job, a marketing person only thinking of their job, sales only thinking about revenue, rather than globally optimized decision.

rictic1 reply#
And developers only thinking about the development experience. In my next project I'm going to monitor the gzipped size of my deployed site as part of continuous integration.

Continue this thread — 2 replies

grondilu2 replies#
This is the kind of gaming experience I'm hoping webassembly will bring. No installation, just visit a website and play.
iainmerrick2 replies#
Why do you need webassembly for that, since this game already works great right now?
grondilu#
For more CPU demanding games, that is. Like AAA games.
TeMPOraL2 replies#
So that you can write in something saner than JavaScript, for starters.

Continue this thread — 2 replies

thaumasiotes1 reply#
Isn't that the gaming experience Flash already brought?
jhasse2 replies#
You had to install Flash though.

Continue this thread — 2 replies

0xcde4c3db1 reply#
Am I horribly out of touch to think that 2.8 MB seems big for this level of complexity? I'm not saying every web game needs to be a js1k, but that's roughly the size of a well-above-average SNES or Genesis game (e.g. Super Metroid or Phantasy Star IV).
ivm#
Yes, but that's what the world without Flash games looks like. :)
posterboy#
> 2.8MB

> small
> website obesity
Phis is not a website, but my throttled phone connection disagrees either way.
Please have a look at js1k. Or go directly to size coding, e.g. .kkrieger, which is a FSP game techdemo in 96kb, see https://news.ycombinator.com/item?id=14409210