News for hackers. Stuff that matters.
Re:A Formal Theory of Spaghetti Code by WinterMount223 on Saturday March 12, 2022 @05:28PM (#30655572)
I’m sorry I don’t get it.
Re:A Formal Theory of Spaghetti Code by gumby on Saturday March 12, 2022 @06:20PM (#30656018)
Apologies if your comment was meant to be witty.

The thermos doesn’t have a toggle (flag) on the outside that the operator sets to “hot” or “cold”. If you want to know you look. And instead of giving it a “hot mode” and “cold mode” you just build it to prevent mutation of the contents.

Likewise its weight or fill level: just look. Having flags is extra work keeping them up to date plus worrying about what to do when they are wrong or in an unexpected combination.

But people write code that way all the time. I do my best to avoid hiring them.

Re:A Formal Theory of Spaghetti Code by WinterMount223 on Saturday March 12, 2022 @09:34PM (#30657320)
Thanks. That’s very common in weak relational database schemas where people like adding redundant stateful columns.
Re:A Formal Theory of Spaghetti Code by skwog on Saturday March 12, 2022 @06:10PM (#30655920)
Wider observation of the possibility for emergent behaviour vs narrow assumption of declarative state programming.