https://kotlinlang.org logo
Title
t

tipsy

05/26/2017, 6:02 PM
@ice32 i made a web-framework for java/kotlin inspired by express.js: https://javalin.io/documentation
👍 1
i

ice32

05/26/2017, 6:18 PM
Now that looks familiar 😄 And the docs seem quite good, I'll give it a try, thanks
I love how there's instruction for Maven too, perfect for me 😄
t

tipsy

05/26/2017, 6:22 PM
🙂
i just finished the framework + docs this week, so please let me know if you find any errors
i

ice32

05/26/2017, 6:37 PM
I've just ran the hello-world example 🙂 I got one warning though, I'll paste it here in case it has something to do with Javalin. If it's something I've messed up, you can ignore it, I'll figure it out
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Seems I can't paste the screenshot in slack thread
t

tipsy

05/26/2017, 6:39 PM
it's common to include your own logger in java, just add this as a dependency
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.13</version>
</dependency>
i

ice32

05/26/2017, 6:40 PM
oh... 😄 thanks
t

tipsy

05/26/2017, 6:41 PM
SLF4J's default warning isn't very helpful, i'll add a better one
@ice32 is this more helpful?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
----------------------------------------------------------------------------------
Helpful tip: In the Java world, it's common to add your own logger. 
To easily fix the warning above, get the latest version of slf4j-simple: 
<https://mvnrepository.com/artifact/org.slf4j/slf4j-simple>
then add it to your dependencies (pom.xml or build.gradle)
c

cedric

05/26/2017, 7:40 PM
@tipsy A more helpful link, which includes the snippet to include in your build file: http://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-simple%7C1.8.0-alpha2%7Cjar
(although you probably don't want to link to the alpha)
Also, I'd be cautious about using the word "java" in the name of your framework
👍 1
Oh and you should also avoid using
javalin
as your package root
I like your dual java/kotlin code snippets, well done
i

ice32

05/26/2017, 7:48 PM
Yeah, that language is a lot more helpful
t

tipsy

05/26/2017, 7:59 PM
@cedric i added it as a section to the docs: https://javalin.io/documentation#logging, and linked to docs from the warning-message
Oh and you should also avoid using
javalin
as your package root
any particular reason?
c

cedric

05/26/2017, 8:02 PM
1. Like I said, it contains
java
and Oracle is pretty ruthless about that and 2. It should be a top level domain that you own
t

tipsy

05/26/2017, 8:03 PM
okay, so io.javalin would be fine, if not for oracle being oracle
c

cedric

05/26/2017, 8:04 PM
If you own that domain, yes. But yeah, if Oracle comes to you and ask you to rename your project, it's not just your web site that will need to change but you'll break all your users
🤔 1
t

tipsy

05/26/2017, 8:08 PM
thanks, i'll read up on if this could be a trademark conflict
c

cedric

05/26/2017, 8:09 PM
Oracle has successfully taken down many companies/websites/organizations/projects with "Java" in them (and Sun before them. The first casualty I remember was Javapolis)
j

j_kapp

05/27/2017, 8:18 AM
It is good practice not to put the name of a technology in your product or company name anyway in case the technology changes. My previous employer has an application with "Web" in the title because they started it as a web app but then changed to a desktop app but it is difficult to change the name of a product after it has been established.