Live data from Hacker News

Show HN: Code Words, a quarterly publication about programming

codewords.hackerschool.com

1–10 of 78 posts

Re: Show HN: Code Words, a quarterly publication about programming

#5
(commenting on one of the articles)

Wow. Just stumbled upon the following quote and read the corresponding article.

> Programming language comparisons usually focus on the brevity and expressiveness of the language. If the solution to a programming problem has fewer lines and is “easier to understand” or “clearer” in one language than another, that is an argument for using the former over the latter. This comparison is useful if one supposes that the art of programming is primarily concerned with writing programs. It isn’t, of course. It is mostly concerned with debugging programs.

- https://codewords.hackerschool.com/issues/one/why-are-object...

> In summary, then, every concept that object-orientation brings to the table makes debugging harder. > If you believe (as I do) that the majority of effort a programmer expends is devoted to finding and fixing bugs, then an imperative programming approach will be more efficient (in programmer time) than an object-oriented approach.

Re: Show HN: Code Words, a quarterly publication about programming

#6
post #2

This looks interesting. Is there an RSS/Atom feed available? (I didn't find one, but I could've missed it)

Not right now :(. I will add one later this evening.

Great publication, will subscribe as soon as the feed's available.

Re: Show HN: Code Words, a quarterly publication about programming

#10
post #5

(commenting on one of the articles) Wow. Just stumbled upon the following quote and read the corresponding article. > Programming language comparisons usually focus on the brevity and expressiveness of the language. If the solution to a programming problem has fewer lines and is “easier to understand” or “clearer” in one language than another, that is an argument for using the former over the latter. This comparison…

> - https://codewords.hackerschool.com/issues/one/why-are-object....

> In all seriousness, this is one of the best articles I've ever read. I couldn't agree more with the author.

I'm not sure if you are being serious (you say you are, so Po's law), but this is a bad article written by someone who I guess must be a novice who thinks he knows something now but will look back on this 5 years later and cringe; examples...

> From the perspective of debugging, an instance variable is not in the scope of any of the methods on the stack.

He might as well be talking about heap allocated structs in C.

> This threatens to increase the search space, and suggests that avoiding instance variables in favor of passing arguments might be a better strategy where possible.

State should be stack allocated, except when it really is state (even if hidden in a monad).

> if you make the mistake of defining public “setter” methods, then the instance variables with setter methods become effectively global variables: if the value of the instance variable is incorrect at some point, that incorrect value might have been set anywhere in your code.

I'm trying really hard now to not be sarcastic.

> So, to avoid making your object-oriented code harder to debug than imperative code, you need to not use any public instance variables, and also avoid defining setter methods.

How does this guy define imperative code? Definitely not C where all members of a (heap allocated) struct are public?

He then describes the fragile base class problem without really understanding what that means.

> The technical term for a programming paradigm which uses neither inheritance nor instance variables is imperative (or functional) programming.

Ok, I can't stop myself from laughing at this point; I can't really go any further.

You know, we all go through this as programmers. We start knowing nothing, then we get a couple of years of experience and think we know everything....then we get 10 years of experience and realize we still don't know very much and what we thought we knew were just delusions of grandeur.

I won't say much about the rest of the publication. The nice thing about the internet is that anyone can produce something and make it available to read.

Post reply on HN