News for hackers. Stuff that matters.
Re:Portable Cloud Programming with Go Cloud by pkaye on Tuesday July 24, 2018 @12:26PM (#17602542)
Our company uses Go. Most people who join have no experience in Go yet usually they can get comfortable with the language in 1-2 weeks to start contributing. I know nothing about Node/JS but I'm sure that takes much longer?
Re:Portable Cloud Programming with Go Cloud by stcredzero on Tuesday July 24, 2018 @04:32PM (#17604660)
Most people who join have no experience in Go yet usually they can get comfortable with the language in 1-2 weeks to start contributing.

A lot of what makes anything hard to learn are the non-obvious gotchas. The design philosophy of golang is aimed at avoiding the non-obvious gotchas and the creep-up-on-you-at-scale gotchas.

Re:Portable Cloud Programming with Go Cloud by solipsism on Tuesday July 24, 2018 @06:50PM (#17605566)
Except channels. If you use channels it's non-obvious gotchas galore.
Re:Portable Cloud Programming with Go Cloud by stcredzero on Tuesday July 24, 2018 @06:56PM (#17605598)
Concurrency is hard. Channels make it somewhat easier. Basically, see if you can do concurrency with only synchronous code.
Re:Portable Cloud Programming with Go Cloud by solipsism on Tuesday July 24, 2018 @07:09PM (#17605651)
Concurrency is hard and channels make it somewhat easier. Agreed. That's not relevant to the fact that the use of channels in Go is full of gotchas.
Re:Portable Cloud Programming with Go Cloud by stcredzero on Tuesday July 24, 2018 @07:31PM (#17605766)
That's relevant to the fact that concurrency is full of gotchas. I also used Go to write an MMO all by myself. I think channels are great!
Re:Portable Cloud Programming with Go Cloud by eudoxus on Tuesday July 24, 2018 @07:38PM (#17605804)
I think his point was that concurrency is riddled with gotchas regardless, and channels reduce them, but not remove them.
Re:Portable Cloud Programming with Go Cloud by stcredzero on Thursday July 26, 2018 @12:16PM (#17618606)
People completely misread my comment about doing concurrency with only synchronous code. Basically, channels let you do concurrency with only synchronous code as in Node JS, but without using callbacks.
Re:Portable Cloud Programming with Go Cloud by aphexairlines on Wednesday July 25, 2018 @03:20AM (#17607447)
1-2 weeks is standard for all languages though. A week or less is how long it usually takes people at work to pick up Objective C and contribute to iOS development, or pick up Scala and contribute to service development.
Re:Portable Cloud Programming with Go Cloud by nostalgeek on Tuesday July 24, 2018 @02:01PM (#17603492)
> but I'm sure that takes much longer?

Your people can pick up go reflect package or go routines/channels and co in 1-2 weeks and start contributing? impressive... most people can pick up for loops, if,switch statements, variable and function declaration in a week in any language as well...

In fact, a lot of non programmers use JS regularly to write scripts in the browser. I imagine your people know how to program before hand... So what do you think takes longer to learn? mastering go threading model or being able to add interactivity to the DOM?

Re:Portable Cloud Programming with Go Cloud by pkaye on Tuesday July 24, 2018 @03:29PM (#17604181)
> So what do you think takes longer to learn? mastering go threading model or being able to add interactivity to the DOM?

For me, the go threading model is easier. I just can't stand DOM and web programming in general. Currently working on a problem doing some computation across dozens of cores on multiple servers and go makes it a lot easier to spawn the 1000 goroutines and coordinate between them. I guess everyone has different interests and perhaps it is similar for those we hire.

Re:Portable Cloud Programming with Go Cloud by nostalgeek on Thursday July 26, 2018 @06:17AM (#17616312)
> For me, the go threading model is easier. I just can't stand DOM and web programming in general.

Because you didn't take the time to learn the DOM, that's all. I doubt learning a simple composite API made of dumb nodes is more difficult than writing thread safe programs in Go. I'm not talking about tastes or interests, I'm talking about ease of learning.

Go isn't 'easy to pick up'. For loops, if statements and co are basic, and they are in all languages, that's my point. There is nothing particularly easy with Go.

Re:Portable Cloud Programming with Go Cloud by golangnews on Tuesday July 24, 2018 @02:43PM (#17603827)
go reflect is not commonly used, goroutines are pretty simple to pick up. I have used several large codebases with zero use of reflection. The point of go is it restricts you to 25 keywords (the basics that you sneer at above) so senior people can't get fancy and produce an impenetrable mess/marvel that beginners will take months to orient themselves in.

It is definitely easier to write well than js IMO, and harder to make a big ball of mud in.