jagomart
digital resources
picture1_Python Pdf 182462 | Kotlin Kickstarter For Java Developers


 192x       Filetype PDF       File size 1.28 MB       Source: eng-its.de


File: Python Pdf 182462 | Kotlin Kickstarter For Java Developers
it technology blog kotlin kickstarter for java developers engineering whitepaper april 2021 inhaltsverzeichnis introduction 3 purpose 3 basic syntax 4 functions and class 5 programming with lambda 8 kotlin type ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
         
         
         
         
         
         
         
         
         
         
         
                                  
         
                         
        IT Technology Blog 
         
        Kotlin Kickstarter for  
                              
        Java Developers
         
         
        ENGINEERING Whitepaper 
        April 2021 
               
                                                                            
              
              
              
              
              
              
              
              
             Inhaltsverzeichnis 
              
             Introduction ............................................................................................................................3 
             Purpose ..................................................................................................................................3 
             Basic Syntax ..........................................................................................................................4 
             Functions and Class ...............................................................................................................5 
             Programming with Lambda .....................................................................................................8 
             Kotlin Type System ..............................................................................................................11 
             Some refactoring examples ..................................................................................................12 
             References ...........................................................................................................................14 
             Contact .................................................................................................................................14 
              
                                       
              
              
                                       ENGINEERING – www.eng-its.de              Seite 2 von 14 
                                                      
              
                   
                                                                                                  
                  
                  
                  
                 Introduction 
                  
                  The idea of Kotlin was established at JetBrains in 2010. At that time JetBrains was an 
                 established vendor of development tools for many languages, including Java, C#, 
                 JavaScript, Python, Ruby, and PHP. The experience of building the tooling for such a 
                 diverse set of languages provided them a unique understanding of and perspective on 
                 the language design space as a whole. Many syntax of Kotlin sound familiar to people 
                 who worked with any of these languages. 
                 As claimed, it is a new programming language targeting the Java platform. Kotlin is 
                 concise, safe, pragmatic, and focused on interoperability with Java code. 
                                                                                                                         
                  
                  
                  
                 Purpose 
                  
                 This document provides a quick starter in the world of programming with Kotlin. 
                     ▪   Key features in Kotlin are: 
                     ▪   Statically typed 
                     ▪   Functional and Object Oriented 
                     ▪   Safe 
                     ▪   Concise 
                     ▪   Immutable references and objects (val) 
                     ▪   Concise DSL 
                     ▪   Easy build patterns 
                 It catches certain exceptions at compile time which avoids some unexpected behaviors 
                 at runtime. For example exceptions like: 
                     ▪   NullPointerException 
                     ▪   ClassCastException 
                  
                  
                  
                                                 ENGINEERING – www.eng-its.de                           Seite 3 von 14 
                                                                     
                  
                   
                                                                                                  
                  
                  
                  
                 See how Kotlin and java compilers come to the same point below 
                                                                                                                         
                 Some of the statements from Java are considered expression in Kotlin. This helps in 
                 terms of conciseness and brevity. For example, if as expression, we can bypass some 
                 verbosity like return 
                                                                                                                         
                 Other control statements which are treated expression 
                     ▪   when 
                     ▪   throw 
                     ▪   try 
                     ▪   return 
                  
                 Basic Syntax 
                  
                     ▪   String template i.e we can use a variable inside the double quote:  println("Hello, 
                         $name!") 
                     ▪   Multiline String using """ to created formatted string 
                     ▪   Access  properties  using  property  syntax  instead  of  getter  and  setter  i.e 
                         person.name 
                     ▪   val for immutable properties and var for mutable properties 
                     ▪   Being able to have multiple classes, top level functions and properties in one 
                         file 
                     ▪   Enum uses the class keyword unlike java and can have properties and functions 
                  
                  
                                                 ENGINEERING – www.eng-its.de                           Seite 4 von 14 
                                                                     
                  
The words contained in this file might help you see if this file matches what you are looking for:

...It technology blog kotlin kickstarter for java developers engineering whitepaper april inhaltsverzeichnis introduction purpose basic syntax functions and class programming with lambda type system some refactoring examples references contact www eng its de seite von the idea of was established at jetbrains in that time an vendor development tools many languages including c javascript python ruby php experience building tooling such a diverse set provided them unique understanding perspective on language design space as whole sound familiar to people who worked any these claimed is new targeting platform concise safe pragmatic focused interoperability code this document provides quick starter world key features are statically typed functional object oriented immutable objects val dsl easy build patterns catches certain exceptions compile which avoids unexpected behaviors runtime example like nullpointerexception classcastexception see how compilers come same point below statements from c...

no reviews yet
Please Login to review.