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

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either! We adhere to an adapted version of the TootCat Code of Conduct and have documented a list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators. Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!