{"by":"jmilldotdev","descendants":67,"id":34740529,"kids":[34742227,34742003,34742512,34741626,34742569,34741313,34741853,34741527,34740920,34753328,34741273,34744387,34743031,34743634,34741379,34743846,34741326,34741797,34746285,34742159,34744068,34764440,34743790,34743368,34741606,34742155,34743512,34742008,34743551,34743203,34742822,34742500,34743339,34742757,34743089,34742920,34761253,34741160],"score":323,"text":"Recently, I saw Github Next Code Brushes (<a href=\"https:&#x2F;&#x2F;githubnext.com&#x2F;projects&#x2F;code-brushes\" rel=\"nofollow\">https:&#x2F;&#x2F;githubnext.com&#x2F;projects&#x2F;code-brushes</a>) which is a VSCode extension that can use AI to do things like make your code more readable, add types, etc.<p>This inspired me: what if there was an extension that could use AI to make your code worse as well?<p>Meet Spaghettify. An extension I developed that can do things like:<p>- Obscure your code<p>- Introduce a bug<p>- Make the variable names way too descriptive<p>- Use nonsymmetrical whitespace<p>- Add irrelevant&#x2F;rambling comments<p>- Document the code with emoji<p>- Document the code in any style (Dirty Limerick, Fast Talkin&#x27; 1930s Gangster)<p>I built this extension over the last couple of days and released it in collaboration with BCAD.one. It&#x27;s available on the VSCode Marketplace, you will need an OpenAI API Key to use it. You can grab it here:<p>(<a href=\"https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=BCAD.spaghettify\" rel=\"nofollow\">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=BCAD.spa...</a>)<p>Code here:<p><a href=\"https:&#x2F;&#x2F;github.com&#x2F;BeforeCutieAfterDoggo&#x2F;spaghettify\">https:&#x2F;&#x2F;github.com&#x2F;BeforeCutieAfterDoggo&#x2F;spaghettify</a>","time":1676041420,"title":"Show HN: Spaghettify – A VSCode Extension to make your code worse with AI","type":"story","url":"https://www.spaghettify.dev/"}