https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
server
  • s

    sdeleuze

    03/14/2017, 4:49 PM
    https://twitter.com/sdeleuze/status/841692711656775681
    1 reply · 1 participant
  • e

    enighma

    05/01/2017, 1:39 AM
    So, let's say I want to write a lightweight server with a REST API in Kotlin. Which framework/libraries would you guys recommend? I guess I could use the JS backend and Kotlin, but I'm curious if there is any other alternatives.
    o
    1 reply · 2 participants
  • d

    dathoang.se

    05/07/2017, 8:51 AM
    Anyone having a thought of using the combination of ReactJS/ReactNative and kotlin?
    j
    1 reply · 2 participants
  • s

    s4nchez

    05/10/2017, 6:14 PM
    Hey! Today myself and @dave have released http4k: https://github.com/http4k/http4k
    👍 2
    m
    d
    +1
    5 replies · 4 participants
  • p

    pawel.barszcz

    05/24/2017, 1:40 PM
    @juliocbcotta language: Kotlin HTTP endpoints: Spring Boot (Spring Web MVC) HTTP security: Spring Boot (Spring Security) dependency injection: Spring Boot persistence: Exposed https://github.com/JetBrains/Exposed HTTP requests to other services: OkHttp http://square.github.io/okhttp/ end-to-end tests: Spring Boot with the whole app started, HTTP requests with OkHttp with Kotson for Kotlin-friendly JSON creation
    👍 1
    j
    6 replies · 2 participants
  • j

    jackmiras

    05/24/2017, 6:22 PM
    I've ben using Spark with kotlin for a couple months know and works realy fine. However I do not agree with the route system and because of that I've implement a diferent route system over the framework routes. If you try Use Spark you will end up with endpoints like:
    post("/endpoint", {request, response ->  <http://someController.post|someController.post>(request, response)})
    get("/endpoint", {request, response ->  someController.get(request, response)})
    put("/endpoint", {request, response ->  someController.put(request, response)})
    delete("/endpoint", {request, response ->  someController.delete(request, response)})
    The change that I made in my project allows me to implement endpoints like this:
    route("/endpoint")
        .get { request, response -> someController.get(request, response) }
        .post { request, response -> <http://someController.post|someController.post>(request, response) }
        .put { request, response -> someController.put(request, response) }
        .delete { request, response -> someController.delete(request, response) }
    And if you have a path at you url you I can do something like:
    route("/users")
        .post { request, response -> <http://userController.post|userController.post>(request, response) }
        .post("/signin", { request, response -> userController.signin(request, response) })
        .post("/signout", { request, response -> userController.signout(request, response) })
    You can do the same with Spark routes but you will have to write a little more code and for me this "node like" endpoint implementation works better.
    j
    4 replies · 2 participants
  • t

    tadas44

    05/27/2017, 7:45 AM
    Hi guys, I’m having 5 years experience in Android and want to start develop backend 🙂 Can you recommend some learning materials (git example code, courses, books)? I would like to be able to create API for my project.
  • a

    apatrida

    05/30/2017, 12:46 AM
    @dave Kovert is moving on top of KTOR which will mean it'll be hosted by anything that hosts KTOR, and will still support vert.x
    👍 2
    o
    1 reply · 2 participants
  • g

    gregopet

    06/13/2017, 6:19 AM
    I've worked a lot with Spring Boot and Groovy and I chose a more lightweight library for my current Kotlin project (and I really don't miss Spring 🙂 )
    👍 3
    m
    t
    +2
    12 replies · 5 participants
  • o

    orangy

    06/16/2017, 12:52 PM
    #ktor would be better for specifics
    i
    1 reply · 2 participants
  • e

    evanchooly

    06/18/2017, 12:13 AM
    jooq. jdbi. spring's jdbc-template
    n
    j
    +1
    9 replies · 4 participants
  • a

    alwyn

    06/27/2017, 1:00 PM
    Well as far as JOOQ costs go. I do work for a Fortune 500 company. That being said companies at that level think about IBM, Microsoft, Oracle, etc when they think about paying for something. So justifying costs especially if your product is in maintenance mode can be very difficult. I need to check the licensing details for CE edition, but I suspect writing your own SQLServer support to hook into CE will probably not go against the license.
    n
    1 reply · 2 participants
  • o

    orangy

    06/28/2017, 8:57 PM
    @vonox7 thanks! but when you get the userId, what do you do next? Do you build up an associated
    AuthenticatedUser
    instance from database and keep it around for the duration of HttpRequest?
    v
    2 replies · 2 participants
  • y

    yasyd

    06/29/2017, 7:49 PM
    Hi all. Don't know if this is the right channel, but I have just released a new lib that implement a kotlin DSL for MongoDB aggregation pipeline
    👍 4
    s
    2 replies · 2 participants
  • o

    orangy

    06/30/2017, 12:46 PM
    Next use-cases topic: DI/IoC. Do you use them? Which one? Pros, cons, issues, benefits?
    v
    1 reply · 2 participants
  • a

    andrewoma

    06/30/2017, 8:16 PM
    We use Spring, Guice and nothing depending on who kicked off the project. I prefer nothing and pass dependencies via constructors. Guice is a close second - it actually has modules and sticks to DI. I would never use Spring by choice - it's like having a global map configured by random classpath scans, XML fragments, property files with a dash of its own expression language
    ➕ 7
    n
    2 replies · 2 participants
  • e

    evanchooly

    07/13/2017, 6:44 AM
    title says scala. page says kotlin. 😕
    o
    j
    3 replies · 3 participants
  • d

    dave

    08/18/2017, 7:43 AM
    For anyone who is in London and interested, @s4nchez and I will be giving a talk about the design decisions and development of http4k and how it's changed our dev and testing practices, at the next Kotlin London meetup. Details here: https://www.meetup.com/kotlin-london/events/241918493/
    o
    4 replies · 2 participants
  • m

    mantono

    08/18/2017, 3:58 PM
    Anyone knows if it is possible to combine a routing for all HTTP verbs in ktor? Like a combined
    get("/")
    and
    post("/")
    ?
    o
    4 replies · 2 participants
  • d

    dave

    08/27/2017, 10:54 PM
    @tipsy The extension property concept is interesting - not really seen that done before 🙂 After a brief look, a couple of things spring out: 1. The ApiBuilder class now has 4 methods for each HTTP verb - one for various combinations of the path/Handler/Role list. This seems like as a possible problem going forward - eg. will the next concept introduced into the API builder result in 8 methods per HTTP verb? If you could find a way to combine the behavioural changes into a decorated implementation of the Handler interface then the ApiBuilder contract could stay simple. so maybe you'd call
    get(roles(UserController::getAllUserIds, ApiRole.ANYONE))
    instead - where the
    roles()
    method returns another Handler. 2. There's a type in your tutorial - should
    this.header("Basic")
    be
    this.header("Authorization")
    ?
    t
    11 replies · 2 participants
  • l

    lifk

    08/30/2017, 10:24 PM
    Hey guys, not sure if this fits this channel but maybe you can help me with some issue. I have a reporting application that runs some heavy mysql queries, to make it faster I want them to run in parallel but as I see Jdbc is not parallel so in order to do it I would need a thread pool and a connection pool. Is this the way of doing it or is there a library that will make my life easier?
    o
    m
    +1
    6 replies · 4 participants
  • s

    sdeleuze

    08/31/2017, 10:58 AM
    @dave @s4nchez Great slides indeed. Any example or hints about how to shrink uberjar with ProGuard for server-side use case ?
    d
    4 replies · 2 participants
  • t

    tipsy

    09/03/2017, 10:39 PM
    what do you all think about this syntax for getting header-values?
    val accept = request.headers.accept
    val cacheControl = request.headers.cacheControl
    val username = request.headers.authorization.basic.username
    val password = request.headers.authorization.basic.password
    b
    5 replies · 2 participants
  • a

    ander.dev

    09/15/2017, 2:44 AM
    Guys, so...currently I have a couple of API that run on wildfly (same domain) my doubt is how to deploy a couple of springboot + kotlin in the same way as war files. I might be missing something here, because I have been researching about it and could get a good answer so far. I try @napperley suggesation but I could make it work . any other suggestion?
    n
    3 replies · 2 participants
  • r

    Roberto Fernandez

    09/15/2017, 9:32 AM
    guys, do you know any way to do a soap requests using kotlin?Or should i use java interoperability instead?
    o
    1 reply · 2 participants
  • b

    bdawg.io

    09/17/2017, 10:23 PM
    We’re in an exploratory phase in building REST, GraphQL, and RPC APIs using ktor or spark. Which DBAL library do you prefer? 1️⃣ Exposed 2️⃣ Requery 3️⃣ Other (please specify)
    3️⃣ 5
    1️⃣ 4
    2️⃣ 3
    g
    1 reply · 2 participants
  • e

    evanchooly

    09/18/2017, 7:16 AM
    squash looks lovely. I'm building something similar for mongodb
    ❤️ 1
    ➕ 1
    👍 3
    o
    i
    +5
    24 replies · 8 participants
  • g

    gregopet

    09/19/2017, 8:49 AM
    plus, jOOQ looks really really like SQL, while squash apparently uses some sort of DSL for at least some things (e.g.
    where { Citizens.id eq "eugene" }
    )
    o
    3 replies · 2 participants
  • k

    kirillrakhman

    09/23/2017, 7:20 PM
    Receivers are regular Java parameters. The big question is: can you rename the parameter? Maybe via
    @JvmName
    t
    1 reply · 2 participants
  • a

    andy_dogger

    09/24/2017, 7:00 PM
    Всем привет. Есть здесь те, кто пишит бэк на котлине?)) Откликнетесь пожалуйста.
    o
    n
    4 replies · 3 participants
Powered by Linen
Title
a

andy_dogger

09/24/2017, 7:00 PM
Всем привет. Есть здесь те, кто пишит бэк на котлине?)) Откликнетесь пожалуйста.
o

orangy

09/24/2017, 7:06 PM
This is english speaking channel, please use #russian
a

andy_dogger

09/24/2017, 7:27 PM
ok
thank you
n

nfrankel

09/24/2017, 7:52 PM
pozhaluysta
👍 3
View count: 5