Live data from Hacker News

Build Pong in Your Terminal with Go for Some Reason

earthly.dev

41–44 of 44 posts

Re: Build Pong in Your Terminal with Go for Some Reason

#41

I also have been using Go with Tcell recently. Making small games is how I have always learned new programming languages. I am coming off of a couple of years of playing with C to understand languages better, and free myself from the complex stacks that I use at work. I've been chatting with a highly-educated PL friend of mine about my language likes/dislikes, and he would always remark on really pragmatic choices Go…

I'm mainly do C#, TypeScript, C++ (occasionally) and for some reason I really like go. There are really only 4 things I wish was different and perhaps it would become my goto language.

1) Simplify error handling. It's annoying having to create your own stack frame by composing strings.

2) Let me use my variable names. I find it so annoying that I have to come up with names just because the variable is being shadowed. Either change the package scope to use :: or make types be PascalCase with an `pub` keyword for exports.

3) Add a shorthand for lambda instead of having to type `func()`.

4) Allow a file scoped, not package, variable.

Re: Build Pong in Your Terminal with Go for Some Reason

#42

This was one of my first projects as a kid with Visual Basic. But with working paddles and all! I love Go and use it daily, but I wish we had anything similar to VB, even if it's just a helper UI builder. Being able to shape, position, and name objects visually, then modify attributes in code, is (to me) so much easier than doing it strictly in code. Does any such GUI builder exist? I don't necessarily want VB or a s…

Kinda mystified there isn't an equivalent of VB for Python given its popularity. I mostly live in Jupyter notebooks which is fine for me but I sometimes want to make something with a GUI for my non-technical friends. I'd put in some time making an interactive form thing or so with a GUI but don't care badly enough to learn TK.

I can't stand scripting a GUI. If I'm gonna have a GUI I want to draw it and know what it's going to look like instead of getting surprises when I run it. Whoever does Visual Python will make a lot of money.

Re: Build Pong in Your Terminal with Go for Some Reason

#43
post #15

Earlier quoted context omitted.

I don't really buy into go (it's not my type of language), but I wanted to ask a genuine question: are there many semi-mainstream languages that don't have modules that _just work_, or an official plugin for VSCode that just works? I've never found that to be a "plus", as much as it is the bare minimum. and nowadays I don't see that many up and coming languages that miss out on it. Admittedly though the cross compila…

Most compiled languages have fractured build ecosystems, and may require some tricky invocation orders, external+not-included dependencies, or some funky flags depending on your compiler version. Or may just not work because you have the wrong compiler, missing their preferred build scripting runtime, etc. NPM (packages) frequently go down, doesn't resolve packages, or just does something unexpected. Java has the Gra…

That is 100% fair. I mostly develop on .NET+TS at $dayjob so I never really have experienced particular problems with nuget, and I've had the luck of never having an npm package go down on me either - so I just never really experienced the problems that people are frustrated about.

Re: Build Pong in Your Terminal with Go for Some Reason

#44
post #28

Earlier quoted context omitted.

Rust also has those things. (It also has performance profiling, fuzz testing, benchmarking tools, etc, etc., as I'm guessing golang does.)

Thats dope, and I kind of figured. The tooling is probably why Go and Rust get compared so often, despite having little in common. Its weird to see that written off as a common feature though. It was nothing like my experience with clojure or julia. If there are any languages with Go-like tooling that have a bigger job market, I'd love to know.

[deleted]
Post reply on HN