[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is go worth learning?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 60
Thread images: 8

File: images.png (6KB, 192x262px)
images.png
6KB, 192x262px
Post your opinion on it.
>>
>>61615981
Every language is worth learning.

However I believe D is a somewhat better language
>>
>>61615981
it's too easy to learn and pays off really good.
it has too many virtues but you have to be open minded, just don't try to write your favorite programming language with Go syntax.
>>
forcing a formatting standard on your code is autistic as hell
>>
>>61615989
D is literally one of the most worthless languages there is.
It's completely dead.
You may as well learn COBOL. At least you can still get a job that way.
>>
It's autistic, but the best language for building webapps
>>
>>61616012
There is no worthless language. If that was the case no one would learn LOO-ah
>>
>>61616012
Good programmers don't limit their knowledge by selecting "worth learning" languages. If anything, it shows that you are not really interested in programming, you are here to look cool
>>
File: 1501096459260.jpg (41KB, 688x456px) Image search: [Google]
1501096459260.jpg
41KB, 688x456px
>>61616023
> best
> even better than Javascript
>>
>>61615981
Error handling from the stone age kills it.
>>
File: 1500673848312.jpg (17KB, 552x456px) Image search: [Google]
1500673848312.jpg
17KB, 552x456px
>>61616109
>writing server-side code in javascript
>>
>>61615981
It's shitty language but it has a great standard library, a good compiler that is improving constantly, a decent implementation of channels, is supported on all major operating system and it compiles to static binaries. If you can look past the deficiencies of the language it's a great tool.
>>
>>61616214
yeah because it's the best available option, don't kid yourself, if Golang was written by some autist or a small company, no one would have cared to use this shitty lang
>>
Even though I spend a lot of time following developments in PL design and go is really dull and intentionally backward I always end up coming back to it and use it the most.

Most people with very strong opinions on it one way or the other tend not to understand its design goals or where its intended advantages are supposed to lie.
>>
>>61616258
Ok, enjoy needing 24GB of RAM and an 18 core Xeon processor to run your shitty webapp when it gets more than 50 users
>>
File: download.png (97KB, 800x600px) Image search: [Google]
download.png
97KB, 800x600px
>>61615981
I just got a full time gig as a go developer. So in terms of financials - there are jobs out there.

I think go has some serious potential to overtake the web. It succeeds in the area where everything else has failed (except maybe erlang) which is:

Unit testing is simple and built in.
Almost 100% cross compatible by default, no VM needed.
Forced formatting so no proliferation of 100 different styles.
Enhances readability without sacrificing type checking.
Runs sync by default but can be run async when you need it.
Highly scalable.
Everything needed to build an API works right out of the box without using some dumbass framework.
Backed and supported by one of the top tech companies in the world, and they are eating their own dogfood this time unlike the Angular fiasco.

There's not a huge user base yet so it can be hard to find starter tutorials and shit like that. Roughly six months ago I was able to build an API in a few days with no prior experience using just the docs. Authentication, unit tests, everything.

My money is on go replacing C# and Java for enterprise web dev. There's just way less bullshit to deal with. I suggest you get on the go train before the pajeets figure it out, because by then all the good jobs will have been taken.
>>
>>61616308
>My money is on go replacing C# and Java for enterprise web dev

oh god please no
>>
A startup in my area recently started hiring Go programmers.
They haven't found any yet.

I've thought about applying and leveling with them that I've never touched Go before, but I'm willing to learn.

I got my current gig has a C# developer despite having never touched C# prior and it wasn't too much of a struggle.
>>
>>61616005
Good. It prevents GNU style.
>>
>>61616354
As if GNU would ever touch it. Google developed it so it's automatically the ULTIMATE EVIL
>>
>>61616047
d-delet this
>>
>>61616303
It's 2017 anon - take your stupid stereotypes back to /r/technology
>>
>>61616367
Sure thing. By the way, would you happen to have any file of the WebM format on your computer?
>>
>>61616303
I would never write a node application back end but you obviously have no idea what the hell youre talking about.
>>
>>61616393
He's obviously exaggerating but node does use a ton of memory. Java and Ruby are far worse in this respect. It's basically impossible for a dynamically typed language, or simply one without value types, to be memory efficient.
>>
>>61616384
>>61616393
>nodejs shitware is efficient because hipsters on hackernews said so
https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=go&lang2=node
Node gets absolutely btfo in every category
>>
>>61616336
It takes all of an afternoon or so to learn and none of it will surprise or challenge anyone who has used another mainstream languasge. They might accept that you could be brought up to speed on the job, but on the other hand there's really no excuse for not at least familiarizing yourself before you see them. Just go write something in it.
>>
>>61616367
???
>>
>>61616420
Node wins in the regex benchmark. Hardly shocking though that a very simple statically typed language is faster than a complex dynamically typed language.

What's more surprising to me is how well node does compared to all of the other dynamically typed languages which basically all use the FFI to "cheat." It's actually pretty impressive how fast node is given that it's not using the FFI in most cases.
>>
>>61616508
>What's more surprising to me is how well node does compared to all of the other dynamically typed languages which basically all use the FFI to "cheat."

What tests are you seeing this in?
>>
>>61616028
Shut your fucking mouth, lua is fine.
>>
I liked Go.

Someone hired me to make a website.

I am now sitting on 50k lines of Go.

Here is all I have to say to you, Mr. Pike:
* Exceptions were a solution to the problem you re-introduced by making errors simply return values. Do you know how many times I've had to wrap my errors because they have no stacks?
* Having no macros, nor generics, makes programming an insane chore when you're dealing with something even as trivial as request structures. If I want to define the parameters to an HTTP request, I need to create a structure every time, and write the goddamn name of my field at least three times, in different notations, to account for JSON marshaling and unmarshaling (which, for the record, is fucking 'encoding' or 'decoding' you pretentious pricks)
* for gods sake if I want a method to accept "any slice type" I shouldn't need to resort to fucking reflection for something that trivial.

otherwise, quite a fan.
>>
>>61616303
What the fuck are you even talking about?
>>
>>61616557
lua is the worst of the worse skid shit language ever made
>>
>>61616547
Look at the source code for a lot of the tests on the Debian Benchmarks Game. A lot of the languages are just using the FFI to call into heavily optimized C libraries to make it seem like they're faster than they really are. Haskell is probably the worst offender.

Surprisingly, whoever implemented the node tests didn't do that.
>>
>>61616621
I skimmed through a couple but I'm not really willing to dig through all the tests for each dynamic langauge. Which one was it?
>>
>>61616420
https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=node&lang2=yarv

LMAO Ruby is so bad.
>>
>>61615981
>>61615351
>>
>>61616602
>lua worse than python.

Literally incorrect.
>>
>>61616677
Python index dont start from float 1.0
>>
>>61616308
the documentation made by the project itself is pretty fucking good though.
https://tour.golang.org/welcome/1

Of course you should probably know another language before jumping into that though or you'll be lost.
>>
>>61616586
>I need to create a structure every time, and write the goddamn name of my field at least three times, in different notations, to account for JSON marshaling and unmarshaling

I'm not totally sure what your code looks like, but were you using anonymous structures? If you're just sending something off to be encoded and never be seen again you can define the struct on the fly.

https://talks.golang.org/2012/10things.slide#2
>>
>>61616759
I actually need to use the structures as parameters to functions, like 99% of the time, because I have my router setup to accept arbitrary function signatures and decode the JSON body of the request to the structure in the parameters of the handler function.
>>
>>61616684
>reasoning for a language being bad is what number indexing begins on

Skiddie as fuck.
>>
>>61616962
It's also a float you fucking brainlet moron
>>
>>61616982
>Wahhh floats are too hard

Git gud
>>
>>61617095
Floats should never be used for array indexes or hash table keys for very obvious reasons.
>>
File: 1455953544842.jpg (34KB, 300x470px) Image search: [Google]
1455953544842.jpg
34KB, 300x470px
>>61616962
>>61617095
Typical skid, gentlemen
>>
>>61616005
quite the contrary, worrying about retarded, useless things as code formatting is
>>
>>61615981
I've been studying Go for the last 2 months, here are my 2 cents:

Pros:

>*Go is tiny, like insanely, tiny, the language has like 12 keywords, the syntax is really easy to learn and easy to read because of that
>*It's imperative, so it's easy to write Go code.
>*Great concurrency system

Cons:

>*Go is tiny, so tiny that you don't get common things like exceptions or generics.
>*It's imperative, really imperative. So understanding somebody's else Go code is pretty hard.
>*The concurrency model is built in the language syntax, so forget about doing systems that require concurrency model's different to Go's (this is a non issue for most people, but still)
>>
>>61616508
because these JS engines are used by web browsers... and they need to be really performant
AFAIU (I'm probably talking BS), lots of performance stuff actually came from Adobe Flash
>>
>>61617507
If you can't use floats as an index, you need to neck yourself.
>>
File: 0007.gif (24KB, 128x128px) Image search: [Google]
0007.gif
24KB, 128x128px
>>61615981
Docker is written in Go/Golang. For that one simple reason, no matter how bad or good it may be, Go is here to stay.
>>
>>61617919
float arithmatic is not precise you uneducated skiddie
>>
I'm learning it and it's nice but I feel more stable writing my production apps in Django . Even though go code and infrastructure is way better.


Go is good thoigh
>>
Better than Rust but worse than D.
People may say that D is pointless, but it is such a nice language.
>>
>>61615989
D just hurts.
>>
>>61618072
D is nothing but a few good ideas that should have been in C++.
>>
File: 820667x805.png (171KB, 667x805px) Image search: [Google]
820667x805.png
171KB, 667x805px
>>61616214
The amount of companies which are actually doing this, make me sick.
>>
>>61616367
Google support FSF.
Thread posts: 60
Thread images: 8


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.