Hacker Newsnew | past | comments | ask | show | jobs | submit | more leg100's commentslogin

I like the version diffs.

Perhaps add an "expand all" button to avoid clicking individually on properties to see their descriptions?

I usually rely on the official generated docs (all on one giant page):

https://kubernetes.io/docs/reference/generated/kubernetes-ap...


Because it's questionable whether that's even possible.


Of course it is possible! Around 25% of the world's steel is already produced by electric arc furnaces. 100% in some countries, and over 70% in the USA.

The UK exports 7-8 million tonnes of scrap steel every year, while producing about 5 million tonnes in blast furnaces. There's more than enough feedstock to replace all the UK blast furnace steel production with EAFs and still have some left over.


Does that apply in the case of war, which was intended by ‘strategic’? I’m reminded of Australia’s supply of iron to Japan before WWII. Which earned future prime minister Robert Menzies the nickname ‘Pig Iron Bob’.

https://en.m.wikipedia.org/wiki/1938_Dalfram_dispute


In the case of war we'd need to import iron ore anyway so, with this we can import scrap steel.


Newport is in South Wales.


Yeah, Newport is in the South East of Wales.


What? They did hold off. Their actions matched their words.


Indeed a typo, well spotted, it should return the model as well.


Thank you. Out of curiosity, what do your "TUI managers" do for your apps?


A lot of the apps need to interface with our ERP's database so I have to build out the interface layer. Since I'm already writing in Go, it's super easy to add a TUI to call the interface layer for testing/ one off interactions. For example, one app has a pretty simple auth rolled into it. I wrote a quick user manager to handle creating and updating users in the database. Recently, I've actually been making more use of Huh since the TUI's usually aren't stateful, but I still really like the model of Bubble Tea


Good point. I'll update this section to more clearly refer to the use of go routines in particular outside of the event loop.


I've put together some tips for building Bubble Tea programs:

https://leg100.github.io/en/posts/building-bubbletea-program...


No, it's definitely passed by value:

https://go.dev/play/p/mIehOwUWz95

A map is implicitly a pointer to the underlying map structure. When you pass a map, you're passing a copy of a pointer.


I've built a TUI for terraform:

https://github.com/leg100/pug

It's built using Go and the bubbletea library. It's been a breath of fresh air compared to building a web app, simpler and faster to develop and test. And of course far more responsive than a web app could ever be.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: