Livecoding webapp in Kotlin en VueJS! Come say hi!...
# feed
t
Livecoding webapp in Kotlin en VueJS! Come say hi! https://twitch.tv/sch3lpsc2
👍 2
K 1
j
will there be a recording of this somewhere ?
t
It’ll be up on twitch for I think 2 weeks or something
j
awesome!
t
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
Hibernate and Kotlin doesn't play that nice, unless you use the noargs plugin and make everything mutable
t
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
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