concept feature in category scala

appears as: features, features, feature, feature
Get Programming with Scala

This is an excerpt from Manning's book Get Programming with Scala.

You can use traits to define interfaces to represent a set of features (hence the name “traits”) that your class must have: this is a crucial object-oriented concept that you find in many languages, such as Go, Kotlin, and Java. In future units, you will learn that traits are a lot more than just a way to express an interface: you’ll see some of their superpowers and why this makes them a more expressive and powerful tool. In this lesson, you’ll discover how to create a trait and how to implement classes, objects, and other interfaces that conform to one or more interfaces. You’ll also learn about sealed traits: they allow you to define a closed set of implementations for your interface that the compiler guarantees at compile time. In the capstone, you’ll use the App trait to implement the entry point of your application.

  • Also, you have seen how to group elements with features in common thanks to the groupBy function.
  • Play for Scala: Covers Play 2

    This is an excerpt from Manning's book Play for Scala: Covers Play 2.

    A variety of features and qualities makes Play productive and fun to use:

    A different kind of template system works by decorating HTML to make content dynamic, usually with syntax that provides a combination of tags for things like control structures and iteration, and an expression language for outputting dynamic values. In one sense, this is a more low-level approach, because you construct your user interface’s HTML by hand, using HTML and HTTP features as a starting point for implementing user interaction. Figure 3.12 shows this approach’s architecture.