WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.4K

Just like exactly every other thing google has ever produced (such as dart, flutter) golang sucks.

Reasons:

  • datetime formatting - most retarded method I've ever seen
  • pointers - mixes two completely separate concepts together namely making a variable nullable and pass-by-ref as optimization these two having nothing to do with each other
  • no constructors - no safety. all fields are in practise optional. custom make functions can by bypassed. you'll end up with objects risking having not be fully initialized.
  • no optional arguments, no default arguments
  • no labeling of function parameters when calling the function - you can use structs but then you've turned every single argument into an optional argument
  • no true enums
  • go test output sucks (github.com) - just show me what tests failed ffs
  • a hello world program in golang compiled into webassembly takes at least 2 megabytes - no I am not joking!
  • no throw catch exceptions - returning errors from functions is not a problem or bad, the problem is that it's the only option in golang. error handling takes up a lot of space and makes it less readable
  • no ternary operator - nested ternaries suck, true, but what looks best this s := b ? 'true' : 'false' or this var s string; if b { s = 'true' } else { s = 'false' }?

There is a longer list of dumb shit here (it's loong) https://github.com/ksimka/go-is-not-good .

Seems they all missed the datetime formatting madness so I describe it briefly:

Unlike other languages where you can format datetime like this

t := time.Now()
fmt.Println(t.Format("yyyyMMddHHmmss"))

you can't. Instead you need to do EXACTLY this

t := time.Now()
fmt.Println(t.Format("20060102150405"))

If you write 20070102150405, 20060102150406 or 20060112150405 it won't work. All magic numbers. Why? Because google are retards that's why.

https://stackoverflow.com/questions/20234104/how-to-format-current-time-using-a-yyyymmddhhmmss-format

For anyone liking golang for it's simplicity of I'll just state that nothing's stopping you from picking a more full-featured nicely designed language and limit yourself by only using a subset of it's features. If you like driving a car very slowly you don't have to drive a Trabant you can drive a faster better car by limiting yourself to just using the 1st gear.

Just like exactly every other thing google has ever produced (such as dart, flutter) golang sucks. Reasons: * datetime formatting - most retarded method I've ever seen * pointers - mixes two completely separate concepts together namely *making a variable nullable* and *pass-by-ref as optimization* these two having nothing to do with each other * no constructors - no safety. all fields are in practise optional. custom make functions can by bypassed. you'll end up with objects risking having not be fully initialized. * no optional arguments, no default arguments * no labeling of function parameters when calling the function - you can use structs but then you've turned every single argument into an optional argument * no true enums * [go test output sucks](https://github.com/golang/go/issues/13106#issuecomment-456896310) - just show me what tests failed ffs * a hello world program in golang compiled into webassembly takes at least 2 megabytes - no I am not joking! * no throw catch exceptions - returning errors from functions is not a problem or bad, the problem is that it's the only option in golang. error handling takes up a lot of space and makes it less readable * no ternary operator - nested ternaries suck, true, but what looks best this `s := b ? 'true' : 'false'` or this `var s string; if b { s = 'true' } else { s = 'false' }`? There is a longer list of dumb shit here (it's loong) https://github.com/ksimka/go-is-not-good . Seems they all missed the datetime formatting madness so I describe it briefly: Unlike other languages where you can format datetime like this ``` t := time.Now() fmt.Println(t.Format("yyyyMMddHHmmss")) ``` you can't. Instead you need to do EXACTLY this ``` t := time.Now() fmt.Println(t.Format("20060102150405")) ``` If you write 20070102150405, 20060102150406 or 20060112150405 it won't work. All magic numbers. Why? Because google are retards that's why. https://stackoverflow.com/questions/20234104/how-to-format-current-time-using-a-yyyymmddhhmmss-format For anyone liking golang for it's simplicity of I'll just state that nothing's stopping you from picking a more full-featured nicely designed language and limit yourself by only using a subset of it's features. If you like driving a car very slowly you don't have to drive a Trabant you can drive a faster better car by limiting yourself to just using the 1st gear.
[–] 2 pts

I tried golang out at one point but I wasn't particularly impressed with it.

[–] 2 pts

Love some of the comments. embed

[–] 2 pts (edited )

yeah, that 2nd comment is great.

people don't seem to like their decisions very much:

embed

[–] 2 pts (edited )

I wonder what happened on January 2 of 2006 five seconds after 3:04 PM that would be memorialized in such a way?

[–] 2 pts

That's probably when the developer that wrote that library got pegged by his boyfriend for the first time.

[–] 1 pt

It's either virginity or murder.

[–] 2 pts

I lost interest when I realized it’s a proprietary technology owned and controlled by one company (Google).

[–] 0 pt

I think all's open source, though it being guided by google is still an argument against using it. fuck em.

[–] 1 pt

it is as opensource as microsoft c#

they manage to bind you on their products forever

[–] 2 pts

Truly idiotic.

[–] 4 pts (edited )

yes. I'm starting to think the only reason these google products becomes popular is because google search biases the search results. No way they can stand on their own without being artificially propped up.

[–] 1 pt

the whole point of golang is to take people off java and close them up into google ecosystem

like rust

most idiotic language ever

if I use c is because I do NOT need some crappy layer to "protect" me

otherwise I would use java

[–] 0 pt

and close them up into google ecosystem

fuck their ecosystem. I'm worried their flutter framework is getting too popular too. Like golang I don't understand why people like flutter, seems like an artificial trend too.

like rust

most idiotic language ever

Rust is? How so?

[–] 1 pt

You need a "runtime" for embedded ?

really ?

also, if a "person" cannot code, it is better to keep it out of the coding jobs

I have seen PLENTY of shit, done by idiots with a keyboard

[–] 1 pt

A buddy of mine from work took on Go and fell in love with it. He would tell me all about how cool it was, and I couldn't care less. It all just sounded trendy.

We're both highly proficient in Python, and at the time he was learning Go I was learning Rust. Rust is something else too, but a lot of it's mannerisms reminded me of a safer Python. Go reminded me of If a retarded C fucked JavaScript.

[–] 0 pt

A buddy of mine from work took on Go and fell in love with it.

I will never understand that. I know good programmers who I respect that really like golang. It's like these people with 130+ IQ who're leftwing retards. One think that should not be possible but it is.

Any killer features in Rust? I've never learned it. I've heard it has macros which peaks my interest.

[–] 1 pt

Rust doesn't let you fuck up memory safety. The compiler checks everything and gives the best compiler messages to help you fix it if you screwed up. It also doesn't allow data races by ensuring only one thread owns the object at any given time. Unless you want to be risky, it'll let you do that too but only if specified.

[–] 1 pt

it is the "think different" satisfaction

the whole point is "to be different", to be unique, that is the trigger

they do not realize that they are just different by being a "piece of shit"