About that Kotlin notion #134
Replies: 3 comments
-
I've attempted to do the Advent of Code challenges as a way to improve my development abilities and stay up to date with modern implementation approaches. As part of this I have attempted to embrace functional programming (and latest Java 21 features) as much as possible and must admit to really liking it. Areas where I know diozero needs to improve includes:
I've always thought that I should tackle some Advent of Code stuff in Kotlin as well as building more Kotlin based diozero apps so that I can see further areas for improvement. Always open for suggestions and feedback. |
Beta Was this translation helpful? Give feedback.
-
One of my embrasures of Kotlin really is a lot of the functional aspect -- and it's quite amusing to see Java attempting to embrace (sometimes awkwardly?) a lot of what Kotlin has been doing for a while. But, nevertheless,...
More thoughts later... |
Beta Was this translation helpful? Give feedback.
-
I just got the 1.4.1 updates and I'm a little confused about a couple of things with the OLED devices (one of which I will likely be adjusting):
|
Beta Was this translation helpful? Give feedback.
-
A project goal, as stated in the description, is to utilize functional aspects as a design pattern. Kotlin is pretty much there and actually adds very little overhead in terms of library requirements (most of it is to set up the Kotlin compiler, which is not used in applications or libraries).
Other things to consider (the things I really like):
null
-safetyMost of my kobots repo is a bit of a mess, but the "utilities" sub-project is where I'm trying to get serious and has the latest "dev" code (
adhoc
is where I "live test" and boy do I really like thatGRPC
provider!!!!!).I would be interesting to see what a whole-hog conversion would look like (Intellij's IDEA will do it for you), but I don't know if that would actually be useful or not. Possibly starting a separate sub-project1 where new stuff (and slowly migrated items) could live with the Kotlin compiler. That would prevent
wholesale destruction"downstream issues" for users of the libraries.1 I won't get into the Maven vs Gradle stuff. 😈
Beta Was this translation helpful? Give feedback.
All reactions