AI Commits

This CLI tool runs git diff to grab all your latest code changes, sends them to OpenAI’s GPT-3, then returns the AI generated commit message.

Fixing floating-point arithmetics with Kotlin

– https://blog.frankel.ch/fixing-floating-point-arithmetics-with-kotlin/ – https://www.linkedin.com/pulse/why-we-should-use-bigdecimal-instead-double-java-financial-ismail val a = 5.8.toBigDecimal() val b = 5.6.toBigDecimal() assertThat(a - b).isEqualTo(0.2.toBigDecimal()) or val a = BigDecimal("5.8") val b = BigDecimal("5.6") assertThat(a - b).isEqualTo(BigDecimal("0.2"))

Kotlin difference between Iterable and Sequence

https://kotlinlang.org/docs/sequences.html#sequence-processing-example

Running mc (midnight commander) under su on Mojave/Catalina/Big Sur/Monterey

https://apple.stackexchange.com/questions/340414/running-mc-midnight-commander-under-su-on-mojave-catalina-big-sur-monterey sudo dscl . -change /Users/root UserShell /bin/sh /bin/bash

Java Architecture for XML Binding

The Java™ Architecture for XML Binding (JAXB) provides an API and tools that automate the mapping between XML documents and Java objects.

JMESPath is a query language for JSON

JMESPath is a query language for JSON

WireMock – a web service test double for all occasions

WireMock is an HTTP mock server. At its core it is web server that can be primed to serve canned responses to particular requests (stubbing) and that captures incoming requests so that they can be checked later (verification). It also has an assortment of other useful features including record/playback of interactions with other APIs, injection ...

Design Patterns: Kotlin examples

Creational: – Abstract Factory – Builder – Factory, Static Factory Structural: – Adapter – Decorator – Facade Behavioral: – Command – Mediator – Strategy – Template

Hexagonal Architecture, there are always two sides to every story

Hexagonal Architecture, there are always two sides to every story

Clean Code with Kotlin

Clean Code with Kotlin Readability beats Squeezing everything into a single line.