Head First Kotlin. A Brain-Friendly Guide Dawn Griffiths, David Griffiths
(ebook)
(audiobook)
(audiobook)
- Autorzy:
- Dawn Griffiths, David Griffiths
- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 482
- Dostępne formaty:
-
ePubMobi
Opis
książki
:
Head First Kotlin. A Brain-Friendly Guide
What will you learn from this book?
Head First Kotlin is a complete introduction to coding in Kotlin. This hands-on book helps you learn the Kotlin language with a unique method that goes beyond syntax and how-to manuals and teaches you how to think like a great Kotlin developer. You’ll learn everything from language fundamentals to collections, generics, lambdas, and higher-order functions. Along the way, you’ll get to play with both object-oriented and functional programming. If you want to really understand Kotlin, this is the book for you.
Why does this book look so different?
Based on the latest research in cognitive science and learning theory, Head First Kotlin uses a visually rich format to engage your mind rather than a text-heavy approach that puts you to sleep. Why waste your time struggling with new concepts? This multisensory learning experience is designed for the way your brain really works.
Wybrane bestsellery
-
Developers with prior experience can leverage the latest modern Android development libraries to build exceptional Android apps. This book discusses crucial factors to consider when developing Android applications and how to maintain them better.
W przygotowaniu
Powiadom mnie, gdy książka będzie dostępna -
This book will equip you to create high-quality, visually appealing Android apps from scratch with Kotlin. You'll discover a wide range of real-world development challenges faced by developers and explore various techniques to overcome them.
How to Build Android Applications with Kotlin. A hands-on guide to developing, testing, and publishing production-grade Android 15 apps - Third Edition
Alex Forrester, Eran Boudjnah, Alexandru Dumbravan, Jomar Tigcal
W przygotowaniu
Powiadom mnie, gdy książka będzie dostępna -
Promocja
Learn how to create powerful apps for multiple platforms with Flutter and Dart Key Features Design visually striking UI with engaging animations using the Dynamic UI Capabilities of Flutter. Understand why Dart is an ideal choice for cross-platform app development. Learn how to secure, test, deploy and publish your Flutter apps. Description Flutt- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
A practical guide to cross-platform app development with .NET MAUI and C# Key Features Get familiar with .NET MAUI, its associated libraries, and popular design patterns used in cross-platform app development. Learn how to design and implement visually appealing and interactive user interfaces in your .NET MAUI app. Deep dive into the process of c- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
The Ultimate Flutter Handbook for Aspiring App Developers Key Features Get in-depth knowledge about the process of building apps using Flutter. A practical guide that provides step-by-step instructions for landing a job as an app developer. Acquire all the necessary knowledge and skills to increase your chances of being hired as an app developer.- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
Learn the basics of Kotlin and build your first Android app Key Features Build real-world apps from scratch with UI and coding. Learn about the latest trends in Android development, including modern architecture patterns, UI design principles, and the Jetpack suite of libraries. Discover how Kotlin can make your Android development more efficient- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
Learn iOS app development from scratch and build your dream app Key Features Experience the cutting-edge capabilities of Xcode 15 and Swift 5.9 with this enhanced edition, unraveling the latest features. Embark on an exciting journey into the world of iOS programming while enjoying the process of building your very own iOS apps. Uncover the exciti- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
Description Kotlin, a modern and expressive language, has revolutionized Android app development. As the app complexity grows, building scalable and maintainable Android apps becomes crucial. This book is a complete guide to modern Android app development using Kotlin. It covers key concepts like clean architecture and dependency injection for buil- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
Learn how to use C# 11 to build apps for any platform, from the ground up Key Features Discover the latest C# 11 features and improvements. Master C# application development in Visual Studio 2022 with engaging and relatable examples. Learn how to test and deploy C# applications with ease. Description C# 11 is the latest version of C#, a popular p- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%) -
Promocja
The best place to start your journey toward becoming a full-fledged Flutter developer Key Features Master essential Flutter widgets and styling techniques to write clean and reusable code. Build functional apps with data fetching and navigation. Integrate Firebase for user authentication and data storage. Description Flutter in 7 Days is a compre- ePub + Mobi 67 pkt
(76,49 zł najniższa cena z 30 dni)
67.43 zł
89.90 zł (-25%)
O autorach książki
Dawn Griffiths jest znakomitą i bardzo doświadczoną programistką oraz autorką wielu książek z serii Rusz głową!. Wraz z mężem Davidem opracowała także animowany kurs wideo The Agile Sketchpad, stanowiący próbę uczenia kluczowych pojęć i technik w sposób zapewniający aktywną pracę mózgu i utrzymanie zaangażowania. Jej pasje to tai chi, bieganie i gotowanie.
David Griffiths jest trenerem Agile, programistą i pracownikiem warsztatu. W wieku 15 lat napisał implementację języka LOGO. Napisał kilka innych książek z serii Rusz głową!. Jego ulubione hobby to spędzanie czasu z ukochaną żoną Dawn.
Dawn Griffiths, David Griffiths - pozostałe książki
-
Promocja
What will you learn from this book?If you have an idea for a killer Android app, this fully revised and updated edition will get you up and running in a jiffy. You'll go beyond syntax and how-to manuals and learn how to think like a great Android developer. This hands-on book teaches you everything from designing user interfaces to building multi-s- ePub + Mobi 288 pkt
(279,65 zł najniższa cena z 30 dni)
288.15 zł
339.00 zł (-15%) -
Promocja
Sięgnij po ten nietypowy podręcznik! Możesz uznać jego formę i sposób przekazywania treści za dziwny, ale prędko przekonasz się, że jest wyjątkowo skuteczny. Twój mózg się zaangażuje i błyskawicznie przyswoi sobie techniki programowania dla Androida. A to wszystko dzięki nowatorskiemu podejściu autorów, którzy uznali, że najszybciej uczymy się wtedy, gdy uwzględnimy specyfikę działania własnego mózgu! Dowiesz się, jak przygotować sobie warsztat pracy, czyli Android Studio. Od razu zaprojektujesz strukturę aplikacji i zbudujesz dobry interfejs. Będziesz swobodnie posługiwał się aktywnościami, intencjami, usługami. Poznasz narzędzia Gradle, ART i ADB, dowiesz się, jak wykorzystywać bazy danych SQLite. A potem będzie jeszcze ciekawiej...- Druk 59 pkt
(59,50 zł najniższa cena z 30 dni)
59.50 zł
119.00 zł (-50%) -
Promocja
Książka, którą trzymasz w rękach, to podręcznik niezwykły, gdyż uwzględnia specyfikę funkcjonowania ludzkiego mózgu i sposób, w jaki najszybciej się uczy. Dzięki nowatorskiemu podejściu autorów nauka pisania aplikacji nie jest nudna: niepostrzeżenie będziesz nabierał coraz większej wprawy. Już w trakcie zapoznawania się z podstawowymi koncepcjami rozpoczniesz pracę w IDE Android Studio. Dowiesz się, jak zaprojektować strukturę aplikacji i jak zbudować idealny interfejs.- Druk 49 pkt
(49,50 zł najniższa cena z 30 dni)
49.50 zł
99.00 zł (-50%) -
Promocja
Filled with tips, tricks, and techniques, this easy-to-use book is the perfect resource for intermediate to advanced users of Excel. You'll find complete recipes for more than a dozen topics covering formulas, PivotTables, charts, Power Query, and more. Each recipe poses a particular problem and outlines a solution that you can put to use right awa- ePub + Mobi 211 pkt
(203,15 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł (-15%) -
Promocja
Dzięki tej książce błyskawicznie uzyskasz odpowiedzi na nurtujące programistów pytania o walidację danych w formularzach, testowanie kodu czy powiązanie kodu aplikacji z kodem serwerowym. Dowiesz się również, jak zapewnić sobie możliwość wielokrotnego wykorzystywania kodu i implementacji złożonych operacji w prosty sposób. Znajdziesz tu szereg przykładowych kodów, pogrupowanych tematycznie i dobranych tak, aby ułatwić Ci rozwiązywanie problemów najczęściej pojawiających się podczas pisania aplikacji Reacta. Poszczególne próbki kodu zostały gruntownie objaśnione, dzięki czemu szybko zrozumiesz, w jaki sposób współdziałają komponenty aplikacji Reacta i jego biblioteki. A wtedy w pełni docenisz zalety tego frameworku!- PDF + ePub + Mobi
- Druk 49 pkt
(49,50 zł najniższa cena z 30 dni)
49.50 zł
99.00 zł (-50%) -
Promocja
React helps you create and work on an app in just a few minutes. But learning how to put all the pieces together is hard. How do you validate a form? Or implement a complex multistep user action without writing messy code? How do you test your code? Make it reusable? Wire it to a backend? Keep it easy to understand? The React Cookbook delivers answ- ePub + Mobi 194 pkt
(186,15 zł najniższa cena z 30 dni)
194.65 zł
228.99 zł (-15%) -
Promocja
Ta książka, podobnie jak inne pozycje z serii Rusz głową!, została przygotowana zgodnie z jedyną w swoim rodzaju metodyką nauczania wykorzystującą zasady funkcjonowania ludzkiego mózgu. Dzięki niej nauczysz się myśleć jak najlepsi programiści i niepostrzeżenie zaczniesz tworzyć wydajny kod w Kotlinie.- Druk 44 pkt
(44,50 zł najniższa cena z 30 dni)
44.50 zł
89.00 zł (-50%) -
Promocja
Dzięki tej książce możesz dołączyć do ich grona! Kolejne wydanie z serii „Rusz głową” to gwarancja sukcesu. Zastosowanie nowatorskich technik nauki pozwala na błyskawiczne przyswojenie wiedzy. W trakcie lektury poznasz składnię języka C, dostępne typy zmiennych, sposoby zarządzania pamięcią oraz zasady tworzenia przejrzystego kodu. Ponadto nauczysz się biegle obsługiwać kompilator, korzystać z plików nagłówkowych oraz przesyłać komunikaty między procesami. Dzięki licznym ćwiczeniom bez problemu utrwalisz zdobytą wiedzę. Książka ta jest wprost genialną pozycją dla wszystkich osób chcących wkroczyć w świat języka C. Przyda się również studentom na zajęciach z programowania. Warto ją mieć!- Druk 49 pkt
(49,50 zł najniższa cena z 30 dni)
49.50 zł
99.00 zł (-50%) -
Promocja
Najważniejsze zagadnienia zostały tu zilustrowane za pomocą — nierzadko zabawnych — przykładów z życia codziennego, takich jak analiza statystyk sportowych, wyników gier hazardowych czy testów nowych leków. Dzięki tej książce dowiesz się m.in., jak wybrać optymalny wykres do wizualizacji określonych danych, szybko wskazać wartości reprezentatywne dla danego zbioru danych i za pomocą rachunku prawdopodobieństwa przewidywać skutki powtarzalnych zdarzeń w długich seriach. Z łatwością nie tylko przyswoisz zawartą tu wiedzę, ale i wykorzystasz ją w codziennym życiu!- Druk 34 pkt
(34,50 zł najniższa cena z 30 dni)
34.50 zł
69.00 zł (-50%) -
Promocja
Książkę Head First Ruby on Rails. Edycja polska napisano w oparciu o najnowsze, skuteczne techniki ułatwiające zrozumienie i przyswajanie wiedzy. Dzięki temu szybko i bez trudności nauczysz się tworzyć interaktywne aplikacje internetowe za pomocą tej platformy. Dowiesz się, na czym polega współpraca z bazą danych, integracja z Ajaksem i XML oraz dynamiczne wykreślanie danych. Ponieważ to obrazy najlepiej przemawiają do Twojego umysłu, książka ta została bogato zilustrowana - abyś jak najszybciej poznał możliwości Rails i natychmiast zaczął wykorzystywać je w praktyce.- Druk 39 pkt
(39,50 zł najniższa cena z 30 dni)
39.50 zł
79.00 zł (-50%)
Kup polskie wydanie:
Ebooka "Head First Kotlin. A Brain-Friendly Guide" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "Head First Kotlin. A Brain-Friendly Guide" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "Head First Kotlin. A Brain-Friendly Guide" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły książki
- ISBN Ebooka:
- 978-14-919-9664-5, 9781491996645
- Data wydania ebooka :
- 2019-02-13 Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- 1
- Rozmiar pliku ePub:
- 47.2MB
- Rozmiar pliku Mobi:
- 85.7MB
Spis treści książki
- how to use this book: Intro
- Who is this book for?
- Who should probably back away from this book?
- We know what youre thinking
- We know what your brain is thinking
- Metacognition: thinking about thinking
- Heres what WE did:
- Heres what YOU can do to bend your brain into submission
- Read me
- The technical review team
- Acknowledgments
- OReilly
- Who is this book for?
- Table of Contents (the real thing)
- 1. getting started: A Quick Dip
- Welcome to Kotlinville
- Its crisp, concise and readable
- You can use object-oriented AND functional programming
- The compiler keeps you safe
- You can use Kotlin nearly everywhere
- Java Virtual Machines (JVMs)
- Android
- Client-side and server-side JavaScript
- Native apps
- What well do in this chapter
- Install IntelliJ IDEA (Community Edition)
- Lets build a basic application
- 1. Create a new project
- 2. Specify the type of project
- 3. Configure the project
- Youve just created your first Kotlin project
- Add a new Kotlin file to the project
- Anatomy of the main function
- Add the main function to App.kt
- Test drive
- What the Run command does
- What can you say in the main function?
- Loop and loop and loop...
- Simple boolean tests
- A loopy example
- Test drive
- Conditional branching
- Using if to return a value
- Update the main function
- Test drive
- Code Magnets
- Using the Kotlin interactive shell
- You can add multi-line code snippets to the REPL
- Its exercise time
- Code Magnets Solution
- Your Kotlin Toolbox
- Welcome to Kotlinville
- 2. basic types and variables: Being a Variable
- Your code needs variables
- A variable is like a cup
- What happens when you declare a variable
- The value is transformed into an object...
- ...and the compiler infers the variables type from that of the object
- The variable holds a reference to the object
- val vs. var revisited
- Kotlins basic types
- Integers
- Floating points
- Booleans
- Characters and Strings
- How to explicitly declare a variables type
- Declaring the type AND assigning a value
- Use the right value for the variables type
- Assigning a value to another variable
- We need to convert the value
- An object has state and behavior
- How to convert a numeric value to another type
- What happens when you convert a value
- Watch out for overspill
- Store multiple values in an array
- How to create an array
- Create the Phrase-O-Matic application
- Add the code to PhraseOMatic.kt
- The compiler infers the arrays type from its values
- How to explicitly define the arrays type
- var means the variable can point to a different array
- val means the variable points to the same array forever...
- ...but you can still update the variables in the array
- Code Magnets
- Code Magnets Solution
- Your Kotlin Toolbox
- Your code needs variables
- 3. functions: Getting Out of Main
- Lets build a game: Rock, Paper, Scissors
- How the game will work
- A high-level design of the game
- Heres what were going to do
- Get started: create the project
- Get the game to choose an option
- Create the Rock, Paper, Scissors array
- How you create functions
- You can send things to a function
- You can send more than one thing to a function
- Calling a two-parameter function, and sending it two arguments
- You can pass variables to a function so long as the variable type matches the parameter type
- You can get things back from a function
- Functions with no return value
- Functions with single-expression bodies
- Create the getGameChoice function
- Code Magnets
- Code Magnets Solution
- Add the getGameChoice function to Game.kt
- Behind the scenes: what happens
- The story continues
- The getUserChoice function
- Ask for the users choice
- How for loops work
- Looping through a range of numbers
- Use downTo to reverse the range
- Use step to skip numbers in the range
- Looping through the items in an array
- Ask the user for their choice
- Use the readLine function to read the users input
- We need to validate the users input
- And and Or operators (&& and ||)
- Not equals (!= and !)
- Use parentheses to make your code clear
- Add the getUserChoice function to Game.kt
- Test drive
- We need to print the results
- Add the printResult function to Game.kt
- Test drive
- Your Kotlin Toolbox
- Lets build a game: Rock, Paper, Scissors
- 4. classes and objects: A Bit of Class
- Object types are defined using classes
- You can define your own classes
- How to design your own classes
- Lets define a Dog class
- How to create a Dog object
- How to access properties and functions
- What if the Dog is in a Dog array?
- Create a Songs application
- Test drive
- The miracle of object creation
- How objects are created
- What the Dog constructor looks like
- Behind the scenes: calling the Dog constructor
- Code Magnets
- Code Magnets Solution
- Going deeper into properties
- Behind the scenes of the Dog constructor
- Flexible property initialization
- How to use initializer blocks
- You MUST initialize your properties
- How do you validate property values?
- The solution: custom getters and setters
- How to write a custom getter
- How to write a custom setter
- The full code for the Dogs project
- Test drive
- Your Kotlin Toolbox
- Object types are defined using classes
- 5. subclasses and superclasses: Using Your Inheritance
- Inheritance helps you avoid duplicate code
- An inheritance example
- What were going to do
- Design an animal class inheritance structure
- Use inheritance to avoid duplicate code in subclasses
- What should the subclasses override?
- The animals have different property values...
- ...and different function implementations
- We can group some of the animals
- Add Canine and Feline classes
- Use IS-A to test your class hierarchy
- Use HAS-A to test for other relationships
- The IS-A test works anywhere in the inheritance tree
- Well create some Kotlin animals
- Declare the superclass and its properties and functions as open
- How a subclass inherits from a superclass
- How (and when) to override properties
- Overriding properties lets you do more than assign default values
- How to override functions
- The rules for overriding functions
- An overridden function or property stays open...
- ...until its declared final
- Add the Hippo class to the Animals project
- Code Magnets
- Code Magnets Solution
- Add the Canine and Wolf classes
- Which function is called?
- Inheritance guarantees that all subclasses have the functions and properties defined in the superclass
- Any place where you can use a superclass, you can use one of its subclasses instead
- When you call a function on the variable, its the objects version that responds
- You can use a supertype for a functions parameters and return type
- The updated Animals code
- Test drive
- Your Kotlin Toolbox
- Inheritance helps you avoid duplicate code
- 6. abstract classes and interfaces: Serious Polymorphism
- The Animal class hierarchy revisited
- Some classes shouldnt be instantiated
- Declare a class as abstract to stop it from being instantiated
- Abstract or concrete?
- An abstract class can have abstract properties and functions
- We can mark three properties as abstract
- The Animal class has two abstract functions
- How to implement an abstract class
- You MUST implement all abstract properties and functions
- Lets update the Animals project
- Test drive
- Independent classes can have common behavior
- An interface lets you define common behavior OUTSIDE a superclass hierarchy
- Lets define the Roamable interface
- Interface functions can be abstract or concrete
- How to define interface properties
- Declare that a class implements an interface...
- ...then override its properties and functions
- How to implement multiple interfaces
- How do you know whether to make a class, a subclass, an abstract class, or an interface?
- Update the Animals project
- Test drive
- Interfaces let you use polymorphism
- Access uncommon behavior by checking an objects type
- Where to use the is operator
- As the condition for an if
- In conditions using && and ||
- In a while loop
- Use when to compare a variable against a bunch of options
- The is operator usually performs a smart cast
- Use as to perform an explicit cast
- Update the Animals project
- Test drive
- Your Kotlin Toolbox
- 7. data classes: Dealing with Data
- == calls a function named equals
- equals is inherited from a superclass named Any
- The importance of being Any
- The common behavior defined by Any
- We might want equals to check whether two objects are equivalent
- A data class lets you create data objects
- How to create objects from a data class
- Data classes override their inherited behavior
- The equals function compares property values
- Equal objects return the same hashCode value
- toString returns the value of each property
- Copy data objects using the copy function
- Data classes define componentN functions...
- ...that let you destructure data objects
- Create the Recipes project
- Test drive
- Generated functions only use properties defined in the constructor
- Initializing many properties can lead to cumbersome code
- Default parameter values to the rescue!
- How to use a constructors default values
- 1. Passing values in order of declaration
- 2. Using named arguments
- Functions can use default values too
- Overloading a function
- Dos and donts for function overloading:
- Lets update the Recipes project
- The code continued...
- Test drive
- Your Kotlin Toolbox
- 8. nulls and exceptions: Safe and Sound
- How do you remove object references from variables?
- Remove an object reference using null
- Why have nullable types?
- You can use a nullable type everywhere you can use a non-nullable type
- How to create an array of nullable types
- How to access a nullable types functions and properties
- Keep things safe with safe calls
- You can chain safe calls together
- What happens when a safe call chain gets evaluated
- The story continues
- You can use safe calls to assign values...
- ...and assign values to safe calls
- Use let to run code if values are not null
- Using let with array items
- Using let to streamline expressions
- Instead of using an if expression...
- ...you can use the safer Elvis operator
- The !! operator deliberately throws a NullPointerException
- Create the Null Values project
- The code continued...
- Test drive
- An exception is thrown in exceptional circumstances
- You can catch exceptions that are thrown
- Catch exceptions using a try/catch
- Use finally for the things you want to do no matter what
- An exception is an object of type Exception
- You can explicitly throw exceptions
- try and throw are both expressions
- How to use try as an expression
- How to use throw as an expression
- Code Magnets
- Code Magnets Solution
- Your Kotlin Toolbox
- 9. collections: Get Organized
- Arrays can be useful...
- ...but there are things an array cant handle
- You cant change an arrays size
- Arrays are mutable, so they can be updated
- When in doubt, go to the Library
- List, Set and Map
- List - when sequence matters
- Set - when uniqueness matters
- Map - when finding something by key matters
- Fantastic Lists...
- ...and how to use them
- Create a MutableList...
- ..and add values to it
- You can remove a value...
- ...and replace one value with another
- You can change the order and make bulk changes...
- ...or take a copy of the entire MutableList
- Create the Collections project
- Test drive
- Code Magnets
- Code Magnets Solution
- Lists allow duplicate values
- How to create a Set
- How to use a Sets values
- How a Set checks for duplicates
- Hash codes and equality
- Equality using the === operator
- Equality using the == operator
- Rules for overriding hashCode and equals
- How to use a MutableSet
- You can copy a MutableSet
- Update the Collections project
- Test drive
- Time for a Map
- How to create a Map
- How to use a Map
- Create a MutableMap
- Put entries in a MutableMap
- You can remove entries from a MutableMap
- You can copy Maps and MutableMaps
- The full code for the Collections project
- Test drive
- Your Kotlin Toolbox
- 10. generics: Know Your Ins from Your Outs
- Collections use generics
- How a MutableList is defined
- Understanding collection documentation (Or, whats the meaning of E?)
- Using type parameters with MutableList
- Things you can do with a generic class or interface
- Heres what were going to do
- Create the Pet class hierarchy
- Define the Contest class
- Declare that Contest uses a generic type
- You can restrict T to a specific supertype
- Add the scores property
- Create the addScore function
- Create the getWinners function
- Create some Contest objects
- The compiler can infer the generic type
- Create the Generics project
- Test drive
- The Retailer hierarchy
- Define the Retailer interface
- We can create CatRetailer, DogRetailer and FishRetailer objects...
- ...but what about polymorphism?
- Use out to make a generic type covariant
- Collections are defined using covariant types
- Update the Generics project
- Test drive
- We need a Vet class
- Assign a Vet to a Contest
- Create Vet objects
- Pass a Vet to the Contest constructor
- Use in to make a generic type contravariant
- Should a Vet<Cat> ALWAYS accept a Vet<Pet>?
- A generic type can be locally contravariant
- Update the Generics project
- Test drive
- Your Kotlin Toolbox
- 11. lambdas and higher-order functions: Treating Code Like Data
- Introducing lambdas
- What were going to do
- What lambda code looks like
- You can assign a lambda to a variable
- Execute a lambdas code by invoking it
- What happens when you invoke a lambda
- Lambda expressions have a type
- The compiler can infer lambda parameter types
- You can replace a single parameter with it
- Use the right lambda for the variables type
- Use Unit to say a lambda has no return value
- Create the Lambdas project
- Test drive
- You can pass a lambda to a function
- Add a lambda parameter to a function by specifying its name and type
- Invoke the lambda in the function body
- Call the function by passing it parameter values
- What happens when you call the function
- You can move the lambda OUTSIDE the ()s...
- ...or remove the ()s entirely
- Update the Lambdas project
- Test drive
- A function can return a lambda
- Write a function that receives AND returns lambdas
- Define the parameters and return type
- Define the function body
- How to use the combine function
- What happens when the code runs
- You can make lambda code more readable
- Use typealias to provide a different name for an existing type
- Update the Lambdas project
- Test drive
- Code Magnets
- Code Magnets Solution
- Your Kotlin Toolbox
- Introducing lambdas
- 12. built-in higher-order functions: Power Up Your Code
- Kotlin has a bunch of built-in higher-order functions
- The min and max functions work with basic types
- The minBy and maxBy functions work with ALL types
- A closer look at minBy and maxBys lambda parameter
- What about minBy and maxBys return type?
- The sumBy and sumByDouble functions
- sumBy and sumByDoubles lambda parameter
- Create the Groceries project
- Test drive
- Meet the filter function
- Theres a whole FAMILY of filter functions
- Use map to apply a transform to your collection
- You can chain function calls together
- What happens when the code runs
- The story continues...
- forEach works like a for loop
- forEach has no return value
- Lambdas have access to variables
- Update the Groceries project
- Test drive
- Use groupBy to split your collection into groups
- You can use groupBy in function call chains
- How to use the fold function
- Behind the scenes: the fold function
- Some more examples of fold
- Find the product of a List<Int>
- Concatenate together the name of each item in a List<Grocery>
- Subtract the total price of items from an initial value
- Update the Groceries project
- Test drive
- Your Kotlin Toolbox
- Leaving town...
- Its been great having you here in Kotlinville
- A. coroutines: Running Code in Parallel
- Lets build a drum machine
- 1. Create a new GRADLE project
- 2. Enter an artifact ID
- 3. Specify configuration details
- 4. Specify the project name
- Add the audio files
- Add the code to the project
- Test drive
- Use coroutines to make beats play in parallel
- 1. Add a coroutines dependency
- 2. Launch a coroutine
- Test drive
- A coroutine is like a lightweight thread
- Use runBlocking to run coroutines in the same scope
- Test drive
- Thread.sleep pauses the current THREAD
- The delay function pauses the current COROUTINE
- The full project code
- Test drive
- Lets build a drum machine
- B. testing: Hold Your Code to Account
- Kotlin can use existing testing libraries
- Add the JUnit library
- Create a JUnit test class
- Using KotlinTest
- Use rows to test against sets of data
- Kotlin can use existing testing libraries
- C. leftovers: The Top Ten Things: (We Didnt Cover)
- 1. Packages and imports
- How to add a package
- Package declarations
- The fully qualified name
- Type the fully qualified name...
- ...or import it
- 2. Visibility modifiers
- Visibility modifiers and top level code
- Visibility modifiers and classes/interfaces
- 3. Enum classes
- Enum constructors
- enum properties and functions
- 4. Sealed classes
- Sealed classes to the rescue!
- How to use sealed classes
- 5. Nested and inner classes
- An inner class can access the outer class members
- 6. Object declarations and expressions
- Class objects...
- ...and companion objects
- Object expressions
- 7. Extensions
- 8. Return, break and continue
- Using labels with break and continue
- Using labels with return
- 9. More fun with functions
- vararg
- infix
- inline
- 10. Interoperability
- Interoperability with Java
- Using Kotlin with JavaScript
- Writing native code with Kotlin
- 1. Packages and imports
- Index
O'Reilly Media - inne książki
-
Promocja
Business decisions in any context—operational, tactical, or strategic—can have considerable consequences. Whether the outcome is positive and rewarding or negative and damaging to the business, its employees, and stakeholders is unknown when action is approved. These decisions are usually made under the proverbial cloud of uncertainty.With this pra- ePub + Mobi 194 pkt
(186,15 zł najniższa cena z 30 dni)
194.65 zł
228.99 zł (-15%) -
Promocja
If you're a developer looking to build a distributed, resilient, scalable, high-performance application, you may be evaluating distributed SQL and NoSQL solutions. Perhaps you're considering the Aerospike database.This practical book shows developers, architects, and engineers how to get the highly scalable and extremely low-latency Aerospike datab- ePub + Mobi 254 pkt
Aerospike: Up and Running. Developing on a Modern Operational Database for Globally Distributed Apps
(245,65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł (-15%) -
Promocja
Reinforcement learning (RL) has led to several breakthroughs in AI. The use of the Q-learning (DQL) algorithm alone has helped people develop agents that play arcade games and board games at a superhuman level. More recently, RL, DQL, and similar methods have gained popularity in publications related to financial research.This book is among the fir- ePub + Mobi 220 pkt
(220,15 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł (-15%) -
Promocja
Learn how to use Go's strengths to develop services that are scalable and resilient even in an unpredictable environment. With this book's expanded second edition, Go developers will explore the composition and construction of cloud native applications, from lower-level Go features and mid-level patterns to high-level architectural considerations.E- ePub + Mobi 220 pkt
(220,15 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł (-15%) -
Promocja
To ensure that applications are reliable and always available, more businesses today are moving applications to AWS. But many companies still struggle to design and build these cloud applications effectively, thinking that because the cloud is resilient, their applications will be too. With this practical guide, software, DevOps, and cloud engineer- ePub + Mobi 220 pkt
(211,65 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł (-15%) -
Promocja
Performance tuning is an experimental science, but that doesn't mean engineers should resort to guesswork and folklore to get the job done. Yet that's often the case. With this practical book, intermediate to advanced Java technologists working with complex platforms will learn how to tune Java cloud applications for performance using a quantitativ- ePub + Mobi 220 pkt
(220,15 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł (-15%) -
Promocja
Today, investment in financial technology and digital transformation is reshaping the financial landscape and generating many opportunities. Too often, however, engineers and professionals in financial institutions lack a practical and comprehensive understanding of the concepts, problems, techniques, and technologies necessary to build a modern, r- ePub + Mobi 220 pkt
(220,15 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł (-15%) -
Promocja
Until recently, infrastructure was the backbone of organizations operating software they developed in-house. But now that cloud vendors run the computers, companies can finally bring the benefits of agile custom-centricity to their own developers. Adding product management to infrastructure organizations is now all the rage.But how's that possible- ePub + Mobi 194 pkt
(186,15 zł najniższa cena z 30 dni)
194.65 zł
228.99 zł (-15%) -
Promocja
Cloud services and SaaS software permeate every company's IT landscape, requiring a shift from manually provisioned services to a more structured approach, with codification at its core. Terraform provides tools to manage the lifecycle of your IT landscape across thousands of different cloud providers and SaaS platforms.By defining your infrastruct- ePub + Mobi 211 pkt
(203,15 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł (-15%) -
Promocja
Using machine learning for products, services, and critical business processes is quite different from using ML in an academic or research setting—especially for recent ML graduates and those moving from research to a commercial environment. Whether you currently work to create products and services that use ML, or would like to in the future, this- ePub + Mobi 254 pkt
(245,65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł (-15%)
Dzięki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep@ebookpoint.pl
Proszę wybrać ocenę!
Proszę wpisać opinię!
Książka drukowana
* pola obowiązkowe
Proszę czekać...
Oceny i opinie klientów: Head First Kotlin. A Brain-Friendly Guide Dawn Griffiths, David Griffiths (0) Weryfikacja opinii następuje na podstawie historii zamowień na koncie Użytkownika umiejszczającego opinię.