[{"data":1,"prerenderedAt":327},["ShallowReactive",2],{"project-24258098":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":46,"post_text":47,"what":48,"said":79,"maker_in_thread":149,"shape":151,"grid":156,"attempts":290,"same_week":291,"maker_shows":45,"maker_hidden":319,"reader_version":320,"card":321},"24258098","ultimate-go","My notes on Working with Go","title","Show HN: My notes on Working with Go","https:\u002F\u002Fgithub.com\u002Fbetty200744\u002Fultimate-go","github.com","betty200744",1598252073,2020,185,82,308,3028,11,"notable","learning_science","programming language notes","other",[24,25,26,27,28],"golang","go notes","go examples","go language","go patterns","debated",-0.078,{"positive":32,"neutral":33,"mixed":34,"critical":35},5,7,0,8,20,{"execution":38,"docs":40,"design":43,"idea":44},{"positive":34,"critical":39},2,{"positive":41,"critical":42},3,6,{"positive":34,"critical":34},{"positive":45,"critical":34},1,[45,34,41,34,45,34,34,41,34,41,34,34,45,34,34,34,34,34,32,34,34,34,34,34,34,34,34,34,45,34,32,32,45,34,32,32,45,41,45,34],null,{"problem":49,"audience":63,"pricing":47,"motivation":47,"time_to_build":47,"stack":72,"openness":78,"stage":78,"team_size":78},{"value":50,"source":51,"evidence":52},"Learning and reference notes for the Go programming language","inferred",[53,55,59],{"id":54},"post",{"id":56,"by":57,"text":58},"24259721","mylinkedlist","Thank you. I am just beginning to learn Go. This will be very useful to me. If anyone knows similar notes for Python & C#, please reply.",{"id":60,"by":61,"text":62},"24258673","Jestar342","It's very clearly a lot more than just commented code. They are examples\u002Fsnippets of common patterns.",{"value":64,"source":65,"evidence":66},"people learning Go","commenter",[67,68],{"id":56,"by":57,"text":58},{"id":69,"by":70,"text":71},"24262368","hujun","good stuff, there is another really good GO online book: Go 101,https:\u002F\u002Fgo101.org\u002F a lot of details, has been really helpful for me to advance in Go",[73],{"value":74,"source":75,"evidence":76},"Go","maker",[77],{"id":54},"unknown",{"praise":80,"objections":93,"requests":120,"questions":125,"alternatives":137},[81],{"value":82,"source":65,"evidence":83},"Useful notes and examples for learning Go",[84,85,89],{"id":56,"by":57,"text":58},{"id":86,"by":87,"text":88},"24258843","colesantiago","It has Go code with comments which are notes to the author. just like the title of this post. would be useful to somebody, seems like a good idea to me.",{"id":90,"by":91,"text":92},"24261825","oldgun","Thanks for the work. It's quite some materials to compile. I love how you organize your thoughts and knowledge together and I've just started doing that too.",[94,113],{"value":95,"source":65,"evidence":96},"Enum and array examples contain non-idiomatic or incorrect Go",[97,101,105,109],{"id":98,"by":99,"text":100},"24260262","sjroot","Warning: opinions inbound I clicked one part (enums) and noticed a pretty glaring issue. The way you are doing enums is really _not_ conventional Go code and probably not…",{"id":102,"by":103,"text":104},"24262937","sauerbraten","I checked out the example code for arrays…",{"id":106,"by":107,"text":108},"24263712","axaxs","> in Go there are no uninitialized arrays (or slices) This is a little murky and misleading. In Go, you can actually save memory by 'declaring' only. For example, if you do var x…",{"id":110,"by":111,"text":112},"24265347","yencabulator","Much like the github link, you're confusing slices with arrays. Slices can be nil (data=nil, len=cap=0) or non-nil (data points somewhere, len and cap are what they are), but…",{"value":114,"source":65,"evidence":115},"Examples lack explanation, e.g. unexported identifier examples",[116],{"id":117,"by":118,"text":119},"24260356","cy_hauser","My first click was the link for \"Accessing a value of an unexported identifier\". Figured I'd see some reflection trick or similar. In looking at that code I still have no idea…",[121],{"value":122,"source":65,"evidence":123},"Clearer exposition in examples",[124],{"id":117,"by":118,"text":119},[126],{"value":127,"source":65,"evidence":128},"Whether iota or string constants are better for enums",[129,133],{"id":130,"by":131,"text":132},"24261265","arwineap","I use this pattern without iota; tending towards constants as strings. This allows it to \"serialize\" to strings nicely instead of exposing useless (without context) integers Do…",{"id":134,"by":135,"text":136},"24261609","curryst","What is the advantage of building out enums your way vs OPs? I've done both ways, and I didn't find any situations where one was demonstrably better than the other. Is it that…",[138,145],{"value":139,"source":65,"evidence":140},"Go by Example and learnxinyminutes",[141],{"id":142,"by":143,"text":144},"24262223","lattalayta","I haven't looked through all of them, but I came across this website recently. https:\u002F\u002Flearnxinyminutes.com\u002F I think it's more geared towards people who have experience in one…",{"value":146,"source":65,"evidence":147},"Go 101",[148],{"id":69,"by":70,"text":71},{"comments":34,"answered":34,"key":150},[],{"commenters":152,"max_depth":153,"maker_replies":34,"first_comment_mins":154,"lifespan_hours":155},33,9,84,138,[157,159,162,165,167,169,170,172,175,177,180,183,185,188,192,196,198,200,201,202,204,207,209,211,213,215,217,220,223,225,227,230,232,234,236,238,240,243,246,248,251,253,256,258,260,264,267,268,271,273,276,277,279,282,285,287],[98,34,45,158,99,34],"project\u002Fcritical\u002Fexecution",[160,34,34,161,87,34],"24260625","commenter\u002Fneutral\u002Fnone",[163,34,41,164,99,34],"24260732","project\u002Fneutral\u002Fdocs",[130,34,41,166,131,34],"project\u002Fneutral\u002Fdesign",[168,34,34,161,99,34],"24262872",[134,34,41,166,135,34],[171,34,45,158,99,34],"24262855",[173,34,34,161,174,34],"24264071","ed25519FUUU",[176,34,34,161,99,34],"24264215",[178,34,34,161,179,34],"24265526","heleninboodler",[181,34,41,166,182,34],"24262268","randomdata",[184,34,34,161,99,34],"24262908",[186,34,41,166,187,34],"24264283","ggordan",[189,45,34,190,191,34],"24262388","other\u002Fneutral\u002Fnone","likeabbas",[193,45,34,194,195,34],"24262505","other\u002Fneutral\u002Fperformance","derefr",[197,45,34,194,191,34],"24320572",[102,39,45,199,103,34],"project\u002Fcritical\u002Fdocs",[106,39,45,199,107,34],[110,39,34,161,111,34],[203,39,34,161,107,34],"24265519",[205,39,34,161,206,34],"24268657","amscanne",[208,39,34,161,107,34],"24273003",[210,39,34,161,111,34],"24277724",[212,39,34,161,206,34],"24284704",[214,39,34,161,206,34],"24284860",[56,41,32,216,57,34],"project\u002Fpositive\u002Fdocs",[218,41,34,161,219,34],"24260527","The_rationalist",[221,41,34,190,222,34],"24260652","throwaway894345",[224,41,34,190,219,34],"24260889",[226,41,34,190,222,34],"24261546",[228,41,34,190,229,34],"24262393","cmckn",[231,41,34,190,222,34],"24263018",[233,41,34,161,219,34],"24263277",[235,41,34,161,222,34],"24263475",[237,41,34,161,219,34],"24265597",[239,41,34,194,222,34],"24266768",[241,41,34,190,242,34],"24263720","zeroc8",[244,41,34,190,245,34],"24260752","coip",[247,41,34,190,57,34],"24263328",[249,41,45,199,250,34],"24261326","shp0ngle",[142,41,34,252,143,34],"other\u002Fneutral\u002Fdocs",[254,41,34,255,229,34],"24262338","other\u002Fpositive\u002Fnone",[69,257,32,216,70,34],4,[90,32,32,259,91,34],"maker\u002Fpositive\u002Fnone",[261,42,41,262,263,34],"24262164","project\u002Fneutral\u002Fnone","0xdeadbeefbabe",[265,33,45,199,266,34],"24258472","mesaframe",[60,33,34,161,61,34],[269,33,34,161,270,34],"24258834","dgellow",[86,33,32,272,87,34],"project\u002Fpositive\u002Fidea",[274,33,32,216,275,34],"24258971","bouncycastle",[117,33,45,199,118,34],[278,33,41,164,275,34],"24268066",[280,33,34,190,281,34],"24262781","smnscu",[283,35,45,199,284,34],"24260024","pc86",[286,35,34,161,99,34],"24260307",[288,35,34,161,289,34],"24261416","adamhearn",[],[292,297,302,306,310,314],{"id":293,"name":294,"points":295,"category":296},"24286335","ztext.js",257,"languages",{"id":298,"name":299,"points":300,"category":301},"24249646","rust_cmd_lib",231,"dev_tools",{"id":303,"name":304,"points":305,"category":301},"24221708","Analysis Tools",175,{"id":307,"name":308,"points":309,"category":301},"24269609","Will It CORS?",152,{"id":311,"name":312,"points":313,"category":301},"24280413","Vim-Like Layer for Xorg and Wayland",148,{"id":315,"name":316,"points":317,"category":318},"24240680","ePaper.js",145,"hardware",false,"v2",{"id":322,"name":5,"line":6,"ai":319,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":323,"top":18,"kw":324,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":325,"url":9,"mix":326,"praise":82,"objection":95,"sub":21},24258098,-0.08,[24,25,26,27,28],"1030100303001000005000000000105510551310",[32,33,34,35],1793991015021]