Introduction to Scala
Begin your journey with Scala, a popular language for scalable applications and data engineering infrastructure.
Commencer Le Cours Gratuitement3 heures13 vidéos46 exercices24 855 apprenantsDéclaration de réalisation
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données sont stockées aux États-Unis.Formation de 2 personnes ou plus ?
Essayer DataCamp for BusinessApprécié par les apprenants de milliers d'entreprises
Description du cours
Get an introduction to the programming language Scala. You'll learn why and how companies like Netflix, Airbnb, and Morgan Stanley are choosing Scala for large-scale applications and data engineering infrastructure. You'll learn the basics of the language, including syntax and style, focusing on the most commonly used features in the Scala standard library. You'll learn by writing code for a real program that plays a computer version of the popular card game Twenty-One. You’ll get a taste of the value of a hybrid object-oriented and functional programming language, of which Scala is the foremost example. We recommend this course for learners with intermediate-level programming experience, which can be acquired in the listed prerequisites.
Formation de 2 personnes ou plus ?
Donnez à votre équipe l’accès à la plateforme DataCamp complète, y compris toutes les fonctionnalités.- 1
A Scalable Language
GratuitWelcome to Scala! You'll learn what Scala is, who uses it, and why you should use it. You'll explore four common data types: integers, floating-point numbers, logical values, and text, using the Scala interpreter.
A scalable language50 xpWhat is Scala?100 xpWhy use Scala?100 xpWho uses Scala?50 xpScala code and the Scala interpreter50 xpWhat makes Scala scalable?100 xpScala is object-oriented100 xpReasons for programming in Scala50 xpImmutable variables (val) and value types50 xpDefine immutable variables (val)100 xpDon't try to change me100 xpMutable variables (var) and type inference50 xpDefine mutable variables (var)100 xpYou can change me100 xpPros and cons of immutability100 xp - 2
Workflows, Functions, Collections
Discover two more ways of writing Scala code (writing a script and building an application) and popular tools that make writing these programs easier. Then, learn what functions do and how to use them, and structure your data using the Array and List collections.
Scripts, applications, and real-world workflows50 xpCreate and run a Scala script100 xpBenefits of compiled languages50 xpFunctions50 xpWhat do functions do?100 xpIdentify the body of a function50 xpCall a function100 xpArrays50 xpCreate and parameterize an array100 xpInitialize an array100 xpAn array, all at once100 xpUpdating arrays100 xpLists50 xpInitialize and prepend to a list100 xpInitialize a list using cons and Nil100 xpConcatenate Lists100 xp - 3
Type Systems, Control Structures, Style
Learn about Scala's advanced static type system. After learning how to control your program with if/else, while loops, and the foreach method, you’ll convert imperative-style code to the Scala-preferred functional style.
Scala's static type system50 xpStatic typing vs. dynamic typing100 xpPros and cons of static type systems100 xpMake decisions with if and else50 xpif and printing100 xpif expressions result in a value100 xpif and else inside of a function100 xpwhile and the imperative style50 xpA simple while loop100 xpLoop over a collection with while100 xpforeach and the functional style50 xpIs Scala purely a functional language?50 xpConverting while to foreach100 xpSigns of style100 xpThe essence of Scala50 xp
Formation de 2 personnes ou plus ?
Donnez à votre équipe l’accès à la plateforme DataCamp complète, y compris toutes les fonctionnalités.collaborateurs
prérequis
Intermediate PythonDavid Venturi
Voir PlusData Science Educator
Qu’est-ce que les autres apprenants ont à dire ?
Inscrivez-vous 15 millions d’apprenants et commencer Introduction to Scala Aujourd’hui!
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données sont stockées aux États-Unis.