sebastiandaschner blog
Coding Session — 99 bottles of beer
thursday, november 25, 2021I’ve been asked to record some coding sessions, in order to show my setup, what tools and shortcuts I use, and maybe to give a bit of inspiration. In the following video, I’ll code the song “99 bottles of beer” in Java:
For the exercise, we’re going to write a Java method that emits the following “99 bottles of beer” song as array, with each line as array element:
99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall. 98 bottles of beer on the wall, 98 bottles of beer. Take one down and pass it around, 97 bottles of beer on the wall. [...] 2 bottles of beer on the wall, 2 bottles of beer. Take one down and pass it around, 1 bottle of beer on the wall. 1 bottle of beer on the wall, 1 bottle of beer. Take one down and pass it around, no more bottles of beer on the wall. No more bottles of beer on the wall, no more bottles of beer. Go to the store and buy some more, 99 bottles of beer on the wall.
In the video, I’ll show my usual setup with the following tools:
-
Vim, as general swiss army knife
-
IntelliJ IDEA, for Java programming
-
Maven 3.6.3
-
OpenJ9 JDK 16
-
i3 Window Manager, on Arch Linux
-
key-mon
, for the keyboard live display
Found the post useful? Then you might enjoy my Developer Productivity Masterclass.