News for hackers. Stuff that matters.
Re:It is ridiculously easy to refactor Go by jbrackett on Sunday January 27, 2013 @05:01PM (#5125842)
I went into the article thinking it was going to be about some way of renaming functions or something. Probably just my limited internal definition of the word refactor. After reading I would say Go has a cool built in way of using the adapter pattern. More interesting than renaming functions.
Re:It is ridiculously easy to refactor Go by eknkc on Sunday January 27, 2013 @07:33PM (#5126398)
Actually, Go makes this somewhat easy too. Check this: http://blog.golang.org/2013/01/go-fmt-your-code.html It's possible to do context aware source code substitutions. Works great. (Not that it's something new or groundbreaking though, just relevant to your expectation)
Re:It is ridiculously easy to refactor Go by pjmlp on Monday January 28, 2013 @02:38AM (#5127586)
Comparing gofmt with what refactoring tools allow is too far fetched.
Re:It is ridiculously easy to refactor Go by redbad on Monday January 28, 2013 @03:10AM (#5127650)
Are you aware of gofmt's rewrite rules?

http://golang.org/cmd/gofmt/#hdr-Examples

Pretty powerful stuff.

Re:It is ridiculously easy to refactor Go by pjmlp on Monday January 28, 2013 @04:55AM (#5127869)
I am. Refactoring is much more than that:

- create functions and methods from code snippets

- merge duplicate code

- Semantic renaming of method names/variables/functions without affecting the same name being used in a different context

- convert field direct access to wrapper functions/methods

- remove dead code

- add missing code to interface/module/class where it is being applied

- validation of code references in comments

- ...

Re:It is ridiculously easy to refactor Go by pkulak on Monday January 28, 2013 @12:58AM (#5127370)
I thought it was going to be about go-fmt, which is really cool.