News for hackers. Stuff that matters.
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @07:03PM (#39597762)
After messing around with Elixir, I decided on my own that the Elixir ship wasn't worth it for me and I moved on to typescript.

Now I am debating between Rust and Go for backend development (for a web service). Which one between these two would be recommended for my needs? My priorities are to be able to learn quickly and develop/iterate as fast as possible.

Re:How I keep myself alive using Golang by blandflakes on Monday March 04, 2024 @07:34PM (#39597993)
I'd love to hear why Elixir wasn't for you - not from a judgemental place, I just like hearing others' experience reports for languages that stuck or didn't.

For a web service with fast iteration times, I'd probably pick Go of those two. While I'm not personally a giant fan, I think it is a much simpler stack that lets developers be pretty productive especially in the domain of web services.

Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @11:18PM (#39599397)
Iteration was easier but the main complaint from my team was it was hard for junior engineers to pick up and understand. Along with that, IDE support still seems poor (we use Jetbrains and the Elixir plugin doesn't work reliably for us)
Re:How I keep myself alive using Golang by srameshc on Monday March 04, 2024 @07:12PM (#39597826)
Go is "amazing" . I am using Go since the very early days, and I absolutely love it. I have built services using Go and manage it all by myself. The community is so awesome and there is likeyly an opensource project that supports your need when you want it to do something exceptional.
Re:How I keep myself alive using Golang by aleksiy123 on Monday March 04, 2024 @07:12PM (#39597827)
If your goal is iteration and development and not performance, why not just stick with a typescript backend?
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @11:17PM (#39599390)
Just wanted to use something new this time since I feel like I'm bored with TS now.
Re:How I keep myself alive using Golang by not-my-account on Monday March 04, 2024 @07:04PM (#39597774)
Go is probably your choice, it was stupid fast to pick up. It’s a fun language too
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @07:06PM (#39597788)
Is there a good batteries-included framework for Go, like Ruby on Rails or Django?
Re:How I keep myself alive using Golang by kreek on Monday March 04, 2024 @07:34PM (#39598002)
While not quite as batteries-included as Rails, Fiber made the most sense to my Ruby/Rack brain.
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @11:16PM (#39599383)
Thank you!
Re:How I keep myself alive using Golang by ralfhn on Monday March 04, 2024 @07:11PM (#39597825)
The Go community is generally averse to frameworks.
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @07:20PM (#39597885)
Looks like it, however, wouldn't that decrease the speed of development for new people that come onboard?
Re:How I keep myself alive using Golang by guessmyname on Monday March 04, 2024 @07:24PM (#39597918)
> […] wouldn't that decrease the speed of development for new people that come onboard?

If that was the case, wouldn’t people who love Go have created one after more than a decade in existence?

The reason why Go developers don’t like “frameworks” a-là Ruby on Rails in the Ruby ecosystem is because the Go community generally prefers libraries over frameworks because Go’s simplicity and flexibility allow developers to compose their solutions using small, composable packages rather than being constrained by a rigid framework.

This approach often results in more efficient and maintainable code. The Go philosophy emphasizes minimalism and encourages developers to avoid unnecessary abstractions.

Re:How I keep myself alive using Golang by foldr on Monday March 04, 2024 @07:28PM (#39597957)
There's a good list of frameworks here:

https://github.com/mingrammer/go-web-framework-stars?tab=rea...

But you won't find anything that's anywhere near as comprehensive and batteries-included as Rails or Django.

Re:How I keep myself alive using Golang by machekb on Tuesday March 05, 2024 @02:25AM (#39600353)
The OP is using Encore (https://github.com/encoredev/encore) for the project described, it's pretty much what you are asking for.
Re:How I keep myself alive using Golang by petesergeant on Monday March 04, 2024 @07:31PM (#39597979)
Unless your goal is learning the new language for the sake of it, Node should already be plenty performant for most needs
Re:How I keep myself alive using Golang by princevegeta89 on Monday March 04, 2024 @11:17PM (#39599387)
Yes, I am really looking at using something new since I did get bored with the JS/TS world.