ktfmt
javalin.github.io
Our great sponsors
ktfmt | javalin.github.io | |
---|---|---|
9 | 27 | |
816 | 35 | |
3.7% | - | |
8.4 | 8.2 | |
1 day ago | 14 days ago | |
Kotlin | HTML | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ktfmt
-
Pre-push Hooks
The script below will run ktfmt over a Kotlin codebase and fail the push if any of the files are not well-formatted. It does also use a custom Gradle plugin we built around ktfmt, which accepts a --run-over change set. This script will leave the fixed formatting changes in the tree, awaiting the developer to intervene, commit, and try again.
- Ktfmt – The Kotlin Code Formatter
-
Google's Kotlin Style Guide vs Kotlin Official Code Style
My team uses ktfmt. It is more aggressive and opinionated about formatting than ktlint, which we view as a good thing.
-
What are the good code formatters for Kotlin?
I can recommend ktfmt. It is based on the fast Google Java Formatter and produces deterministic formatting. Plugins for Maven, Gradle and IntelliJ are available.
-
A friend took a look at my code and asked if I needed mental help. Is he right? What are your thoughts?
The only sane formatting tool for Kotlin is ktfmt. https://github.com/facebook/ktfmt
- From zero to 10M lines of Kotlin
-
A few Kotlin questions from a Rustacean
Others have covered most of your questions, but since you asked about linters: if you want a highly opinionated formatter in the spirit of gofmt or google-java-format, you can check out ktfmt.
-
Diktat 1.0.0 released
Facebook's ktfmt (https://github.com/facebookincubator/ktfmt) does that.
javalin.github.io
- Java EE or Python Django?
- Javalin – a simple web framework for Java and Kotlin
- Spark – A web micro framework for Java and Kotlin
- Javalin: A simple web framework for Java and Kotlin
-
Show HN: Zero-dependency Java framework out of beta
The size statistics page is super cool: https://github.com/byronka/minum/blob/master/docs/size_compa...
Reasoning this way about software and dependencies more often seems like a good thing, just so we're aware of what we're actually getting into, especially with projects that use npm.
I actually hadn't heard of Javalin before, which also seems nice: https://javalin.io/
Aside from that, I've also had good experiences with Dropwizard - which is way simpler than Spring Boot but at the same time uses a bunch of idiomatic packages (like Jetty, Jersey, Jackson, Logback and so on): https://www.dropwizard.io/en/stable/
I do wonder whether Minum would ever end up on the TechEmpower benchmarks and how it'd stack up against the other libraries/frameworks there, those benchmarks are pretty interesting.
- Java 21 Released
-
Helidon Níma is the first Java microservices framework based on virtual threads
Counter-example: https://javalin.io/ uses Servlets, and seems to be doing quite fine without annotations.
-
Full Time
Yes, and it was not that well designed to be honest... the successor is quite a lot nicer and it's called Javalin[1].
Same philosophy but just got things right where Spark, being the "first" (in the Java world, using the design inherited by Sinatra[2]) had a few design issues.
[1] https://javalin.io/
[2] https://sinatrarb.com/
- Show HN: Java REST without annotations, DI nor reactive streams
-
Is it just me, or does the Spring Framework lead to hard-to-maintain code and confusion with annotations?
I strongly advocate frameworks like https://javalin.io/ and Jooq (https://www.jooq.org/) if you are going to start a new project in Java.
What are some alternatives?
diktat - Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM
KotlinLanguageServer - Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
minum - A minimalist Java web framework built from scratch
Anki-Android - AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
Jetty - Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
editorconfig-vim - EditorConfig plugin for Vim
jbang - Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
kotlinter-gradle - Painless, fast ktlint plugin for Gradle
undertow-examples
galoisenne - 🕸️ Graphs, finite fields and discrete dynamical systems in Kotlin