Thread: Why should I learn Lisp?

  1. #16
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    We need a metric for how programming languages suck. I suggest the AFB (Another F*ing Bug). The Suck factor (S) is calculated from the following formula:

    S = (A + 2B + 3C) - M

    Where:
    A = Bugs encountered during the development cycle
    B = Bugs introduced by implementing new features
    C = Bugs only encountered years later after software has been in production
    M = Combined cyclomatic complexity of the project

    Naturally M would have to be weighted somehow. And the whole result divided by a spectacularly large number, considering how programmers from nearly every programming language are bad at respecting best practices.

    The adopted terminology would be -- for two languages, A with AFB 12 and B with AFB 7 -- Language A sucks by a factor of 12 and B sucks by a factor of 7. Or, comparatively, A sucks almost 2 times more than B.

    I bet languages like PHP don't actually suck that much and probably why they are so popular. Whereas languages like C and C++ would fail spectacularly on my (biased?) AFB metric.
    Last edited by Mario F.; 01-27-2015 at 02:44 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. #17
    Lurker
    Join Date
    Dec 2004
    Posts
    296
    Quote Originally Posted by Mario F. View Post
    We need a metric for how programming languages suck. I suggest the AFB (Another F*ing Bug). The Suck factor (S) is calculated from the following formula:

    S = (A + 2B + 3C) - M

    Where:
    A = Bugs encountered during the development cycle
    B = Bugs introduced by implementing new features
    C = Bugs only encountered years later after software has been in production
    M = Combined cyclomatic complexity of the project

    Naturally M would have to be weighted somehow. And the whole result divided by a spectacularly large number, considering how programmers from nearly every programming language are bad at respecting best practices.

    The adopted terminology would be -- for two languages, A with AFB 12 and B with AFB 7 -- Language A sucks by a factor of 12 and B sucks by a factor of 7. Or, comparatively, A sucks almost 2 times more than B.

    I bet languages like PHP don't actually suck that much and probably why they are so popular. Whereas languages like C and C++ would fail spectacularly on my (biased?) AFB metric.
    I always get sucked into these religious debates for some reason... :-)

    I would argue that we cannot compare PHP and C/C++ like that Mario. I would further argue that C++ is the PHP of compiled languages!

    Now let the war begin! (I just got some popcorn and a coke!)

  3. #18
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Jimmy View Post
    I would argue that we cannot compare PHP and C/C++ like that Mario.
    But but... it's a metric. It will prove everything!
    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.

  4. #19
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Mario F. View Post
    But but... it's a metric. It will prove everything!
    "Lies, damn lies, and metrics"

  5. #20
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I would further argue that C++ is the PHP of compiled languages!
    I agree.

  6. #21
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    I agree.
    o_O

    Your C++ code must be awful.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  7. #22
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by phantomotap View Post
    o_O

    Your C++ code must be awful.

    Soma
    Well, my C++ is better than my CUDA, I can tell you that. Self-slam!

    But I agree that C++ is the PHP of compiled languages because imagine you know no programming or are brand new. C++ is doing a **** ton of stuff under the hood. Like PHP, it's easy to get something that "just works" and not really understand what's going on underneath which is why I agree with that sentiment.

    I'm not saying everyone that starts off with C++ is like this because all you really need to do is just read the documentation carefully and understand the fundamentals of how each STL data structure or algorithm operate. But let's not deny that newbs yolo code.

  8. #23
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    There's goes one chance to make this discussion silly.
    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.

  9. #24
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    There's goes one chance to make this discussion silly.
    O_o

    No. You did silly.

    You accomplished silly when you left out "D: Bugs only encountered because management swallowed some "Buzzword Bingo" cards thanks to searching for $(Language) without a developer present.".

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  10. #25
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    You are right. Management caused bugs should have be there!

    Damn. My perfect metric has a bug.
    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.

  11. #26
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Speaking of smugness...(*) Even so-called zen languages have smugness. Python is smug heaven, judging from comp.lang.python.


    (*) I know no one was speaking of smugness anymore. Shut up.
    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.

  12. #27
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    This is so entertaining, my smug of stea got cold while I was reading this and considering scratching an itch with a Lisp script.

  13. #28
    Lurker
    Join Date
    Dec 2004
    Posts
    296
    Quote Originally Posted by Nominal Animal View Post
    This is so entertaining, my smug of stea got cold while I was reading this and considering scratching an itch with a Lisp script.
    Nominal Animal, are you sick or are you drunk at the moment?

    I mean, since when do you answer with only 1 sentence?!? Do over and do it right this time, otherwise I will ask a moderator to ban your account, since it has clearly been hacked!

  14. #29
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    We're going to have to get a moderator to ban Nominal Animal's account until he can recover it safely!
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #30
    Registered User Alpo's Avatar
    Join Date
    Apr 2014
    Posts
    877
    @MutantJohn - Why PHP though? What does it have some advantage over other languages? Like for instance if I knew C++, HTML, JavaScript, and CSS, would there still be a need for PHP?

    Quote Originally Posted by laserlight View Post
    We're going to have to get a moderator to ban Nominal Animal's account until he can recover it safely!
    Aren't you a moderator though? Oh lord, laserlight's compromised too, everyone run!
    WndProc = (2[b] || !(2[b])) ? SufferNobly : TakeArms;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lisp Help
    By anirban in forum Tech Board
    Replies: 1
    Last Post: 01-15-2012, 04:14 PM
  2. Help on LISP please?
    By ssharish2005 in forum Tech Board
    Replies: 1
    Last Post: 02-08-2008, 10:12 AM
  3. Lisp
    By Silvercord in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-26-2003, 12:41 PM
  4. Lisp
    By MethodMan in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-18-2002, 04:41 PM
  5. Lisp
    By Lechugas in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-18-2002, 12:21 PM