Tagged articles
21 articles
Page 1 of 1
Go Programming World
Go Programming World
May 26, 2025 · Fundamentals

Using Finite State Machines in Go with the looplab/fsm Package

This article introduces the concept of finite state machines, demonstrates how to implement them in Go using the looplab/fsm library with practical code examples, explains the lifecycle callbacks, and shows how to apply FSMs to real‑world scenarios such as door state management.

FSMFinite State MachineGo
0 likes · 17 min read
Using Finite State Machines in Go with the looplab/fsm Package
Tencent Cloud Developer
Tencent Cloud Developer
Jan 9, 2025 · Game Development

Mastering Finite State Machines for Game Objects: From Basics to NPC Patrols

This article explains why finite state machines (FSM) are essential for game development, outlines their core concepts, demonstrates common pitfalls of if‑else logic, and provides step‑by‑step Unity C# examples for object state switching and intelligent NPC patrol behavior, including code snippets and integration tips.

AI code assistantCFinite State Machine
0 likes · 14 min read
Mastering Finite State Machines for Game Objects: From Basics to NPC Patrols
Open Source Linux
Open Source Linux
Jun 14, 2024 · Fundamentals

Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques

This article explains how to implement finite state machines in C using three approaches—switch‑case, table‑driven, and function‑pointer—detailing their structures, code examples, trade‑offs, and extensions such as compressed tables and hierarchical state machines for robust embedded systems.

CExtended State MachineFinite State Machine
0 likes · 17 min read
Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques
政采云技术
政采云技术
Jan 16, 2024 · Fundamentals

Understanding Finite State Machines: Definitions, Usage, Advantages, and Their Relation to Domain‑Driven Design

This article explains what a finite state machine (FSM) is, illustrates it with a car transmission example, outlines its components and diagramming, discusses its technical pros and cons, explores business benefits, and examines how state machines relate to domain‑driven design.

Domain-Driven DesignFinite State MachineSoftware Architecture
0 likes · 13 min read
Understanding Finite State Machines: Definitions, Usage, Advantages, and Their Relation to Domain‑Driven Design
Java Interview Crash Guide
Java Interview Crash Guide
Jun 15, 2023 · Backend Development

Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State

This guide explains the fundamentals of state machines, introduces the four core concepts, shows how to model order transitions with diagrams, and provides a complete Spring Statemachine implementation—including database schema, enums, configuration, persistence, controller, service, listeners, testing, and advanced error‑handling techniques—so developers can create reliable, persisted workflows in Java.

Finite State MachinePersistencespring statemachine
0 likes · 30 min read
Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State
Thoughts on Knowledge and Action
Thoughts on Knowledge and Action
Mar 29, 2023 · Backend Development

Why Choose Workflow Engines Over State Machines for Complex Business Processes?

This article examines the challenges of virtual asset operations, compares workflow engines and finite state machines, outlines their core concepts, implementation methods, and open‑source options, and presents a practical internal‑DSL‑based solution for high‑performance, asynchronous backend processing.

DSLFinite State MachineJava
0 likes · 10 min read
Why Choose Workflow Engines Over State Machines for Complex Business Processes?
DaTaobao Tech
DaTaobao Tech
Feb 15, 2023 · Game Development

Why PlayMaker Dominates Unity Game Logic: A Deep Dive into Visual FSM

This article examines PlayMaker, the popular Unity visual state‑machine tool, explaining its core concepts, editor features, extensibility, collaboration benefits, limitations, and how it differs from other visual‑scripting solutions, while highlighting real‑world game examples and technical insights.

Finite State MachineGame DevelopmentPlayMaker
0 likes · 12 min read
Why PlayMaker Dominates Unity Game Logic: A Deep Dive into Visual FSM
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 13, 2022 · Fundamentals

Introduction to Finite State Machines and Their Application in Business Systems

This article introduces deterministic finite state machines, explains their core elements, discusses their advantages for code clarity and separation of concerns, and demonstrates a practical Java implementation for order processing in a commerce platform, including configuration, business logic, exception handling, and extensibility considerations.

Finite State Machinebusiness logicstate machine
0 likes · 12 min read
Introduction to Finite State Machines and Their Application in Business Systems
Zhuanzhuan Tech
Zhuanzhuan Tech
Apr 20, 2022 · Backend Development

Transaction Middleware: FSM and Concurrency Model Practices and Exploration

This article examines the challenges faced by a transaction middleware platform, introduces a finite‑state‑machine (FSM) solution for order state flows, and compares traditional serial processing with future‑based staged concurrency and event‑driven concurrency models, highlighting their benefits and trade‑offs.

