Thread: Your "favorite" languge

  1. #31
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Yarin View Post
    Ironically, I found this stupid/funny artical that agues with that. Correct me if I'm wrong, but his argument is that: Because Haskell and Python are more productive, it makes you lazier when you have to code in a language that sucks (C#, no really, read it ), therefor Haskell and even Python = bad
    Nah. That's not what is saying. He's saying that learning Haskell and Python has frustrated him. Because he feels he can't properly emulate these languages syntactic simplicity every time he is presented with a programming language that, while not being functional, offers quasi functional programming constructs.

    The issue of functional programming languages as being more productive is heavily debatable to say the least. Productivity isn't, by far, the result of a source line count. That's usually the first mistake these folks make. Anyways, he's sort of right when you consider some languages do offer similar constructs to functional programming. That's clearly the case of C#. He felt frustrated because he couldn't (or thought he couldn't) reduce source by trying to employ similar logic to Haskell. In addition, his efforts ended up making him write bad C# code. Hence why he jokes about Haskel and Python having made him a worse programmer. As others pointed out, he could have written better code. Even when he was writing that article in 2006 he would have known that, had he payed any attention to the then under-development LINQ.

    Certainly I expect him to be right on other situations where the functional-like constructs in C# (mostly, LINQ or any type implementing IEnumerable) will still not suffice comparatively with Haskell. But he is alone in his frustration. If he plans to bring into an imperative language some manner of functional programming I don't see anyone wanting to follow him. One of the most important aspects of learning different programming languages (and even more important when learning different paradigms) is to know to separate the waters and keep every language and its paradigms to themselves.
    Last edited by Mario F.; 07-26-2011 at 08:00 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #32
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I really like working in C#, because you can do so much in such a small amount of code. The .Net framework has nearly everything you need already implemented. There is no hand-coding of boilerplate. It is also very easy to learn if you already know C++.

    That said, I would say that C++ is my preferred language. it is expressive, powerful, and flexible. Most compilers warn you if you're doing something stupid or reckless, but you can still do these things if you know what you're doing.

  3. #33
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    1. C++
    2. C#
    3. Lua

  4. #34
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Why C of course.

  5. #35
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    In my relatively short tenure, I would say C++.

    btw....I recently looked at D . It has the potential to become a favourite, but something about it "feels" odd.

  6. #36
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by manasij7479 View Post
    I recently looked at D . It has the potential to become a favourite, but something about it "feels" odd.
    I looked at D also, but like you said, something feels odd about it. I also have recently been looking at the go programming language, developed by google. it looks very interesting, and appears to have a full set of standard libraries, as well as many of the features that I wish C++ had (but also missing a few, like overloaded functions). my research into go is ongoing (pun intended), but it looks very promising.

  7. #37
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by manasij7479 View Post
    In my relatively short tenure, I would say C++.

    btw....I recently looked at D . It has the potential to become a favourite, but something about it "feels" odd.
    Though last winter and this spring I looked very closely at D. In my opinion the language concept is absolutely brilliant but there were two horrific mistakes made...

    1) Instead of importing Windows libraries and headers they decided to use an incompatible construct that, while theoretically better, has resulted in there never being a proper implementation of Windows for D.

    2) They opened the D functions library for open source development and as a result it's a poorly written standard library with a bunch of junk functions most people wouldn't use in the next 30 years.

    Absent either one of these two problems, I'd be a D programmer right now.
    I did write a few smaller programs in it and they worked fine. I found it easy enough to understand. But even though the base compiler is very well thought out it's been surrounded by trash... And I ain't sticking my hand in there to see what I can pull out.

  8. #38
    Registered User muffinman8641's Avatar
    Join Date
    Feb 2011
    Location
    Eastern-Central PA
    Posts
    76
    I'm most familiar with C++, but I've been picking up on C# lately and I like what I see.

    /Depends on the task.

  9. #39
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I haven't seen any goddesses hanging around, but Google's new language, Go, is very intriguing. Two of it's creators are Ken Thompson and Rob Pike. Ken is a Unix veteran, who wrote the B programming language. Pike worked with Plan9 OS, the Limbo language, etc.

    Any language that Ken Thompson is working on with the resources of Google behind him, is definitely worth checking out, imo. He's brilliant.

    Right now, Go is moving forward nicely. Lots of input from a community of Go'ers, is a big help. It's meant as a systems and general language, but it has automatic garbage collection, nice multi-threading/communication, and basic OOP, as well. It is a compiled language, but compiles many times faster than C, and runs about 70% of C's speed, in the language benchmark tests. It has several features, like range and such, that make programming more intuitive, but they've kept that minimalistic feel to it, as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-31-2009, 04:23 PM
  2. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  3. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM
  4. Your favorite "other" programming langauge
    By SilentStrike in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 08-18-2001, 01:06 PM