News for hackers. Stuff that matters.
Re:Swing primer by rubyn00bie on Sunday February 14, 2021 @12:40PM (#26134305)
And here... I was so stoked "finally, I'm going to get a modern primer on creating GUIs with Swing." Might be nice to add something in the title that this is about dance and not creating GUIs.
Re:Swing primer by twic on Sunday February 14, 2021 @03:26PM (#26135931)
There's also an article 'Distribution of JVM Desktop Applications' on the front page, so between that and this, i thought there was some kind of Swing revival going on.
Re:Swing primer by ncann on Sunday February 14, 2021 @04:04PM (#26136260)
It's funny I had the exact same thought before opening the link, "Weird, a Swing article on the front page of HN? The same Swing that was causing me sadness every time I tried to figure out why a component was expanding/not expanding like I wanted to?"
Re:Swing primer by josephg on Sunday February 14, 2021 @03:12PM (#26135807)
I was expecting it to be about dance, but it’s actually about swing music (and jazz, and other musical styles following that tradition).
Re:Swing primer by legerdemain on Sunday February 14, 2021 @11:32PM (#26139121)
Swing has been the bane of my existence. At a previous company, we kept an entire team of un-fireable people who maintained the Java Swing client of our ancient desktop application. The code was littered with comments prophesying doom for anyone who would dare touch it. There were multiple magical invocations of static functions that did "initialization." The code had to compile under Java 6.

When I left that company, one of the places I interviewed was Liftoff. They asked what language I wanted for the pair-programming session. I chose Java.

They asked me to implement Tetris in Swing.

Re:Swing primer by ganafagol on Wednesday February 17, 2021 @04:44AM (#26164563)
Did you read the Java code with as much attention as the article you commented on?

This article has 0 to do with Java.

Re:Swing primer by ocdnix on Sunday February 14, 2021 @02:30PM (#26135393)
How do 32 and 64ths look if you swing on 16ths? Do they end up on a sine-like interpolated curve of sorts, or do changes in velocity happen instantaneously like a square wave?
Re:Swing primer by ganafagol on Wednesday February 17, 2021 @04:45AM (#26164579)
It gets blurry beyond the first swingified level. Most common is binary subdivisions ( meaning that your 1/3rds become 1/6ths), but if the swing is slow enough, another layer of 1/3rds is possible too, making 1/9ths effectively.
Re:Swing primer by alexilliamson on Sunday February 14, 2021 @11:18AM (#26133568)
Ken Burns Jazz Series has essentially an entire episode on the concept of swing. Definitely worth watching.
Re:Swing primer by fnord77 on Sunday February 14, 2021 @11:23AM (#26133609)
I found this interesting as though not a musician I studied percussion for several years and used to enjoy swing dancing.

a bit more here:

https://viva.pressbooks.pub/openmusictheory/chapter/swing-rh...

Re:Swing primer by splittingTimes on Sunday February 14, 2021 @06:01PM (#26137127)
If you look for a non-technical approach to explain the difference between swinging and non-swinging music, I found this guide very helpful:

https://www.uptownswing.net/swing