191 Followers
77 Following
1.5K Posts
Old dev yelling at the cloud
we are onAboriginal land
fave fishluderick
fave musicweird swedish squeaking
plays too mushIngress
Amazing that I used to scramble down this cliff and go fishing and not die. Many others have died here. Very lucky to have had ancestors and old people to look after me while doing so and teach me the ways. Old rockhopper tip, remixed: the sea is like Hulk. It’s ALWAYS angry. You are only temporarily not shark bait and the sea is sneaky wants to keep those bastards well fed.
Yeah go to hell, Origin
Cool, cool. (See text near top)
On the plus side I bloody nailed my look at the insanely awesome Fever Ray show at the opera house the other night
Germany has done me in. BRB reverting to previous personality
Think I’m gonna get significantly fat in #Gdańsk . Wild boar “hunter’s” pierogies. Delicious as. Good thing it’s also a good place to play #ingress!
#ingress: I can stop any time
Over my dead body, Apple, I don’t care how much you say you encrypt it. I’ll do my whinging on Mastodon thx

Java's Swing API is from the ancient days before generics, enums, lambdas and good fluent APIs. This alone probably bears more responsibility for haters' pathological obsession with verbosity than anything else. That is how it was in the 90s. There was nothing better. In that respect it's actually pretty good. You could write cross-platform apps with cross-platform GUIs, that alone was revolutionary.

However. These days when I use Swing I find myself invariably wrapping things up in modern niceties so that resulting code looks something like this in IntelliJ.

The little builders and stuff I created to do this don't cover all the Swing APIs however, just what I happen to be using here. Because Swing is a typical 90s style inheritance fortress, it's a bit hard to wrap things in builders without either a lot of duplication or making more inheritance. Default methods in interfaces help a bit by making mixins possible.

Anyway this is a lot more readable than the old style.

I'm still giggling at this