Top all-time · #12403
Robert Sosinski
Personal blog · robertsosinski.comprogramming
Robert Sosinski's personal blog at robertsosinski.com covers programming. Since 2008, 6 different Hacker News readers have linked it 9 times, most often “Understanding Ruby Blocks, Procs and Lambdas”. The last post was in 2020, but the archive is still widely read.
Too few sampled comments (4) to say how often HN recommends it.?
Why HN links it
HN readers link these posts on JavaScript's shortcomings and the move to compiling other languages to JavaScript, and on how Ruby's lambda and proc behave. Most links are cited as sources.
Summarised by Claude from a sample of 4 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Understanding Ruby Blocks, Procs and Lambdas4 people · 4 mentions · first linked 2008-12-22
- Binding Scope in JavaScript Functions2 people · 2 mentions · first linked 2009-04-28
What Hacker News says?
Great and thorough article. Here's a TLDR: * Javascript has some warts, and here are some examples. * It's going to take way too long to get these fixed to the point that we can actually start using new versions of Javascript because of slow browser adoption. * To get around this problem, people are treating Javascript as a compilation target for other languages, the most prominent example being CoffeeScript. * Disc…
Comment linking /2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
on “JavaScript is Dead. Long Live JavaScript”Submitted Understanding Ruby Blocks, Procs and Lambdas as a story · 50 points
HN discussionSEEKING WORK - NYC I am an experienced software engineer that has a proven track record of successfully leading complex, highly scalable application build outs. Right now, I am growing a new consultancy, Reactive.IO http://www.reactive.io and am looking for clients who have difficult technical challenges and need to solve them right the first time. I have an extensive background in using Ruby/JRuby on Rails, Java/Sc…
Comment linking /
on “Ask HN: Freelancer? Seeking freelancer? (March 2014)”Submitted The Difference Between Ruby Symbols and Strings as a story · 23 points
HN discussionSee here: http://www.robertsosinski.com/2008/12/21/understanding-ruby-... Proc objects created with lambda check arguments and have "diminutive return" so they behave as anonymous methods. Also, Kernel#proc is an alias to Kernel#lambda, so the only way you get the bare Proc behavior is by calling Proc.new directly.
Comment linking /2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
on “Ruby is not a callable orientated language”Submitted Binding Scope in JavaScript Functions as a story · 4 points
HN discussionThe reason why `this` is set to the window is because of the way the `this` keyword is bound in JavaScript. It is bound at call time. If at call time it is being called on an object, it will have the value of that object. Otherwise it will have the value of window. var obj = { f: function () { return this; } }; // returns the object obj.f() // returns window var f = obj.f; f(); What is happening here is that the set…
Comment linking /2009/04/28/binding-scope-in-javascript/
on “Javascript SetInterval With Context”Submitted Understanding Ruby Blocks, Procs and Lambdas as a story · 3 points
HN discussionSubmitted Working with PGP and Mac OS X as a story · 1 points
HN discussion