[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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


I wish this little sucker wasn't so retardedly autistic about using go fmt and maybe had a few more abstractions. Would've been so much easier to enjoy using it, I don't even mind if err != nil, but no, they had to suck the last bits of joy out of programming and just make everyone's code look exactly the same.
>>
>>108630625
It's a good thing that there's a mandated styling for the language retard. You don't want to be like C++ where there are 7 different major style guidelines.
>>
>>108630709
C++ is what it is not because there's no mandated style, but because the language itself is large. Go is small, but I guess they just wanted the last bits of individuality and creativity be removed so every codebase in Go is completely bland and uninspiring and people who wrote Go, even if they are creative, it'll beat them down.
>>
>>108630870
>NOOOOOOOOOO THEY WANT MY CODE TO NOT LOOK UGLY AND WEIRD AND FOR OTHER PROGRAMMERS TO BE ABLE TO EASILY READ IT
>THEY'RE FUCKING STOMPING ME WITH MY BOOT AHHHH WHAT ABOUT MY CREATIVITY OF PUTTING THE BRACKETS ON THEIR OWN SEPARATE LINES
This is a false flag thread and you've probably never even actually written a line of Go.
>>
>>108630895
I've actually written quite a few lines of Go and I also just ignore and never use go fmt for my personal projects. As I do with linters and formatters in other languages.
>>
>>108630911
Why? Because you think putting brackets on their own line means you're "creative" and "inspired" or some retarded shit?
>>
>>108630928
no, brackets should be on the same line with ifs or whatever. But what I care about is alignment of various lines, like for example if you have several lines assigning values to vars, makes sense to align them around =. Or if sometimes I'd like ifs and {} to be on one line and also align it with the next line which might also have another if. This makes code easier to parse visually and faster to make sense of without reading every line individually.
>>
>>108630957
>var line alignment
gofmt LITERALLY does this for you
>>
>>108631011
right, maybe, but my point is, I don't want this done automatically for me, because this kind of alignment may be situational.
>>
>>108630625
>>108630870
You don't have to use gofmt if you don't want to. But you will.
>>
>>108631138
i don't have to use go itself, and i won't.
but op is clearly constrained by at least the choice of language AND dev workflow. otherwise, this whole thread would me meaningless.
>>
>>108631165
*would be meaningless
>>
>>108631165
>this whole thread would be meaningless
That's 99% of the threads here.
>>
>>108631165
yes and no. I write a lot of D, which is very pleasant. I write Go and it's great for webshit, but I wish I could also use D for webshit - and I mean I could, but D doesn't really have any decent standalone templating language to use for html views and definitely no at as many nice libs I can reuse when I all of a sudden I need it. In other words, possible, but Go is a safe choice for web when you need it to be fast and compiled.
>>
>>108631214
if you have freedom of choice, you would probably be better off using rust* for a json api, and webshit-native crap for the ui**.
* i don't know if D has a good enough ecosystem for this
** svelte, or whatever is the hyped flavor of the month, i wouldn't know
>>
>>108631426
I will not use Rust because it's a giant time-sink and I'm not interested in participating in someone else autism. More importantly, having a language with GC is all I need ATM and if I ever need the additional benefit of not being slowed down by GC, I will pick something like Zig or BetterC (D without GC). Rust is just unnecessarily complex and 99% of what's written in it could've been written in a GC language in a fraction of the time. Also community is repulsive.
>>
File: 1754946528448468.png (52 KB, 202x202)
52 KB PNG
>>108630625
I never understood the point of Go. Who wants a language that's as restrictive and devoid of modern features as C but with no pointers and with garbage collection? It's the worst of both worlds.
>>
>>108631554
>but with no pointers
fucking retard jesus christ kill yourself
at least google before you post, or even asking ai would be better than just being a retard
>>
>>108631572
If you can't do pointer math on them, they're not pointers, just sparkling references.
>>
>>108631592
>A-A-ACTUALLY IM AN AUTISTIC RETARD
cooool, cool, awesome. what i said still stands though kys
>>
>>108631599
Words mean things. Python has pointers by Go's definition.
>>
>>108631604
>"i wasnt being retarded enough so now im going to double down and say shit thats even MORE retarded"
jfc learn when to stop
>>
>>108631609
Oh my Stallman, fine. Just read >>108631554 again but add the word "arithmetic" after "pointer".
>>
>>108631624
>what's the point of not being able to write to arbitrary memory in a memory safe language
>>
>>108631638
Why are gofags like this?
>>
>>108631645
I don't know, maybe because we aren't retarded? Why do you want buffer overflow exploits in your web microservice CLI program writing language?
>>
>>108631658
Why do I need a programming language specifically for writing web microservice CLI programs?
>>
>>108631011
I wish the Dart formatter had this
>>
>>108631471
>i get filtered easily, even before i try things
okay, then the lack of more abstractions in go was probably for the best for people like you.
>>
>>108631707
I really like Dart, but I wish the Dart team pushed for it's VM to be officially included into Chromium. I don't want a build step, so I just switched to JavaScript the moment it got classes and became somewhat usable.
>>
>>108631730
right, buddy.
> anyone who doesn't like Rust for good reasons is just filtered by it
>>
>>108631690
>goalpost shift and topic change
just admit you were wrong
>>
>>108631737
I use Dart for mobile and desktop apps with Flutter, occasionally for command-line tools.

For serious web development, I use Clojure/ClojureScript. I wouldn't want to write a large codebase in a non-functional language ever again. Even in Dart I tend to avoid making new classes in favor of pure functions that manipulate records and generic data structures.
>>
>>108631760
Ok buddy call me when you have real generics.
>>
>>108631744
>it's a giant time-sink
>not interested in participating in someone else autism
rust is both smaller and (arguably) easier than D. so a person who claims to appreciate D, yet describes rust as a "giant time-sink" and "autism" is either lying about the D part, or haven't even tried rust, probably both.
and rust wasn't even the point. use whatever good language (better than go) for the backend, and webshit-native crap for the frontend, was the crux of the point. rust just happens to have a good ecosystem (helped by proc macros) that makes spitting out highly performant backends trivial.
>>
>>108631011
>vim on buffer write trigger
triggered and based.
>>
>>108632086
Rust is more complex than D and the fact that I have to prove the compiler my code is safe is what makes it a giant time sync for me. I value to be able to design my codebase the way I want, Rust makes it less convenient if at all possible, so that makes it a no go for me.
>>
>>108632162
Pretty sure that's Helix.
>>
>>108634289
I take it back. unbased and gay
>>
>>108631744
The fact that you mentioned zig means that you're almost certainly retarded.
>>
>>108631950
>ANOTHER goalpost shift and topic change
lol
>>
>>108634706
It took you 8 hours to come up with that?
>>
>>108632162
>>108634289
it is helix
>>108634549
it's just vim but better though?
>>
>>108634711
i was at a heavy metal music show, sorry for having a life?
>>
>>108634716
I forgive you.
>>
*Just don't do it again.



[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.