Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


only if you believe the java way is the simplest way.....which I don't think is true


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".


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: