2024. February 21.
Programming correctly
One post not post, two posts half post. I need to add a couple of posts quick, to make the features of the blog more apparent. Meaningful. The features in quesiton are the catalog and the tag system. Today let's write something whimsical.
When we start learning coding we surely came across such wisdom that infinite loops are baed, and should automate as much as possible. I see at least one field where an infinite loop can be part of the automation process. I think this could be great in JavaScript.
document.onload = function() {
automateGovernment();
}
function automateGovernment() {
var publicInterests = ["healthcare",
"education",
"publicSafety",
"lawEnforcement",
"defense",
"infrastructure",
"culture",
"socialSystem"];
var scapegoats = ["opposition",
"foreignMeddling",
"globalEconomy"];
var budget = {
taxes,
fees,
loans,
privatization,
increase()
}
bribesAccept = true;
while(true) {
budget.increase();
publicInterests.forEach.(cutFunding);
try {
budget.redirectSlushFund();
} catch {
budget.redirectFriends();
}
if (publicOutcry) {
try {
demonstrators.policeBrutality();
} catch {
scapegoats.forEach(shiftBlame);
}
}
}
}
This could potentially revolutionize the politician profession. They could just open the browser on their office desktops, and let it run, freeing them up to concentrate on more important things like banging sluts on their yacths. Real paradigm shift.
Meanwhile updated the todo list, finally added the info/help to the corner button.