A Composable Message Parser for Chatbots
A practical TypeScript pattern for chatbot message parsing: small predicates decide when a parser runs, parser functions emit domain events, and the dispatcher stops only when a command asks it to.
Page 2 of 5
A practical TypeScript pattern for chatbot message parsing: small predicates decide when a parser runs, parser functions emit domain events, and the dispatcher stops only when a command asks it to.
Old video archives often fail to import cleanly into Apple Photos because the container, video codec, audio codec, or metadata is not what the Apple stack expects. FFmpeg is enough to fix most of that, but the right command depends on what is actually inside the file.
The past few years have been a tough time for me. I was in a deep life crisis and was no longer willing to work on my website. It was always a hobby without commercial or social use, a tiny factory for regular bills. I was in debt then, so I killed it without a second thought or regrets.
Git uses the words ours and theirs from the point of view of the operation it is currently performing. That is why they mean one thing during merge and can feel reversed during rebase.
Well, it's plain and simple to express: Err and err and err again, but less and less and less. - Piet Hein
Books were hard to get when I was a kid. They were expensive and, on top of that, in short supply. Many people owned no books at all; some copied them by hand. But there were always plenty of books in our family, and it was shocking to me to see a room with no books in it.
Reducer composition is still the core Redux idea, even though modern Redux code usually starts with Redux Toolkit, configureStore, and createSlice.
I have never been really good at writing. I won some rewards in my childhood. I wrote some shitty verses in my youth. None of those achievements really were significant for the universe around me. It was all like a silly child play with the symbols I barely know.
A practical guide to application configuration: keep deploy-specific values out of code, parse and validate configuration at startup, make precedence explicit, and treat secrets as secrets.
PHP CLI can read environment variables directly, but PHP-FPM intentionally clears worker environments by default. Here is how to pass only the variables your application actually needs.