https://github.com/terhechte/pragma2017-example-code
Unidirectional Data Flow Examples
https://github.com/terhechte/pragma2017-example-code
Last synced: 5 months ago
JSON representation
Unidirectional Data Flow Examples
- Host: GitHub
- URL: https://github.com/terhechte/pragma2017-example-code
- Owner: terhechte
- Created: 2017-10-13T13:05:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T15:46:42.000Z (about 8 years ago)
- Last Synced: 2025-04-12T11:25:08.034Z (9 months ago)
- Language: Swift
- Size: 69.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unidirectional Data Flow Examples
These are examples of various implementations of the redux and react workflows in Swift. They're based on my talk:
[*Simplifying State by partially introducing unidirectional data flow in your codebase*](https://speakerdeck.com/terhechte/simplifying-state-by-partially-introducing-unidirectional-data-flow-in-your-codebase)
[from Pragma Conference 2017](http://pragmamark.org)
The code is examplatory. There're multiple different branches based on the different parts of my slides.
## master
The base branch (you're here)
## simplest_redux
A very simple implementation of Redux in Swift
## redux_reducer
Adding a proper reducer to the Redux implementation we saw earlier
## with_uistackview
Adding a stackview to emulate the basics of what react diffing does
## with_parentforms
Adding parent forms / subforms to our form in order to allow nesting stackviews
For questions or anything, you can watch the video here:
[WIP]
Checkout the slides here:
[Speackerdeck presentation](https://speakerdeck.com/terhechte/simplifying-state-by-partially-introducing-unidirectional-data-flow-in-your-codebase)
Or contact me here:
[@terhechte](https://twitter.com/terhechte)