Quick #iocaine 4 question! In iocaine 4, the checks will apply scores to the request, those scores will be tallied, and if they cross a threshold, it's maze time1. I want to make those scores configurable, so one can tune how each check contributes, which ones are important, which ones aren't.
Today's poll is about how to configure scores. Before we get to the poll, though, some context! Most tunable knobs in iocaine 4 are changeable via the set and append-to keywords:
set ai.robots.txt::botlist-file "some-path/list.txt"
append-to ai.robots.txt::excluded-bots "Dot" "nbot"
set changes a value, append-to appends to a list (and throws an error if the value is not a list).
Do I use set for scores too (set nsoe.ai-robots.txt::score 100) or do I introduce a new keyword (score nsoe.ai-robots.txt 100), or do I support both (it's a multi-select poll)?
It's more complicated than that, but for the sake of the question, I'm simplifying how things work. ↩︎
@algernon i hate having to learn a whole dsl for a single purpose. so i voted
setas it feels like fewer things to remember, look up, or think aboutbut... if this is implemented within an extant language and
scoreis "just a function call" in that language, such that one might write conditionals or loops around it? i think then i'd be okay withscore.(but! allowing
setthen feels weird. like manipulating "private" data. having to wonder whatscoremight do thatsetdoesn't)