Live data from Hacker News

How A Pull Request Rocked My World

clayallsopp.com

21–30 of 158 posts

Re: How A Pull Request Rocked My World

#21

The article is very humble, but in my view, seems to go a little too far. "You can reuse code with inheritance. Absolutely crazy. Brilliant. All of this blew me away." Honestly?

To each his own.

For me it was epoll() that blew me away. Absolutely crazy. Brilliant. But in retrospect so damn obvious.

Re: How A Pull Request Rocked My World

#22

The article is very humble, but in my view, seems to go a little too far. "You can reuse code with inheritance. Absolutely crazy. Brilliant. All of this blew me away." Honestly?

At that point I closed the article and thought "Wtf HN, why was this on the front page?". Then I remembered that anything Ruby-related gets automatic upvotes, even if the author does not know the first thing about OOP.

Re: How A Pull Request Rocked My World

#23

It's scary to think that this guy who was just shocked to discover a very basic concept of object oriented programming (polymorphism) has written his own book on iOS programming: http://clayallsopp.com/posts/writing-a-programming-book

How many books did you wrote ?

Re: How A Pull Request Rocked My World

#24

The article is very humble, but in my view, seems to go a little too far. "You can reuse code with inheritance. Absolutely crazy. Brilliant. All of this blew me away." Honestly?

Thats a very critical point that you just have to understand, to "get". Many people know and learn about object oriented design, but when tasked to actually write a program based on these principles they will often revert to code where they make distinctions based on the type of what they have been handed. TLDR: dynamic_cast is bad design

I guess he's gonna come back with another article when he realizes composition > inheritance.

Re: How A Pull Request Rocked My World

#25

It's scary to think that this guy who was just shocked to discover a very basic concept of object oriented programming (polymorphism) has written his own book on iOS programming: http://clayallsopp.com/posts/writing-a-programming-book

"He is the creator of some of the most widely used RubyMotion libraries"

Then everyone is surprised when critical bugs come to light in Ruby stuff.

Re: How A Pull Request Rocked My World

#26

It's scary to think that this guy who was just shocked to discover a very basic concept of object oriented programming (polymorphism) has written his own book on iOS programming: http://clayallsopp.com/posts/writing-a-programming-book

I think this comment is a little unwarranted. Polymorphism wasn't the concept he discovered - the idea of generating the classes (metaprogramming) and the "clever" (well, some would say so at least) was interesting to him.

I also don't like how your comment tries to make fun of his efforts to learn something new.

Re: How A Pull Request Rocked My World

#27
post #17
post #4

I don't love this refactor. I especially don't like how it generates names from other names -- e.g., given 'switch'/'submit', appends '_row', and then converts it to CamelCase so you get 'SwitchRow'/'SubmitRow', then instantiates the class named that. Here's why: When I am maintaining somebody else's code, even if I guess that this is going on, I rarely trust these kinds of name-generation tricks. When I need to chan…

...I rarely trust these kinds of name-generation tricks. So you're probably not a big fan of Rails, then?

and what does `trust` mean? You don't trust that correct object won't be given back to you?

Re: How A Pull Request Rocked My World

#28

It's scary to think that this guy who was just shocked to discover a very basic concept of object oriented programming (polymorphism) has written his own book on iOS programming: http://clayallsopp.com/posts/writing-a-programming-book

How many books did you wrote ?

How is that relevant?
Post reply on HN