Live data from Hacker News

Bubble Tea: fun, functional and stateful way to build terminal apps

github.com

41–50 of 116 posts

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#42
I've been using dialoguer [1], indicatif [2], and colour [3] for the rust ecosystem. Really high quality libraries:

[1] https://docs.rs/dialoguer/latest/dialoguer/ [2] https://github.com/console-rs/indicatif [3] https://docs.rs/colour/latest/colour/

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#43

This looks like a really cool project, however I have to say that the Go language seems like a terrible match for the Elm architecture.

I’m not overly familiar with Go and would be curious to hear more details about this.

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#44
post #31

Earlier quoted context omitted.

Why not? There's a lot to hate about every language, but one advantage about Go is that it's fairly easy to context switch in/out of, which makes it great for side projects, because it's cognitive load while using it is really low. Unlike say, Rust. I do love Rust though.

I'm only really interested in learning a language if it excites me, or if I'm getting paid to do it. I don't hate Go, and would be fine to learn it on company time for company projects, but there is no spark that would lead me to learn the language on my own. I've written some basic Go, but if I'm using it in personal projects, I'd would have to invest time to understand the ecosystem, runtime, standard lib, best pra…

It's not exciting but it is pleasing. The ecosystem is refining well (e.g., $GOPATH deprecated and workspaces just added).

Now with generics there's even less to complain about.

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#45
post #7

One of my favorite TUI frameworks. I made https://github.com/mathaou/termdbms with it. A very pleasant experience.

Ha, I checked it out and it was definitely worthy of a star -- then I noticed I'd already done so. Now I just need to get around to playing with it.

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#47
post #14
post #9

I don't like things that pollute our natural language namespace. Couldn't you have named it something unique?

An overwhelming number of programming-related things "pollute our natural language namespace". Off the top of my head: Ruby, Python, Java, Rails, React, Go, Rust, Elm, Dart, C, C#, Node, Next, Nest, Kafka, LaTeX, bash, fish, cat, Android, Apple, Windows… I'd be happy to search for this with "bubble tea framework" or "bubble tea tui" or similar and it doesn't bother me.

All Terrible.

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#48
post #11

This and the surrounding ecosystem was recently featured on an episode of The Changelog podcast. https://changelog.com/podcast/481

Thanks for sharing the show! Here's a transcript for those who'd rather read: https://changelog.com/podcast/481#transcript And a couple audiogram snippets from the conversation: https://www.youtube.com/watch?v=8-5WAKrt9GQ https://www.youtube.com/watch?v=OE5LzZbojX8

Hey it’s our Internet friend!

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#49
post #30
post #29

Earlier quoted context omitted.

I bet you HATE the Go language name.

I call it "Golang". I also _hate_ the use of 1 letter variables in Golang. Give me three and make it easy to search for symbol names in my no-frills editor. /derail.

Golang for written communication when you want it to be searchable but day to day usage Go works just fine.

The single letter variable approach is sensible and not dogmatic -- e.g., `i` in a tight for loop makes sense.

Re: Bubble Tea: fun, functional and stateful way to build terminal apps

#50

I spent a good chunk of time last week looking for a solid cross-platform GUI toolkit. I came to the conclusion that the terminal is the most portable GUI platform available. You can create an app that has windows, buttons, mouse support, etc, statically compile it for Windows, Linux, and Mac, and run it over SSH. The closest you can get to that with real graphics is using a toolkit built on OpenGL, and you'll be for…

Are you sure? https://hpjansson.org/chafa/
Post reply on HN