[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: golang.png (64 KB, 1200x628)
64 KB
64 KB PNG
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>>
luaJIT doesnt have this problem
>>
>gawd, error checking is sooo boring, if only we could just .unwrap() and forget about all that boring stuff
>>
Go doesn't have try catch?
>>
>>107638941
>try {
>} catch {
>}

>try:
>except:

>try {
>} catch (...) {
>}
>>
>>107638941
Still obsessed, I see.
>>
>>107638941
defer fuck_my_wife()
for {
}
>>
>>107638941
what's the problem?
>>
I started learning Go because I wanted to see if it was as bad as /g/ made it seem. Now it's my favorite language and I make 6 figures writing it. I'm completely Go-pilled and I love how the language deals with errors. It's simple but it just fucking works.
>>107638969
Thank fuck it does not. Go also doesn't have exceptions to catch.
>>
File: 1761546870970105.gif (664 KB, 498x445)
664 KB
664 KB GIF
>>107638941
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>if err != nil
>>
>>107639356
>Go also doesn't have exceptions to catch.
Not syntactically, but effectively, it does.
The built-in HTTP library had panic()s in it that I had to catch myself. Fucking ridiculous.
>>
>>107639399
>The built-in HTTP library had panic()s in it that I had to catch myself
Do you have an example? This sounds like a skill issue or you're misremembering something. The http server in the standard library has a built in recoverer anyway (if a handler panics for whatever reason, for example).
>>
>>107639356
>Now it's my favorite language and I make 6 figures writing it. I
no companies use Go, also you're not making 6 figures with some Go hobby project
>>
error?
eh just let it crash, the supervisor will restart it and i'll deal with it later
>>
>>107639505
>no companies use Go
we use it at my company :)
>>
>>107638979
Except you can do that once in your call stack, if you want, instead of at every error junction.
>>
>>107639521
And then your program crashes because something in your callstack raised an exception you didn't know about.
>>
>>107639356
Golang is objectively bad. There are so many things that are stupid with that language that I don't even want to start listing them. People like it because of its potent standard library, its concurrency mechanisms, and because it's "simple", but it's only simple because it lacks a sound language design.
>>
>>107639520
and then everyone clapped
>>
>>107639505
>no companies use Go
damn I guess I should tell my manager and the hundreds of other engineers in my department that we're all not actually using Go, thanks for letting me know anon.
>>107639535
I don't think you know what the word objectively means. I'm sorry that you don't enjoy it anon, nobody is making you use it, you don't have to.
>>
>>107639534
That never happens if you write good exception handlers at proper levels in your application. Also, that can happen in Golang too, but it's even worse there because you are never forced to handle errors since they're just another value. In Java, at least checked exceptions exist.
>>
>>107639554
>damn I guess I should tell my manager and the hundreds of other engineers in my department that we're all not actually using Go, thanks for letting me know anon.
they all live inside your head so it should be pretty easy. Hurry up, you need to take your meds so they'll all go away!
>>
>>107639554
>I don't think you know what the word objectively means. I'm sorry that you don't enjoy it anon, nobody is making you use it, you don't have to.
The word "objective" implies a context, of course. Golang is objectively a badly designed *language*, if one judges it by precision and strictness. It is a a badly designed language in the same sense that PHP is a badly designed language. The language has awful constructs and semantics, and it promotes bad patterns. It is objectively good in other areas, such as having a standard library that contains everything from TLS servers to JSON parsers. I don't consider that sufficient, however. It is essentially a language that you may considered good if you prioritize other things than sound language design, for example toolset.
>>
>>107639668
>The language has awful constructs and semantics, and it promotes bad patterns
According to who, the universe? Did God tell you this? How can you "objectively" prove this statement? You're just listing your personal opinions and saying it's objective. Saying "Go has the ability to parse JSON out of the box" is an objective statement, saying "Go has bad semantics" is not objective at all. You are redefining "objective" to mean "based on the specific metrics I prefer."



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.