17 karma · joined Jan 25, 2016 (10y ago) · 14 submissions
2.
Spec-Driven Development: The New Waterfall(medium.com ↗)
3 points · by tarkaTheRotter · 3mo ago · discuss
4.
Maven Central (finally imposes) Publishing Limits(central.sonatype.org ↗)
2 points · by tarkaTheRotter · 5mo ago · 3 comments
comment 1y ago · link · parent
There are existing solutions around, but do miss out a bunch of things that are blatantly missing in the space:
- workflow visualisations (this is already working - you can see an example of workflow relationship and breakdowns on a non-trivial example at https://github.com/http4k/http4k/tree/master/.github/typeflo...);
- running workflows through an event simulator so you can tell cause and effect when it comes to what triggers what. Testing workflows anyone? :)
- security testing on workflows - to avoid the many footguns that there are in GHA around secrets etc;
- compliance tests around permitted Action versions;
- publishing of reusable repository files as binary dependencies that can be upgraded and compiled into your projects - including not just GHA actions and workflows but also things like version files, composable Copilot/Claude/Cursor instruction files;
- GitLab, CircleCI, Bitbucket, Azure DevOps support using the same approach and in multiple languages;
Early days yet, but am planning to make it free for OSS and paid for commercial users. I'm also dogfooding it on one of my other open source projects so to make sure that it can handle non-trivial cases. Lots to do - and hopefully it will be valuable enough for commercial companies to pay for!
Wish me luck!
comment 1y ago · link · parent
Could I possibly ask you to reply with the model of your phone so can make sure it works ok after have fixed?
comment 1y ago · link · parent
- workflow visualisations (this is already working - you can see an example of workflow relationship and breakdowns on a non-trivial example at https://github.com/http4k/http4k/tree/master/.github/typeflo...);
- running workflows through an event simulator so you can tell cause and effect when it comes to what triggers what; - security testing on workflows - to avoid the many footguns that there are in GHA around secrets etc;
- compliance tests around permitted Action versions;
- publishing of reusable repository files as binary dependencies that can be upgraded and compiled into your projects - including not just GHA actions and workflows but also things like version files, composable Copilot/Claude/Cursor instruction files;
- GitLab, CircleCI, Bitbucket, Azure DevOps support using the same approach and in multiple languages;
Lots to do - and hopefully it will be valuable enough for commercial companies to pay for!
:)
comment 4y ago · link · parent
The SaaF design was used to design Finagle (Scala), and then it inspired http4k (Kotlin). There may be more that I'm not aware of. These libraries are often described as micro-frameworks - but this is misleading - it is only because the core is very small and can be easily extended by bolt-on modules.
9.
Why are Java server-side developers not adopting Kotlin?(medium.com ↗)
4 points · by tarkaTheRotter · 5y ago · 1 comment
comment 9y ago · link · parent
There are various things I'd like to add - simple plugin modules for metrics (dropwizard or prometheus), security (probably pac4j) and typesafe session support (via lenses) are in there. A sane websocket api seems to be a popular request so we'll also probably look at that.
Async would probably be via coroutines as that seems to be the nicest option API-wise. If it did work out well then we could probably backport it and piggyback the sync api on top.
The serverless stuff is interesting as well, although that's more around the deployment tooling at the moment - we'll see what happens if Google and MS get involved, or how the tooling develops for things like terraform.
Other than that - we'll happily accept suggestions! :)
comment 9y ago · link · parent
More seriously, we had a pretty good idea of how we wanted the main interfaces to look - the current HttpHandler and Filter file (https://github.com/http4k/http4k/blob/master/http4k-core/src...) file is only 19 lines long - so the actual implementation was pretty quick! :)
Previous to that, we started out with a 40 line Kotlin script which wrapped the API of an awesome Java framework called UtterlyIdle. However we soon wanted to begin using pure, idiomatic Kotlin, so eventually decided to start again and port what we needed. The simple routing API was also pretty easy, although the ability to infinitely nest routes in concert with the Filter system came later.
Timewise, we've been in prod with http4k since about March - here's the github contribution graph (https://github.com/http4k/http4k/graphs/contributors). A lot of the effort since has been for adding the various modules as we needed them - AWS request signing was interesting, as was adding Multipart support (ported from a Java implementation by @tiestvilee who you can witness being sarcastic further down this thread :).
Personally, the most complicated (ie. time-spent) bit to get right was probably the Lens API- there were several iterations of that until it was as clean, and we learned a lot about the language at the same time - for instance, that you can define extension methods on a Kotlin Object and then import them from that instance - thus allowing you to have different versions of the same extension method happily coexisting.
comment 9y ago · link · parent
As you might have guessed from the version number, http4k isn't actually that new - we've been using it in production with significant traffic (in the top 1000 globally according to alexa.com) since March so it's thoroughly battletested in the wild.
AMA.
13.
Show HN: Http4k: Server as a Function. In Kotlin. Typesafe. Without the Server(http4k.org ↗)
29 points · by tarkaTheRotter · 9y ago · 12 comments