Info

Login

Channels

APIs

Credits

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

« 2019-09-17

2019-09-18

2019-09-19 »

Nick Message Date
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [12:22]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [12:30]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:07]
steven__ [steven__!~shicks252@2600:1700:2428:20b0:6ce9:57dc:66f7:f844] has joined #kotlin [01:17]
shicks2525 [shicks2525!~shicks252@2600:1700:2428:20b0:6ce9:57dc:66f7:f844] has joined #kotlin [01:20]
shicks_ [shicks_!shicks2525@gateway/vpn/privateinternetaccess/shicks2525] has joined #kotlin [01:21]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [01:24]
jdlee [jdlee!~quassel@unaffiliated/littlezoper] has joined #kotlin [01:46]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [01:54]
elfmacs [elfmacs!~elfmacs@159.226.199.101] has joined #kotlin [01:59]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [02:04]
iam730 [iam730!~iam730@c-24-6-215-59.hsd1.ca.comcast.net] has joined #kotlin [02:11]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [02:14]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [02:21]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [02:24]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [02:27]
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [03:00]
macroprep [macroprep!~smallvill@cpe-172-193-55-193.qld.foxtel.net.au] has joined #kotlin [03:00]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [03:07]
Flaghacker [Flaghacker!~Flaghacke@imec-outbound-pub-ip.imec.be] has joined #kotlin [03:51]
Pitlik [Pitlik!~pitel@fw2o.masterinter.net] has joined #kotlin [04:00]
sbalmos [sbalmos!~sbalmos@cpe-98-30-198-117.columbus.res.rr.com] has joined #kotlin [04:08]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [04:10]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [04:28]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [04:38]
OtakuSenpai [OtakuSenpai!~OtakuSenp@unaffiliated/neel] has joined #kotlin [04:48]
Jonopoly [Jonopoly!~Jonopoly@unaffiliated/jonopoly] has joined #kotlin [05:16]
KeyJoo [KeyJoo!~KeyJoo@46.249.13.35] has joined #kotlin [05:18]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [05:23]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [05:28]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [05:39]
macroprep [macroprep!~brotherco@cpe-172-193-55-193.qld.foxtel.net.au] has joined #kotlin [05:43]
DiabloD3 [DiabloD3!foobar@exelion.net] has joined #kotlin [05:50]
jonasg13 [jonasg13!~jonasg@47-33-13-41.dhcp.reno.nv.charter.com] has joined #kotlin [05:57]
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined #kotlin [06:21]
Flaghacker [Flaghacker!~Flaghacke@146.103.254.11] has joined #kotlin [07:06]
raoul11_ what am i missing in returning (same as a return fron an if) from a .let [07:38]
Bombe What? [07:46]
dreamreal I had the same question but didn't feel like digging in at the time [07:49]
Flaghacker_ [Flaghacker_!~Flaghacke@imec-outbound-pub-ip.imec.be] has joined #kotlin [08:01]
raoul11_ Bombe: as in do no proceed if .let [08:08]
raoul11_ dreamreal: same, kinda clueless why it doesnt work or what does return@let does anyways [08:08]
dreamreal raoul11_: okay, what are you trying to do [08:09]
raoul11_ stop the exec of a the rest of the function [08:10]
dreamreal in what case [08:10]
raoul11_ errorData?.let {return} [08:10]
dreamreal so... if error data is present, exit the method? [08:11]
raoul11_ the enclosing one yes [08:11]
raoul11_ so what i ended up doing, and probably will get told bout it is errorData?.let{return} ?: run {doStuff...} [08:12]
dreamreal shrugs [08:12]
raoul11_ . [08:12]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [08:14]
dreamreal I'd probably be simpler: return if(errorData!=null) { doStuff() } else { } // or something similarly stupid [08:15]
raoul11_ ywah, still though [08:16]
Jetoni [Jetoni!~luser@unaffiliated/jetoni] has joined #kotlin [08:26]
Flaghacker_ raoul11_, It just works: https://pl.kotl.in/PirQIcIL2. return@let means returning from the lambda, so the opposite of what you want. [08:43]
raoul11_ Flaghacker_: the .let is inside a method which returns nothing, so AS says: return is not allowed here [08:49]
Flaghacker_ Are you sure? It works fine for me: https://pl.kotl.in/qnmiakopd [08:50]
Flaghacker_ Flaghacker_'s title: "Kotlin Playground: Edit, Run, Share Kotlin Code Online" [08:50]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [08:51]
Flaghacker_ Why didn't javabot do that for the previous link? Trailing '.'? [08:51]
Flaghacker_ https://pl.kotl.in/qnmiakopd. [08:51]
Flaghacker_ (raoul11_) [08:53]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [08:58]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [09:01]
raoul11_ thanks Flaghacker_ [09:03]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [09:04]
Flaghacker_ raoul11_, So what was the problem? [09:07]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [09:08]
raoul11_ the problem still there, AS still complains that return is now allowed here [09:09]
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined #kotlin [09:16]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [09:21]
Flaghacker_ raoul11_, Does it happen if you paste that exact code in AS? [10:06]
Flaghacker_ You can try `return Unit` too [10:06]
macroprep can a binary tree be made out of a tree? as my getter for the left node is get() = tree.child!![0] but it sais it requires a BinaryTree<T> but it returns a Tree<T> https://pl.kotl.in/c_eMROR2V [10:14]
macroprep macroprep's title: "Kotlin Playground: Edit, Run, Share Kotlin Code Online" [10:14]
macroprep as a binary tree is basically a tree but only the first two indexes are used [10:15]
macroprep or rather it only allows two indexes per node as apposed to infinite [10:15]
dreamreal sighs [10:17]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [10:17]
dreamreal so not only do you need a book on compilers, you need a book on data structures. I'm partial to sedgewick, myself, but that's probably because of long familiarity. [10:17]
macroprep as i dont want to have to maintain two seperate classes that have almost identical code [10:19]
dreamreal Gee. i wonder if collections might be generalizable somehow. [10:25]
macroprep could this work? https://pl.kotl.in/RJJisoG-k [10:31]
macroprep macroprep's title: "Kotlin Playground: Edit, Run, Share Kotlin Code Online" [10:31]
Bombe Ain?t nobody got time to read all that. [10:31]
Bombe Also, what does ?work? mean? [10:32]
macroprep https://pl.kotl.in/vGd5i1se4 * [10:33]
macroprep macroprep's title: "Kotlin Playground: Edit, Run, Share Kotlin Code Online" [10:33]
dreamreal macroprep: do you know how to write tests? [10:34]
macroprep probably not [10:36]
dreamreal really? Well, okay. Write some code that exhibits behavior you want: "I have two pairs of data, 'a':'b' and 'c':'d'. Let me store these in my data structure, and then try to retrieve them. If I can't retrieve them, my code has failed. If I CAN retrieve data with a key of 'e', my code's failed." [10:38]
macroprep atm it throws an exception ;-; [10:41]
dreamreal doesn't matter. When you write tests like that that cover everything you expect the data structure to do, then you'll know if your data structure *works* if every test does what you expect. [10:41]
macroprep and playground gives me Your program produces too much output! even tho i dont print anything [10:42]
dreamreal You can, of course, include concurrency and elapsed time as part of the requirements as well [10:42]
dreamreal I don't care [10:42]
raoul11__ [raoul11__!~raoul11_@unaffiliated/raoul11] has joined #kotlin [11:15]
Jetoni [Jetoni!~luser@unaffiliated/jetoni] has joined #kotlin [12:02]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [12:05]
esro [esro!~esro@b00001.krakowskiinternet.pl] has joined #kotlin [12:06]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [12:57]
Bombe Tests are awesome. [01:00]
Bombe tests++ [01:00]
Bombe tests has a karma level of 1, Bombe [01:00]
dreamreal Bombe: which test framework do you prefer and why? [01:02]
Bombe JUnit 4 with hamcrest, sometimes with AssertJ. Mostly because I haven?t yet worked with anything else. [01:03]
dreamreal *nod* thanks [01:04]
Bombe Compiling some statistics? [01:11]
dreamreal Just curious, is all [01:11]
KeyJoo [KeyJoo!~KeyJoo@46.249.13.35] has joined #kotlin [01:16]
KeyJoo [KeyJoo!~KeyJoo@46.249.13.35] has joined #kotlin [01:28]
Bombe dreamreal, okay. :) So, what about you? [01:36]
dreamreal TestNG here [01:38]
Bombe Does that include hamcrest/assertj stuff or are you pairing it with one of those? [01:43]
dreamreal it does [01:45]
dreamreal but I tend to stay with the pure TestNG calls [01:46]
KeyJoo [KeyJoo!~KeyJoo@46.249.13.35] has joined #kotlin [01:46]
Bombe Hmm? from what I can gather from the website it doesn?t do much in terms of asserting, does it? [01:58]
dreamreal it has the standard assortion of assertEquals()/etc/etc [01:58]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:58]
Bombe That is what I consider ?not much in terms of asserting.? :) [02:01]
dreamreal well, you have hamcrest etc available, it's still java, so.... [02:02]
dreamreal (hamcrest is part of the classpath in testng) [02:02]
Bombe Sure, I know, I was just wondering whether I was missing something. [02:02]
dreamreal I just don't need it because I'm so good at simple assertions [02:02]
Bombe ) [02:03]
Bombe bows before so much greatness. [02:03]
dreamreal truth is I'm a simple guy and think of simple tests because I'm not smart enough to do otherwise [02:03]
KeyJoo [KeyJoo!~KeyJoo@46.249.13.35] has joined #kotlin [02:07]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [02:21]
jdlee dreamreal is simple. in the clinical sense. [02:31]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [02:32]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [02:42]
esro [esro!~esro@b00001.krakowskiinternet.pl] has joined #kotlin [03:18]
macroprep how are AST's normally generated, as chapter 2 does not mention this and i cant figure out how to determine how far to backtrack in order to inset a new branch at the correct node [03:26]
macroprep for example, 1 and ((2 and 3 and 4) or (5 and 7)) resulted in 1>2>3>4, and the current node is 4, how would i determine what node to backtrack to if any, in order to insert 5>7 [03:31]
macroprep as so it results in the following: 1>2>3>4, 1>5>7 [03:38]
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [03:39]
steven__ [steven__!~shicks252@2600:1700:2428:20b0:6ce9:57dc:66f7:f844] has joined #kotlin [03:58]
shicks2525 [shicks2525!shicks2525@gateway/vpn/privateinternetaccess/shicks2525] has joined #kotlin [04:02]
veegee [veegee!veegee@gateway/vpn/privateinternetaccess/veegee] has joined #kotlin [04:10]
shicks_ [shicks_!shicks2525@gateway/vpn/privateinternetaccess/shicks2525] has joined #kotlin [04:20]
steven__ [steven__!shicks2525@gateway/vpn/privateinternetaccess/shicks2525] has joined #kotlin [04:25]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [04:56]
dreamreal chapter two of WHAT [05:18]
Diablo-D3 dreamreal: what? [05:18]
dreamreal macroprep mentioned "chapter 2 doesn't mention this" and I'm like... uh... probably 99.9% of books ever written have more than one chapter, what book are you talking about [05:19]
Diablo-D3 oh, of the only kotlin book in existence [05:22]
Diablo-D3 because theres only one [05:22]
Diablo-D3 clearly\ [05:22]
jdlee Highlander: Kotlin [05:24]
Diablo-D3 D [05:25]
dreamreal has anyone ever told you you're stupid? [05:25]
dreamreal giggles to himself. No, he's not crazy. Haha! No. Not crazy at all. [05:26]
jdlee i prefer Colombian coffee, because there can be only Juan! [05:37]
bitwinery [bitwinery!~bruno@c-73-37-18-139.hsd1.wa.comcast.net] has joined #kotlin [06:31]
macroprep dreamreal: dragon book [06:55]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [06:56]
jonasg13 [jonasg13!~jonasg13@216.198.113.21] has joined #kotlin [07:08]
ziyourenxiang [ziyourenxiang!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [07:36]
_xor [_xor!~xor@74.215.46.133] has joined #kotlin [08:07]
yawkat [yawkat!~yawkat@cats.coffee] has joined #kotlin [08:17]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [08:22]
iam730 [iam730!~iam730@45.41.180.94] has joined #kotlin [08:27]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [08:53]
elfmacs [elfmacs!~elfmacs@159.226.199.101] has joined #kotlin [08:56]
DiabloD3 [DiabloD3!foobar@exelion.net] has joined #kotlin [09:13]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [09:23]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined #kotlin [09:33]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [09:54]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [10:06]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [10:47]