TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What makes a piece of code enjoyable to read?

3 pointsby whytheplatypusover 5 years ago
We spend so much of our time reading code - it&#x27;s inescapable. I&#x27;ve become very interested in that experience and that aspect of software creation. In an initial attempt to figure out the right questions to ask, and maybe gain some answers, I&#x27;m hoping you&#x27;ll share your experience.<p>What makes a piece of code miserable to read?<p>What makes a piece of code enjoyable to read?<p>How much of your time is spent reading code?

1 comment

ArtWombover 5 years ago
When the natural, human-readable language of the API. Is mirrored in the actual variable names and methods of the underlying source.<p>I just happened to be scanning TensorflowJS and MagentaJS when I saw your post so I&#x27;ll single them out (and I understand Jeff Dean himself is an active contributor).<p>Trying to understand how they implement arbitrary neural style transfer (and how it can be further tweaked). It&#x27;s all quite clear. Not just the math. But the comments are chock full of references to academic papers, blog posts, etc ;)
评论 #21917095 未加载