Better HN
topnewbestaskshowjobs
Log inSign up

kevinkyyro

18 karma · joined Oct 4, 2013 (13y ago) · 8 submissions

Submissions

comment 12y ago · link · parent

My main problem with the proposition that "OOP is awful" is that the argument is basically "it's not the best so it's the worst".

The expression problem is not solved by every language, but basically because Lisps and Haskell solve it in their own ways, it is concluded that OOP is worthless.

There are a number of practical reasons OOP could be liked, other than the marketing of it to the Enterprise. It's a natural way to model real things. The syntax lends itself to things like auto-complete (foo.ba<tab>). And being liked is enough to make it not-awful if the people who like it are skilled enough -- it's sufficient even to say it can be better than other paradigms for some people.

Don't mistake that for me saying that OOP is the best at anything, but it's not the worst at everything.

comment 12y ago · link · parent

This blew my mind. The "scala" example he used was literally a java code snippet pulled from here http://batsov.com/articles/2011/05/12/jvm-langs-clojure/

IT'S LITERALLY JAVA SYNTAX, COMPLETELY INVALID SCALA.

comment 12y ago · link · parent

It seems practical to say a functional language has first-class functions and a purely functional language has first-class functions and no mutable state -- purely functional -> functional and not imperative.

I would identify a language as distinctly imperative if it has mutable state and has statements, e.g. operations with side-effects that have no return values (ex: loops, if's, void methods) -- not to be confused with expressions, which may have side effects, but always have return values.

So, if you look at the matrix of possibilities based on these classifications, a language can be any combination of (OO or not OO) and (functional and/or imperative).

It is trickier yet when many languages support multiple paradigms but encourage a subset. Or if you choose to restrict functional to require anonymous functions _without_ syntactic sugar.

Does that help though?

comment 12y ago · link · parent

hah, i guess i should mention that i am bad at leading because of my own slow typing annoying myself

comment 12y ago · link · parent

It's a false dichotomy to assume you must either a) reject conditions or b) be medicated. This is especially true considering that at least one of the "conditions" mentioned by invalidOrTaken was a social conditions (e.g. millennial entitlement), rather than medical -- widely accepted as such or not.

Suppose some condition that one may have is a real phenomenon and not just sensationalism, then knowing one has the condition allows him or her to better understand what leads to poor performance; you might need short projects because you lose interest, but someone else's performance might be more dependent on the management style of the company due to a symptomatic loss of focus instead.

comment 12y ago · link · parent

Slow typing can be very tedious while pair programming, though the tedium is also a function of anxiety and patience.

comment 12y ago · link · parent

Your disagreement is kind of out of place here; no claim was made of where the productivity boost of autocomplete ranks against other development factors. Besides, whether or not you use autocomplete is orthogonal to your framework choice.

comment 12y ago · link · parent

In defense of non-fiction readers, it seems that one could make the statement quoted above in order to say "this is my intent in reading, so it leads me to read these types of books because they aim to serve that purpose"; it does not necessarily deny fiction the ability to teach one about the world and more than a good non-fictional work.

However, choosing to read fiction puts no lower bound on the amount of real information you will get nor the amount you will learn about the world, yourself, or humanity. Meanwhile, a non-fictional piece will at least have a reasonable guarantee to contain information of some kind.