Тёмный

How to Kotlin - from the lead Kotlin language designer (Google I/O '18) 

Android Developers
Подписаться 1,3 млн
Просмотров 297 тыс.
50% 1

Kotlin is similar to the Java programming language, so it's natural that your Kotlin code looks very much like Java code when you are first start to use the language. While this is fine to begin with, you're probably not taking full advantage of all the language benefits. In this session, the lead Kotlin language designer will show you how you can write more idiomatic Kotlin, what the benefits are, and help you discover some of the most powerful yet lesser known features of Kotlin.
Rate this session by signing-in on the I/O website here → goo.gl/rcxeHQ
Watch more Android sessions from I/O '18 here → goo.gl/R9L42F
See all the sessions from Google I/O '18 here → goo.gl/q1Tr8x
Subscribe to the Android Developers channel → goo.gl/GEh1ds
#io18 event: Google I/O 2018; re_ty: Publish; product: Android - Languages; fullname: James Lau, Andrey Breslav; event: Google I/O 2018;

Наука

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 274   
@igorg.8624
@igorg.8624 6 лет назад
A class can be created with a single line of code, without getter/setter garbage. I love it!
@593jorge
@593jorge 4 года назад
​@@trollberserker1515 Yes but that class would be pretty much useless. Adding functionality would require several lines. This one-line class is completely functional in Kotlin: data class Person(val firstName: String, val lastName: String, val age: Int)
@almasabdrazak5089
@almasabdrazak5089 4 года назад
@@593jorge check out the records blogs.oracle.com/javamagazine/records-come-to-java
@Jennifer123515
@Jennifer123515 2 года назад
@@trollberserker1515 I Y Luis ilustración kk millón Illinois de pesos dólares lipkkikiiii6i6ii66nimmkmnmkmii6miyil6yiiki6i98klki6k67ikkkukkikkkkkkkki666i6i6ikyminkinnmu7mmmmiim66miikmyi7u6k8kikkikkikk8kkikkk6kikkkki7k666iikiyiu8kikmlkkkyjknkiikkl7mik6ikkkkkkkkkkkk7kkkukkkkikikkkkkkmmmmmml766m6ik668k666k66k6666766(pesos huy k6kikilu66ikni6hj6i66ikik66ikiikh6k6kpkk7iikk6kkukkilkipk6866kii9ii6yiiim7miil7mimjumi6umk66iyiikuy6iy6uilu6ui666u66iyki6ikik677kikkkikik6k6666kk6kkkk6kk86ikki6iuiiiu6kmlnknmnn66k6iki66ki6klukkkkkklkkkkkkuk7ll9kkikkkkkkkmkkmuk9mmik66iki66k7iukpkk96kkkkp6l6kkkki6kkki6kkk8mu8mkk8klimmm666y6i7k6k6kkki6ki6yi68kkk8ikilkkkkkkkkkk6kkkkkkklijpi66k7iyiik6k6bkn888km8m868k8u6m8nmi6kmii6i67iiiliillkkk6kllkiiiipipii6iikiyikiibikimk6mm6iuik6imibim8myiynip9bniiikkkkiiiikiiiiiiiiii887k7ik7iikoii6jijiyjkiiijkiikik88kkkkikj6ijiyiikikkk8k7k8kk78kkk86k7k8k8kkk7k67ipjplp9kkl876k7y6k7mlkl76kl7l6ikkii767ijkikll6kklk6kklkk66kkk6lkkklkkkkkkk6i7li6ik68ii67yklk6klk6l6iii6iiili76kyk7llll7i8pl7ibi6i6iijukk7ll67lkpkkkyk6lll7kklk7kpk66k8lk66lkk6kkklkk7l6k8678k7k9i7ijl7i7iki7iku8mi7n8777866788likkikikyik7i6ik7kl6i6k7kkp76kk6kk676kkykk6kkk6klkkkk6kkkl7ii6iiklikk6i86k8i6m8k6kk8kl86lyi7i7ii6i7li7k7k6k8kkkl66k7k68k8k6kk88kll8kk8k8l79k6k86k7kk8kkk866p68jkiij9ikiiiiil8hj8p78lyl6lk68k8knk8jkiij97yi8lk8pjkllkj9l8k78kjk8klj8j8l7jipp8j8piipij8pi7ki77k7i78k96lkipi68666yk7i7ip98k776iki778klkkk6k8kky8lk8kk8i6kk88i86k66kkkkkkk6kk8kkkkk8lkk68k7k8k8i6kkk6j9ik68k86k6787k8ikk77k8iiii6k8i7i8kk7kkkkkkk8kkk88kkkkkkkk6kkkkkk8kkkkkkkk8kkk8iii86ki6ik8kkk7iikyyi8ikkkk8kiik87kkiki7iiiiiiii6k866k8k7kkki67ki86kkk88lk78ik8i78kk88k778iliikyii6iiiikikkiik7iiikk8k7k8iy776886k78i7l77ki8pkkk78k8kk8il8kkkkkkk8kbp
@Rogueixpresents
@Rogueixpresents 2 года назад
@@593jorge all I hear excuses
@parisqs
@parisqs 6 лет назад
Kotlin seems to take the best syntax suger from C# & JavaScript to Java world, which Java failed to provide for years. I am impressed.
@chuganator
@chuganator 5 лет назад
You're so right. Java is so late.
@abates3747
@abates3747 5 лет назад
@@chuganator ...Java the language is late, Java the JVM is still the wonder drug that it always has been. Java is dead, long live Java.
@Qrzychu92
@Qrzychu92 3 года назад
modern C# isn't far behind at all, especially when you mix in some F#
@abates3747
@abates3747 Год назад
@Ahmed El Ashry , java is not dead. I said "Java is dead, long live Java", the only thing replacing Java is more Java
@abates3747
@abates3747 Год назад
@Ahmed El Ashry , I've tried to escape youtube many times, but continue to fail.
@TonyStark786
@TonyStark786 5 лет назад
More than the language, I like this person. He is so humble and down to earth. Great mind.. humble human being!
@jordanforever2345
@jordanforever2345 4 года назад
yeah, I agree. He is not cocky. :D
@raianmr2843
@raianmr2843 2 года назад
honestly, in my experience, everyone from jetbrains seem really humble, practical, down to earth people. the corporate fakeness is completely nonexistent here. they sell their products by showing their merits, not by excessive claims or false marketing or appealing to emotions. i guess this has a lot to do with who their customers are: jetbrains sell development tools for technical people, there's a lot less room for bs here and I guess this has attracted non-bs people to their company as well
@davethomas1303
@davethomas1303 6 лет назад
Poor Andrey, he seems so nervous! Mind you I would be too lol. Great language he created. Many thanks from me, it has made my Android development fun where I have used it. Keep the good stuff coming with Kotlin!
@MohdAkmalZakiIO
@MohdAkmalZakiIO 6 лет назад
It's a presentation in front of thousands and not just a small team. And maybe he didnt have rehearsal like Google's speakers.
@igorg.8624
@igorg.8624 6 лет назад
Yes, and maybe he's just being authentic without putting on a facade (because he doesn't need to since he is the inventor).
@willmakk
@willmakk 6 лет назад
*modafinil intensifies*
@christianj3891
@christianj3891 6 лет назад
He is doing great!!
@krellin
@krellin 6 лет назад
he is not :)
@dewetvanrooyen8458
@dewetvanrooyen8458 3 года назад
The Audience looked so happy. I am Learning a lot thanks for the vid.
@IUfidi
@IUfidi 2 года назад
Ive been studying Kotlin for 8 weeks: Its good to see Andrey give an overview of it. Thanks for helping to stick in my head.
@davidrahauser4234
@davidrahauser4234 3 года назад
I started 9 years ago programming java... this is like a DREAM! !!!!
@Vaintti
@Vaintti 5 лет назад
This presentation just keeps on blowing my mind through the whole thing
@Hazarth
@Hazarth 5 лет назад
Finally someone fixed Java and made it more C again with other great additions from languages like Python and C# and all that. There a are a *few* quirks I'm not particularly happy about, a lot of them come with the JVM baggage (like not being able to manage my own memory) and I don't understand why we had to switch to name:Type schema instead of "Type name" which I thought was always more natural to read like real text, but I can live with those
@samuelgrahame3617
@samuelgrahame3617 5 лет назад
Yeah I hate the name type order. Reminds be of visual basic
@elodens4
@elodens4 5 лет назад
it's from pascal
@Yagamilight19383
@Yagamilight19383 4 года назад
loops and arrays declaration and not expressive though
@VivekYadav-ds8oz
@VivekYadav-ds8oz 4 года назад
Well most of the time you can skip those and maintain code clarity simultaneously. For eg: val obj: MyClass = MyClass() can be turned to val obj = MyClass() without losing any context of the code.
@Yagamilight19383
@Yagamilight19383 4 года назад
@@VivekYadav-ds8oz you can do that in java too, var obj = new MyClass(); nothing new :(
@eatthepi
@eatthepi 6 лет назад
That trick when he showed Kotlin byte code then decompiled to Java was pretty cool. A few months back I was a little confused about what the 'noinline' keyword was doing... this trick would have probably made it clear.
@freshfast6197
@freshfast6197 5 лет назад
Timestamp?
@HoutarouOrekiOsu
@HoutarouOrekiOsu 3 года назад
@@freshfast6197 On 28:25. Yes I know I'm 2 years late.
@Luiz6447
@Luiz6447 3 года назад
Beautiful! It seems easy to switch from Ruby to it.
@skin4813
@skin4813 2 года назад
Andrey, thanks for creating Kotlin.
@telurasinmontasik2406
@telurasinmontasik2406 Год назад
great...I hope there are another videos explaining kotlin like this
@11x334
@11x334 2 года назад
Yeah I was going to say it has Andre's personal philosophies directing the language
@slaviboy
@slaviboy 3 года назад
Kotlin is just a blessing ✌😁
@yohanesmariavianey786
@yohanesmariavianey786 3 года назад
seems like this kind of new awesome things but, we already doing this with c# for a couple of years
@sanikavanjari9204
@sanikavanjari9204 3 года назад
Great session, thanks a lot!!
@boddendanieldeveloper1494
@boddendanieldeveloper1494 2 года назад
Kotlin is really power skills for everyone developer!
@miraclemaxicl
@miraclemaxicl 4 года назад
"Noise is harmful for your brain" - my biggest takeaway
@KotlinTv
@KotlinTv 4 года назад
Great Content keep it up bro!
@veerhan184
@veerhan184 5 лет назад
Kotlin saves my time, I love it.
@fahidsarker4858
@fahidsarker4858 3 года назад
Love the language.
@code_report
@code_report 5 лет назад
At 22:14, "this is something pretty unfamiliar for the C-language family" ... that is true pre-C++11. But with C++11, there are lambdas and immediately invoked lamba expressions (IILE), so you could write very similar code as follows: auto s = []() { if (condition) { cout
@neusapereirablanco1234
@neusapereirablanco1234 2 года назад
46ģmm9bem bem j9.j
@GakisStylianos
@GakisStylianos 2 года назад
Wow that looks ugly. Is it still like that?
@rahulkesharvani9232
@rahulkesharvani9232 4 года назад
very useful sir
@zaborshicov
@zaborshicov 5 лет назад
Hello from Saint-Peterburg!) In this city Kotlin has been started!
@vorname1485
@vorname1485 4 года назад
A very advanced project has the one Util class to rule them all.
@ChrisCarlos64
@ChrisCarlos64 6 лет назад
I would love to start using Kotlin where I work.
@francoislegrand1949
@francoislegrand1949 6 лет назад
then use it
@RS-kt6is
@RS-kt6is 6 лет назад
Why? Weren't you using Java annotations, boilerplate generators, and so on? Butterknife?
@igorg.8624
@igorg.8624 6 лет назад
You should definitely start (perhaps start with unit tests in Kotlin). You will be thankful several years from now for learning Kotlin, trust me.
@RS-kt6is
@RS-kt6is 6 лет назад
Igor Ganapolsky it's perfectly foreseeable Kotlin will die a slow death if Android apps are going the way of the dodo bird. 🐦
@owlishart2335
@owlishart2335 6 лет назад
Kotlin is a general purpose language, not just Android. At work, we use it for backend web development
@edwinfcapidos
@edwinfcapidos 4 года назад
I just learned Kotlin during quarantine. It's much easier to learn.
@uydudanbak
@uydudanbak 3 года назад
What did u do with it
@jonesbbq307
@jonesbbq307 5 лет назад
Me everyday learning Java: There has to be a better way
@VivekYadav-ds8oz
@VivekYadav-ds8oz 4 года назад
Kotlin: There is!
@drewestification
@drewestification 3 года назад
*slams fist on table*
@manashejmadi
@manashejmadi 3 года назад
There has to be a better way. Sounds like Raymond Hettinger
@TradeMarkCuber
@TradeMarkCuber 3 года назад
I learned a little bit of javascript and html then thought "you know what I should do with all of my 6 hours of javascript? Try to make an app in a different language for fun!" So now I'm trying to find a tutorial
@AdamLindell
@AdamLindell 3 года назад
There is! Clojure!
@witoldsienski1709
@witoldsienski1709 6 лет назад
Many reasons to switch to Kotlin :) !
@wujacob4642
@wujacob4642 6 лет назад
Great job, master piece. Is the code in the demo available for download anywhere?
@Yamasutra
@Yamasutra 4 года назад
I'm impressed. Kotlin is Java, but not awful.
@twistentiger5610
@twistentiger5610 5 лет назад
To anyone thinking they are used to Java and don't need to learn Kotlin or struggling, I say go for it learn it trust me all worth it don't think just do it
@Yagamilight19383
@Yagamilight19383 4 года назад
Even for competitive programming?
@macc4773
@macc4773 Год назад
Base knoledge: js and ts. Typescript (ts) = ts for Javascript (js) Kotlin = ts for Java C++ = ts for C. scss/sass = ts for css. Rust = ts for C++. xml = ts for html delphi = ts for pascal. continue below...
@SayIdie
@SayIdie 4 года назад
this man is walking documentation
@andres309ls
@andres309ls 5 лет назад
i think i would say good bye to java after 10 years. i am very impressed.
@micahchurch5733
@micahchurch5733 5 лет назад
I sorta know kotlin still learning tho si cant articulate likes and dislike too well yet. But idk if I want short dev time as a python and c c++ guy I'll just go with python I feel you need an ide with java and kotlin because there is so much overhead, extension functions are really nice tho
@alvaro1728
@alvaro1728 10 месяцев назад
Wow, this is so similar to Scala.
@travelerworld7666
@travelerworld7666 6 лет назад
Great language, reduced NullPointerException which was one of the headache in java
@RS-kt6is
@RS-kt6is 6 лет назад
Java had annotations for that, and you can and will still get a lot of null crashes now. Even more, actually, since every method where you specify an non optional parameter will crash instantly (Kotlin check) if the said parameter is null. So you need to design clearly each function param....is it optional or not, etc.
@nkl07ba12
@nkl07ba12 6 лет назад
The difference is that these crashes occur at compile time and not at runtime, making you think about null safety more that when you just use annotations in java. Its about making you think in a different way about null safety.
@RS-kt6is
@RS-kt6is 6 лет назад
Not if you use explicit pointers, or whatever they're called in Swift/Kotlin. If you unsafe-unwrap them, they will still crash at runtime
@NikhilMaurya10
@NikhilMaurya10 5 лет назад
then why use kotlin at all if you are gonna unsafely unwrap the optionals
@saulalonsopalazuelos9594
@saulalonsopalazuelos9594 3 года назад
kotlin lang and lib revived the java ecosystem , multiplatform jetpack compose will make it full stack in the full sense of the word
@inbuckswetrust7357
@inbuckswetrust7357 4 года назад
It's time to make a film: forward to the past :)
@dailymedicalcentre5237
@dailymedicalcentre5237 4 года назад
Another programming language and from this presentation it does look better than existing JAVA. It takes a lot of time, effort and working experience to master a programming language, why can't these programming language inventors work together to perfect the existing programming languages instead of keep creating new .
@Yagamilight19383
@Yagamilight19383 4 года назад
Downside of having too much freedom
@yuruar
@yuruar Год назад
Kotlin великолепен, конечно.
@YMARihab
@YMARihab 5 лет назад
do I have to learn or have some idea about java beforehand.
@juliet0001
@juliet0001 4 года назад
Kotlin's semantics are not tied to the jvm, but some oop experience is helpful
@TheAncientss
@TheAncientss 4 года назад
Feedback: When the camera shows Andre, sometimes it happens while he edits the code. This should not happen, as it can be confusing.
@arunavkhare2733
@arunavkhare2733 3 года назад
Kotlin many features which were missing in Java and are already in C#.
@eatthepi
@eatthepi 6 лет назад
The coroutine stuff went over my head lol. What exactly do all those keywords (high level functions, I guess) do? How do I make sure I'm not leaking a reference to my activity? Can I cancel the blocking thing?
@josemarcarvalho9641
@josemarcarvalho9641 4 года назад
very goob, this is an on big langague, I`m liked this
@moonna8088
@moonna8088 4 года назад
Im Learning Kotlin to develop android apps to replace legacy code written to run in Telnet within our multivalued DB. The android apps will be used on RF Guns to control Stocks in a warehouse.
@-Alexey-
@-Alexey- 2 года назад
33:16 I think the code should be like: s1.request(s2.name) { r1 -> println(r1.message) s2.request(r1.from.name) { r2 -> println(r2.message) } }
@paveltroev8221
@paveltroev8221 5 месяцев назад
right, Andrey makes you think
@SergeyRyabenko
@SergeyRyabenko Месяц назад
Kotlin is the best language ever created.
@11x334
@11x334 2 года назад
I came here looking for a 101 to make my game and my head is spinning from those tutorials what in the f.
@brulezjedna2260
@brulezjedna2260 5 лет назад
Can you just please keep the code on the screen all the time, next time? Maybe just have a speaker view contained in the nested screen...This way I had to stop video too many times.
@mio7545
@mio7545 6 лет назад
how can i get these codes
@hayk.galstyan
@hayk.galstyan 5 лет назад
meow
@Pulkit__7
@Pulkit__7 5 лет назад
Whenever he said, do you have questions? I always had one, and I remember he is in my phone not live :P
@yaush_
@yaush_ 2 года назад
It's really frustrating that this keeps cutting around. I would really like to just see the demo the whole time
@jaloveast1k
@jaloveast1k 4 года назад
10:28 seems like not as great of an idea.. kinda reminds me of "don't use global in JavaScript", even tho I haven't touched js for like a decade. Like, for me it seems natural to encapsulate functions into groups based on what they are doing. Can't imagine trying to remember what exactly is the name of one of thousands functions in your project. While if they were in a class e.g. StringUtils, you can just write the class name, put a dot and scroll through the functions inside it, "oh that's the one I was looking for".
@nickbanderson
@nickbanderson 4 года назад
Here is response from jetbrains team on that question: discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198
@aritrabhuiya5908
@aritrabhuiya5908 3 года назад
Kotlin: You still need to add an extra line to return more than one variable. Python: Learn from me....
@janecki2470
@janecki2470 3 года назад
You can return pair and it would work just like in python if i remember correctly
@akeemaweda1716
@akeemaweda1716 3 года назад
How do I pass obj by ref to fun in Kotlin?
@algoseekee
@algoseekee 3 года назад
They are all passed by ref by design, you'd have to make a copy if you wanted to pass "by value".
@dwaynesands6382
@dwaynesands6382 4 года назад
I hear birds in the background
@rohanpal1748
@rohanpal1748 6 лет назад
I am new to code. I don't get this actually. What should I know before Kotlin!?
@Minwol
@Minwol 5 лет назад
@Hamad AlMarri Exact opposite, you will not want to go back to Java
@jiancanchen1352
@jiancanchen1352 6 лет назад
pythonic! great
@Skillabstinenz
@Skillabstinenz 5 лет назад
What IDE is he using?
@Quillraven
@Quillraven 4 года назад
IDEA from JetBrains
@LiranBarsisa
@LiranBarsisa 6 лет назад
Some comments: 13:13 The property won't allow you to use a different separator though, right? 23:32 The number "3" isn't even... 24:07 This "println" print "null" in case you give it null value. Any way to avoid this in a short way, and print only if it's not null? 26:34 Any way to convert to normal code instead of lambda? Sometimes it's clearer and seem more flexible...
@Minwol
@Minwol 5 лет назад
Continue using Java everyone else will move on and benefit from Kotlin. You are the same person from last year who thinks constant null checks are a benefit.
@ogradus
@ogradus 3 года назад
I wish he would commented out the code, rather than delete it. It would be much easier to compare the different
@roiamiel7719
@roiamiel7719 6 лет назад
21:02How did he duplicate the cursor?
@szymonwysocki1110
@szymonwysocki1110 6 лет назад
Hold alt & drag
@teekdog7884
@teekdog7884 6 лет назад
www.jetbrains.com/help/rider/Multicursor.html Ctrl + up/down arrow key (win/linux) Alt + up/down arrow key (osx)
@java3038
@java3038 6 лет назад
There's multiple ways: www.vojtechruzicka.com/intellij-idea-tips-tricks-multiple-cursors/
@francoislegrand1949
@francoislegrand1949 6 лет назад
alt + vertical selection
@11x334
@11x334 2 года назад
I'll just make an interface between transcendental super consciousness in real life and people will see what it thinks like a movie and it could even do miracles.
@Baannia
@Baannia 6 лет назад
Kotlin looks like Swift sometimes for me.
@areebjamaliam
@areebjamaliam 6 лет назад
They are very similar and for a good reason
@sobanya_228
@sobanya_228 6 лет назад
It is actually almost 100% Scala, which also influenced Swift
@areebjamaliam
@areebjamaliam 6 лет назад
Sobanya nope
@palvarga2833
@palvarga2833 6 лет назад
I have no EXP in scala, but according to your comment you do. So lemme ask a question. I belive Java is a bit outdated langauge, my original tought was that C# will eventually take over Java's throne, but now seeing Kotlin I kinda changed my mind. However when you said that is almost 100% Scala I ahve my doubts, since up until recently I have not even heard of Scala. So someone liek you who have seen all of these languages do you think Kotlin has a shot taking over java ? I belive Java will decline in the near future eventually.
@chadr76
@chadr76 5 лет назад
Swift is garbage.
@hdkloh6857
@hdkloh6857 5 лет назад
Wait take a break n tell...
@danmurad8080
@danmurad8080 6 лет назад
How is this an improvement over Scala?
@HoD999x
@HoD999x 5 лет назад
abstractable properties + the null "?" thing don't exist in scala
@cheeseheadtothe
@cheeseheadtothe 5 лет назад
Extension functions are easier to understand than type wrappers. I also like that Kotlin does NOT have implicits IMO. Kotlin has even better interop w/ Java because it uses more of the same underlying classes.
@technics6215
@technics6215 Год назад
Smells a bit like mix of Java, C#, PHP and some functional languages. I see many good things, but I see few chaotic parts of language, at least from my C-like language background.
@klarnorbert
@klarnorbert 2 года назад
I'm having fun programming in Kotlin, and that couldn't be said about Java.
@paolo_in_corsivo
@paolo_in_corsivo 6 лет назад
very nice!
@stevewinnett8875
@stevewinnett8875 4 года назад
👍
@avirias
@avirias 4 года назад
He's just using Kotlin idioms and decreasing line of code
@pippop9583
@pippop9583 6 лет назад
Closely to Swift style
@bhavyachampaneri
@bhavyachampaneri 3 года назад
Rip getters and setters and huge line of java code 🙂😂
@redeyedbeast7975
@redeyedbeast7975 Год назад
have you heard of annotations ?
@slaviboy
@slaviboy 5 лет назад
Kotlin rocks
@MudassirZulfiqar
@MudassirZulfiqar 6 лет назад
I was expecting Hadi hariri
@hiteshdhamshaniya8350
@hiteshdhamshaniya8350 6 лет назад
Me too
@QoiniOfficial
@QoiniOfficial 5 лет назад
Did we really need 'fun'?
@wesosdequeso8360
@wesosdequeso8360 5 лет назад
😡 no fun 😡
@narm455
@narm455 5 лет назад
No
@connectedr
@connectedr 5 лет назад
Yes, because it would conflict with the syntax of a funcion with a single lambda argument
@gcm4312
@gcm4312 4 года назад
'fun' and ?: make Kotlin awesome
@adrianharo6586
@adrianharo6586 5 лет назад
I just don't understand why there are so many software engineers writing kotlin code on Mac computers, am I the only one who notices this ?
@Parker8752
@Parker8752 4 года назад
If you write mobile applications, there's a good chance you need to code for iOS too, which means a mac.
@msjastad
@msjastad 5 лет назад
What is this ide???
@danielbubenheim5951
@danielbubenheim5951 5 лет назад
Of course it's IntelliJ IDEA by JetBrains: www.jetbrains.com/idea/
@JorgeEscobarMX
@JorgeEscobarMX 4 года назад
If I already know Java, why would I learn yet another programming language to do the same stuff in a different way?
@BluBOo_
@BluBOo_ 4 года назад
Watch the video
@slaviboy
@slaviboy 4 года назад
Hey, can you send me a Kotlin t-shirt :D
@johnny_rain3226
@johnny_rain3226 2 года назад
Almost good as C#
@johnyeager8355
@johnyeager8355 3 года назад
Ok
@ranyalbegwein7470
@ranyalbegwein7470 5 лет назад
The return type of a function is located at the end of a line, which is one of the first things I would like to see when I read an API.
@hjanehferj9048
@hjanehferj9048 2 года назад
😊😀👍
@dislike__button
@dislike__button 4 года назад
I don't like Kotlin, it always suspends fun
@i-am-in-cloud
@i-am-in-cloud 3 года назад
Thats copied from namedtuple in python
@stevebuddy6827
@stevebuddy6827 5 лет назад
Umm... Can I have my C#/Java language back now?
@enriquemartindelpomarleon
@enriquemartindelpomarleon 4 года назад
TRANSLATE TO SPANISH PLS!
@k4dima
@k4dima 6 лет назад
OMG
@DeLL116
@DeLL116 5 лет назад
Me @ 11:51 (look to the bottom right)
@-no-handle
@-no-handle 6 лет назад
I don't understand this fight of 'which language lets you write shorter code'. I still find Java more readable.
@chadr76
@chadr76 5 лет назад
Agreed. Did we really need 'fun'?
@tejasjoshi6036
@tejasjoshi6036 5 лет назад
agree
@protaties
@protaties 5 лет назад
Readability doesn't mean writing lots of "public static void" or for-loop, it means that you write exactly what you mean. For example, you want to create a new list with each element is two times the element in another list. In Java, you need to do something like `List a = new List(b.size()); for (int i = 0; i < b.size(); ++i) b[i] = a[i] * 2;`. But in Kotlin you only need `val a = b.map { it * 2}.toList;`. And Kotlin version is more readable because it exactly describes what I want to do: creates a new list with each element times 2, but in Java, you need to understand the whole `new` and `for-loop` thing. For more complex logic, it's more difficult to understand what you really mean, i.e. less readability. You may say Java 8 supports lambda function and streams. Yes, Java 8 makes things better, but not good enough.
@pgmz
@pgmz 5 лет назад
I think the real motivation of pushing kotlin so much, is because of the legal issues Android is facing against Oracle because of Java usage.
@eternalkaori2314
@eternalkaori2314 5 лет назад
@@protaties Exactly, Java gets bloated and clunky with all the boilerplate, I'm getting into kotlin primarily because they are addressing some of the frequent annoyances that come with writing code. I mean just look at the lazy initialization example he gave, its a prime example why kotlin is great.
@this-is-bioman
@this-is-bioman 7 месяцев назад
You've let him talk about basic stuff that one can read by himself in the documentation? I had hoped it would have more depth and would _reveal_ some interesting internal Kotlin things or how they made particular design decisions etc. Disappointing.
@DeLL116
@DeLL116 5 лет назад
Over-analyzing with developer paranoia : Google Big Boss - "How do we get developers to start writing apps for Fuscia with Flutter and Dart? Google Smaller Big Boss - "Introduce a new programming language to Android that's "better", but also "annoying"! Google Big Boss - "Do it."
@skin4813
@skin4813 2 года назад
Now, I create a 100.000 threads. Looks at the audience as a bad boy.
@lies137
@lies137 6 лет назад
panic attack !!
@kingjafferjoffer
@kingjafferjoffer 6 лет назад
First 😏
@Imortist
@Imortist 6 лет назад
first++
Далее
Introduction to Kotlin (Google I/O '17)
38:39
Просмотров 556 тыс.
The Amazing Features of Modern Java  - Venkat Subramaniam
1:02:01
Joost Heijkoop & Urs Peter - Kotlin vs Scala
59:16
Просмотров 3,8 тыс.
Google I/O 2012 - Go Concurrency Patterns
51:27
Просмотров 798 тыс.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Просмотров 132 тыс.
Coding Interviews Be Like
5:31
Просмотров 6 млн
Магниты и S Pen 🖊️
0:37
Просмотров 61 тыс.
Развод с OZON - ноутбук за 2875₽
17:48