3 ms·
Meaningless. I do not have a thinking language or a bread and butter language or a GTD language. I have apps (or tasks) that involve thinking, or are "just pr
by jrockway 16y ago
Meaningless. I do not have a thinking language or a bread and butter language or a GTD language. I have apps (or tasks) that involve thinking, or are "just programming", or are "just get it done".
Sometimes I write quick scripts in Haskell. Sometimes I write them in Perl. Sometimes I write complex web applications in Haskell. Sometimes I write them in Perl. I choose the language based on good libraries for the task I am trying to achieve? I use Perl for network servers because libev performs better than GHC's select-based threads. I use Haskell for things that need to start up quickly. I use Perl for glue.
I don't think in Perl or Haskell or C or anything. I think in programming. I often find a nice way to express what I mean in the language I chose. Some problems look nicer in Haskell than in Perl. In the end, though, it's just programming. And while the programming part is 90% of the work in creating a working application, the other 90% is interacting with the outside world built by other people. Elegant syntax and beautiful algorithms are meaningless if you can't connect to the Foo server and get your data.
Incidentally, I always use C for libraries that need to be used my many people. C is not my favorite langauge, but I've accepted that if I manage memory correctly (client always allocates, data structures are structs with foo_ok flags) and don't use cstrings, C is not that bad. You just kind of tell the computer what to do, and it gets done. And then I can use it from Perl and Haskell with only a few more lines of code. And you can use it from OCaml and Python with just a few more.
- loewenskind 16y ago>I don't think in Perl or Haskell or C or anything. I think in programming. This is a good point, I tend to do this as well. I think up how I want to attack the problem first and then how to translate it into the language I'm going to use. The only thing that sounds strange to me is that in every situation you end up with either perl or Haskell. Is this a job constraint? I would think, for example, that in certain cases Erlang might be the best choice if one is doing work that lends itself to message passing, object database, etc. Personally, after I've come up with how I'm going to do something I tend to choose the language that will be the least amount of work (constrained by what languages are an option of course, in the case of programming for dollars).
- jimbokun 16y ago"The only thing that sounds strange to me is that in every situation you end up with either perl or Haskell." And C. Perl sounds a little bit like his "get things done" language. "I choose the language based on good libraries for the task I am trying to achieve." With CPAN, that is going to be Perl the most of the time, certainly much more often than Haskell or C. C sounds a little bit like his "bread and butter" language: "Incidentally, I always use C for libraries that need to be used my many people." Not exactly the same concept, maybe, but the importance of working on a team effectively is there. I will have to take his word for it the jrockway does not have a Happiness language. But Haskell is certainly a good candidate for one. Maybe a better definition of a Happiness language is a Just for Fun language. What language do you gravitate towards when you do not have a dollar denominated task in front of you, but just want to have some fun on your computer?
- radioactive21 16y agoI agree. I dont think in a particular language, I think in programming terms. What is the best I can use to perform what I need.