[{"data":1,"prerenderedAt":342},["ShallowReactive",2],{"project-6957642":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":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":42,"post_text":45,"what":46,"said":81,"maker_in_thread":177,"shape":187,"grid":191,"attempts":304,"same_week":305,"maker_shows":41,"maker_hidden":334,"reader_version":335,"card":336},"6957642","algorithm implementations","I started a repo for sharing algorithm implementations","title","Show HN: I started a repo for sharing algorithm implementations","https:\u002F\u002Fgithub.com\u002Fkennyledet\u002FAlgorithm-Implementations","github.com","kennyledet",1387846886,2013,52,47,482,1739,28,"notable","languages","algorithm implementations repository","library",[24,25,26,27,28],"algorithms","implementations","github","code examples","data structures","roasted",-0.273,{"positive":32,"neutral":33,"mixed":34,"critical":35},1,4,0,6,11,{"idea":38,"design":39,"execution":40},{"positive":32,"critical":33},{"positive":34,"critical":34},{"positive":34,"critical":41},2,[43,34,34,34,34,44,34,34,32,34,32,32,34,34,34,34,34,44,34,34,34,34,32,32,32,34,34,34,34,44,34,34,34,34,34,34,34,34,34,44],5,3,"Everything that would be here is in the README. I hope this gets big, it has tons of potential.",{"problem":47,"audience":57,"pricing":63,"motivation":64,"time_to_build":63,"stack":69,"openness":78,"stage":79,"team_size":80},{"value":48,"source":49,"evidence":50},"Algorithm implementations are scattered; wiki-based collections are hard to contribute to via git","maker",[51,54],{"id":52,"by":11,"text":53},"6958204","Yes, that's actually one of the sites that led to this idea, which in my mind is superior in many cases. For instance (and probably the only instance that matters), we get to…",{"id":55,"by":11,"text":56},"6958267","Again, the purpose of this is to not use wiki-based collaboration but leverage the power of Git and Github. >instead Look guys, this is not trying to replace anything. It's…",{"value":58,"source":49,"evidence":59},"practicing programmers who want to share, discuss and learn algorithms",[60],{"id":61,"by":11,"text":62},"6958240","> let's stick our full names in every file prefixed with our name. People have got to know that I'm the one who created this sample algo code!! I'm not exactly sure what you're…",null,{"value":65,"source":49,"evidence":66},"Make a GitHub-based collaborative algorithm collection to surpass wiki-based sites",[67,68],{"id":52,"by":11,"text":53},{"id":55,"by":11,"text":56},[70],{"value":71,"source":72,"evidence":73},"C","commenter",[74],{"id":75,"by":76,"text":77},"6957710","goldenkey","Why post this when you only have a single insertion sort in C? Practically, this has zero use compared to books which include algorithms, illustrations, and code.","open_source","beta","unknown",{"praise":82,"objections":94,"requests":128,"questions":149,"alternatives":154},[83],{"value":84,"source":72,"evidence":85},"Good idea to share algorithm implementations on GitHub",[86,90],{"id":87,"by":88,"text":89},"6957935","IgorPartola","I like this idea. Here's how I'd expand it if I had 100 hours to kill: - Rename the repo to be shared and add yourself as a contributor, instead of branding it as yourself. -…",{"id":91,"by":92,"text":93},"6958101","krat0sprakhar","Great Idea! I have something similar going at - https:\u002F\u002Fgithub.com\u002Fprakhar1989\u002FAlgorithms only in Python at the moment. Contributions are more than appreciated! :)",[95,99,106,113],{"value":96,"source":72,"evidence":97},"Only one insertion sort implementation so far; little value yet",[98],{"id":75,"by":76,"text":77},{"value":100,"source":72,"evidence":101},"No tests to verify correctness",[102],{"id":103,"by":104,"text":105},"6957859","cmpitg","How do you make sure the correctness of the implementations? Shouldn't there be tests?",{"value":107,"source":72,"evidence":108},"Licensing unclear for files",[109],{"id":110,"by":111,"text":112},"6959142","mkl","Missing from the discussion seems to be the subject of licenses. Some of the files have one and some don't (making using the code murky), so you should probably establish a rule…",{"value":114,"source":72,"evidence":115},"Existing resources like LiteratePrograms, RosettaCode already cover this",[116,120,124],{"id":117,"by":118,"text":119},"6957802","rodrodrod","Have you considered contributing to LiteratePrograms[0] (or such) instead? This is great practice, and I encourage you to go for it, but for those interested in looking at…",{"id":121,"by":122,"text":123},"6958007","brudgers","RosettaCode is a site that might be of interest. http:\u002F\u002Frosettacode.org\u002Fwiki\u002FRosetta_Code",{"id":125,"by":126,"text":127},"6957744","yeukhon","There is a handful of websites showing algorithm implementations and they are on edu sites. Unless you plan to write the algorithm in multiple popular algorithms...",[129,137,141],{"value":130,"source":72,"evidence":131},"Add unit tests",[132,133],{"id":87,"by":88,"text":89},{"id":134,"by":135,"text":136},"6958506","ericHosick","Tests and behavior should be defined before the code. I recommend you comment out all code, write the tests and then un-comment the code line by line. This not only tests the…",{"value":138,"source":72,"evidence":139},"Adopt a clear open license such as BSD",[140],{"id":110,"by":111,"text":112},{"value":142,"source":72,"evidence":143},"Use a shared, unbranded repo structure",[144,145],{"id":87,"by":88,"text":89},{"id":146,"by":147,"text":148},"6957807","gametheoretic","Whether you recognize it or not, you face a choice between: a) keeping your name on said repo, and b) substantially higher growth rate. When people do things for free, they don't…",[150],{"value":151,"source":72,"evidence":152},"How is correctness of implementations ensured?",[153],{"id":103,"by":104,"text":105},[155,159,163,170],{"value":156,"source":72,"evidence":157},"RosettaCode",[158],{"id":121,"by":122,"text":123},{"value":160,"source":72,"evidence":161},"LiteratePrograms",[162],{"id":117,"by":118,"text":119},{"value":164,"source":72,"evidence":165},"The Stony Brook Algorithm Repository",[166],{"id":167,"by":168,"text":169},"6958569","codex","I use The Stony Brook Algorithm Repository: http:\u002F\u002Fwww.cs.sunysb.edu\u002F~algorith\u002F.",{"value":171,"source":72,"evidence":172},"CleverAlgorithms",[173],{"id":174,"by":175,"text":176},"6958358","X4","https:\u002F\u002Fgithub.com\u002Fjbrownlee\u002FCleverAlgorithms\u002Ftree\u002Fmaster\u002Fsrc\u002Falgorithms",{"comments":178,"answered":41,"key":179},17,[180,183,186],{"id":181,"text":182},"6958420","Sorry I replied to this one late. I was waiting til I had a bit more free time to reply to this one seriously. You have a ton of great suggestions in here, all taken into…",{"id":184,"text":185},"6961292","Ah yes, you're right. I didn't think far enough into it before I pushed the initial commit. I guess I was just excited, but this is perhaps one of the most important changes that…",{"id":55,"text":56},{"commenters":188,"max_depth":35,"maker_replies":178,"first_comment_mins":189,"lifespan_hours":190},21,22,112,[192,194,198,201,203,205,207,208,210,212,214,217,219,221,222,224,227,228,230,232,234,238,240,244,247,249,251,253,256,258,260,262,264,266,269,271,274,278,280,281,283,287,290,294,296,298,302],[87,34,43,193,88,34],"project\u002Fpositive\u002Fidea",[195,34,34,196,197,34],"6957976","commenter\u002Fneutral\u002Fnone","DallaRosa",[199,34,34,200,88,34],"6958133","commenter\u002Fpositive\u002Fnone",[174,34,34,202,175,34],"other\u002Fneutral\u002Fnone",[181,34,34,204,11,32],"maker\u002Fpositive\u002Fnone",[110,34,44,206,111,34],"project\u002Fneutral\u002Fidea",[184,34,34,204,11,32],[117,32,34,209,118,34],"other\u002Fcritical\u002Fidea",[55,32,34,211,11,32],"commenter\u002Fneutral\u002Fidea",[75,41,32,213,76,34],"project\u002Fcritical\u002Fidea",[215,41,34,196,216,34],"6958871","regularfry",[146,44,32,218,147,34],"maker\u002Fcritical\u002Fidea",[220,44,32,218,76,34],"6957897",[61,44,34,196,11,32],[223,44,34,196,76,34],"6958331",[225,44,34,226,11,32],"6958222","maker\u002Fneutral\u002Fidea",[121,33,34,202,122,34],[52,33,34,229,11,32],"other\u002Fneutral\u002Fidea",[231,33,34,202,175,34],"6958369",[233,33,34,202,122,34],"6958375",[235,43,44,236,237,34],"6957728","project\u002Fneutral\u002Fdesign","highCs",[239,35,34,202,197,34],"6957970",[241,242,34,202,243,34],"6957740",7,"Hernanpm",[245,242,34,202,246,34],"6958439","tbirdz",[248,242,34,204,11,32],"6958772",[250,242,34,196,11,32],"6958585",[125,252,32,213,126,34],8,[103,254,32,255,104,34],9,"project\u002Fcritical\u002Fexecution",[257,254,32,255,76,34],"6957981",[259,254,34,196,11,32],"6961298",[261,254,34,196,76,34],"6962597",[263,254,34,196,11,32],"6969362",[265,254,34,196,76,34],"6975397",[267,254,34,268,11,32],"6958246","maker\u002Fneutral\u002Fexecution",[134,254,44,270,135,34],"project\u002Fneutral\u002Fexecution",[272,254,34,273,11,32],"6969366","project\u002Fpositive\u002Fexecution",[275,276,34,202,277,34],"6958327",10,"wfunction",[279,276,34,204,11,32],"6958542",[91,36,34,202,92,34],[282,36,34,204,11,32],"6958217",[284,285,34,286,246,34],"6958364",12,"other\u002Fpositive\u002Fnone",[288,285,34,289,11,32],"6958440","maker\u002Fpositive\u002Fdocs",[291,292,34,202,293,34],"6958924",13,"McUsr",[167,295,34,202,168,34],14,[297,295,34,289,11,32],"6958715",[299,300,44,206,301,34],"6958016",15,"elwell",[303,300,34,226,11,32],"6958248",[],[306,310,315,320,325,330],{"id":307,"name":308,"points":309,"category":20},"6946821","Vector",142,{"id":311,"name":312,"points":313,"category":314},"6955774","Legimon",103,"games",{"id":316,"name":317,"points":318,"category":319},"6932711","x6502",88,"dev_tools",{"id":321,"name":322,"points":323,"category":324},"6959420","Countdown",67,"consumer_social",{"id":326,"name":327,"points":328,"category":329},"6932122","Gemba",34,"web_saas",{"id":331,"name":332,"points":328,"category":333},"6955038","TipperCoin","finance_crypto",false,"v2",{"id":337,"name":5,"line":6,"ai":334,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":338,"top":18,"kw":339,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":340,"url":9,"mix":341,"praise":84,"objection":96,"sub":21},6957642,-0.27,[24,25,26,27,28],"5000030010110000030000111000030000000003",[32,33,34,35],1793990901071]