[{"data":1,"prerenderedAt":265},["ShallowReactive",2],{"project-24637797":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":34,"aspects":35,"strip":38,"post_text":41,"what":42,"said":75,"maker_in_thread":128,"shape":134,"grid":139,"attempts":230,"same_week":231,"maker_shows":18,"maker_hidden":258,"reader_version":259,"card":260},"24637797","Ruby One-Liners Cookbook","Ruby is based on programming languages like Perl, Smalltalk, Eiffel, Ada, and Lisp.","maker","Show HN: Ruby One-Liners Cookbook","https:\u002F\u002Flearnbyexample.github.io\u002Flearn_ruby_oneliners\u002Fone-liner-introduction.html","learnbyexample.github.io","asicsp",1601467061,2020,191,36,295,3028,10,"notable","languages","ruby command line one-liners","other",[24,25,26,27],"ruby one-liners","ruby command line","perl switches","text processing","debated",0,{"positive":31,"neutral":32,"mixed":29,"critical":33},3,2,4,9,{"execution":36,"design":37},{"positive":29,"critical":29},{"positive":29,"critical":31},[29,39,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,39,29,29,31,29,39,31,29,40,29,40,29,40,29,40,29],5,1,null,{"problem":41,"audience":43,"pricing":53,"motivation":57,"time_to_build":41,"stack":61,"openness":72,"stage":73,"team_size":74},{"value":44,"source":45,"evidence":46},"Ruby programmers who do command-line text processing","inferred",[47,50],{"id":48,"by":11,"text":49},"24649226","Well, my book linked in this post is all about using Ruby from cli, with Perl like switches. ``` ps ax | ruby -ane 'puts $F[0] if \u002Ftop\u002F' ```",{"id":51,"by":11,"text":52},"24638066","Ruby is based on programming languages like Perl, Smalltalk, Eiffel, Ada, and Lisp. Many cli options are same as Perl and behave similarly too. While Ruby would be slower…",{"value":54,"source":7,"evidence":55},"Free online; ebook downloads free for a limited time, otherwise paid on Gumroad and Leanpub",[56],{"id":51,"by":11,"text":52},{"value":58,"source":7,"evidence":59},"Author wanted to earn income from teaching resources after leaving his job",[60],{"id":51,"by":11,"text":52},[62,66],{"value":63,"source":7,"evidence":64},"Ruby",[65],{"id":48,"by":11,"text":49},{"value":67,"source":7,"evidence":68},"mdBook",[69],{"id":70,"by":11,"text":71},"24639652","I'm using mdBook [0] and haven't changed the default theme settings. Could you clarify that by 'code element' you mean the code blocks or inline code? I think you mean inline…","free","launched","solo",{"praise":76,"objections":96,"requests":114,"questions":115,"alternatives":116},[77,89],{"value":78,"source":79,"evidence":80},"Ruby is enjoyable and fun to write","commenter",[81,85],{"id":82,"by":83,"text":84},"24639273","pantulis","And mind you, i've seen and written my good share of crap Ruby code! It's not about the quality of the code or the fit-for-purposeness of the language or platform, it's about the…",{"id":86,"by":87,"text":88},"24651322","oogway8020","Ruby brings me joy of programming. Like this morning, doing a report for year, month and getting the last day of the month is absolute genius: Date.new(year, month, -1) # wow",{"value":90,"source":79,"evidence":91},"Maker's honest story about earning from books",[92],{"id":93,"by":94,"text":95},"24638857","tomcam","Thanks for a detailed, honest, and inspiring share. That’s a pretty amazing story.",[97,104],{"value":98,"source":79,"evidence":99},"Some one-liners are very long, around 120 characters",[100],{"id":101,"by":102,"text":103},"24639930","bdcravens","Some of these one-liners are clocking in at around 120 characters.",{"value":105,"source":79,"evidence":106},"Inline code is unreadable in dark theme on Firefox",[107,111],{"id":108,"by":109,"text":110},"24639496","save_ferris","Just FYI, the code element color is impossible to see when the page loads its dark theme. Otherwise, looks great.",{"id":112,"by":109,"text":113},"24662450","Firefox on MacOS causes the issue, Chrome works fine.",[],[],[117],{"value":118,"source":79,"evidence":119},"Perl one-liners",[120,124],{"id":121,"by":122,"text":123},"24639553","revscat","It’s fascinating to me that the mindshare that was once taken up by Perl seems to slowly but surely be replaced by Ruby. This is a positive, IMO. Compared to Perl, Ruby is easier…",{"id":125,"by":126,"text":127},"24641093","jrumbut","Ruby, like Perl, is really built to be a part of a *nix system and has some bash elements (like special variables). It's a natural fit for one-liners.",{"comments":129,"answered":29,"key":130},6,[131,132,133],{"id":51,"text":52},{"id":48,"text":49},{"id":70,"text":71},{"commenters":135,"max_depth":136,"maker_replies":129,"first_comment_mins":137,"lifespan_hours":138},24,8,33,110,[140,142,143,147,150,153,156,159,161,165,168,170,173,176,178,179,182,185,188,191,192,196,199,202,205,207,209,211,213,216,218,220,222,223,225,227],[51,29,29,141,11,40],"maker\u002Fpositive\u002Fnone",[93,29,39,141,94,29],[144,40,29,145,146,29],"24638274","other\u002Fneutral\u002Fnone","jmarchello",[148,40,29,145,149,29],"24638503","sdwisely",[151,40,29,145,152,29],"24638597","radiospiel",[154,40,29,145,155,29],"24638864","block_dagger",[157,40,29,145,158,29],"24639278","1337_d00dZ",[160,40,29,145,155,29],"24642271",[162,40,29,163,164,29],"24649108","commenter\u002Fneutral\u002Fnone","brigandish",[166,40,29,163,167,29],"24671611","sourdoughness",[169,40,29,163,164,29],"24683769",[171,40,29,145,172,29],"24640239","realusername",[174,40,29,145,175,29],"24639080","faitswulff",[177,40,29,145,83,29],"24639260",[82,40,29,145,83,29],[180,40,29,145,181,29],"24639491","RangerScience",[183,32,29,145,184,29],"24639905","burlesona",[186,32,29,145,187,29],"24642522","mberning",[189,32,29,145,190,29],"24647694","aledalgrande",[121,31,29,145,122,29],[193,33,39,194,195,29],"24640552","project\u002Fpositive\u002Fnone","jfhufl",[197,33,29,145,198,29],"24641278","3pt14159",[200,33,29,145,201,29],"24642152","dorianmariefr",[203,33,31,204,164,29],"24649190","project\u002Fneutral\u002Fexecution",[48,33,29,206,11,40],"maker\u002Fneutral\u002Fdocs",[208,33,39,194,164,29],"24657769",[125,39,31,210,126,29],"project\u002Fneutral\u002Fnone",[86,129,29,212,87,29],"other\u002Fpositive\u002Fnone",[108,214,40,215,109,29],7,"project\u002Fcritical\u002Fdesign",[70,214,29,217,11,40],"maker\u002Fneutral\u002Fdesign",[219,214,40,215,109,29],"24639747",[221,214,29,217,11,40],"24639966",[112,214,40,215,109,29],[224,214,29,217,11,40],"24663787",[101,136,40,226,102,29],"project\u002Fcritical\u002Fnone",[228,136,29,229,11,40],"24640029","maker\u002Fneutral\u002Fnone",[],[232,236,241,245,250,254],{"id":233,"name":234,"points":235,"category":20},"24615185","ts-sql",426,{"id":237,"name":238,"points":239,"category":240},"24604291","DevUtils.app",241,"dev_tools",{"id":242,"name":243,"points":244,"category":240},"24577642","Headless Recorder",224,{"id":246,"name":247,"points":248,"category":249},"24610658","Keyboard Simulator",210,"creative",{"id":251,"name":252,"points":253,"category":249},"24588523","modfy.video",129,{"id":255,"name":256,"points":253,"category":257},"24621479","Motion","productivity",false,"v2",{"id":261,"name":5,"line":6,"ai":258,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":262,"maker":11,"domain":10,"tier":19,"attempts":29,"strip":263,"url":9,"mix":264,"praise":78,"objection":98,"sub":21},24637797,[24,25,26,27],"050000000000000000005003053010101010",[31,32,29,33],1794036596644]