دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: 3 نویسندگان: David Pollak, Vishal Layka, Andres Sacco سری: ISBN (شابک) : 1484274210, 9781484274217 ناشر: Apress سال نشر: 2022 تعداد صفحات: 332 زبان: English فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) حجم فایل: 5 مگابایت
در صورت تبدیل فایل کتاب Beginning Scala 3: A Functional and Object-Oriented Java Language به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب شروع Scala 3: زبان جاوا کاربردی و شی گرا نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
آخرین نسخه Scala را از طریق مثال های ساده و کاربردی بیاموزید. این کتاب شما را با زبان برنامه نویسی اسکالا، ویژگی های برنامه نویسی شی گرا و کاربردی آن آشنا می کند و سپس شما را از طریق ساختارها و کتابخانه های اسکالا راهنمایی می کند که به شما امکان می دهد اجزای کوچک را در سیستم هایی با کارایی بالا و مقیاس پذیر جمع آوری کنید.
شروع Scala 3 ویژگیهای زبان Scala 3 جدید مانند اعلانهای سطح بالا، برنامههای سازنده، روشهای افزونه برای افزودن قابلیتهای اضافی به انواع موجود و Enums را بررسی میکند. همچنین روشهای جدیدی را برای دستکاری انواع از طریق انواع Union، تقاطع، نام مستعار نوع تحت اللفظی و غیرشفاف یاد خواهید گرفت. علاوه بر این، خواهید دید که چگونه Implicits با بند های داده شده و استفاده از آن جایگزین می شود.
پس از خواندن این کتاب، خواهید فهمید که چرا Scala به طور عاقلانه برای برنامه های تجاری مهم توسط شرکت های پیشرو مانند Twitter، LinkedIn، Foursquare استفاده می شود. ، Guardian، Morgan Stanley، Credit Suisse، UBS، و HSBC - و شما می توانید از آن در پروژه های خود استفاده کنید.
آنچه خواهید آموخت
این کتاب برای چه کسانی است
کسانی که سابقه جاوا و/یا کاتلین که تازه وارد اسکالا شده اند. این کتاب همچنین برای کسانی است که تجربه قبلی اسکالا دارند و میخواهند اسکالا نسخه 3 را یاد بگیرند.
Learn the latest version of Scala through simple, practical examples. This book introduces you to the Scala programming language, its object-oriented and functional programming characteristics, and then guides you through Scala constructs and libraries that allow you to assemble small components into high-performance, scalable systems.
Beginning Scala 3 explores new Scala 3 language features such as Top-level declarations, Creator applications, Extension methods to add extra functionality to existing types, and Enums. You will also learn new ways to manipulate types via Union types, intersection, literal, and opaque type aliases. Additionally, you’ll see how Implicits are replaced by given and using clauses.
After reading this book, you will understand why Scala is judiciously used for critical business applications by leading companies such as Twitter, LinkedIn, Foursquare, the Guardian, Morgan Stanley, Credit Suisse, UBS, and HSBC – and you will be able to use it in your own projects.
What You Will Learn
Who This Book Is For
Those with a background in Java and/or Kotlin who are new to Scala. This book is also for those with some prior Scala experience who want to learn Scala version 3.
Table of Contents About the Authors About the Technical Reviewer Acknowledgments Introduction Chapter 1: Getting Started with Scala Why Use Scala? Migrating to Scala 3 History Installing Scala Tools Installing Java JDK Installing Scala Using Brew Using Coursier Installing SBT Installing the IDE Running Code Examples Using an IDE Manually Using the REPL Running Little Blocks Compiling and Running Files Online Tools Summary Chapter 2: Basics of Scala Variables Scala Type Hierarchy Any, AnyVal, and AnyRef Types Numeric Types Types and Range Conversion Format Boolean Char Unit Strings Interpolation Compare Split Replace Special Characters Other Methods Date Format Arrays Lists Null Nothing Functions Control Structures if/then/else Expressions for Loops while Loops match Expressions try/catch/finally Blocks Comments Running Code Without the REPL Keywords Summary Chapter 3: Object-Oriented Modeling Concepts of OOP From Concepts to Concrete Things Classes Fields Constructors Visibility of the Fields Auxiliary Constructors Providing Default Values Private Constructor Methods Order Invoking Methods Override Default Methods toString equals Inheritance Inner Classes Value Classes Packages and Imports Multiple Imports Exclude Class Objects Defining Singletons Companion Objects Static Factory Opaque Types Export Clauses Summary Chapter 4: Functional Programming What Is Functional Programming? Pure Functions Side Effects Referential Transparency Expression-Oriented Programming Functions, Lambdas, and Closures Function Literal/Anonymous Function First-Class Functions and Higher-Order Functions Functions as Variables Functions as Parameters Returning a Function Closure Partially Applied Functions Curried Functions Function Compositions Function Error Handling Tail Calls and Tail Call Optimization Call-by-Name, Call-by-Value, and General Laziness Functional Structures Sequence Maps Sets Tuples Options Instantiating Chained Methods Functional Operations Traversing Mapping Filtering Summary Chapter 5: Pattern Matching Basic Pattern Matching Matching Any Type Testing Data Types Pattern Matching in Lists Pattern Matching and Lists Compiler Optimization Tableswitch Lookupswitch Considerations Pattern Matching with the Matchable Trait Pattern Matching and Case Classes Nested Pattern Matching in Case Classes Pattern Matching as Functions Pattern Matching on Regular Expressions Object-Oriented and Functional Tensions Shape Abstractions Summary Chapter 6: Scala Collections Scala Collection Hierarchy The scala.collection Package Sequences Sets Map The scala.collection.immutable package Immutable Sequence Immutable Set Immutable Map The scala.collection.mutable package Using Immutable Collection Classes Vector List[T] Getting Functional Transformation Reduxio Look Ma, No Loops Range Stream or LazyList Tuples Map[K, V] Mutable Collections Mutable ArrayBuffer Mutable Queue Mutable Stack Performance of the Collections Summary Chapter 7: Traits and Enums Traits Using Traits as Mixins Traits and Class Hierarchies Conflicts of Method Names Limiting the Use of a Trait Limiting Access by Class Limiting Access by Method Type Parameters or Type Members Passing Parameters on Traits Enumerations Algebraic Data Types in Enums Union and Intersection Types Summary Chapter 8: Scala Type System Unified Type System Type Parameterization Variance Covariant Parameter Types Contravariant Parameter Types Invariant Parameter Types Rules of Variance Type Bounds Upper Type Bounds Lower Type Bounds Extension Methods Scala 2 Implicit Class Scala 3 Given/Using Clauses Implicit Conversions Givens and Imports Using Clauses Summary Chapter 9: Scala and Java Interoperability Scala at a Glance Translating Java Classes to Scala Classes Translating Java Imports into Scala Imports Translating Multiple Constructors JavaBean Specification-Compliant Scala Classes Java Interfaces and Scala Traits Java Static Members and Scala Objects Handling Exceptions Java Optional and Scala Option Use Java Collections in Scala Summary Chapter 10: DSL and Parser Combinator A Closer Look at DSLs Internal DSLs External DSLs Summary Chapter 11: Simple Build Tool Getting Started with SBT Why SBT? Installing SBT General Commands Creating a Hello World Project Project Structure build.sbt Project Folder Src Folder Build Definition LibraryDependencies and Resolvers Plugins Summary Chapter 12: Creating Web Applications Architecture Types Setting Up the Application Application Flow Router Controller Model View Rest Application Defining the Endpoints Layers in the Application Custom Error Handler Summary Chapter 13: Testing Your Code Testing with ScalaTest Writing Your First Test Ignoring the Execution of the Test Other Ways of Declaring the Test Using Matchers to Validate Results Tagging Your Test Before and After Methods Summary Chapter 14: Scala Best Practices General Best Practices Recognizing the Functional Style Writing Pure Functions Leveraging Type Inferencing Think Expressions Focusing on Immutability Keeping Methods Short Using Options Instead of Null Testing Refactor Mercilessly Composing Functions and Classes Summary Index