Live data from Hacker News

Go Is the New Ruby

00f.net

1–10 of 61 posts

Re: Go Is the New Ruby

#2
“All languages suck, but they all bring interesting concepts as well, that can overall make you a better programmer.”

True on so many levels. Learning other languages means learning a new way of thinking due to the reasons those languages were created in the first place. Even if you never change the language you use daily, learning other languages and doing small projects in them will make you better in your “home” language.

Re: Go Is the New Ruby

#3
Go really is the easiest language I've used. It installs with no fuss. The VSCode extension sets everything up and works perfectly. The library documentation is so clear that it usually answers any question I have without having to dig up blog posts and without dodging top search result Stack Overflow pages closed without answering the question. The highly opinionated nature means I can go into any Go code base and make sense of it quickly.

Re: Go Is the New Ruby

#6
post #4

Then what is the new Rails?

the standard library if you ask most Go developers it seems. It's an old joke that whenever you ask for something like Rails in Go many / most of the devs will tell you to use the standard library. The sad thing is, they actually do that again and again.

That being said, someone said "screw that" and built Buffalo https://gobuffalo.io/en which is as close as you can get in Golang at the moment.

Re: Go Is the New Ruby

#8
I enjoy learning new languages. In my day job I spend most of my time writing JS (ReactJS specifically) building dashboards and other internal business tools. Sometimes I need to build API's or perform tasks that just cannot be done in the browser and I take the opportunity to experiment with other languages.

A few examples:

- We purchased a cheap USB duplicator (10 slots) to copy the contents from a master USB to the clones. It worked, but wasn't a great solution. It was slow, error prone and when it failed you never really knew what USB was having the issues (or what went wrong). Using a Golang backend and ReactJS frontend I created an alternative which had a nice GUI showing what files were copying, the percentages complete, error messages, etc. It was a far better solution and using Goroutines it was fun. We ended up scaling the system to 100 USB's at a time and that was fun to watch (lots of blinky lights :D). The solution didn't take much time to write (Golang was quick to learn) and we finished the duplication WAY sooner than the due date.

- We needed to automate a bunch of DNS stuff with CloudFlare. I ended up creating a parser for a custom config we wrote, hooked it up to CF's API and we ran it as a service. The language I used for this project was Nim[0]. I liked the syntax and the final binaries were TINY and FAST.

- More recently I was approached by an IT guy at the company that manages all of our software licenses. He showed me this command line tool he uses to query all licenses and goes through the cryptic output trying to figure out what licenses were being used, by whom, etc. I ended up using Go to parse the command and serve a ReactJS application with all sorts of bells and whistles (reports, history, alerts, etc). Since the application is browser-based he can even use it mobile which he loves.

- I've been working on some prototype BLE Mesh stuff in C, but that is a ways out and not yet worth mentioning much more.

Rust has held my interest for a while as well, just waiting for the right project to come along.

[0]https://nim-lang.org/

Re: Go Is the New Ruby

#9
post #2

“All languages suck, but they all bring interesting concepts as well, that can overall make you a better programmer.” True on so many levels. Learning other languages means learning a new way of thinking due to the reasons those languages were created in the first place. Even if you never change the language you use daily, learning other languages and doing small projects in them will make you better in your “home” l…

Not true, There are lots of languages that bring absolutely nothing to the table in terms of making you a better programmer. Take something like Elm, it doesn't make you a "better programmer". It does make your program better by being statically typed. Kinda like typescript doesn't make you a better programmer than if you use javascript, but it makes your program better. You can say this for a lot of languages.

Re: Go Is the New Ruby

#10
post #3

Go really is the easiest language I've used. It installs with no fuss. The VSCode extension sets everything up and works perfectly. The library documentation is so clear that it usually answers any question I have without having to dig up blog posts and without dodging top search result Stack Overflow pages closed without answering the question. The highly opinionated nature means I can go into any Go code base and m…

Go is the new Java.

It runs everywhere, is easy to learn and use and people who don't get it hate it with passion.

Anyway, comparing go documentation with rust docs, I'm surprised anyone can get any work done with rust.

Post reply on HN