VSHN.timer #122: Modern Code
Welcome to 2022 and to another VSHN.timer! Every Monday, 5 links related to Kubernetes, OpenShift, CI / CD, and DevOps; all stuff coming out of our own chat system, making us think, laugh, or simply work better.
This week we’re going to start the new year talking about Go, Java 17, API design in Rust, good old C… and esoteric Python.
1. Remember Design Patterns? Visitors, Observers, Singletons, Factories… They used to be all the rage 25 years ago. These days we don’t talk about them that much, but it is interesting to see them projected in our Cloud Native world. Here’s an article showing sample implementations in Go (which will soon get generics) and with references to Kubernetes.
https://aly.arriqaaq.com/golang-design-patterns/
2. Java got a lot of heat in the last weeks due to the log4j vulnerability… but Java 17 (an LTS version!) was released last September with lots of interesting new features. Our friends at Red Hat take us on a trip to explore new Java 17 features using Quarkus, the supersonic subatomic framework for Cloud Native apps.
https://developers.redhat.com/articles/2021/12/14/explore-java-17-language-features-quarkus
3. Rust recently become the second language officially supported in the Linux Kernel and its importance is growing every day. But its type system can be daunting to new developers, and this is where this brilliant presentation by Will Crichton shines, showing the step-by-step construction of a simple API using traits and other Rust mechanisms.
https://www.youtube.com/watch?v=bnnacleqg6k
4. As I write these lines, we’re going through an oddly warm winter here in Zürich. Another sign that we must react fast and start choosing programming languages according to their efficiency. Unsurprisingly, C leads the pack of the most efficient programming languages, with Rust and Go close behind. On the other hand, Ruby, Perl, JavaScript, and Python are on the opposite side of the list. Ouch.
https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
5. The VSHN.timer project of the week is Folders.py, an esoteric programming language that uses… folders instead of written code. Because Turing machines can be found in the most unusual places.
https://github.com/SinaKhalili/Folders.py
What programming language are you using for your microservices? Do you know other “esoteric” programming languages? Would you like to share your tips and tricks with the community? Get in touch with us, and see you next week for another edition of VSHN.timer.
PS: would you like to receive VSHN.timer every Monday in your inbox? Sign up for our weekly VSHN.timer newsletter.
PS2: do you prefer reading VSHN.timer in your favorite RSS reader? Subscribe to this feed.
PS3: check out our previous VSHN.timer editions about programming: #18, #30, #33, #47, #50, #60, #77, #88, #101, and #103.