Re:Five years of Scala and counting: debunking some myths
by the_af on Friday November 13, 2015 @10:22AM
(#10560277)
I can see why you have this mantra, but doesn't this approach lead to programming in Scala as if it were Java (aka "you can program in Java in any language"), which results in unidiomatic code?
[ Parent
| on HN ]
Re:Five years of Scala and counting: debunking some myths
by Irish on Friday November 13, 2015 @11:13AM
(#10560567)
only if you believe the java way is the simplest way.....which I don't think is true
Re:Five years of Scala and counting: debunking some myths
by the_af on Friday November 13, 2015 @12:06PM
(#10560895)
Good point! I absolutely agree with you, and it's very likely I've misread the parent post. It's just that sometimes I hear people at my workplace conflate "the simplest way" with "the way I'm more familiar with, coming from Java".
Re:Five years of Scala and counting: debunking some myths
by whodatninja on Friday November 13, 2015 @03:21PM
(#10562163)
should have put an example to help clarify. For example, instead of throwing implicits around, i'd recommend they manually declare arguments like ExecutionContexts. Also sometimes the best way to teach someone from an OO background, is to first let them write their code imperatively, then work with them gradually to move to more functional approaches.
Re:Five years of Scala and counting: debunking some myths
by Irish on Friday November 13, 2015 @03:50PM
(#10562322)
exactly, if its a java dev you are re-training their solutions will probably java in Scala, if its a javascript or haskell dev they would different probably. Whats interesting to me at least is if its someone with no previous experience.