惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Music and Code Ask the Same Thing of Me
Viktor Lázár · 2026-05-17 · via DEV Community

I have had this feeling for a long time: music, and especially composition, is much closer to software development than we usually admit.

The obvious explanation is mathematics. That part is true, of course, but it is also the easiest place to stop: music has numbers behind it, code has numbers behind it, so the two must be related.

I think that is true, but I also think it is the least interesting version of the truth.

The deeper connection, for me, is not mathematics. It is the feeling of parts trying to find their place.

When I write music, I rarely feel like I am simply inventing a song from nothing. It feels more like different pieces slowly reveal what they want to be in relation to each other. A motif begins as a small gesture. A chord progression may feel important for a while, then turn out to be only a passage. A melody can work on its own and still not belong in the center. The song keeps asking where each thing should live.

I feel almost the same thing when I write code.

A module begins as a piece of behavior. A function does not yet know where it belongs. An API has not found its natural shape. Sometimes something works technically, but it has not found its role. It is inside the system, but it does not sit there well. Like an instrument playing the right notes in the wrong place.

One of the most beautiful moments in composition is when a part finally lands where it belongs. Not because it became louder, or more complex, or more impressive. Because suddenly it becomes clear why it is there. The song does not merely contain it. The song needs it. The part is not decoration, not a clever idea, not a little display of skill. It has a role.

The same thing happens in good software.

What impresses me in a beautiful system is not that it contains many things. It is that everything has a reason to be there, and the parts are not fighting each other. Names clarify instead of merely labeling. Boundaries feel calm. The system starts to feel proportionate from the inside.

That sense of proportion is why beautiful code feels musical to me.

I do not mean that only as a metaphor. There really is such a thing as rhythm in a piece of code. There is breath. There is tension and release. Sometimes a refactor feels exactly like removing an unnecessary voice from a song: the result is not poorer, but clearer. Sometimes an abstraction behaves like a good variation on a theme. It does not hide the original idea. It reveals that the same form has been working in more than one place.

And there is code that works, but feels musically false.

It is not necessarily buggy, or slow, or even badly written according to any objective checklist. But something is off. The emphasis is in the wrong place. One part asks for too much attention while another has no room to breathe. The system is full of decisions that can each be justified in isolation, but together they do not sound right.

This is hard to explain to someone who sees programming only as the production of solutions. In the same way, it is hard to explain why a piece of music is not good merely because every note is "correct." Correctness is the price of entry. The real work begins when something already functions, but is not yet true. When the song can be played, but does not yet say what it is supposed to say. When the code runs, but has not yet found the form in which I can leave it alone.

I think composition and software development demand the same kind of care from me.

They ask for a kind of attention that is not satisfied by the fact that something exists. I keep asking whether it exists in the right place, whether it is speaking in the right voice, whether it leaves enough room around itself. And underneath all of that, I am asking whether the whole thing is actually moving somewhere.

This is why music and code do not feel like separate worlds to me. They feel like two different materials for the same inner work. One uses sound. The other uses running systems. One unfolds through time. The other unfolds through use. But in both, I have to listen for structure, remove what does not belong, and wait for the moment when the form begins to look back at me.

Maybe this is why bad code can hurt so much.

Not only because it is hard to work with. Because I can hear the missed music inside it. I can hear that it could be cleaner, quieter, more generous to the next person who has to enter it and keep thinking.

And maybe this is why a good system can be so joyful.

Because it is not only useful. It is not only clever. There is a beauty in it that does not come from decoration, but from the fact that its parts finally understand why they are together.

I think this is why I keep returning to both. In music and in software, I am looking for the same moment: when many separate pieces stop being separate. When the parts begin to serve the same thought. When I no longer have to force the thing to hold together, because the structure has started to carry its own weight.

I wonder how many other people feel this.

How many developers are also musicians, somewhere? Maybe only after work, inside unfinished demos and songs that were never released. And how many of them found a home in software for exactly this reason: because the same compositional pleasure was waiting there, made from different material?

The more I think about it, the less this feels like a coincidence.

Something in them seems to come from the same place.

If you feel it too, I would love to know where music and code meet for you.