News for hackers. Stuff that matters.
Re:It is ridiculously easy to refactor Go by mseepgood on Sunday January 27, 2013 @05:32PM (#5125958)
http://kyleisom.net/blog/2012/10/17/syntax-off/

Syntax highlighting is less common in the Go community since Rob Pike called syntax highlighting juvenile :D https://groups.google.com/d/msg/golang-nuts/hJHCAaiL0so/kG3B...

He also argued against keyword emphasizing: http://www.lysator.liu.se/c/pikestyle.html

Re:It is ridiculously easy to refactor Go by shadowmint on Sunday January 27, 2013 @06:53PM (#5126266)
...

This is surely a minority view.

Everyone uses syntax highlighting, for everything. for everything

I can't honestly believe the whole go community just decided to by like, oh gee, well Rob doesn't like it, I gues we'll just ignore what everyone else is doing and do our own thing.

For what it's worth, I use syntax highlighting in my go code, and so does http://tour.golang.org/

Re:It is ridiculously easy to refactor Go by VeejayRampay on Monday January 28, 2013 @06:23AM (#5128075)
And everyone uses it for a reason: color is one of the primary discriminators of human vision, it carries information efficiently and does it instantly, as clearly laid out in the Wikipedia article about visual search (pop-out effect) : http://en.wikipedia.org/wiki/Visual_search

It seems strange that Rob Pike would call it "infantile". I don't think it's very modern (nor mature) to say that either, since it completely ignores years of research done on the subject by scientists. But then again, to each his/her own.

Re:It is ridiculously easy to refactor Go by dchest on Monday January 28, 2013 @08:53AM (#5128460)
He isn't arguing that highlighting doesn't carry more information. I think he's saying that it carries useless or wrong information.
Re:It is ridiculously easy to refactor Go by mseepgood on Sunday January 27, 2013 @07:00PM (#5126286)
> Everyone uses syntax highlighting, for everything. for everything

I guess I'm not the mainstream kind of guy then.

Re:It is ridiculously easy to refactor Go by Mr_T_ on Monday January 28, 2013 @02:56AM (#5127631)
I even use proportional font for coding.
Re:It is ridiculously easy to refactor Go by 4ad on Monday January 28, 2013 @09:12AM (#5128523)
Yup. Monospace fonts are only an artefact of typewriters.
Re:It is ridiculously easy to refactor Go by aroberge on Sunday January 27, 2013 @05:54PM (#5126032)
Colour can help carry information. It is a lot easier to identify strings if you use colours rather than just rely on seeing opening and beginning quotes. I know that I find it very useful - and even more so my choice of colours for comments making them blend more in the background and making it easier to forget.

I would liken it to the use of boldface letters to represent matrices (or vectors) in some math textbook: without this convention, you have to rely a lot more on memory to know what each symbol represents. Mathematicians and physicists everywhere have found this to be useful.

When you have a huge majority of programmers using syntax highlighting, you have to ask yourself if there is not an instrinsic value to its use and, if so, perhaps try to use it to communicate with the larger community, rather than adopting a cliquish practice.

Re:It is ridiculously easy to refactor Go by mseepgood on Sunday January 27, 2013 @06:00PM (#5126054)
My suspicion / theory is that most programmers turn on syntax highlighting for the same reason that they have desktop wallpapers: to make their lifes more colorful.
Re:It is ridiculously easy to refactor Go by alangpierce on Sunday January 27, 2013 @10:32PM (#5126972)
Good language-aware syntax highlighters do a lot more than highlight keywords and other syntactic things, and can make code more readable in a nontrivial way. For example, Eclipse's Java editor will color things differently based on the scope you pull it from, which lets you distinguish local variables, non-static fields, static fields, and inherited fields. It does a similar thing for method invocations, including a strikethrough for methods marked as deprecated. This saves having to manually go to a bunch of definitions in order to get the proper context when reading code you're not familiar with.
Re:It is ridiculously easy to refactor Go by cma on Sunday January 27, 2013 @06:27PM (#5126165)
When your externally mandated build process is really slow, you appreciate things like easily noticing an unclosed quote, or a missing */ that was supposed to close a comment.
Re:It is ridiculously easy to refactor Go by Mr_T_ on Sunday January 27, 2013 @07:37PM (#5126414)
One of the main selling points of Go is that builds are fast.
Re:It is ridiculously easy to refactor Go by LeafStorm on Sunday January 27, 2013 @08:52PM (#5126638)
That doesn't make failed builds any less frustrating. Heck, in Python, you don't even have builds, but getting a SyntaxError on import is still frustrating.
Re:It is ridiculously easy to refactor Go by jlgreco on Sunday January 27, 2013 @09:32PM (#5126779)
And syntax highlighting is even faster..
Re:It is ridiculously easy to refactor Go by pjmlp on Monday January 28, 2013 @02:37AM (#5127583)
Like most languages with modules.
Re:It is ridiculously easy to refactor Go by flogic on Sunday January 27, 2013 @06:50PM (#5126257)
That's a perfectly valid reason in and of itself.
Re:It is ridiculously easy to refactor Go by Mr_T_ on Sunday January 27, 2013 @06:33PM (#5126190)
To be honest, I often feel as if I was in a brothel on some blogs with CoffeeRubyNodeScript highlighting. (However, the choice of colors on this one isn't too good either)
Re:It is ridiculously easy to refactor Go by jimbokun on Sunday January 27, 2013 @10:49PM (#5127030)
"I would liken it to the use of boldface letters to represent matrices (or vectors) in some math textbook: without this convention, you have to rely a lot more on memory to know what each symbol represents."

This is an excellent comparison, as programming languages probably have more in common with mathematical notation than natural language prose.

Re:It is ridiculously easy to refactor Go by quadhome on Sunday January 27, 2013 @08:53PM (#5126644)
There's syntax highlighting and various other editor support installed with and included in the Go source tree:

http://code.google.com/p/go/source/browse#hg%2Fmisc

Rob Pike may have an issue with it, but the Go team most certainly does not.

Re:It is ridiculously easy to refactor Go by zura on Monday January 28, 2013 @06:44AM (#5128116)
His editor (Acme) doesn't support syntax highlighting, so his only choice (without abandoning Acme) is to call this an unimportant juvenile ;)

You should really take it with a grain of salt.

Re:It is ridiculously easy to refactor Go by 4ad on Monday January 28, 2013 @09:13AM (#5128529)
He wrote his own editor. It's not that acme doesn't happen to have syntax highlighting, it's that he explicitly decided against it.
Re:It is ridiculously easy to refactor Go by jlgreco on Sunday January 27, 2013 @06:20PM (#5126133)
Here is a pretty well-known essay against syntax highlighting: http://www.linusakesson.net/programming/syntaxhighlighting/i...

Honestly, I've never bought it.

Re:It is ridiculously easy to refactor Go by damian2000 on Sunday January 27, 2013 @09:33PM (#5126782)
FYI this just popped up on my twitter stream https://twitter.com/shit_hn_says/status/295712765149061121