18 karma · joined Oct 4, 2013 (13y ago) · 8 submissions
comment 12y ago · link · parent
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
IT'S LITERALLY JAVA SYNTAX, COMPLETELY INVALID SCALA.
comment 12y ago · link · parent
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
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
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.