News for hackers. Stuff that matters.
Re:Space Monkey dumps Python for Go by TylerE on Tuesday April 22, 2014 @02:04PM (#7629271)
As some who generally prefers Python to Go quite strongly, the formatting situation is no where NEAR equivalent. With go it's trivial to setup your editor to perfectly reformat every time you save, or even on carriage return, and it does in a way that is 100% consistent and will never alter the logic of your code.
Re:Space Monkey dumps Python for Go by sergiosgc on Wednesday April 23, 2014 @05:36AM (#7633009)
I'm not a python expert by any measure, but I've written a couple small projects with it. Python surprises for how well documented it is. In this specific case, PEP8 lays down most formatting conventions, so you'd expect some tooling to be available. Is this not the case?

A quick Google search brought up this, for instance:https://bitbucket.org/StephaneBunel/pythonpep8autoformat

Re:Space Monkey dumps Python for Go by NateDad on Wednesday April 23, 2014 @08:13AM (#7633439)
The thing is, while this kind of thing is available for pretty much every language, it is standard for Go. As in, if you don't gofmt your code, everyone who looks at it will bug you to format it. That's a huge difference. There's basically zero code in the wild that you'd ever want to use that /isn't/ gofmted.
Re:Space Monkey dumps Python for Go by kyrra on Wednesday April 23, 2014 @11:20AM (#7634498)
Exactly the point. Go is a VERY opinionated language. You see the term "idiomatic Go" used very regularly. The Go team and community push hard for everyone to follow a set way of doing things. This means all Go code must be formatted a certain way, handle errors in a certain way, etc. People even put pre-commit hooks into their VCS system that will reject .go commits unless they are properly formatted before commit.
Re:Space Monkey dumps Python for Go by yawboakye on Wednesday April 23, 2014 @06:51PM (#7637445)
I use Vim and there's a plugin just for that: making sure my code is PEP8 compliant.