any good resources on using mvc format with kotlin...
# server
h
any good resources on using mvc format with kotlin? My current code style is ummm… ^_^
g
mvc format?
h
yeah. someone told me about that
g
i know what is MVC but what do you mean “format” or “mvc format”. Also you mentioned code style and I’m confused %)
h
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
@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
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
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
@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
😞. okay. i’ll check it out
d
I recommend vue, it's a lot easier to get started with
j
I did an example with clean architecture for server side and kotlin
MVC is a pattern, Clean architecture is a architecture style