Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Scala is a <a href="http://www.scala-lang.org/node/4960" rel="nofollow noreferrer">multi-paradigm language</a> encompassing <em>many different philosophies and design approaches</em>. These include</p> <ul> <li>Object-orientation</li> <li>Functional programming</li> <li>Java-specific approaches</li> <li>Language oriented programming (extending the syntax, metaprogramming)</li> </ul> <p>This allows the programmer to solve problems from many different points of view and therefore in many ways. As you suspected, this is in the very nature of the language (like in other general-purpose/multi paradigm languages).</p> <p>Which one is used largely depends on the programmer, though I can give some general rules/thoughts:</p> <ul> <li><p>Scala is - after all - <em>a functional language</em>. I therefore consider it a good practice to follow a functional style of programming (which will also lead to very concise and elegant solutions)</p></li> <li><p><em>Be consistent!</em> <strong>After all, there should be <em>one way for you</em>, but you can choose which one</strong>. Avoid mixing side-effects and pure functions, list-comprehensions and library functions (map, filter), or Java- vs. functional thinking. Instead, use the different paradigms orthogonally where they serve best.</p></li> <li><p><em>Use the wonderful features Scala provides you with</em> (and not just use it as Java with nice syntax): Pattern-matching, continuations, generics and an extremely powerful type system, higher-order functions.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload