VSHN.timer

VSHN.timer #77: Write That Code

25. Jan 2021

Welcome 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 talk about all those little things that make writing code more efficient, fast, and fun.

1. It might seem pedantic to non-technical folks, but shaving those extra milliseconds in tasks you do every day, well, it all adds up. Take, for example, the startup time of your favorite shell. Developers launch new terminals all the time, maybe on a tab in iTerm2Windows Terminal, or tmux, and if it takes a bit more than… 100 milliseconds, we go crazy. If you are a Bash user, you will enjoy these guidelines to make your command line appear so fast you won’t believe it.

https://work.lisk.in/2020/11/20/even-faster-bash-startup.html

2. And what do you run in those Bash sessions? Command-line programs, of course. Maybe you have even written some for your own personal use, and then shared some of those on GitHub. In those cases, you might want to read the Command Line Interface Guidelines, a useful (and beautiful!) set of best practices for such applications, including sections about error reporting, arguments, environment variables, and so much more.

https://clig.dev/

3. No matter which editor you spend your life on (Visual Studio CodeVimJoe’s, and Emacs are favorites among VSHNeers) you will want to have a nice font for your text, one that is readable in many different sizes, helping you spot errors faster, before you commit that code or hit the deployment button. But there are so many of them! Enter Dev Fonts, a comparison website showing the most common ones, so that you can find your personal choice (disclaimer: my favorite it’s JetBrains Mono).

https://devfonts.gafi.dev/

4. Is it us, or somehow TOML is becoming quite popular lately? We are seeing it more and more as a configuration language of choice in many projects, starting with Hugo, for example. In any case it is great news to see it hit version 1.0 after almost eight years of development!

https://github.com/toml-lang/toml/releases/tag/1.0.0

5. The tool of the week is lightkube, a lightweight Python wrapper around the Kubernetes API. Still a work in development, but one combining two of the most used technologies in VSHN!

https://github.com/gtsystem/lightkube

Have you written and shared any command-line utilities? What is your favorite coding font? Do you have any terminal tips to share with the community? Get in touch with us through the form at the bottom of this page, 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: would you like to watch VSHN.timer on YouTube? Subscribe to our channel vshn.tv and give a „thumbs up“ to our videos.

PS3: check out our previous VSHN.timer editions about code and programming: #18#30#33#47#50, and #60.

Adrian Kosmaczewski

Adrian Kosmaczewski ist bei VSHN für den Bereich Developer Relations zuständig. Er ist seit 1996 Software-Entwickler, Trainer und veröffentlichter Autor. Adrian hat einen Master in Informationstechnologie von der Universität Liverpool.

Kontaktiere uns

Unser Expertenteam steht für dich bereit. Im Notfall auch 24/7.

Kontakt