This document provides an overview of the Kotlin programming language. It defines Kotlin as a statically typed language that targets the JVM and JavaScript, is 100% interoperable with Java, and was created by JetBrains as a better alternative to Java. The document then covers 10 features of Kotlin, including null safety, data classes, extension functions, smart casts, and support for functional programming patterns. It provides code examples to demonstrate how these features work in Kotlin.
Kotlin advanced - language reference for android developersBartosz Kosarzycki
StxNext Lightning Talks - Mar 11, 2016
Kotlin Advanced - language reference for Android developers
This presentation contains the second talk on Kotlin language we had at STXNext. We try go deeper into language specifics and look at the positive impact new syntax can have on boilerplate removal and readability improvement.
Kotlin really shines in Android development when one looks at “Enum translation”, “Extension functions”, “SAM conversions”, “Infix notation”, “Closures” and “Fluent interfaces” applied to lists. The talk, however, compares language-specifics of Java & Kotlin in terms of “Type Variance”, “Generics” and “IDE tools” as well.
We present real-world example based on Stx-Insider project written in Kotlin which incorporates Dagger 2, Kotterknife, Retrofit2 and is composed of 5+ Activities.
Full agenda
Live templates
Enum translation
Calling extension functions from Kotlin/Java
Constructors with backing fields
Warnings
F-bound polymorphism
Variance (Covariance/Contravariance)
Variance comparison in Kotlin/Java/Scala
Annotation processing - KAPT
SAM conversions
Type equality
Lambda vs Closure
Reified generics
Fluent interfaces
Infix notation
Static extension methods in Kotlin
Generic types
Sealed classes
Dokka - documentation in Kotlin
J2K converter
Real-world example
Reflection
Presentation is accompanied with an example project (StxInsider):
https://github.com/kosiara/stx-insider
Will talk about kotlin the language and new concepts introduced in the language including functional programming.
And how to use your springframework knowlege to write more concise and elegant backend systems.
We will demo a backend written in spring boot and kotlin and will see how it is so easy to interoperate between java and kotlin code.
Introduction to kotlin for android app development gdg ahmedabad dev fest 2017Hardik Trivedi
The presentation was given in Ahmedabad GDG DevFest 2017. It has introduction to Kotlin for Android App Development.
Talk will is specially designed for beginners, who has heard about Kotlin but couldn’t explore it till date. The talk will take attendees to the journey where they can know Kotlin as a programming language. What Kotlin offers for Android? How to start the development using Kotlin, Features of Kotlin, Some of the disadvantages of Kotlin.
I will be discussing about following topics
- What’s Kotlin
- Why Kotlin
- Setting up Kotlin
- Features of Kotlin
- Syntax crash course
- Classes
- Features of function programming like Lamdabs and Higher order functions
- Usage of Anko
- Migrating from Java project to Kotlin
- Future of Kotlin
- Disadvantages of Kotlin
Kotlin advanced - language reference for android developersBartosz Kosarzycki
StxNext Lightning Talks - Mar 11, 2016
Kotlin Advanced - language reference for Android developers
This presentation contains the second talk on Kotlin language we had at STXNext. We try go deeper into language specifics and look at the positive impact new syntax can have on boilerplate removal and readability improvement.
Kotlin really shines in Android development when one looks at “Enum translation”, “Extension functions”, “SAM conversions”, “Infix notation”, “Closures” and “Fluent interfaces” applied to lists. The talk, however, compares language-specifics of Java & Kotlin in terms of “Type Variance”, “Generics” and “IDE tools” as well.
We present real-world example based on Stx-Insider project written in Kotlin which incorporates Dagger 2, Kotterknife, Retrofit2 and is composed of 5+ Activities.
Full agenda
Live templates
Enum translation
Calling extension functions from Kotlin/Java
Constructors with backing fields
Warnings
F-bound polymorphism
Variance (Covariance/Contravariance)
Variance comparison in Kotlin/Java/Scala
Annotation processing - KAPT
SAM conversions
Type equality
Lambda vs Closure
Reified generics
Fluent interfaces
Infix notation
Static extension methods in Kotlin
Generic types
Sealed classes
Dokka - documentation in Kotlin
J2K converter
Real-world example
Reflection
Presentation is accompanied with an example project (StxInsider):
https://github.com/kosiara/stx-insider
Will talk about kotlin the language and new concepts introduced in the language including functional programming.
And how to use your springframework knowlege to write more concise and elegant backend systems.
We will demo a backend written in spring boot and kotlin and will see how it is so easy to interoperate between java and kotlin code.
Introduction to kotlin for android app development gdg ahmedabad dev fest 2017Hardik Trivedi
The presentation was given in Ahmedabad GDG DevFest 2017. It has introduction to Kotlin for Android App Development.
Talk will is specially designed for beginners, who has heard about Kotlin but couldn’t explore it till date. The talk will take attendees to the journey where they can know Kotlin as a programming language. What Kotlin offers for Android? How to start the development using Kotlin, Features of Kotlin, Some of the disadvantages of Kotlin.
I will be discussing about following topics
- What’s Kotlin
- Why Kotlin
- Setting up Kotlin
- Features of Kotlin
- Syntax crash course
- Classes
- Features of function programming like Lamdabs and Higher order functions
- Usage of Anko
- Migrating from Java project to Kotlin
- Future of Kotlin
- Disadvantages of Kotlin
Presented on 27th September 2017 to a joint meeting of 'Cork Functional Programmers' and the 'Cork Java Users Group'
Based on the Kotlin Language programming course from Instil. For more details see https://instil.co/courses/kotlin-development/
Next Insurance was founded in the beginning of 2016 and first lines of our production code started accumulating in May 2016. In the beginning I have started writing in Java and experimenting with Kotlin, which saw its 1.0 release two months earlier. 6 months later, the development of our backend services has totally shifted to Kotlin. We still keep a few classes in Java just to make sure that the integration remains seamless but the vast majority of our codebase is written in Kotlin. In this talk I will cover the language features and why I think it is awesome, from null safety to smart casts and data classes. We will also look into the future with 1.1 async/await feature and more.
I used these slides to present the benefits of using Kotlin to a group of people I work with. The presentation focuses on comparing Kotlin to Java, and in particular showing how Kotlin can help in writing safer, more concise and readable code. I used a few java gotchas/puzzles to demonstrate how Kotlin may prevent us from doing silly things.
Kotlin Bytecode Generation and Runtime Performanceintelliyole
In this talk, we'll dive into the details of how various language features supported by Kotlin are translated to Java bytecode. We'll use the JMH microbenchmarking tool to study the relative performance of various constructs and to understand how we can ensure top performance of the Kotlin code that we write.
StxNext Lightning Talks - Feb 12, 2016
Kotlin - one of the popular programming languages built on top of Java that runs on JVM. Thanks to JetBrains support and excellent IDE integration, it’s an ideal choice when it comes to Android development. 100% Java compatibility, interoperability and no runtime overhead is just the beginning of a long list of strengths. Kotlin is supposed to be a subset of SCALA, on one hand covering major advantages for developers and on the other - keeping short compile times.
This presentation is a Developer Starter - a set of hand-picked information allowing a person with no knowledge of Kotlin to start writing basic Android activities and set up an Android-kotlin project. It starts with language background, reasons for its creation and advantages. Then presents basic use cases, syntax, structures and patterns. Later on Kotlin is presented in Android context. Simple project structure, imports and Kotlin usage with Android SDK is explained. In the end cost of Kotlin usage is presented and the language is compared to SCALA and SWIFT.
With the announcement on officially supporting Kotlin for Android, this presentation tries to compare Java and Kotlin to encourage people to switch to Kotlin
Kotlin is a JVM language developed by Jetbrains. Its version 1.0 (production ready) was released at the beginning of the year and made some buzz within the android community. This session proposes to discover this language, which takes up some aspects of groovy or scala, and that is very close to swift in syntax and concepts. We will see how Kotlin boosts the productivity of Java & Android application development and how well it accompanies reactive development.
It's 2017. Kotlin, a great language for the JVM, has been around for more than 6 years now and has changed the way a lot of developers look at the features and evolutionary progress of Java. Kotlin has become a very popular alternative to Java for Android developers and with Kotlin 1.1 being on its way, thing are going to become more exciting.
This talk will start with a brief introduction into Kotlin and its core language features. After this brief foray into concepts like Kotlin's immutable variables, null behaviour and other smarts like the syntactic sugar it provides for dealing with types and properties we'll have a look into what in store for Android developers and into new features in Kotlin 1.1, such as Kotlin Coroutines, Jack support for Android and lots of improvements to the standard library.
This presentation shows tools and technologies used in Android Development such as Kotlin, Retrofit, and Room. It also shows different architectural patterns such as MVC, MVP, and MVVM
Davide Cerbo - Kotlin: forse è la volta buona - Codemotion Milan 2017 Codemotion
Dopo 20 anni Java inizia a sentire il peso degli anni e la sua sintassi non evolve come vorremmo, ma la JVM resta sempre un ambiente affidabile ed è già in produzione presso moltissime aziende. Negli ultimi anni sono usciti molti linguaggi basati sulla JVM, ma non tutti hanno avuto il successo sperato. Kotlin ha conquistato Android e, ora, grazie a una sintassi intuitiva e grandi aziende che lo supportano potrebbe essere molto utilizzato anche nelle applicazioni web. Durante il talk vedremo le basi del linguaggio e come sviluppare una applicazione web pronta ad andare in produzione.
Presented on 27th September 2017 to a joint meeting of 'Cork Functional Programmers' and the 'Cork Java Users Group'
Based on the Kotlin Language programming course from Instil. For more details see https://instil.co/courses/kotlin-development/
Next Insurance was founded in the beginning of 2016 and first lines of our production code started accumulating in May 2016. In the beginning I have started writing in Java and experimenting with Kotlin, which saw its 1.0 release two months earlier. 6 months later, the development of our backend services has totally shifted to Kotlin. We still keep a few classes in Java just to make sure that the integration remains seamless but the vast majority of our codebase is written in Kotlin. In this talk I will cover the language features and why I think it is awesome, from null safety to smart casts and data classes. We will also look into the future with 1.1 async/await feature and more.
I used these slides to present the benefits of using Kotlin to a group of people I work with. The presentation focuses on comparing Kotlin to Java, and in particular showing how Kotlin can help in writing safer, more concise and readable code. I used a few java gotchas/puzzles to demonstrate how Kotlin may prevent us from doing silly things.
Kotlin Bytecode Generation and Runtime Performanceintelliyole
In this talk, we'll dive into the details of how various language features supported by Kotlin are translated to Java bytecode. We'll use the JMH microbenchmarking tool to study the relative performance of various constructs and to understand how we can ensure top performance of the Kotlin code that we write.
StxNext Lightning Talks - Feb 12, 2016
Kotlin - one of the popular programming languages built on top of Java that runs on JVM. Thanks to JetBrains support and excellent IDE integration, it’s an ideal choice when it comes to Android development. 100% Java compatibility, interoperability and no runtime overhead is just the beginning of a long list of strengths. Kotlin is supposed to be a subset of SCALA, on one hand covering major advantages for developers and on the other - keeping short compile times.
This presentation is a Developer Starter - a set of hand-picked information allowing a person with no knowledge of Kotlin to start writing basic Android activities and set up an Android-kotlin project. It starts with language background, reasons for its creation and advantages. Then presents basic use cases, syntax, structures and patterns. Later on Kotlin is presented in Android context. Simple project structure, imports and Kotlin usage with Android SDK is explained. In the end cost of Kotlin usage is presented and the language is compared to SCALA and SWIFT.
With the announcement on officially supporting Kotlin for Android, this presentation tries to compare Java and Kotlin to encourage people to switch to Kotlin
Kotlin is a JVM language developed by Jetbrains. Its version 1.0 (production ready) was released at the beginning of the year and made some buzz within the android community. This session proposes to discover this language, which takes up some aspects of groovy or scala, and that is very close to swift in syntax and concepts. We will see how Kotlin boosts the productivity of Java & Android application development and how well it accompanies reactive development.
It's 2017. Kotlin, a great language for the JVM, has been around for more than 6 years now and has changed the way a lot of developers look at the features and evolutionary progress of Java. Kotlin has become a very popular alternative to Java for Android developers and with Kotlin 1.1 being on its way, thing are going to become more exciting.
This talk will start with a brief introduction into Kotlin and its core language features. After this brief foray into concepts like Kotlin's immutable variables, null behaviour and other smarts like the syntactic sugar it provides for dealing with types and properties we'll have a look into what in store for Android developers and into new features in Kotlin 1.1, such as Kotlin Coroutines, Jack support for Android and lots of improvements to the standard library.
This presentation shows tools and technologies used in Android Development such as Kotlin, Retrofit, and Room. It also shows different architectural patterns such as MVC, MVP, and MVVM
Davide Cerbo - Kotlin: forse è la volta buona - Codemotion Milan 2017 Codemotion
Dopo 20 anni Java inizia a sentire il peso degli anni e la sua sintassi non evolve come vorremmo, ma la JVM resta sempre un ambiente affidabile ed è già in produzione presso moltissime aziende. Negli ultimi anni sono usciti molti linguaggi basati sulla JVM, ma non tutti hanno avuto il successo sperato. Kotlin ha conquistato Android e, ora, grazie a una sintassi intuitiva e grandi aziende che lo supportano potrebbe essere molto utilizzato anche nelle applicazioni web. Durante il talk vedremo le basi del linguaggio e come sviluppare una applicazione web pronta ad andare in produzione.
After 20 years, Java seems to feel the weight of the years and his syntax it isn't evolved as we live. But the JVM it is always a stable environment and it is often in production everywhere. In the past years, there were many languages based on the JVM, but they don't have a lot of success. Kotlin conquered Android and, now, thanks to an easy syntax many and big companies behind it, may be used also in web development, also as full stack language. During this talk, we will give a look the language and how to use it to develop a production ready web application.
All code showed during presentation is here: https://github.com/jesty/kotlin-fossavotabona
Kotlin: A pragmatic language by JetBrainsJigar Gosar
A pragmatic language for JVM and Android.
Combines OO and functional features.
Focused on interoperability, safety, clarity, tooling support.
Open Source.
Works everywhere where Java works.
Key focus on interoperability and seamless support for mixed Java+Kotlin projects.
The Jetbrain's Kotlin language cheat sheet, created by ekito and launched for the Toulouse's devfest - https://www.ekito.fr/people/kotlin-cheat-sheet/
This paper helps you keep the main feature of the Kotlin language, under the hand. Just download it & print it !
Introducing Kotlin — JVM-based language made by JetBrains. Kotlin takes aim at the age and perceived uncoolness of the Java with fresh and popular language features. It can do anything the Java language can do and more, but often with a more concise and pleasant syntax.
The Swift Programming Language - Xcode6 for iOS App Development - AgileInfowa...Mark Simon
Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without
the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make
programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa
and Cocoa Touch frameworks, is an opportunity to reimagine how software development works.
Coding for Android on steroids with KotlinKai Koenig
Kotlin is a new language for the JVM that aims to be a "better Java". Made in-house by Jetbrains, the company behind IntelliJ IDEA and also Android Studio, it's been in development for more than 5 years. Just a few weeks ago the final version of Kotlin 1.0 saw the light of day.
This talk will start with a brief introduction into Kotlin and its core language features. After this brief foray into concepts like Kotlin's immutable variables, null behaviour and other smarts like the syntactic sugar it provides for dealing with types and properties you'll discover what's in store for Android developers.
Particularly noteworthy are the decrease in annoying Java boilerplate code, fewer of the irritating "Process has stopped unexpectedly" messages and the easily available Kotlin Android Extensions. You will also explore the toolchain and compiler tools Kotlin provides for Android development, the differences to using Kotlin for Java development as well as the integration into Android Studio.
Poniendo Kotlin en producción a palos (Kotlin in production, the hard way)Andrés Viedma Peláez
Talk presented at Codemotion Madrid 2017. Kotlin in a live production environment from early 2017, in microservices using a Java platform in Tuenti, Discussions on risks and experiences months after.
- Discuss Java pros and cons
- Kool features in Kotlin.
- How to use Kotlin in Android development.
- How to migrate old Android java code to new Kotlin code.
Introduction to kotlin and OOP in Kotlinvriddhigupta
Now that the Android Campaign has started, let’s make a few things clear
NO PREREQUISITES to attend the jams! Absolutely none. Just come with a curious mind and we will handle the rest ♂️♀️
The first study jam which will be conducted on 3rd December, Friday at 6.30 PM will cover half of Unit 1 which is about learning the Kotlin language
And finally, about making the application, we will be making it with you in the upcoming study jams so no matter how much of a beginner you are, you will have made something in the end!
eMan Dev Meetup: Postavte si chytrou domácnost (2.8.2016, Hradec Králové)eMan s.r.o.
https://www.facebook.com/events/1047417035338252/
Pojmy internet věcí (Internet of Things, IoT), smart home, smart car a spousty dalších smart-něco nás obklopují na každém kroku. Pojďte s námi dát prázdným a trochu zprofanovaným zaklínadlům dnešní doby konkrétní obsah.
O ČEM TO BUDE
Je možné si svépomocí postavit chytrou domácnost? S využitím technologií, jako jsou Arduino, ESP8266, Raspberry Pi nebo Apple Watch, to jde docela jednoduše…
Chceme rozsvěcovat světla mobilem?
Chceme otevírat garáž mobilem?
Chceme mít ráno hotové kafe, když vstaneme z postele?
Chceme zatopit v pokoji pro hosty, když se dozvíme, že tchýně nečekaně dorazí na návstěvu?
Ukážeme si jak na to. Využijeme Arduino, RabbitMQ s MQTT pluginem, iPhone, Apple Watch, web a další technologie. Předvedeme si, jak lze jednoduše propojit Arduino s jeho senzory snímajícími teplotu, vlhkost a řadu dalších parametrů se serverem, který bude data zobrazovat na iPhonu, Apple Watch a webu. Meze fantazii se nekladou, takže vyzkoušet si můžeme téměř cokoli, co v daném čase zvládneme…:)
CO JE EMAN DEV MEETUP
eMan zahajuje seriál setkání vývojářů s názvem eMan Dev Meetup. Na akcích se budeme bavit o nejnovějších technologiích, jejich praktickém využití a kódování softwaru pro ně. Brýle pro virtuální realitu, chytré hodinky, auta, domy, náramky a nejrůznější krabičky spojené se světem internetu věcí. A samozřejmě všudypřítomné smartphony.
KDE
Akce se uskuteční ve zbrusu nových prostorách naší kralovéhradecké pobočky na adrese: eMan s.r.o., Šimkova 1224/2B, Hradec Králové (mapa: https://mapy.cz/s/sk3k).
ORIENTAČNÍ ČASOVÝ PLÁN AKCE
16:30 - 17:00 Příchod + občerstvení
17:00 - 17:20 Představení eManu
17:30 - 19:00 Arduino a další hardware - představení, kódění, propojení se serverem, komunikace se smartphonem
19:00 - 20:00? Volná diskuse a beerparty
KDO ZA AKCÍ STOJÍ
Akci pořádá přední české vývojářské studio eMan (www.eman.cz). Českým i zahraničním zákazníkům dodáváme především mobilní aplikace a webová řešení. Vyvíjíme aplikace pro celou škálu zařízení, mezi kterými vedle smartphonů a tabletů nechybí brýle pro virtuální/rozšířenou realitu, hodinky, chytrá auta nebo nejrůznější zařízení připojených k internetu (IoT). Mezi naše zákazníky patří například Škoda Auto, O2, Honeywell, Jablotron, Edenred, UNIQA a další. Vedle Prahy, kde má eMan sídlo a hlavní kanceláře, působíme také v Plzni a Hradci Králové, kde jsme nedávno otevřeli nové pobočky (foto hradecké pobočky zde: https://goo.gl/VszYdH). Náš tým v současné době tvoří 65 lidí.
Od roku 2016 je eMan součástí JABLOTRON GROUP (http://www.jablotrongroup.com/).
Prezentace z konfererence UX A DIGITÁLNÍ INOVACE (Praha, 31.5.2016)
Přednášející:
Jakub Hoffmann, Graphic Designer, eMan
Ondřej Michálek, UX Designer, eMan
Oficiální anotace přednášky:
Chytré aplikace dorazily také do našich aut. O vlastní řešení jejich uživatelského rozhraní se snaží jak samotní výrobci aut, tak i technologičtí giganti jako Google nebo Apple. Jak jsme se s redesignem in-car aplikace vypořádali my? Povíme vám o specifikách UX v automobilech, čeho se vyvarovat a jak zůstat konzistentní napříč různými platformami.
Web konference:
http://www.tuesday.cz/akce/ux-a-digitalni-inovace/
Specifika vývoje aplikací pro internet věcí (Dmytro Trofymchuk)eMan s.r.o.
Prezentace z konference Internet věcí, která se konala 4. května 2016 v Praze. Více o akci na: http://www.tuesday.cz/akce/internet-veci/program/
Oficiální anotace přednášky:
Přední české vývojářské studio eMan, které se specializuje na vývoj mobilních aplikací, má za sebou také řadu úspěšně zrealizovaných projektů v oblasti internetu věcí. Kdy je vhodné začít uvažovat o vlastním IoT řešení? V čem je vývoj pro IoT specifický? Jaké problémy mohou ohrozit úspěšnou realizaci? V prezentaci se s vámi podělíme o vlastní zkušenosti a příklady z praxe.
Prezentace s konference MS FEST, která se konala 28.-29. listopadu 2015 v Praze. Více informací o akci na http://www.ms-fest.cz/praha
- Ukázky kódu
- Xamarin a jeho produkty (Obecně o aktualizacích, možnostech a cenách)
- Jak na věc aneb úvod do Xamarinu - IDE
- Proč Xamarin Studio, proč Visual Studio? (Praktické poznatky, budoucí možnosti)
- Jak psát Praktické ukázky kódu)
- Kde a jak se dá Xamarin využít
Žhavé trendy v mobilním marketingu v roce 2015 (rozšířená verze prezentace z ...eMan s.r.o.
Překotný vývoj mobilních technologií umožňuje marketérům zkoušet stále nové a nové nástroje. Jsou termíny youtility, iBeacons, wearables nebo marketing enginneering jen dalšími buzzwordy nebo se jedné o trendy, které v nadcházejících měsících budou skutečně hýbat světem mobilního marketingu?
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)eMan s.r.o.
Přednáška Martina Pelanta o vývoji mobilních aplikacích pro Google Glass se uskutečnila 19.8.2014 ve spolupráci s IDE Prague. Odkaz na FB událost: https://www.facebook.com/events/912995792048693/
In Jude 17-23 Jude shifts from piling up examples of false teachers from the Old Testament to a series of practical exhortations that flow from apostolic instruction. He preserves for us what may well have been part of the apostolic catechism for the first generation of Christ-followers. In these instructions Jude exhorts the believer to deal with 3 different groups of people: scoffers who are "devoid of the Spirit", believers who have come under the influence of scoffers and believers who are so entrenched in false teaching that they need rescue and pose some real spiritual risk for the rescuer. In all of this Jude emphasizes Jesus' call to rescue straying sheep, leaving the 99 safely behind and pursuing the 1.
Lesson 9 - Resisting Temptation Along the Way.pptxCelso Napoleon
Lesson 9 - Resisting Temptation Along the Way
SBs – Sunday Bible School
Adult Bible Lessons 2nd quarter 2024 CPAD
MAGAZINE: THE CAREER THAT IS PROPOSED TO US: The Path of Salvation, Holiness and Perseverance to Reach Heaven
Commentator: Pastor Osiel Gomes
Presentation: Missionary Celso Napoleon
Renewed in Grace
Exploring the Mindfulness Understanding Its Benefits.pptxMartaLoveguard
Slide 1: Title: Exploring the Mindfulness: Understanding Its Benefits
Slide 2: Introduction to Mindfulness
Mindfulness, defined as the conscious, non-judgmental observation of the present moment, has deep roots in Buddhist meditation practice but has gained significant popularity in the Western world in recent years. In today's society, filled with distractions and constant stimuli, mindfulness offers a valuable tool for regaining inner peace and reconnecting with our true selves. By cultivating mindfulness, we can develop a heightened awareness of our thoughts, feelings, and surroundings, leading to a greater sense of clarity and presence in our daily lives.
Slide 3: Benefits of Mindfulness for Mental Well-being
Practicing mindfulness can help reduce stress and anxiety levels, improving overall quality of life.
Mindfulness increases awareness of our emotions and teaches us to manage them better, leading to improved mood.
Regular mindfulness practice can improve our ability to concentrate and focus our attention on the present moment.
Slide 4: Benefits of Mindfulness for Physical Health
Research has shown that practicing mindfulness can contribute to lowering blood pressure, which is beneficial for heart health.
Regular meditation and mindfulness practice can strengthen the immune system, aiding the body in fighting infections.
Mindfulness may help reduce the risk of chronic diseases such as type 2 diabetes and obesity by reducing stress and improving overall lifestyle habits.
Slide 5: Impact of Mindfulness on Relationships
Mindfulness can help us better understand others and improve communication, leading to healthier relationships.
By focusing on the present moment and being fully attentive, mindfulness helps build stronger and more authentic connections with others.
Mindfulness teaches us how to be present for others in difficult times, leading to increased compassion and understanding.
Slide 6: Mindfulness Techniques and Practices
Focusing on the breath and mindful breathing can be a simple way to enter a state of mindfulness.
Body scan meditation involves focusing on different parts of the body, paying attention to any sensations and feelings.
Practicing mindful walking and eating involves consciously focusing on each step or bite, with full attention to sensory experiences.
Slide 7: Incorporating Mindfulness into Daily Life
You can practice mindfulness in everyday activities such as washing dishes or taking a walk in the park.
Adding mindfulness practice to daily routines can help increase awareness and presence.
Mindfulness helps us become more aware of our needs and better manage our time, leading to balance and harmony in life.
Slide 8: Summary: Embracing Mindfulness for Full Living
Mindfulness can bring numerous benefits for physical and mental health.
Regular mindfulness practice can help achieve a fuller and more satisfying life.
Mindfulness has the power to change our perspective and way of perceiving the world, leading to deeper se
What Should be the Christian View of Anime?Joe Muraguri
We will learn what Anime is and see what a Christian should consider before watching anime movies? We will also learn a little bit of Shintoism religion and hentai (the craze of internet pornography today).
The Book of Joshua is the sixth book in the Hebrew Bible and the Old Testament, and is the first book of the Deuteronomistic history, the story of Israel from the conquest of Canaan to the Babylonian exile.
The PBHP DYC ~ Reflections on The Dhamma (English).pptxOH TEIK BIN
A PowerPoint Presentation based on the Dhamma Reflections for the PBHP DYC for the years 1993 – 2012. To motivate and inspire DYC members to keep on practicing the Dhamma and to do the meritorious deed of Dhammaduta work.
The texts are in English.
For the Video with audio narration, comments and texts in English, please check out the Link:
https://www.youtube.com/watch?v=zF2g_43NEa0
The Good News, newsletter for June 2024 is hereNoHo FUMC
Our monthly newsletter is available to read online. We hope you will join us each Sunday in person for our worship service. Make sure to subscribe and follow us on YouTube and social media.
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptxBharat Technology
each chakra is studied in greater detail, several steps have been included to
strengthen your personal intention to open each chakra more fully. These are designed
to draw forth the highest benefit for your spiritual growth.
HANUMAN STORIES: TIMELESS TEACHINGS FOR TODAY’S WORLDLearnyoga
Hanuman Stories: Timeless Teachings for Today’s World" delves into the inspiring tales of Hanuman, highlighting lessons of devotion, strength, and selfless service that resonate in modern life. These stories illustrate how Hanuman's unwavering faith and courage can guide us through challenges and foster resilience. Through these timeless narratives, readers can find profound wisdom to apply in their daily lives.
6. What is Kotlin
● Statically typed programming language targeting JVM, JavaScript
● Started in 2010 by the JetBrains
● They needed a language:
○ Expressive, Toolable, Interoperable, Pragmatic
● 100% interoperable with Java
● KClasses are compiled to Java bytecode (Java 6+)
8. What is Kotlin
“Kotlin is not business model for JetBrains, it is a tool to create business
tools in more efficient language”
9. What is Kotlin
“Kotlin is designed to be an industrial-strength object-oriented language,
and to be a better language than Java but still be fully interoperable with
Java code, allowing companies to make a gradual migration from Java to
Kotlin.” – Andrey Breslav, Development Lead for Kotlin
15. What is Kotlin / Demo
public void updateWeather(int degrees) {
String description;
Color color;
if (degrees < 5) {
description = "cold";
color = Color.BLUE;
} else if (degrees < 23) {
description = "mild";
color = Color.ORANGE;
} else {
description = "hot";
color = Color.RED;
}
}
You can do better with Kotlin by Svetlana Isakova
16. What is Kotlin / Demo
public void updateWeather(int degrees) {
String description;
Color color;
if (degrees < 5) {
description = "cold";
color = Color.BLUE;
} else if (degrees < 23) {
description = "mild";
color = Color.ORANGE;
} else {
description = "hot";
color = Color.RED;
}
}
fun updateWeather(degrees: Int) {
val description: String
val color: Color
if (degrees < 5) {
description = "cold"
color = Color.BLUE
} else if (degrees < 23) {
description = "mild"
color = Color.ORANGE
} else {
description = "hot"
color = Color.RED
}
}
17. What is Kotlin / Demo
public void updateWeather(int degrees) {
String description;
Color color;
if (degrees < 5) {
description = "cold";
color = Color.BLUE;
} else if (degrees < 23) {
description = "mild";
color = Color.ORANGE;
} else {
description = "hot";
color = Color.RED;
}
}
fun updateWeather(degrees: Int) {
val description: String
val color: Color
if (degrees < 5) {
description = "cold"
color = Color.BLUE
} else if (degrees < 23) {
description = "mild"
color = Color.ORANGE
} else {
description = "hot"
color = Color.RED
}
}
18. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val description: String
val color: Color
if (degrees < 5) {
description = "cold"
color = Color.BLUE
} else if (degrees < 23) {
description = "mild"
color = Color.ORANGE
} else {
description = "hot"
color = Color.RED
}
}
fun updateWeather(degrees: Int) {
val (description: String, color: Color) = if (degrees < 5) {
Pair("cold", Color.BLUE)
} else if (degrees < 23) {
Pair("mild", Color.ORANGE)
} else {
Pair("hot", Color.RED)
}
}
19. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description: String, color: Color) = if (degrees < 5) {
Pair("cold", Color.BLUE)
} else if (degrees < 23) {
Pair("mild", Color.ORANGE)
} else {
Pair("hot", Color.RED)
}
}
20. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = if (degrees < 5) {
Pair("cold", Color.BLUE)
} else if (degrees < 23) {
Pair("mild", Color.ORANGE)
} else {
Pair("hot", Color.RED)
}
}
21. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = if (degrees < 5) {
Pair("cold", Color.BLUE)
} else if (degrees < 23) {
Pair("mild", Color.ORANGE)
} else {
Pair("hot", Color.RED)
}
}
22. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = when {
degrees < 5 -> Pair("cold", Color.BLUE)
degrees < 23 -> Pair("mild", Color.ORANGE)
else -> Pair("hot", Color.RED)
}
}
23. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = when {
degrees < 5 -> Pair("cold", Color.BLUE)
degrees < 23 -> Pair("mild", Color.ORANGE)
else -> Pair("hot", Color.RED)
}
}
24. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = when {
degrees < 5 -> "cold" to Color.BLUE
degrees < 23 -> "mild" to Color.ORANGE
else -> "hot" to Color.RED
}
}
25. What is Kotlin / Demo
fun updateWeather(degrees: Int) {
val (description, color) = when {
degrees < 5 -> "cold" to Color.BLUE
degrees < 23 -> "mild" to Color.ORANGE
else -> "hot" to Color.RED
}
}
public void updateWeather(int degrees) {
String description;
Color color;
if (degrees < 5) {
description = "cold";
color = Color.BLUE;
} else if (degrees < 23) {
description = "mild";
color = Color.ORANGE;
} else {
description = "hot";
color = Color.RED;
}
}
27. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
28. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
29. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
30. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
31. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
32. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
33. 1. Null Safety / 10 Features
var a: String = "abc"
a = null // compilation error
var b: String? = "abc"
b = null // ok
val x: String? = "Hi"
x.length // Does not compile.
val y: String = null // Does not compile.
34. 1. Null Safety / 10 Features
if (x != null) {
x.length // Compiles! Not idiomatic just to get length!
}
// Same as above (IntelliJ auto-suggested the change).
x?.length
// Elvis operator.
val len = x?.length ?: -1
val len = x!!.length // Will throw if null. Rarely used
35. 1. Null Safety / 10 Features
if (x != null) {
x.length // Compiles! Not idiomatic just to get length!
}
// Same as above (IntelliJ auto-suggested the change).
x?.length
// Elvis operator.
val len = x?.length ?: -1
val len = x!!.length // Will throw if null. Rarely used
36. 1. Null Safety / 10 Features
if (x != null) {
x.length // Compiles! Not idiomatic just to get length!
}
// Same as above (IntelliJ auto-suggested the change).
x?.length
// Elvis operator.
val len = x?.length ?: -1
val len = x!!.length // Will throw if null. Rarely used
37. 1. Null Safety / 10 Features
if (x != null) {
x.length // Compiles! Not idiomatic just to get length!
}
// Same as above (IntelliJ auto-suggested the change).
x?.length
// Elvis operator.
val len = x?.length ?: -1
val len = x!!.length // Will throw if null. Rarely used
39. 2. Data Class / 10 Features
● For simple classes which mainly hold data, we can avoid a lot of boilerplate
compared to Java code
40. 2. Data Class / 10 Features
● For simple classes which mainly hold data, we can avoid a lot of boilerplate
compared to Java code
● Consider the following task:
○ Create Country object which holds data about id and name
43. 3. Data Class / 10 Features
● Kotlin generate hashCode(), equals(), toString()
44. 3. Data Class / 10 Features
● But that’s not all what we could with data classes!
○ We can easily make copies of data classes
45. 3. Data Class / 10 Features
● But that’s not all what we could with data classes!
○ We can easily make copies of data classes
val customer = Customer(id = 2001,
name = "Vaclav Souhrada",
email = "vsouhrada@email.to")
46. 3. Data Class / 10 Features
● But that’s not all what we could with data classes!
○ We can easily make copies of data classes
val customer = Customer(id = 2001,
name = "Vaclav Souhrada",
email = "vsouhrada@email.to")
val updatedCst = customer.copy(email = "vaclav_souhrada@email.com")
49. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
fun String.capitalize(): String {
return this.toUpperCase()
}
50. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
fun String.hello() {
println("Hello, $this!")
}
51. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
fun String.hello() {
println("Hello, $this!")
}
fun String.and(input: String): String {
return "${this} $input"
}
52. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
fun main(args: Array<String>) {
// prints VACLAV SOUHRADA
println("vaclav souhrada".capitalize())
"Vaclav".hello() // prints 'Hello, Vaclav!'
var testString = "This is a string".and("This is another")
println(testString) // prints 'This is a string This is another'
}
fun String.hello() {
println("Hello, $this!")
}
fun String.and(input: String): String
{
return "${this} $input"
}
53. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
val gson = Gson()
54. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
val gson = Gson()
fun Any.toJSON(): String {
return gson.toJson(this)
}
55. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
val gson = Gson()
fun Any.toJSON(): String {
return gson.toJson(this)
}
val customer = Customer(id = 2001, name = "Vaclav Souhrada", email =
"vsouhrada@email.com")
56. 3. Extension Functions / 10 Features
● Kotlin allows us to extend the functionality of existing classes without inheriting from them.
val gson = Gson()
fun Any.toJSON(): String {
return gson.toJson(this)
}
val customer = Customer(id = 2001, name = "Vaclav Souhrada", email =
"vsouhrada@email.com")
val json = customer.toJSON()
58. 4. Smart Cast / 10 Features
if (obj instanceof String) {
}
59. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
60. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (obj is String) {
}
61. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (obj is String) {
print(obj.length)
}
62. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (!(obj instanceof String)) {
System.out.println("Not a String");
}
if (obj is String) {
print(obj.length)
}
63. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (!(obj instanceof String)) {
System.out.println("Not a String");
}
if (obj is String) {
print(obj.length)
}
if (obj !is String) { // !(obj is String)
print("Not a String")
}
64. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (!(obj instanceof String)) {
System.out.println("Not a String");
} else {
System.out.println(((String) obj).length());
}
if (obj is String) {
print(obj.length)
}
if (obj !is String) { // !(obj is String)
print("Not a String")
}
65. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (!(obj instanceof String)) {
System.out.println("Not a String");
} else {
System.out.println(((String) obj).length());
}
if (obj is String) {
print(obj.length)
}
if (obj !is String) { // !(obj is String)
print("Not a String")
} else {
print(obj.length)
}
66. 4. Smart Cast / 10 Features
if (obj instanceof String) {
System.out.println(((String) obj).length());
}
if (!(obj instanceof String)) {
System.out.println("Not a String");
} else {
System.out.println(((String) obj).length());
}
if (obj is String) {
print(obj.length)
}
if (obj !is String) { // !(obj is String)
print("Not a String")
} else {
print(obj.length)
}
74. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
75. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
val nonNegative = numbers.filter { it >= 0}
println(nonNegative) // [10, 5, 9, 11, 5]
76. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
val nonNegative = numbers.filter { it >= 0}
println(nonNegative) // [10, 5, 9, 11, 5]
77. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
// Sum of all elements: 25
println(numbers.foldRight(0, { a, b -> a + b }))
78. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
// Sum of all elements: 25
println(numbers.foldRight(0, { a, b -> a + b }))
//20 10 -18 18 22 10 -12
numbers.forEach { println("${it * 2} ") }
79. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
// Sum of all elements: 25
println(numbers.foldRight(0, { a, b -> a + b }))
//20 10 -18 18 22 10 -12
numbers.forEach { println("${it * 2} ") }
val kindOfNumbers: Iterable<String> = numbers.filter { it < 0 }
.map { "$it is negative" }
80. 6. Functional Programming / 10 Features
● Combination of lambda expression and the Kotlin lib. makes our day easier
when we working with collections
val numbers = arrayListOf(10 ,5 , -9, 9, 11, 5, -6)
// Sum of all elements: 25
println(numbers.foldRight(0, { a, b -> a + b }))
//20 10 -18 18 22 10 -12
numbers.forEach { println("${it * 2} ") }
val kindOfNumbers: Iterable<String> = numbers.filter { it < 0 }
.map { "$it is negative" }
println(kindOfNumbers) // [-9 is negative, -6 is negative]
82. 7. Type Inference / 10 Features
● In Kotlin, you do not have to specify the type of each variable explicitly:
val name = "Vaclav" // val name: String = "Vaclav"
83. 7. Type Inference / 10 Features
● In Kotlin, you do not have to specify the type of each variable explicitly:
val name = "Vaclav"
val age = 31
84. 7. Type Inference / 10 Features
● In Kotlin, you do not have to specify the type of each variable explicitly:
val name = "Vaclav"
val age = 31
// Only need Iterable interface
val list: Iterable<Double> = arrayListOf(1.0, 0.0, 3.1415, 2.718)
85. 7. Type Inference / 10 Features
● In Kotlin, you do not have to specify the type of each variable explicitly:
val name = "Vaclav"
val age = 31
// Only need Iterable interface
val list: Iterable<Double> = arrayListOf(1.0, 0.0, 3.1415, 2.718)
// Type is ArrayList
val arrayList = arrayListOf("Kotlin", "Scala", "Groovy")
87. 8. Default Arguments / 10 Features
In Java, we often have to duplicate code in order define different variants of a method or
constructor:
88. 8. Default Arguments / 10 Features
All this stuff we can remove when we switch to Kotlin by using default arguments.
class OperatorInfoInKotlin(
val uuid: String = UUID.randomUUID().toString(),
val name: String,
val hasAccess: Boolean = true,
val isAdmin: Boolean = false,
val notes: String = "") {}
90. 9. Named Arguments / 10 Features
Default arguments become more powerful in a combination with named arguments:
OperatorInfoInKotlin(name = "Vaclav")
OperatorInfoInKotlin(name = "Vaclav", hasAccess = false, isAdmin = false, notes = "blabla")
new OperatorInfoInJava("Vaclav", false, false, "blabla");
92. 10. Collections / 10 Features
● In Kotlin we have:
○ higher-order functions
○ lambda expressions
○ operator overloading
○ lazy evaluation
○ lots of others useful methods to work with the collection.
93. 10. Collections / 10 Features
“What is an average age of employees in the company in Pilsen city?”
1.6 !!!public double getAverageAge(@NotNull List<Employee> employees) {
}
int ageSum = 0;
int count= 0;
for (Employee employee : employees) {
}
if ("Pilsen".equals(employee.getCity()) {
}
ageSum += employee.getAge();
count++;
if (count == 0) return 0
return ageSum / count;
94. 10. Collections / 10 Features
“What is an average age of employees in the company in Pilsen city?”
fun getAverageAge(val employees: List<Employee>): Double {
}
.map{ it.age }employees.filter{ it.city == City.PILSEN } .average()return
95. 10. Collections / 10 Features
“What is an average age of employees in the company in Pilsen city?”
public double getAverageAge(@NotNull List<Employee> employees) {
int ageSum = 0;
int count= 0;
for (Employee employee : employees) {
if ("Pilsen".equals(employee.getCity()) {
ageSum += employee.getAge();
count++;
}
}
if (count == 0) return 0
return ageSum / count;
}
fun getAverageAge(val employees: List<Employee>): Double {
return employees.filter{ it.city == City.PILSEN }.map{ it.age }.average()
}
96. 10. Collections / 10 Features
For more info you can see a very nice blog post from Antonio Leiva
https://antonioleiva.com/collection-operations-kotlin/
105. Gradle goes Kotlin
● Gradle is an advanced build management system based on Groovy
● Gradle is build tool with a focus on build automation for multi-language
development
● Official build tool for Android!
106. Gradle goes Kotlin
● Kotlin Meets Gradle (May 18, 2016)
○ Gradle and JetBrains announced a partnership to make Kotlin a first
class language for Gradle builds!
■ auto-completion and content assist
■ quick documentation
■ navigation to source
■ refactoring and more