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.

“Just-in-time code generation” the coolest language feature you never heard of

17 pointsby mckinneyover 5 years ago

2 comments

staticjakover 5 years ago
This reminds me of AspectJ in that its a language extension with many similar features (extension methods etc). As useful as those features were, the syntactic sugar you get is confusing to new contributors to a project.<p>Here&#x27;s a scenario thats played out. In the extension methods example on the Manifold README, it&#x27;s highlighted that you can add your own methods to Java types. If any dev saw this in the project and they were unaware of manifold, it wouldn&#x27;t be immediately clear what enables the addition of methods to the Java String type. They would figure it out eventually by either investigating or by debugging. These features blur the lines between programming language and framework.<p>Where I get weary about adding a dependency is when I see documentation with ~100 line boilerplate examples peppered with terms I&#x27;ve never heard before. Just because you use the word simple when describing something complex does not make it so.
评论 #21416591 未加载
评论 #21422603 未加载
twundeover 5 years ago
This seems to be one of the ideas that just comes up again and again in the Java community. While it has its uses, it comes with a free downsides. The biggest is that debugging becomes very difficult, especially as the code becomes complex. Imagine building it a framework with a subtle is bug and your newest junior engineer struggling with it.
评论 #21415530 未加载