https://kotlinlang.org logo
Title
h

Hamza

06/27/2018, 3:43 AM
any good resources on using mvc format with kotlin? My current code style is ummm… ^_^
g

gildor

06/27/2018, 3:56 AM
mvc format?
h

Hamza

06/27/2018, 3:56 AM
yeah. someone told me about that
g

gildor

06/27/2018, 3:58 AM
i know what is MVC but what do you mean “format” or “mvc format”. Also you mentioned code style and I’m confused %)
h

Hamza

06/27/2018, 3:59 AM
oh, i guess just MVC then. not sure how it would work with Kotlin though. most of it is on asp.net whenever i try to look
a

amanda.hinchman-dominguez

06/27/2018, 4:04 AM
@Hamza it depends on the framework you use, of course. MVC is simply one of many architectural solutions based on a recommended design by many. For example, #tornadofx allows you to use any MV* you wish and has good documentation. In terms of MVC itself, I wouldn't tie that with Kotlin. I would highly recommend reading any explanation of MVC
h

Hamza

06/27/2018, 4:05 AM
oh, okay. any ideas what code style i should use with something like ktor or javalin? Where you get GET requests and POST requests with a context.
a

amanda.hinchman-dominguez

06/27/2018, 4:09 AM
ktor/javalin isn't necessarily a coding style, it's more of different approaches to server-side solutions with its own focuses on aspects of pipelining. ktor looks really cool and to me, reminds me a lot of Go with routing. You create your own GET and POST requests.
t

tipsy

06/27/2018, 7:29 AM
@Hamza i know you don't like hearing it, but life is easier if you use javascript and MVVM. use vue/react for your frontend, then javalin/ktor for your backend. make all communication JSON.
h

Hamza

06/27/2018, 7:58 AM
😞. okay. i’ll check it out
d

david-wg2

06/27/2018, 8:27 AM
I recommend vue, it's a lot easier to get started with
j

Juan Guillermo Gomez - GDG Cali - GDE Firebase

06/27/2018, 6:47 PM
I did an example with clean architecture for server side and kotlin
MVC is a pattern, Clean architecture is a architecture style