{"by":"javafactory","descendants":27,"id":44040301,"kids":[44043776,44041446,44041632,44042359,44042025,44044433,44050110,44050102,44040879],"score":44,"text":"Hi HN,<p>I built a code generator plugin for IntelliJ that uses LLMs to create repetitive Java code like implementations, tests, and fixtures — based on custom natural-language patterns and annotation-based references.<p>Most tools like Copilot or Cursor aim to be general, but fail to produce code that actually fits a project structure or passes tests.<p>So I made something more explicit: define patterns + reference scope, and generate code consistently.<p>In this demo, 400 lines of Java were generated in 20 seconds — and all tests passed:\n <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ReBCXKOpW3M\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ReBCXKOpW3M</a><p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;JavaFactoryPluginDev&#x2F;javafactory-plugin\">https:&#x2F;&#x2F;github.com&#x2F;JavaFactoryPluginDev&#x2F;javafactory-plugin</a>","time":1747740585,"title":"Show HN: JavaFactory – IntelliJ plugin to generate Java code","type":"story","url":"https://github.com/JavaFactoryPluginDev/javafactory-plugin"}