Comment

Comment by jayd16

Why are we always so dogmatic?

Struct of Arrays is a great pattern if you need the speed and have enough items to make it worth it. Otherwise just use OOP. Are you going to make an array of singleton data? No, of course not.

>How many places in the code did you have only one of something?

One socket, one host, one pool, and assuming a single player game, there are a lot of ones...

Just relax and use the strengths of both patterns.

parent jayd16 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton