Top all-time · #14420
Khaled alHabache
Personal blog · khelll.com/blogprogrammingcareer
Khaled alHabache's personal blog at khelll.com covers programming and career. Since 2009, 5 different Hacker News readers have linked it 13 times, most often “Ruby Currying”. No feed was found, so read it on the site itself.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link his Ruby posts, including one explaining that Ruby passes the value of a reference rather than passing by reference. The comments point to it as a reference without judging it.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Ruby Currying2 people · 2 mentions · first linked 2009-05-25
What Hacker News says?
Not exactly. Let's tweak your example to create a new object in your method. def foo s s = 'foo' end a = 'bar' foo a puts a # => bar The assignment in the method doesn't change the object you "passed" in. Rather than passing by reference, think of Ruby as passing the value of a reference. For more examples and explanation, see http://khelll.com/blog/ruby/ruby-pass-by-value-or-by-referen...
Comment linking /blog/ruby/ruby-pass-by-value-or-by-reference/
on “Comparing PHP, Perl, Python and Ruby”Submitted Scala is my next choice as a story · 34 points
HN discussionUnfortunately most professional Ruby work is still done within the Rails framework these days, which more or less binds you to a more traditional OO type style. I do find that in regards to everything other than class/object abstraction my coding style gets more and more functional. Especially when working in a team environment though it's important to stick to some established standards and idioms... That said, Rub…
Comment linking /blog/ruby/ruby-currying/
on “The 'ugliness' of Python - Ruby, Python, functions & objects”Submitted Ruby Currying as a story · 10 points
HN discussionSubmitted StackOverflow cool Ruby questions as a story · 8 points
HN discussionSubmitted Bringing web applications to your Desktop with Prism as a story · 5 points
HN discussionSubmitted Ruby reflection as a story · 3 points
HN discussionSubmitted StackOverflow cool Ruby questions 4 as a story · 2 points
HN discussionSubmitted 3 Factors for a Successful Startup as a story · 1 points
HN discussionSubmitted Google App Engine, JRuby, Sinatra and some fun as a story · 1 points
HN discussionSubmitted Test or Regret as a story · 1 points
HN discussionSubmitted StackOverflow cool Ruby questions part 3 as a story · 1 points
HN discussionSubmitted StackOverflow cool Ruby questions part 2 as a story · 1 points
HN discussion