Re:Announcing the Second Edition of “Refactoring”
by jeremiep on Tuesday March 27, 2018 @03:32PM
(#16691962)
He probably went where most developers are. Just like choosing Java over Smalltalk for the first edition.
I feel its better to reach more developers, than aim for the best technologies that very few are actually even aware of.
Re:Announcing the Second Edition of “Refactoring”
by digorithm on Tuesday March 27, 2018 @03:42PM
(#16692050)
Exactly my thoughts!
Re:Announcing the Second Edition of “Refactoring”
by Sileni on Tuesday March 27, 2018 @05:08PM
(#16692733)
Python is amazing for these types of books. Written with the intention in mind, the actual code reads like pseudo-code, and a good percentage of people have interacted with the language at least briefly. Though the latter point is certainly more relevant for JS.
I'm sure the author had his reasons, and there are certainly worse choices in the top dozen languages. (Refactoring... in PHP!)
Re:Announcing the Second Edition of “Refactoring”
by kodablah on Tuesday March 27, 2018 @04:32PM
(#16692473)
From the article:
> Such a language needed to be widely popular, among the top half a dozen in language popularity surveys. It really helps to have a C-based syntax, since most programmers would recognize the basic code structure
You can argue others, but at least this will help you understand why he chose it over many other languages that aren't centered on classes.
That doesn't explain why choose it from among the majority of other languages that aren't centered on classes. JavaScript is so quirky, it seems like a really strange choice for a general programming book.
Perhaps it's my back end bias showing.