apomelov
03/09/2017, 2:01 PMkonsoletyper
03/09/2017, 2:05 PMapomelov
03/09/2017, 2:46 PMkonsoletyper
03/10/2017, 7:41 AMapomelov
03/10/2017, 8:11 AM@Transactional
to the service method. But we have a project, written in scala that uses slick framework for db interaction. It’s 100% pure functional. You can’t just create a user and then send him a message. You should create an “action” and call a map/flatMap on it to create a next action based on results of the first one. And you need something more complicated you need to fuck your brain first 😃 But there is “for comprehension” in scala that will show this chain of maps flatMaps and filters as a imperative code.
Anyway I’ll never use slick. And if it would be the only way to connect to database in scala I will never use scala.
Kotlin is a general purpose language so I’m not sure it’s correct to say “framework based on idioms”. You can write code “based on idioms”, but for frameworks all general patterns are already invented and implemented. If you chose only one and there will be no ability to use anothers, your audience will be quite small.
DISCLAIMER: my very personal opinion 🙂konsoletyper
03/10/2017, 8:33 AMkonsoletyper
03/10/2017, 8:33 AMkonsoletyper
03/10/2017, 8:36 AMkonsoletyper
03/10/2017, 8:40 AMkonsoletyper
03/10/2017, 8:41 AMapomelov
03/10/2017, 8:42 AMkonsoletyper
03/10/2017, 8:55 AMsdeleuze
03/13/2017, 2:51 PMsdeleuze
03/13/2017, 2:51 PMsdeleuze
03/13/2017, 2:52 PMsdeleuze
03/15/2017, 1:05 AMkonsoletyper
03/15/2017, 8:35 AM