Kotlin: From Zero to Pure Functional Programming

MBL-222 (4 Days)
Request Pricing for Kotlin: From Zero to Pure Functional Programming

Kotlin Training Overview

This fast-paced Kotlin Programming training course gets you up and running in 4 days, without prior Kotlin knowledge required. Attendees learn how to program Kotlin using all the features of the language, including advanced programming skills using Pure Functions, Immutable Data, Higher-Kinded Types, and Effects. In 4 days, students go from zero Kotlin knowledge to using Functional Programming in Kotlin with Arrow to build real-world apps.

Note: Days 1-2 cover the basics of programming in Kotlin, and days 3-4 cover Functional Programming in Kotlin with the Arrow open source library. Experienced Kotlin programmers may elect to only attend the latter half of the class.

Location and Pricing

This course is taught as a private online class for teams of 3 or more. All our private online courses are hands-on, instructor-led, and customizable to fit your group’s goals and needs. To receive a customized proposal and price quote, please contact us.

Kotlin Training Objectives

All attendees will learn how to:

  • Use the full syntax of the Kotlin language
  • Apply OO, FP, and Generics in Kotlin
  • Leverage Pure Functional coding using Arrow
  • Use Effects to simplify concurrency

Kotlin Training Outline

Expand All | Collapse All | Printer-Friendly

Introduction to Kotlin
Introducing Kotlin on the JVM
  • Four coding paradigms within modern Java
  • Limits imposed by backwards compatibility
  • The new consensus in language design
  • A brief history of the Kotlin language
  • Comparing Kotlin to Scala and Clojure
  • Comparing Kotlin to Swift and TypeScript
First Steps with Kotlin
  • Declarations and type inference
  • The Kotlin type system and conversions
  • Packages, access levels and default imports
  • Nullable types and operators for null safety
  • Keywords for selection and iteration
  • Options for declaring basic functions
  • Overloading, infix functions and ranges
Object Orientation
  • Decompiling Kotlin classes using ‘javap’
  • Understanding properties and backing fields
  • A detailed explanation of primary constructors
  • Adding extra fields and secondary constructors
  • Extra features automatically added to data classes
  • Overriding, abstract classes and interfaces
  • Using object expressions as event handlers
  • Object declarations and companion objects
Generic and Type Parameters
  • Revision of covariance and contravariance
  • Common issues with bounded wildcards in Java
  • How declaration site variance simplifies generics
  • Support for use-site variance (aka type projection)
  • Declaring single and multiple constraints on types
Work with Collections Part 1
  • Introducing the Kotlin collections library
  • Working with mutable and immutable collections
  • Support for destructing types and collections
Functional Programming
  • Working with function references and code blocks
  • Declaring functions as parameters and return types
  • Using higher order functions for internal iteration
  • Creating your own versions of ‘filter’, ‘map’, etc.
  • Using higher order functions to prevent duplication
  • Understanding partial invocation and currying
  • Choosing between code blocks and local functions
  • Common misunderstandings regarding enclosure
Working with Collections Part 2
  • Basic coding using ‘filter’, ‘map’, and ‘forEach’
  • Testing against a predicate using ‘all’, ‘any’ etc.
  • Why ‘flatMap’ is such as valuable operation in FP
  • Distinguishing between ‘fold’, ‘foldRight’, and ‘reduce’
  • Converting between collection types within FP
Interoperability Between Kotlin and Java
  • General guidelines for mixed language codebases
  • Considerations when calling Java libraries from Kotlin
  • Obtaining and using java.lang.Class objects in Kotlin
  • Tips and idioms for calling Kotlin libraries from Java code
Introduction to Functional Programming in Kotlin
Functional Programming 101
  • Pure Functions
  • Referential Transparency
  • The Substitution Model
  • Higher Order Functions
Domain modeling with Algebraic Data Types
  • Data classes and product types
  • Sealed classes and co-product types
Basic Error Handling and Data validation
  • Option
  • Try
  • Either
  • Validated
  • Fail Fast and Error accumulating Failure modes
Working with Immutable Data with Optics
  • Focusing on deeply nested data with Lens, Prism and Optional
  • Removing boilerplate with the Optics DSL
Types of Higher Kind
  • Introduction to polymorphic programs
  • What are Higher-Kinded Types?
  • Polymorphic functions
  • Generalized Algebraic Data Types
  • Generalizing folds and unfolds with Recursion Schemes
Programming with the Core Functional Type Classes
  • Modeling generic behaviors with Type Classes
  • Transforming data with Functor
  • Independent computations with Applicative
  • Dependent Computations with Monad
  • Folding structures into summary values with Foldable
  • Traversing nested effects
  • Lawful and Lawless instances
Polymorphic Error Handling
  • Modeling and raising errors
  • Fail Fast and Error Accumulating strategies with ApplicativeError and MonadError
The Issue of Nested Effects and Monad Transformers
  • Dependency Injection alternative with Reader, Kleisli, Extension Functions
  • Removing Callback-Hell and nested lambdas
  • Encoding alternatives with Free Monads and Stack Safe Free Algebras
  • The rise of Tagless Final
Working with Tagless Final and Async Effects
  • Suspending side effects for deferred evaluation
  • Safe resource acquisition and release
  • Integrating with third-party sync and async libraries
  • Testing Effectful Tagless Final programs
Conclusion
Request Pricing for Kotlin: From Zero to Pure Functional Programming

Related Topics

Lecture percentage

50%

Lecture/Demo

Lab percentage

50%

Lab

Course Number:

MBL-222

Duration:

4 Days

Prerequisites:

No prior Kotlin experience is presumed, however, attendees should have at least five years of Java programming experience.

Training Materials:

All attendees receive comprehensive courseware.

Course outline and materials are copyrighted and owned by Instil Software.

Software Requirements:

  • Windows or Mac minimum 8 GB RAM
  • Android Studio installed
  • Provided lab files from Accelebrate

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Have you read our Google reviews?

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Fax: +1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2020 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.