snowe
07/10/2018, 3:53 PMfrellan
07/10/2018, 9:13 PMfun fromData(data: Food) = DTOFood(
id = data.id,
whenCreated = data.whenCreated,
whenModified = data.whenModified,
singularName = data.singularName,
pluralName = data.pluralName,
singularNameIsStandard = data.singularNameIsStandard,
searchTags = data.searchTags,
category = data.category
)
Is there like a helper function available or how do you write a helper function like that to avoid having to do this?Alan Lee
07/10/2018, 9:44 PM@VisibleForTesting
annotation to assign mocks to variables directly but I find injecting mocks via the constructor is easier to read and clarify which objects needs to be mocked.nwh
07/10/2018, 10:24 PMbuild.gradle
require so many steps? Groovy, for example, only requires apply plugin: 'groovy'
. Just curious about thismp
07/10/2018, 10:35 PMPlus
for the plus()
method. It would be great to be able to define sum()
on an Iterable<Plus>
, for instance.Alan Lee
07/10/2018, 11:16 PMAlin B.
07/11/2018, 9:48 AMemmax
07/11/2018, 11:45 AMAndreas Sinz
07/11/2018, 12:42 PMthen
in kotlinCan Orhan
07/11/2018, 3:01 PMinfix
? Is there a rule of thumb? Is it worth considering when writing a sort of DSL?temp_man
07/11/2018, 9:37 PMSSHT
07/12/2018, 8:38 AMJan Vomlel
07/12/2018, 10:04 AMtomtau
07/13/2018, 8:59 AMelect
07/13/2018, 9:54 AMdropWhile
+ drop
?
if (file.exists())
file.readLines()
.dropWhile { !it.startsWith('#') }.drop(1)
Thanos Psaridis
07/13/2018, 11:21 AMLucas Ł
07/13/2018, 11:22 AMkarelpeeters
07/13/2018, 1:41 PMval y = x++
too. I'd say submit a YouTrack issue.ubu
07/13/2018, 2:50 PMKotlin
to Guava's EvictingQueue
?
https://google.github.io/guava/releases/15.0/api/docs/com/google/common/collect/EvictingQueue.htmlNikky
07/14/2018, 12:42 AMAregev2
07/15/2018, 2:42 PMShawn
07/15/2018, 10:18 PMpp.amorim
07/16/2018, 9:58 AMelect
07/16/2018, 1:20 PMEdwin Miguel
07/16/2018, 8:33 PMhhariri
07/17/2018, 2:18 PMenleur
07/17/2018, 2:50 PMs1m0nw1
07/17/2018, 2:57 PMAregev2
07/17/2018, 5:41 PMnative
keyword)Venkatesh-Prasad Ranganath
07/17/2018, 6:08 PMVenkatesh-Prasad Ranganath
07/17/2018, 6:08 PMsnowe
07/17/2018, 6:18 PMVenkatesh-Prasad Ranganath
07/17/2018, 6:53 PMsnowe
07/17/2018, 7:07 PMVenkatesh-Prasad Ranganath
07/17/2018, 7:35 PMsnowe
07/17/2018, 8:47 PM