Understanding the Bubble Tea TUI Framework Architecture for Building Terminal Apps in Go/Golang

preview_player
Показать описание
Let's take a deeper dive into the architecture of Charm's Bubble Tea framework, providing a primer to help you understand the underlying structure and components, so that we can build interactive TUIs for our apps.

We'll talk about the key concepts that Bubble Tea borrows from the Elm architecture (Model, View, Update, Cmd, Msg) and go over examples of the unidirectional flow of data through a Bubble Tea app.

This video will serve as the foundation for the next video - "How to Build a Terminal App in Go/Golang with the Bubble Tea TUI Framework and Urban Dictionary API"

Resources:

Chapters:
0:00 Bubble Tea Intro
1:18 NewProgram with optional Model and options
2:05 Run
2:20 Notable Bubble Tea terms
2:38 Init
2:45 Cmd and side effects
3:42 Msg
5:20 Update
6:18 Unidirectional data flow example in MVU
7:22 Bubble Tea Model interface
Рекомендации по теме
Комментарии
Автор

I am a newcomer to golang, wanted to build a TUI with bubble tea and was extremely confused as I've never used elm before. Yours is a great introduction, straight to the point and super clear. Thank you very much!

arturobracero
Автор

This is a hidden gem. TY. Hope all is well and you do more. I am looking at BT to make some retro terminal games. :-D

thisisreallyme
Автор

Man this was good. Thank you for creating and sharing this!

SuperQuwertz
Автор

I just wrote my first tui with this, wish I had seen this video before I started!

Its all much clearer to me now, thanks 👍

DavidStarkers
Автор

you definitely deserve a lot more views

ripple
Автор

Welcome to the elm architecture, it is simply joy.

BassRadian
Автор

Hi Christ, thanks for the video!!
Can you please share the way how we can do the unit testing for the bubble tea framework ?
Thanks!

lovishchaudhary
Автор

this is quality content man, wonder why you didn't continue

mokhosh
Автор

subbin' just cause of your name.... halarious

cd-stephen