On Thu, Oct 22, 2009 at 2:27 PM, jlist9 <[email protected]> wrote: > > > Perl's motto is "There is more then one way to do it." > > I remember reading somewhere that part of the the design goal > of Perl 6 was to make the language "more sane". That says > it all. For scripting language, I'd stick to Python, whose syntax > feels natural to me, and to stay sane as much as I can. :-) >
Eh. Sanity is overrated :) > > > Each brings it's own strengths and weaknesses to the table. > > True. But the same could be said if you had 10 ways to start a program. > You have to balance the downside and the benefit. I personally think > The confusion of 2 or 3 ways already out-weights the benefit in this > particular case :-) > See my points about noob vs experienced programmer. Also see: http://scala-blogs.org/2008/07/application-trait-considered-harmful.html Also, Application is a trait, so any Object can be an application. See.... multiple reasons :) > > And Java only needs a main isn't true.... in web development there is no > > main. There is no main if you write an eclipse plugin, and there is no > main > > if you use a Swing based framework. (note if it's just swing, you do.) > > In those cases you are not starting a program/process. You are > only loading a library - your code being the library, the framework being > the entry point of the process. > Ayup. The application trait is just an entry point in the process... > > > Wish I could articulate this better. Using the for comprehension as an > > example... it's the way it gets compiled into code. There is no for loop > in > > Scala. A for comprehension gets boiled down to method calls. The curly > > braces get converted into an anonymous function. > > See > > > http://creativekarma.com/ee.php/weblog/comments/the_scala_for_comprehension_from_a_java_perspective/ > > Thanks for the explanation. I'll try to understand it. > Good luck. I have it bookmarked so I can re-read it regularly :) Hopefully you're smarter then I am... :) > > > And too few operators leads to a whole lot of words, which leads to a > whole > > lot of typing, or a whole lot of ctrl-space completions. It's a toss up. > > The wordy way is definitely noob friendly, while the operator way is more > > expert friendly. > > If you are talking about Java, that's true. Python is very concise, though. > People say if you are not able to do the same thing in 1/10 LoC in Python > as in Java, you are not coding Python right. I think it's exaggerating a > little > bit but it's close. This is probably partially due to the dynamic nature of > Python.. > Python's lack of operators vs GREP might have been better :) GREP is a far better example of operator conciseness. :) Java has way too much boiler plate code, and way to many code slingers who think the JEE Blueprint Patterns are to be followed dogmatically rather then by need... *SIGH* > > > Or, if I may wax metaphorical (and deep into my own opinion)once more... > who > > do you think is the better driver, a NASCAR driver or a Prius driver? > Which > > is more expensive to learn to do? Which is more fun? :) > > I guess it depends on the goal of driving. NASCAR is definitely more fun > but If the goal is to go from point A to B in time, safely and in a > environment > friendly way, maybe the Prius driver :-) And I think these are Java > developers > that Scala is also trying to appeal to. > You answered which is more fun, and analyzed the goals of each. How about the which driver is more skilled (ie better)? :) We can even add, who has more understanding of what happens to make the car go? (which of course leads to the question, whose more fuel efficient, the NASCAR driver who knows the shortest way around a turn, and how to draft? or the prius driver? ) :) -- James A Barrows --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
