[{"data":1,"prerenderedAt":450},["ShallowReactive",2],{"project-34740529":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":44,"post_text":46,"what":47,"said":82,"maker_in_thread":205,"shape":215,"grid":219,"attempts":413,"same_week":414,"maker_shows":39,"maker_hidden":442,"reader_version":443,"card":444},"34740529","Spaghettify","A VSCode Extension to make your code worse with AI","title","Show HN: Spaghettify – A VSCode Extension to make your code worse with AI","https:\u002F\u002Fwww.spaghettify.dev\u002F","spaghettify.dev","jmilldotdev",1676041420,2023,323,67,128,3109,5,"legend","dev_tools","code generator","desktop_app",[24,25,26,27],"vscode extension","ai code obfuscation","bad code generator","openai","curious",0.284,{"positive":31,"neutral":32,"mixed":33,"critical":34},18,26,0,4,48,{"idea":37,"docs":40,"design":42,"execution":43},{"positive":38,"critical":39},12,1,{"positive":41,"critical":33},2,{"positive":41,"critical":41},{"positive":39,"critical":33},[18,33,33,18,18,45,45,45,33,45,45,33,18,18,45,18,39,33,18,18,45,39,33,39,18,45,45,18,33,18,18,45,45,45,18,45,45,45,18,18],3,"Recently, I saw Github Next Code Brushes (https:\u002F\u002Fgithubnext.com\u002Fprojects\u002Fcode-brushes) which is a VSCode extension that can use AI to do things like make your code more readable, add types, etc.\n\nThis inspired me: what if there was an extension that could use AI to make your code worse as well?\n\nMeet Spaghettify. An extension I developed that can do things like:\n\n- Obscure your code\n\n- Introduce a bug\n\n- Make the variable names way too descriptive\n\n- Use nonsymmetrical whitespace\n\n- Add irrelevant\u002Frambling comments\n\n- Document the code with emoji\n\n- Document the code in any style (Dirty Limer",{"problem":48,"audience":54,"pricing":55,"motivation":59,"time_to_build":63,"stack":67,"openness":79,"stage":80,"team_size":81},{"value":49,"source":50,"evidence":51},"Makes code deliberately worse, e.g. obscured, buggy or badly documented","maker",[52],{"id":53},"post",null,{"value":56,"source":50,"evidence":57},"Requires user's own OpenAI API key",[58],{"id":53},{"value":60,"source":50,"evidence":61},"Inspired by GitHub Next Code Brushes, asking what if AI could make code worse",[62],{"id":53},{"value":64,"source":50,"evidence":65},"Built over the last couple of days",[66],{"id":53},[68,75],{"value":69,"source":70,"evidence":71},"TypeScript","inferred",[72],{"id":73,"by":11,"text":74},"34741677","Also, it's open source and all the prompts we use are in this file: https:\u002F\u002Fgithub.com\u002FBeforeCutieAfterDoggo\u002Fspaghettify\u002Fblob\u002Fmain\u002Fsrc\u002Fprompts.ts You can take these and play…",{"value":76,"source":50,"evidence":77},"OpenAI API",[78],{"id":53},"open_source","launched","unknown",{"praise":83,"objections":126,"requests":152,"questions":178,"alternatives":193},[84,100,119],{"value":85,"source":86,"evidence":87},"Useful for creating buggy code for technical interview tests","commenter",[88,92,96],{"id":89,"by":90,"text":91},"34742227","dmkirwan","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…",{"id":93,"by":94,"text":95},"34742159","alvis","I used to spend lots of time to prepare some coding tests that mimic real-world situations for candidates, like introducing a small bug to an example code or pretending I've bad…",{"id":97,"by":98,"text":99},"34743512","btrettel","I'm now realizing that AI could be quite useful for introducing bugs for mutation testing. I'm going to have to try that.",{"value":101,"source":86,"evidence":102},"Funny and entertaining concept",[103,107,111,115],{"id":104,"by":105,"text":106},"34740920","smoldesu","This is pretty amazing. I'm inspired to go write something similar now, that uses AI to pad out source code to exactly 80 characters per-line...",{"id":108,"by":109,"text":110},"34742155","thatxliner","This is a work of art",{"id":112,"by":113,"text":114},"34761253","dfrey1","This is amazing!!",{"id":116,"by":117,"text":118},"34741160","progx","Lol!",{"value":120,"source":86,"evidence":121},"Fast talkin' gangster documentation style is amusing",[122],{"id":123,"by":124,"text":125},"34741566","lelandfe","Wow, fast talkin' 1930s gangster documentation is pretty remarkable. >> Listen up, ya mugs! I'm gonna give ya the lowdown on dis here function, getSourceImage(). >> Dis baby is…",[127,134,141],{"value":128,"source":86,"evidence":129},"Obfuscation is too obvious",[130],{"id":131,"by":132,"text":133},"34741326","Mizza","The obfuscation is a little too obvious. The people need something which defends their job security but still passes code review.",{"value":135,"source":86,"evidence":136},"Animation wraps and shifts on mobile",[137],{"id":138,"by":139,"text":140},"34741797","dcow","The little animation at the top wraps when it gets to “Well Documented” on mobile. The whole page keeps shifting up and down. It’s really hard to read. Maybe it’s on purpose but…",{"value":142,"source":86,"evidence":143},"Output not better than the commenter's own code",[144,148],{"id":145,"by":146,"text":147},"34746285","cheapliquor","On one hand, funny. On the other, potentially useful for either teaching yourself or learning to read other people's code. Intentionally botching or skewing code and teaching…",{"id":149,"by":150,"text":151},"34742569","whatever1","It is not worse than my code. Better luck next time AI.",[153,164,171],{"value":154,"source":86,"evidence":155},"Add examples of input and output",[156,160],{"id":157,"by":158,"text":159},"34742757","oauea","Can you post some examples of input & output?",{"id":161,"by":162,"text":163},"34741626","throwawayben","Are there any examples to enjoy for my amusement without installing & setting up the extension? Edit: nevermind, just found the home page: https:\u002F\u002Fwww.spaghettify.dev\u002F",{"value":165,"source":86,"evidence":166},"Add wrong or misleading comments",[167],{"id":168,"by":169,"text":170},"34741527","fragmede","How creative! Did you consider adding wrong comments? Because those are the worst! like flip the logic from arithmetic to subtraction and then have the bot summarize that.",{"value":172,"source":86,"evidence":173},"Create tests that don't test anything",[174],{"id":175,"by":176,"text":177},"34743634","mystickphoenix","I'd love to see a feature that creates tests that don't actually test anything",[179,186],{"value":180,"source":86,"evidence":181},"What are the real-life uses?",[182],{"id":183,"by":184,"text":185},"34743089","ahmednazir","What is the real life uses of this project?",{"value":187,"source":86,"evidence":188},"Could the bugs be used as copy protection?",[189],{"id":190,"by":191,"text":192},"34743031","moremetadata","When you introduce a bug, is it a dumb random bug, or an intelligent AI bug? In other words, would the bug work for me or the user? When I say work for me, what I mean is,…",[194,198],{"value":195,"source":50,"evidence":196},"GitHub Next Code Brushes",[197],{"id":53},{"value":199,"source":86,"evidence":200},"Unmaintainable code guide",[201],{"id":202,"by":203,"text":204},"34744387","ChickenNugger","Two thoughts: * This is ridiculous. Why would you do this? Which made think of this quote: \"Which is ridiculous and unnecessary but when has that ever stopped programmers?\" from…",{"comments":206,"answered":34,"key":207},7,[208,211,212],{"id":209,"text":210},"34743160","Bugs-as-a-Service (BAAS)",{"id":73,"text":74},{"id":213,"text":214},"34741647","That's a really good one. Like the 'introduce bug' one, but just the comments are factually incorrect.",{"commenters":216,"max_depth":45,"maker_replies":206,"first_comment_mins":217,"lifespan_hours":218},59,28,50,[220,222,226,230,233,235,238,241,244,247,250,253,257,260,263,265,267,269,272,275,279,280,281,283,286,290,293,298,301,304,306,308,312,314,318,321,324,327,329,332,333,335,339,343,347,351,355,357,360,364,366,367,370,374,377,380,382,387,390,394,398,400,402,404,408,411],[89,33,18,221,90,33],"project\u002Fpositive\u002Fidea",[223,33,33,224,225,33],"34742396","other\u002Fneutral\u002Fnone","sublinear",[227,33,33,228,229,33],"34742480","commenter\u002Fneutral\u002Fnone","groestl",[231,33,33,224,232,33],"34743609","908B64B197",[209,33,33,234,11,39],"project\u002Fneutral\u002Fidea",[236,33,18,221,237,33],"34743541","yellow_lead",[239,39,18,221,240,33],"34742003","neoneye2",[242,39,45,234,243,33],"34742055","Gordonjcp",[245,39,45,234,246,33],"34742113","peterkos",[248,39,45,234,249,33],"34742352","RobotToaster",[251,39,45,234,252,33],"34742493","reaperducer",[254,39,45,255,256,33],"34743411","project\u002Fneutral\u002Fnone","kunalgupta",[258,39,45,255,259,33],"34744286","kvandy",[261,41,33,224,262,33],"34742512","debuggest",[161,45,45,264,162,33],"project\u002Fneutral\u002Fdocs",[73,45,33,266,11,39],"maker\u002Fneutral\u002Fdocs",[149,34,39,268,150,33],"project\u002Fcritical\u002Fnone",[270,18,18,221,271,33],"34741313","serpix",[273,18,33,224,274,33],"34742531","bee_rider",[276,277,18,221,278,33],"34741853",6,"what-no-tests",[168,206,45,234,169,33],[213,206,33,221,11,39],[104,282,18,221,105,33],8,[284,282,45,255,285,33],"34742056","JeanSebTr",[287,288,18,221,289,33],"34753328",9,"xaedes",[291,288,45,255,292,33],"34756703","iwasanewt",[294,295,45,296,297,33],"34741273",10,"project\u002Fneutral\u002Fdesign","dgan",[202,299,39,300,203,33],11,"project\u002Fcritical\u002Fidea",[302,299,33,224,303,33],"34749133","cratermoon",[190,38,45,305,191,33],"project\u002Fneutral\u002Fexecution",[175,307,18,221,176,33],13,[309,310,45,255,311,33],"34741379",14,"JonathanFly",[123,310,18,313,124,33],"project\u002Fpositive\u002Fdocs",[315,316,45,234,317,33],"34743846",15,"batch12",[131,319,39,320,132,33],16,"project\u002Fcritical\u002Fdesign",[322,319,45,234,323,33],"34741516","onemoresoop",[325,319,33,224,326,33],"34742436","foobiekr",[138,328,39,320,139,33],17,[330,328,33,331,11,39],"34741816","maker\u002Fneutral\u002Fdesign",[145,31,18,221,146,33],[93,334,18,221,94,33],19,[336,337,45,255,338,33],"34744068",20,"klyrs",[340,341,33,224,342,33],"34764440",21,"29athrowaway",[344,345,45,255,346,33],"34743790",22,"camel-cdr",[348,349,18,221,350,33],"34743368",23,"caust1c",[352,353,45,296,354,33],"34741606",24,"jackcviers3",[356,353,33,296,11,39],"34741665",[358,353,45,296,359,33],"34741785","thefifthsetpin",[361,353,18,362,363,33],"34742455","project\u002Fpositive\u002Fdesign","yamtaddle",[108,365,18,362,109,33],25,[97,32,18,221,98,33],[368,32,45,255,369,33],"34743534","danuker",[371,372,45,234,373,33],"34742008",27,"poulpy123",[375,372,33,376,11,39],"34742021","maker\u002Fneutral\u002Fnone",[378,217,45,234,379,33],"34743203","BMorearty",[381,217,33,224,303,33],"34749144",[383,384,18,385,386,33],"34742822",29,"project\u002Fpositive\u002Fexecution","racl101",[388,384,33,228,389,33],"34750757","rochak",[391,392,45,255,393,33],"34742500",30,"jimt1234",[395,396,33,224,397,33],"34743339",31,"das_keyboard",[157,399,45,264,158,33],32,[183,401,45,234,184,33],33,[403,401,33,376,11,39],"34743170",[405,406,18,313,407,33],"34742920",34,"codeulike",[112,409,18,410,113,33],35,"project\u002Fpositive\u002Fnone",[116,412,45,255,117,33],36,[],[415,420,424,428,433,438],{"id":416,"name":417,"points":418,"category":419},"34729849","ScreenStab",497,"creative",{"id":421,"name":422,"points":423,"category":20},"34730520","boxxy",384,{"id":425,"name":426,"points":427,"category":419},"34795155","Peel",353,{"id":429,"name":430,"points":431,"category":432},"34780579","Paperlist",287,"learning_science",{"id":434,"name":435,"points":436,"category":437},"34770898","WAAS",267,"ai",{"id":439,"name":440,"points":441,"category":437},"34727695","PodText.ai",219,false,"v2",{"id":445,"name":5,"line":6,"ai":442,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":446,"top":18,"kw":447,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":448,"url":9,"mix":449,"praise":85,"objection":128,"sub":21},34740529,0.28,[24,25,26,27],"5005533303305535105531015335055333533355",[31,32,33,34],1794036631081]