Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Everyday Kotlin
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Rene
August 24, 2017
Programming
45
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Everyday Kotlin
A collection of little things that stand
Rene
August 24, 2017
Other Decks in Programming
See All in Programming
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
930
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
ジョジョの世界をXRで再現する
mofurune
0
170
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
230
AmebaブログはKMPから卒業します
kmars0605
0
190
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
600
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
600
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Designing for humans not robots
tammielis
254
26k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
Everyday Kotlin All kinds of little things that stand out
René de Groot
Nullability • Natural next step after @NonNull and @Nullable •
Your new BFF’s: late init, smart cast, guard
late init • Great for annotation processors filled fields
smart cast • You checked already, so get on with
it • Query returns @Nullable Cursor Which in Kotlin terms is Cursor? Smart cast casts this to Cursor (Which in Java would be @Nonnull Cursor)
guard • Smart cast is impossible, because a mutable property
could have been changed by this time
Joy, Pain, Joy, Pain ;
Expression bodies - @Provides • Old Java-style works fine •
After a while it will itch
Mockito - Final • Mocking final classes needs some magic
• Recent Mockito allow final mocking
Mockito/Hamcrest - Syntax • Function name when clashes with keyword
• Function name is clashes with keyword • Using back ticks
any()-matcher • java.lang.IllegalStateException: ArgumentMatchers.any() must not be null • Roll
a NonNull variant • Some Kotlin specific high-level Mockito methods https://github.com/nhaarman/mockito-kotlin
Thanks! • So much more … • Everyday Kotlin, what
stands out for you?