---
title: "Discussion on \"What Is a State Machine? The Tiny Brain Inside Every Traffic Light\" | Hashnode"
description: "Discussion on \"What Is a State Machine? The Tiny Brain Inside Every Traffic Light\". To put it simply, a state machine is a small set of rules that says what something is doing right now, and what it is allowed to do next.\nShort version: think of a traffic light — it is always in exac"
url: "https://hashnode.com/posts/what-is-a-state-machine-the-tiny-brain-inside-every-traffic-light/6afe63420ebaeed3cc1dcda0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Is a State Machine? The Tiny Brain Inside Every Traffic Light](https://itsmeminsithu.hashnode.dev/what-is-a-state-machine-the-tiny-brain-inside-every-traffic-light?utm_source=hashnode&utm_medium=feed)

To put it simply, a state machine is a small set of rules that says what something is doing right now, and what it is allowed to do next. Short version: think of a traffic light — it is always in exac

33m ago · 7 min read · itsmeminsithu.hashnode.dev  
Read the article

-   [#state-machine](https://hashnode.com/tag/state-machine)
-   [#programming-concepts](https://hashnode.com/tag/programming-concepts)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#software-design](https://hashnode.com/tag/software-design)

## Written by

[Min SiThu](https://hashnode.com/@itsmeminsithu)

@itsmeminsithu · Singapore

  
[View profile](https://hashnode.com/@itsmeminsithu)

Software Engineer

Nubbad Developer. | Now I accidentally create problems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
