280
Go vs Rust learning (programming.dev)
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 24 points 1 year ago

Terrible meme. Go is bad and you should feel bad

[-] [email protected] 67 points 1 year ago* (last edited 1 year ago)

Go is like that abusive partner that gives you flowers and the next day makes you feel like shit. Then another day you go to an expensive restaurant and you tell yourself that maybe it's not so bad and they still care. And the cycle continues.

Rust is an autistic partner that sometimes struggles with telling you how much they care, is often overly pedantic about technical correctness and easily gets sidetracked by details, but with some genuine effort from both sides it's very much a workable relationship.

[-] [email protected] 46 points 1 year ago

Yeah but Go has the best error handling paradigm of any programming language ever created:

ret, err := do_thing()

if err != nil {
    return nil, err
}

Don't you just love doing that every 5 lines of code?

[-] [email protected] 13 points 1 year ago

It's not pretty, but it's uniform, obvious, and easy to understand.

go is good grug friend who chase away complexity demon by limit damage of big brain developer

[-] [email protected] 7 points 1 year ago

Honestly, I do

[-] [email protected] 7 points 1 year ago

I don't like the rust way either. But at least you can unwrap

[-] [email protected] 21 points 1 year ago

With some sprinkle of libraries such as anyhow and thiserror the Rust errors become actually pleasant to use. The vanilla way is indeed painful when you start handling more than one type of error at a time.

[-] [email protected] 6 points 1 year ago

Exactly this. Anyhow makes error handling in rust actually a joy. It's only something you need to consider if you're writing a library for others to use, and in that case, it's good that rust forces you to be very very explicit

[-] [email protected] 6 points 1 year ago

I actually reasonably like Go. It's simple and pragmatic but I fucking loathe its error handling. To me it just replicates one of the worst features of C

[-] [email protected] 2 points 1 year ago

I think I'd rather code in Go than Rust. But I'm not a great Rust programmer so my opinion may not count. I can code effectively in C, C++, Go, Java, C#, Python, and a few others, but Rust is the only language that I find hard to use. I'm probably just dumb

[-] [email protected] 3 points 1 year ago

You're not dumb. Rust is a hard language to pick. Some people probably think I'm mocking it because I made this meme but I'm really not - I love Rust. I'm mocking us mere humans trying to cope with greatness 🤣And I'm looking forward to the time when I finally "graduate" and become more productive and experienced with Rust.

[-] [email protected] 2 points 1 year ago

Are you using an IDE like rustrover? Rust is by far the easiest language I've worked with. It makes it so the only way to write code is the right way

[-] [email protected] 1 points 1 year ago

Yes, I was using Rustrover the last time I used Rust. VSCode previously. I've tried to get into Rust a few times and really just failed repeatedly. Ill probably try again at some point but my experience thus far hasn't been great

this post was submitted on 15 May 2024
280 points (100.0% liked)

Programmer Humor

25170 readers
1664 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS