Live data from Hacker News

Show HN: Spaghettify – A VSCode Extension to make your code worse with AI

spaghettify.dev

31–40 of 70 posts

Re: Show HN: Spaghettify – A VSCode Extension to make your code worse with AI

#32

Am I the only one that found the more explicitly named definition way easier to read? Sure the definition name was too large, but the inner variables were great.

I read that feature on the list and immediately thought "I bet that improves more code than it harms"

Re: Show HN: Spaghettify – A VSCode Extension to make your code worse with AI

#33

What (presumably!) was built as a joke will actually help me a lot. For my side-project (devscreen.io) we have to make lots of realistic coding tests and pull requests with bugs in them for candidates to work on as part of a technical interview. It's actually more time consuming than you'd think to intentionally insert bugs into code in a way that isn't super obvious, so thank you!

I think use cases like this are the right ones for generated code from language models. I'm pretty sure the vast majority of training data is more buggy than not and literally writing the code is only half of what it takes. The other half is comprehension of the problem it solves which is usually missing from documentation at the level of mere snippets.

Take something perfect and internetlify it. It was basically trained on exactly that data.

Re: Show HN: Spaghettify – A VSCode Extension to make your code worse with AI

#34

Awesome. Evil ideas for improvements. Random typos in class name, function names, comments, such as: inheritance -> enheritance class -> clas cannot -> cannont Pick related words: person -> user, account, customer Random swapping plural/singular users -> user Append "Class" to classnames. example: User -> UsersClass Insert rant comments about, politics, religion, profanity.

Don't forget homonyms:

   InActive (not active)

   inActive (in the Active list)

Re: Show HN: Spaghettify – A VSCode Extension to make your code worse with AI

#37
post #5

Add irrelevant comments has real world use for some students who are required to comment all of their code when submitting their work.

I’ve been trying to push students in the direction of fewer, better comments but it is a lonely hill to die on.
Post reply on HN