News for hackers. Stuff that matters.
Re:Why We switched from Python To Go by asadmshah on Sunday April 09, 2017 @06:58AM (#14071643)
Java the language is verbose, sure... but the type system?
Re:Why We switched from Python To Go by yupyup on Sunday April 09, 2017 @10:05AM (#14072335)
Well, having a static type system is a tradeoff...

When using Python I feel the least resistance from the language, you can do a lot with a little code. Problem is, when the system grows you begin to miss the checking that static typing provides (esp. when doing refactors).

When coding in Go I feel that there is a little productivity lost upfront, but when your script begins growing and starts to look like a "serious" project you feel more confident changing your old code. This is because some kind of errors are caught by the type system before doing manual/automated testing.

And I'm talking about personal projects where I'm alone, this could be more important in projects with several coders.

Re:Why We switched from Python To Go by yummyfajitas on Sunday April 09, 2017 @07:27AM (#14071740)
I think yupyup is referring to the fact that all types must be explicitly annotated.

(I favor this and explicitly annotate most of my types in Haskell and Scala. Makes reading easier. But I did occasionally find it annoying in Java when it was mandatory.)

Re:Why We switched from Python To Go by thomastjeffery on Monday April 10, 2017 @12:19AM (#14075986)
Inferred types are nice.

They make cleaner, and therefore, more readable code. That is the main thing people want from dynamic typing anyway. It's really not very common to change the type of a variable, and a statically typed codebase is more predictable, and therefore easier to manage.