About Diani
I’m a software engineer with a deep love for classical music. For as long as I can remember, the precision, beauty, and discipline of great music have shaped the way I think and work. Whether I’m writing code or listening to Bach, I’m drawn to structure, clarity, and excellence.
Over the years, I’ve collected a large library of music recordings and performance videos. This website is my personal space to organize, preserve, and share those treasures with friends who appreciate the same art. You’ll find selections that inspire me, performances that moved me, and pieces that remind me why classical music remains timeless.
At the end of the day, this is simply a place where good music and good craftsmanship come together. I hope you enjoy exploring it as much as I enjoy building it.
J. S. Bach — The Original Full-Stack Engineer of Music
Johann Sebastian Bach (1685–1750) wasn't just a composer; he was basically the human version of a perfectly structured codebase. While everyone else in the Baroque era was improvising spaghetti-code melodies, Bach showed up and said, "Let's implement some architecture, people."
Bach's masterpieces — from the Brandenburg Concertos to the Well-Tempered Clavier — aren't just beautiful; they're beautifully engineered. A fugue is basically recursive programming set to sound. Voices enter like well-behaved threads, execute their logic, and resolve without deadlocks. If only modern software worked that cleanly.
When developers talk about "clean code," they don't know it, but they're chasing Bach:
modular, reusable musical components, zero bugs, infinite scalability.
He even did version control—every variation in the Goldberg Variations is Bach doing a formal code refactor, proving the man invented Git before electricity.
So if you've ever listened to Bach, know this: Bach didn't just write music. He wrote algorithms that happened to sound divine.
碼農愛音樂怎麼可以不愛J.S. 巴赫!
Godel, Escher, Bach: An Eternal Golden Braid
Written by Douglas R Hofstadter, Godel, Escher, Bach: An Eternal Golden Braid is an intellectual treatise on the ways by which thinking and cognitive abilities emerge from logical constructions.
The book explores the common topics that are encountered by exploring the lives of three famous personalities, namely Kurt Godel, Johann Sebastian Bach and Maurits C Escher.
碼農愛音樂的最高目標就是讀懂這本奇書了。
音樂可以用代碼來表示嗎? 有好事者用JS寫了Pachelbel's Canon in D
(function canon() {
const audio = new AudioContext();
let t = 0;
let i = 0;
const pattern = 'l43l431db98643o86ogfdbdfdgfdzbdzgigikigfdbzbdv98db9864311480';
while (true) {
const n = parseInt(pattern[i++], 36);
if (!n) break;
const oscillator = audio.createOscillator();
const q = 6 / 13;
//oscillator.type = "square";
oscillator.frequency.value = 880 * 2 ** (-(n - 1) % 20 / 12);
oscillator.connect(audio.destination);
oscillator.start(t);
if (i > 56) {
oscillator.stop(t + q * 8);
} else {
t += n > 20 ? q : q / 2;
oscillator.stop(t);
}
}
})();