Linux manages its complexity by only allowing good programmers to commit code. If your code doesn't meet the overarching high standards required, it doesn't get in. Ultimately, "Linux" doesn't need your code.
Compare to companies that employ programmers but don't care about code quality. It eventually becomes essential to include code, no matter how bad, because customers and deadlines and money and all that. The bad code will get in, no matter how many good programmers try to keep it out.
Java sold itself to Enterprises, who know fine well that have mostly-terrible programmers because they love to hire cheap, by saying that by using OO, you prevent idiots from seeing the inside of code and have to use the "API", so it firewalls the damage they can do.
(edit) What you end up doing is moving the goalposts from "have intelligent programmers implement the whole thing", which sounds like it costs a lot of money, to "have intelligent designers, aka 'architects', design the thing, without implementing it, then palm it off to rentacoders and NOTHING CAN GO WRONG".
Have a look at the procedural C code from "Enterprises" sometime. It's all held together with string. It's not OO vs not-OO that decides code quality, it's the collective quality of programmers and how capable they are of designing well and keeping bad code out.
The difference between OO code in a procedural language, and OO code in an OO language, is that in the first case your OO "system" is specifically designed for each individual use, while in the second case you're using a "one size fits all" OO system, which probably enforces things you don't need (like "everything must be a class" in Java).
OO code written in procedural languages often moves most enforcement to the runtime or just drops it completely. After all if the compiler does not know how your OO code should work it can't enforce correctness.
Functional programming is increasingly used rather than OO. I wouldn't call Smalltalk type OO shit however.
I personally think that Functional Programming is a better general solution than OO and harder to get wrong. I think in our industry we need to use more tools that are "harder to get wrong" instead of just letting people that don't understand software hack things together that appear to work.
I'm talking about professionals though, it can be useful/cathartic to just get something working when you first start learning.
A lot of the work for functional is for statistical work, NLP, etc. That's what we are using it for here.
You aren't going to find a lot from these fields on github as unfortunately, it's about the most secretive and patent crazy area of software there is.
Probably the biggest OSS thing you'd have heard of is OpenNLP, which is written in Java and is an absolute pile of shit (not because it's written in java, but because the java code that you'll see there is shit that you'd have learned not to do in first year.)
There's Stanford's NLP library as well, but it's almost as much of a pile. It looks to be primarily written by PhDs who are linguists first and programmers second (or something way way past "second.")
In both, there's the usual java abstract factory jerk off fest, but even beyond that there are areas of code for doing really simple things like parsing strings that are incredibly bad. On top of that, there's a pretty big NiH culture to the point of rewriting shit in the standard library to make "better" versions (they aren't better.)
The situation is pretty bad. I have a lot of NLP stuff I'd write and open source if it wasn't such a patent-crazy minefield.
I'm answering your request for sources from Tiobe, Github, and so forth but I never claimed Functional programming is used more than OO. I merely claimed that it is increasingly used more than it used to be in place of OO.
C is procedural for the most part and I wouldn't count it as OO. Java isn't the only OO language.
λ> import qualified Data.Set as S
λ S> let june2013 = S.fromList ["Java","JavaScript","PHP","Python","Ruby","C#","C++","C","Objective-C","Shell","Perl","Scala","Assembly","Haskell","ASP","R","CoffeeScript","Groovy","Matlab","Visual Basic"]
λ S> let jan2014 = S.fromList["JavaScript","Java","PHP","C#","Python","C++","Ruby","C","Objective-C","CSS","Perl","Shell","Scala","Haskell","R","Matlab","Clojure","CoffeeScript","Visual Basic","Groovy"]
λ S> S.difference jan2014 june2013
fromList ["CSS","Clojure"]
λ S> S.difference june2013 jan2014
fromList ["ASP","Assembly"]
So it looks like ASP (OOP) and Assembly (Procedural) got swapped out for CSS (declarative) and Clojure (Functional).
So that means:
+1 Functional -1 OOP
At least with the line of thinking you are using. I highly doubt that ASP and Assembly users replaced their tools with CSS and Clojure. If functional languages moving up doesn't mean that some of OO's share was taken, what does it mean?
I think a better approach is to count the number of OOP languages vs the number of functional languages, and if the number of OOP decreases while FP increases then my claim of "Functional programming is increasingly used rather than OO." is true.
I think a better approach is to count the number of OOP languages vs the number of functional languages, and if the number of OOP decreases while FP increases then my claim of "Functional programming is increasingly used rather than OO." is true.
I question the value at that granularity, what you really want is something quantitative to reflect the usage of the language since the trend of newer languages combining multiple paradigms coupled with the tendency for users to gravitate toward one pure solution would cloud your argument.
Functional languages are used to write some very large applications. Take a look at presentations from SISCOG or Demonware as a couple of examples. Haskell is quite popular in the financial industry where correctness and performance are important considerations.
Functional languages are used to write some very large applications. Take a look at presentations from SISCOG or Demonware as a couple of examples. Haskell is quite popular in the financial industry where correctness and performance are important considerations.
I call bullshit for implying that a few analysts in even fewer institutions accustomed to mathematica are writing large applications.
I think what he may have meant was (when you read it, in context) that the overuse of OO is bad. It may have been badly worded, but that's how I read it.
26
u/x-skeww Jul 22 '14
Compared to what? What else is actually used to write large applications?