Erik McCue writes about Java, Clojure, and PostgreSQL, plus programming practice such as logging and error handling.
HN links his 'Just use Postgres' post as a default advice, and his Clojure web primer. Commenters also cite his posts on modern Java.
sealed interface Shape
{}
record Square(int x) implements Shape
{}
record Rectangle(int l, int w) implements Shape
{}
record Circle(int r) implements Shape
{}
double getArea(Shape s)
{
// Exhaustively checks for all alternatives.
return switch (s)
{
case Square(var x) -> x * x;
case Rectangle(var l, var w) -> l * w;
case Circle(var r) -> Math.PI * r * r;
}
}
This is a good article: https://mccue.dev/pages/11-1-21-smuggling-checked-exceptions
A similar post, also mentioning protocols and integrant, was posted here a few days ago and may also interest some:
https://mccue.dev/pages/12-7-22-clojure-web-primer
If you haven’t got a really good reason just https://boringtechnology.club/ and https://mccue.dev/pages/8-16-24-just-use-postgres