Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@andymatuschak
andymatuschak / States-v3.md
Last active April 12, 2024 16:06
A composable pattern for pure state machines with effects (draft v3)

A composable pattern for pure state machines with effects

State machines are everywhere in interactive systems, but they're rarely defined clearly and explicitly. Given some big blob of code including implicit state machines, which transitions are possible and under what conditions? What effects take place on what transitions?

There are existing design patterns for state machines, but all the patterns I've seen complect side effects with the structure of the state machine itself. Instances of these patterns are difficult to test without mocking, and they end up with more dependencies. Worse, the classic patterns compose poorly: hierarchical state machines are typically not straightforward extensions. The functional programming world has solutions, but they don't transpose neatly enough to be broadly usable in mainstream languages.

Here I present a composable pattern for pure state machiness with effects,

@killobatt
killobatt / grammarly-ios-team.md
Last active October 17, 2020 15:09
Як працює Grammarly iOS Team.

Вітаю! Мене звати Славік Володько, я інженер в iOS-команді Grammarly, і я шукаю крутих iOS інженерів в нашу команду.

Супер, а чим ви займаєтесь?

Наша команда працює над Grammarly Keyboard: кастомною клавіатурою, що дозволяє покращувати англомовні тексти у будь-якому додатку на iOS-платформі.

А як ви працюєте? Які бест-практіси юзаєте?

  • У нас у команді немає QA-інженерів. Все, що ти релізиш – одразу йде на продакшн до користувача.
  • Окрім того в нас цілковита відкритість: усі цифри по кожному з продуктів доступні для всіх інженерів, а весь зворотний зв'язок від користувачів стікається в єдине місце, де кожен інженер може його почитати. Таким чином, зв'язок між інженером та користувачем в обидві сторони є максимально коротким.