Follow

Linus Torvalds: "If you need more than 3 levels of indentation you're screwed anyway"

Gamedevs: "Hold my beer"

@jon_valdes Can't help but notice most of those only go up to 1, and one of them only loops once on 0. That could/should be dramatically simplified. If you wanted to be fancy then you could store most of those properties as single bits of a ubyte and increment it by 1 each time and still loop over everything. Would save you 8 indents.

@OTheB it's done that way because the iterator values are used later, and it's simple enough to do it like this... At least for a small number of settings. For extreme cases like this, a more automated solution would probably make it simpler, yes

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!