• cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2019-09-09


2019-09-11 »

Nick Message Date
niceplace [niceplace!~nplace@] has joined #kotlin [12:10]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [01:53]
Ladicek [Ladicek!~lthon@] has joined #kotlin [02:09]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [02:41]
lineos Is it bad practice to verify a private method being called from a public method in a test? [02:46]
Bombe Depends on what you mean by that. [02:59]
Bombe I mean, you can?t call it directly, you have to call a public method. [02:59]
Bombe And it probably does something that is actually useful. [03:00]
Bombe The thing to remember is that you don?t test methods, you test functionality. [03:00]
lankanmon [lankanmon!] has joined #kotlin [03:00]
Bombe Who cares if it?s one method, or five, or eighteen? Nobody, as long as the functionality is correct. [03:01]
lineos I want to test what happens when a public method is called. And I can verify that by checking, whether a private method was invoked [03:05]
ziyourenxiang [ziyourenxiang!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [03:05]
lineos The only other thing that could be verified is a private field calling a public method of a different class [03:08]
rruizt [rruizt!] has joined #kotlin [03:25]
Bombe lineos, that doesn?t sound right? [03:30]
Bombe has to interrupt for the daily? [03:30]
lineos Then all I can do is call the method and verify nothing. Otherwise I have to make private methods public. [03:33]
Bombe That still sounds weird? that private method should do something you can verify, either by checking the return value of the public method or by verifying that a dependency was invoked. [03:44]
Bombe The private method itself shouldn?t play any role at all. [03:44]
Flaghacker [Flaghacker!~Flaghacke@] has joined #kotlin [03:57]
DiabloD3 [DiabloD3!] has joined #kotlin [04:15]
Pitel [Pitel!] has joined #kotlin [04:22]
Diablo-D3 [Diablo-D3!] has joined #kotlin [04:25]
djhworld [djhworld!~djhworld@] has joined #kotlin [04:30]
Diablo-D3 so [04:32]
Diablo-D3 what are the most impressive kotlin projects out there that arent jetbrains's? [04:32]
Diablo-D3 (ie, same reason I wouldn't point to firefox's rustification as the grandest rust project ever) [04:33]
Diablo-D3 [Diablo-D3!] has joined #kotlin [04:36]
yawkat of course. [04:40]
yawkat yawkat, what does that even *mean*? [04:40]
Diablo-D3 thats the best possible answer [04:52]
Diablo-D3 wait... if javabot is written in kotlin... shouldn't it be named kotlinbot?! [04:53]
yawkat thanks to the ~android factoid, we all know java is actually the jvm too and kotlin is thus java. [04:54]
Diablo-D3 aaaaand this is why I like kotlin [04:55]
Diablo-D3 its the elixir of java [04:55]
dreamreal 's name is derived partly for having been targeted at ##java [04:59]
dreamreal OK, dreamreal. [04:59]
dreamreal forget javabot's name [04:59]
dreamreal I never knew about javabot's name anyway, dreamreal. [04:59]
dreamreal forget 's name [04:59]
dreamreal I forgot about 's name, dreamreal. [04:59]
dreamreal argh [04:59]
Diablo-D3 hahahah [04:59]
Diablo-D3 javabot's name [05:00]
Diablo-D3 javabot\'s name [05:00]
Diablo-D3 Diablo-D3, what does that even *mean*? [05:00]
Diablo-D3 squints [05:00]
dreamreal points out that he already told the bot to forget the new factoid [05:00]
Diablo-D3 but you didnt though [05:00]
yawkat Diablo-D3: it worked the second time [05:00]
Diablo-D3 oh, damnit, it did [05:00]
dreamreal but I did: see 04:59:41 [05:00]
azuri5 [azuri5!~textual@] has joined #kotlin [05:09]
DiabloD3 [DiabloD3!] has joined #kotlin [05:16]
Diablo-D3 [Diablo-D3!] has joined #kotlin [05:26]
Diablo-D3 [Diablo-D3!] has joined #kotlin [05:36]
Diablo-D3 [Diablo-D3!] has joined #kotlin [05:56]
azuri5 [azuri5!~textual@] has joined #kotlin [05:56]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [06:05]
Diablo-D3 [Diablo-D3!] has joined #kotlin [06:07]
Flaghacker Diablo-D3, Look under "Kotlin Usage Highlights" here: [06:09]
Flaghacker Flaghacker's title: "Kotlin Programming Language" [06:09]
Diablo-D3 new rule: no android projects, because all you're doing is writing kotlin flavored android not-java [06:11]
Diablo-D3 the remaining ones are corda, and gradle's kotlin support (but gradle itself is not written in kotlin... yet) [06:12]
Diablo-D3 I forgot about corda, so I guess that could be added to a list [06:15]
eater is there a type alias like Self in rust and static in PHP, which I can use to force a parameter to be the same type as the class the function is called at [06:31]
rruizt [rruizt!] has joined #kotlin [06:32]
dreamreal eater: I don't think so [06:33]
dreamreal Diablo-D3: I wrote a full orchestration engine for work in kotlin... [06:33]
dreamreal and all of our big ETL stuff is kotlin as well [06:33]
eater dreamreal: well `interface A<T: A<T>>` it is [06:37]
Flaghacker [Flaghacker!] has joined #kotlin [07:05]
azuri5 [azuri5!~textual@] has joined #kotlin [07:34]
Diablo-D3 [Diablo-D3!] has joined #kotlin [07:47]
Diablo-D3 [Diablo-D3!] has joined #kotlin [07:57]
Diablo-D3 dreamreal: Im trying to find examples that are really good at converting people to the language [08:01]
Diablo-D3 so I can have a small list tucked away in my head, so when someones like "kotlin sounds cool, but Ive never seen a large scale project written in it" I can just throw that at them [08:02]
dreamreal awesome kotlin [08:02]
dreamreal Awesome Kotlin" is a github project that tries to collect and curate useful resources for Kotlin. See for more. [08:02]
Diablo-D3 yeah, thats more all things to learn kotlin [08:02]
Diablo-D3 thats already in my mental list of things to throw at people [08:03]
Diablo-D3 but thats after I already sold them on it [08:03]
dreamreal there are actual apps there too, you know [08:06]
Diablo-D3 hmm, I guess [08:07]
Diablo-D3 not the kind Im looking for though [08:07]
dreamreal well what kind are you looking for [08:08]
Diablo-D3 something cool that people have maybe heard of [08:38]
Diablo-D3 [08:39]
Diablo-D3 Diablo-D3's title: "GitHub - kotlin-graphics/kotlin-unsigned: unsigned support for Kotlin via boxed types and unsigned operators" [08:39]
Diablo-D3 <!> [08:39]
Diablo-D3 stashes that one away for later [08:44]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [08:48]
toffe [toffe!~toffe@] has joined #kotlin [08:49]
toffe Hello [08:50]
toffe anyone know if its possible to merge a existing listOf into another new listOf? [08:50]
toffe var test = listOf("1", "2") [08:50]
toffe var test2 = listOf(test, "3", "4") [08:50]
toffe linda [08:50]
toffe kinda* [08:50]
Diablo-D3 I think you want test2.addAll(test) [08:52]
toffe tried that, I'd like to have it in the var [08:52]
toffe not afterwards [08:52]
toffe e.g. "listOf("Blah").addAll(test)" [08:54]
Diablo-D3 because you want the exact order of 1, 2, 3, 4? [08:54]
toffe nah just merge them [08:54]
Diablo-D3 sure you're not overcomplicating it because of aesthetics? [08:57]
toffe .. yeah might be [08:57]
toffe its a class [08:57]
toffe private val ourApps = listOff("app1", "app2") [08:58]
toffe private val appsToIgnoreFromStatistics = listOff("app1", "app2", "notourapp", "notourapp2") [08:58]
toffe thought instead of adding "our" apps twice [08:58]
toffe we could just add the "ourApp" into the list somehow. (listOf, not Off). [08:59]
Diablo-D3 var test2 += listof("3", "4")? [09:01]
Diablo-D3 not sure if thats valid, might be [09:01]
Bombe test2 = test + listOf("3", "4") should be perfectly valid. [09:03]
toffe dang so easy [09:04]
toffe private val appsToIgnoreFromStatistics = ourApps + listOf("notourapp", "notourapp2") [09:04]
toffe thanks Bombe [09:04]
dreamreal Bombe ++ [09:08]
dreamreal bombe has a karma level of 51, dreamreal [09:08]
dreamreal duh, I was thinking "spread operator" [09:08]
Bombe Hehe, sure, just convert it to an array and spread it into that parameter list! [09:09]
dreamreal I was thinking "I wonder if there's a spread operator for the list" actually but... yeah [09:09]
Bombe Yeah, that would be cool. [09:09]
Diablo-D3 er right, my bad, = test + is what I meant [09:09]
Bombe Hmm, why isn?t there? [09:10]
Diablo-D3 Im surprised addAll doesn't return the list [09:10]
Bombe Hmm, there is a SpreadBuilder that can handle collections as things to spread but I wonder how/where that can be used? [09:14]
Dejan [Dejan!~dejan@unaffiliated/dejan] has joined #kotlin [09:37]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [09:38]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [09:38]
intrigus [intrigus!uid114902@gateway/web/] has joined #kotlin [10:00]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [10:00]
azuri5 parted the channel: [10:02]
macroprep [macroprep!] has joined #kotlin [10:22]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [10:24]
Flaghacker [Flaghacker!] has joined #kotlin [10:34]
blizzow [blizzow!] has joined #kotlin [11:42]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [12:05]
DiabloD3 [DiabloD3!] has joined #kotlin [12:27]
zutat [zutat!4e317e55@unaffiliated/zutat] has joined #kotlin [12:34]
Diablo-D3 [Diablo-D3!] has joined #kotlin [12:38]
Diablo-D3 [Diablo-D3!] has joined #kotlin [12:49]
veegee_ [veegee_!veegee@gateway/vpn/privateinternetaccess/veegee] has joined #kotlin [01:17]
funeral [funeral!~Funeral@2a01:79d:b7df:4bd8:f3d4:5e09:6ffa:eb73] has joined #kotlin [01:20]
zutat [zutat!4e317e55@unaffiliated/zutat] has joined #kotlin [01:30]
niceplace [niceplace!~nplace@] has joined #kotlin [02:10]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [02:46]
Diablo-D3 [Diablo-D3!] has joined #kotlin [02:58]
Diablo-D3 [Diablo-D3!] has joined #kotlin [03:09]
ChrisLane [ChrisLane!] has joined #kotlin [04:36]
Diablo-D3 [Diablo-D3!] has joined #kotlin [04:52]
Diablo-D3 [Diablo-D3!] has joined #kotlin [05:02]
DiabloD3 [DiabloD3!] has joined #kotlin [06:32]
Diablo-D3 [Diablo-D3!] has joined #kotlin [06:42]
Diablo-D3 [Diablo-D3!] has joined #kotlin [06:52]
rruizt [rruizt!] has joined #kotlin [07:28]
Diablo-D3 [Diablo-D3!] has joined #kotlin [07:43]
ziyourenxiang [ziyourenxiang!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [07:46]
lankanmon [lankanmon!] has joined #kotlin [07:52]
Diablo-D3 [Diablo-D3!] has joined #kotlin [07:53]
djhworld [djhworld!~djhworld@] has joined #kotlin [08:06]
iam730 [iam730!~iam730@] has joined #kotlin [08:15]
Diablo-D3 [Diablo-D3!] has joined #kotlin [08:33]
Diablo-D3 [Diablo-D3!] has joined #kotlin [09:23]
Diablo-D3 [Diablo-D3!] has joined #kotlin [09:33]
Diablo-D3 [Diablo-D3!] has joined #kotlin [09:44]
theWhisper_ [theWhisper_!~quassel@unaffiliated/thewhisper/x-7482734] has joined #kotlin [10:15]
rruizt [rruizt!] has joined #kotlin [11:02]
Diablo-D3 [Diablo-D3!] has joined #kotlin [11:44]
Diablo-D3 [Diablo-D3!] has joined #kotlin [11:54]