https://kotlinlang.org logo
#feed
Title
# feed
t

Tim Schraepen

06/15/2019, 12:27 PM
Livecoding webapp in Kotlin en VueJS! Come say hi! https://twitch.tv/sch3lpsc2
👍 2
K 1
j

janvladimirmostert

06/15/2019, 2:51 PM
will there be a recording of this somewhere ?
t

Tim Schraepen

06/15/2019, 3:05 PM
It’ll be up on twitch for I think 2 weeks or something
j

janvladimirmostert

06/15/2019, 3:05 PM
awesome!
t

Tim Schraepen

06/15/2019, 3:05 PM
I haven’t gotten to the stage where I really want stuff for posterity’s sake on YouTube for example. 🙂
In this livestream I rekindled my hatred for Hibernate and learned about MutableList vs. regular old Lists. 😉 Thankfully no other shenanigans. I could just get a feature done in a respectable amount of time.
j

janvladimirmostert

06/15/2019, 3:08 PM
Hibernate and Kotlin doesn't play that nice, unless you use the noargs plugin and make everything mutable
t

Tim Schraepen

06/15/2019, 3:10 PM
I have the noargs plugin, but removing stuff from a List (using
List.minus
or you know,
-
) returns a new List that hibernate doesn’t have a reference to.
t

thanksforallthefish

06/17/2019, 6:46 AM
yep, but immutability is a tool, and hibernate/jpa is a tool too. if they don't work together, don't use them together. I struggled for a while to use immutable data classes with hibernate, then just decided it was easier and more secure to follow vlad mihalcea best practices for jpa https://vladmihalcea.com/ rather than insisting on being stubborn