BackendEvent-drivenFinite State Machine
0 likes · 11 min read
Transaction Middleware: FSM and Concurrency Model Practices and Exploration
vivo Internet Technology
vivo Internet Technology
Apr 6, 2022 · Backend Development

State Machine Design and Implementation for Marketing Automation Activities

To orchestrate multi‑channel marketing activities, the article explains how a finite‑state machine models status flows, compares conditional, state‑pattern, and DSL implementations, evaluates Spring Statemachine, Squirrel, and Cola frameworks, and showcases Vivo’s high‑performance DSL‑based FSM as a practical solution.

BackendDSLFinite State Machine
0 likes · 18 min read
State Machine Design and Implementation for Marketing Automation Activities
Sohu Tech Products
Sohu Tech Products
Sep 22, 2021 · Fundamentals

Understanding Finite State Machines and Their Implementation in Swift

This article introduces finite‑state machines, explains their mathematical definition and classification, demonstrates a simple metro‑gate example, and provides two complete Swift implementations—one using object‑oriented design with protocols and classes and another using a functional style with generic transition structs and thread‑safe queues—followed by a real‑world keyboard‑state use case.

Finite State MachineSwiftfunctional programming
0 likes · 18 min read
Understanding Finite State Machines and Their Implementation in Swift
ELab Team
ELab Team
Sep 10, 2021 · Frontend Development

Mastering the State Pattern: Light Switch to Finite State Machines in JS

This article explains why using if‑else for state handling violates the Open‑Closed Principle, introduces the State design pattern with a light‑switch example, demonstrates its implementation in JavaScript (including class‑based and functional FSM libraries), and compares it to the Strategy pattern.

Design PatternsFinite State MachineJavaScript
0 likes · 17 min read
Mastering the State Pattern: Light Switch to Finite State Machines in JS
ITPUB
ITPUB
Jan 19, 2021 · Backend Development

How to Build a Scalable Marketing Automation Engine with FSM and Real‑Time Controls

This article explains the full design of a marketing automation system—from requirement analysis and essential capabilities to a four‑layer architecture, FSM‑based engine model, execution strategies, and key modules such as state control, time control, event rule processing, action execution, monitoring, exception handling, and data warehousing—providing a practical blueprint for developers.

Finite State MachineMarketing AutomationSystem Design
0 likes · 11 min read
How to Build a Scalable Marketing Automation Engine with FSM and Real‑Time Controls
58 Tech
58 Tech
Jan 18, 2021 · Backend Development

Design of a Marketing Automation System: Requirements, Architecture, and Engine Implementation

This article explains the need for marketing automation, analyzes requirements, proposes system capabilities, presents a four‑layer architecture inspired by IDE/JVM concepts, and details the FSM‑based engine model with trigger, action, and execution strategies for complex multi‑step marketing scenarios.

Backend DevelopmentFinite State MachineMarketing Automation
0 likes · 10 min read
Design of a Marketing Automation System: Requirements, Architecture, and Engine Implementation
WecTeam
WecTeam
Oct 24, 2019 · Fundamentals

How to Build a JavaScript Lexer for Arithmetic Expressions Using a Finite State Machine

This article explains how to implement a lexical analyzer in JavaScript that tokenizes simple arithmetic expressions by using a finite state machine, covering the conversion from infix notation to an abstract syntax tree, token definitions, state transitions, and complete source code examples.

ASTFinite State MachineJavaScript
0 likes · 9 min read
How to Build a JavaScript Lexer for Arithmetic Expressions Using a Finite State Machine
Youzan Coder
Youzan Coder
Aug 21, 2019 · Operations

How Opsflow Revolutionized Youzan's DevOps Workflow Management

This article examines the evolution of Youzan's Opsflow workflow engine, detailing its architecture, components, and how it solved numerous operational challenges such as low customizability, lack of progress visibility, and fragmented approval processes, while outlining its current status and future roadmap.

AutomationDevOpsFinite State Machine
0 likes · 13 min read
How Opsflow Revolutionized Youzan's DevOps Workflow Management
ITPUB
ITPUB
Jul 3, 2017 · Fundamentals

Mastering Finite State Machines in C: From Simple If/Else to Function Pointers

This article explains what a finite state machine (FSM) is, where it is commonly used, and walks through three C implementations—plain if/else, switch‑case, and a function‑pointer table—highlighting their advantages, drawbacks, and providing complete code examples.

CFinite State MachineFunction Pointer
0 likes · 8 min read
Mastering Finite State Machines in C: From Simple If/Else to Function Pointers