Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Lasse Koskela:
To me, a beginning Scala programmer, that stuff is plain unreadable. Function values are great but can be taken too far.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Originally posted by Lasse Koskela:that stuff is plain unreadable.
Originally posted by Garrett Rowe:
I must admit, your comment surprised me though. I don't see a lot of difference in readability between defining a method and defining value that is a function.
There's a bit more line noise with the extra =>'s, but there's no difference in the way they are invoked.
One of the things I'm not too sure I like about Scala is that although there are a lot of different ways to do things, there are'nt a lot of *norms*. A Scala programmer doesn't have a lot to go on if they want to write API's that other Scala coders can use comfortably.
Gabriel
Software Surgeon
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Originally posted by Garrett Rowe:
Since readability directly maps to maintainability, I'd say that that is a valid concern.[/CODE]
A good workman is known by his tools.
[..]instead the authors made a few extremely useful tools like the iteration methods (each, collect, findAll) and MarkupBuilder and showed the average programmer how much easier it is to code using those tools.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Gabriel
Software Surgeon
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|