News for hackers. Stuff that matters.
Re:Your Language Features Are My Libraries by jrockway on Wednesday May 20, 2009 @04:49PM (#619290)
This is mostly true. Why do people use Rails instead of Catalyst? Because they can see everything at once, and they know they won't realize halfway through their project that they are doing something wrong. People hate learning, and making sure there's nothing to learn will make a language (framework/environment/whatever) popular. Sad but true.

(I wrote a whole book on how to best use Catalyst. A year later, it's nearly all wrong. This seems to upset people, as now they "are wrong". But it doesn't really matter; they can incrementally move in the direction of what we consider "not wrong" today, and, wrong or not, it's not like their app doesn't work. Personally, I am happy that everything becomes outdated so quickly, as it means that I can be more productive, and my apps can be easier to write and maintain. But people are weird...)

I think programmers will also trade actual flexibility for an IDE that appears to make their language flexible. Are there any really popular languages today where bloated IDEs aren't "required"? (I consider Java and C# to be the "really popular" languages today. I don't use them, but millions of other people do.)

The main problem with all of this is that programmers aren't really responsible for deciding which programming technology will be used. A programmer wants macros. A hiring manager wants the ability to throw a dart at a list of names and find a programmer that knows that language. Guess whose input wins? (Combine this with the fact that people think programming is a "cool" profession, and you end up with 90% of the practitioners not actually knowing how to program or what programming is. Does it surprise anyone that cool GUIs beat complex computer science topics?)

The good news is, you don't have to be part of the problem. There is hardly any reason to use the "popular" languages. They don't have better platform support, they don't have better libraries, and they don't have better tools. So don't worry about them, they are for other people :)

Re:Your Language Features Are My Libraries by randallsquared on Wednesday May 20, 2009 @05:15PM (#619342)
On the contrary, there are lots of reasons to use the popular languages. The reasons mostly have to do with straightforwardness, lots of well-tested libraries (even if they do things in a way that's not the most clever), lots of people who've already had any problem you're likely to encounter, as long as you're doing things in the obvious way, etc.

These things together mean that using a popular language in the way that most people use it is easy -- it's the path of least resistance in a lot of instances. Using languages that are cool, have neat features (or the ability to build them), and/or have higher abstractions is fun for play, but it turns out to feel like you're swimming upstream when you have to do the boring requirements-laden task that you've been handed.

There's more than one reason for that, but collectively they add up to why I use PHP for things I just want to get working quickly, or for job-like things, and lisps or other small-community languages when I'm doing something just for fun.

Re:Your Language Features Are My Libraries by davidw on Wednesday May 20, 2009 @05:45PM (#619401)
> The reasons mostly have to do with ... lots of well-tested libraries ... lots of people who've already had any problem you're likely to encounter, as long as you're doing things in the obvious way, etc.

Economics has given us the wonderfully pretentious sounding term "positive network externalities" to describe products that become more valuable, the more people who use them. Simple concept, big, impressive term.

http://www.welton.it/articles/programming_language_economics

Re:Your Language Features Are My Libraries by elai on Wednesday May 20, 2009 @07:56PM (#619565)
Many languages have this kind of community IMO. After a certain size, it doesn't matter really how big the community is because there is enough to sustain help. After a certain point, it only helps in finding specialized sub-communities which need to be that minimum size too. I think almost any language that a person here would consider for some project or another has that community, and you'll really notice the difference w/ languages that don't. For example, SML is a language that is so tiny that you can really notice the lack of community (and free documentation...) compared to, lets say, python, or objective-c.
Re:Your Language Features Are My Libraries by lg on Wednesday May 20, 2009 @10:25PM (#619748)
>The good news is, you don't have to be part of the problem. There is hardly any reason to use the "popular" languages. They don't have better platform support, they don't have better libraries, and they don't have better tools. So don't worry about them, they are for other people :)

This is why I'm not interested in Clojure, regardless of how nice a lisp it may be. Java libraries are poorly-designed, the prospect of wrestling with them again brings back memories of frustration. And you can bet that no one will ever write better ones, because the community will discourage people from "duplicating functionality."

Re:Your Language Features Are My Libraries by jimbokun on Thursday May 21, 2009 @09:14AM (#620370)
"Java libraries are poorly-designed, the prospect of wrestling with them again brings back memories of frustration."

One of the best things about Clojure is how it makes Java libraries suck much less. For example, line-seq turns a Java BufferedReader into a lazy sequence of String's, one for each line in the file.

http://clojure.org/api#toc334

You still have the suckiness of the multiple lines it takes to instantiate and clean up the BufferedReader, but macros like with-open makes that suck a little bit less, too.

http://clojure.org/api#toc612

Stir in some macro-fu of your own, and now you have the benefits of Java libraries minus the boilerplate suckiness. Basically, it turns Java into a "your language features are my libraries" language, no mean feat.

Re:Your Language Features Are My Libraries by weavejester on Thursday May 21, 2009 @08:09AM (#620275)
So your criticism of Clojure is based upon unfounded assumptions about what the community will do in future? Maybe you should look at what libraries are being created before you leap to conclusions?

There are many Clojure libraries that attempt to reimplement existing Java libraries. For instance, Ring is a HTTP specification for Clojure that reimplements much of the functionality of Java servlets.

Re:Your Language Features Are My Libraries by jrockway on Thursday May 21, 2009 @06:14AM (#620164)
My thoughts exactly.

It is easier to just steal Clojure's good features for CL. (funcallable everything is kind of nice.)