<@U5JTJQW06> i made a web-framework for java/kotli...
# getting-started
t
@ice32 i made a web-framework for java/kotlin inspired by express.js: https://javalin.io/documentation
๐Ÿ‘ 1
i
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
๐Ÿ™‚
i just finished the framework + docs this week, so please let me know if you find any errors
i
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
it's common to include your own logger in java, just add this as a dependency
Copy code
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.13</version>
</dependency>
i
oh... ๐Ÿ˜„ thanks
t
SLF4J's default warning isn't very helpful, i'll add a better one
@ice32 is this more helpful?
Copy code
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
@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
Yeah, that language is a lot more helpful
t
@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
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
okay, so io.javalin would be fine, if not for oracle being oracle
c
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
thanks, i'll read up on if this could be a trademark conflict
c
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
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.