215 karma · joined Nov 2, 2010 (16y ago) · 45 submissions
comment 7y ago · link · parent
I disagree. Most engineers I work with like refactoring. It’s usually well defined work with clear metrics for success. It can also reduce daily pain if it makes delicate/messy code much easier to work with.
The problem with refactoring is that its only value is in improved execution of future projects. So it can be extremely valuable or completely useless. It depends on how likely the refactored things are to be worked on again.
comment 7y ago · link · parent
You can can implement this generically in Go using interface{} types and runtime type checking, but then you have runtime type checking failures.
A java/c++-esque "generics" implementation would be able to type-check at compile time.
comment 7y ago · link · parent
comment 8y ago · link · parent
Edit: image from sf bicycle coalition. http://www.sfbike.org/wp-content/uploads/2013/02/Right-Turn....
comment 16y ago · link · parent
Though I think his vocabulary is a little confusing, after re-reading I think I get what he's actually complaining about. It is really awkward for a <%= %> tag to not actually be a self-contained, parse-able expression. On the other hand, you'd really rather have things like form_for return the text to print, not just print it (thus allowing the use of the <%= %> instead of <% %>). It's just one of those annoying situations where attempting to be pure and elegant results in an ugly kludge in the real world.
comment 16y ago · link · parent