Poll: Favorite programming language

Discussion in 'Programmer's Corner' started by tjohnson, Jan 8, 2015.

What is your favorite programming language for working with electronics?

Poll closed Feb 8, 2015.
  1. C

    42.1%
  2. Java

    5.3%
  3. Objective-C

    0 vote(s)
    0.0%
  4. C++

    10.5%
  5. C#

    5.3%
  6. PHP

    0 vote(s)
    0.0%
  7. JavaScript

    0 vote(s)
    0.0%
  8. Python

    15.8%
  9. Perl

    5.3%
  10. Other (please post what it is)

    15.8%
  1. tjohnson

    Thread Starter Active Member

    Dec 23, 2014
    614
    121
    I thought it would be interesting to see what programming languages are most popular for working with electronics among members of this forum.

    The choices are the top 9 programming languages on TIOBE, and Other. If you select Other, please also post what it is.

    EDIT: I voted for mine: Python.
     
    Last edited: Jan 8, 2015
  2. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,678
    2,737
    .asm
     
  3. tjohnson

    Thread Starter Active Member

    Dec 23, 2014
    614
    121
    Please also select Other in the poll if your choice is not listed.
     
  4. nsaspook

    AAC Fanatic!

    Aug 27, 2009
    2,908
    2,168
    I use what's needed for the task and sometimes several on the same project.
     
  5. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,542
    2,369
    Assembly.
    Max.
     
  6. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    APL
     
  7. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,795
    I use whatever meets a moving target of criteria ranging from what I'm familiar with, what I have access to, what lends itself to a particular task (I would not, for instance, use Python to write code for an FPGA nor would I use Verilog to write code to manipulate files in a directory), what codebase is already available, and what the customer requires and/or will accept.

    I also don't participate in self-selective polls which are fundamentally meaningless.
     
    MikeML, ErnieM and sirch2 like this.
  8. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    Well said WBahn. A programming language is just a tool, use the best available tool for the job.
     
  9. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,795
    And having skill with a broad set of tools is what puts you in a position to pick the best -- or at least a good -- tool for the job. If the only tool you know how to use is a hammer, then everything looks suspiciously like a nail.
     
    djsfantasi likes this.
  10. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,804
    833
    While only allowed to pick one, for electronics I picked C. But I agree with WBahn. The best tool for the job. I used FreeBASIC to control a serial servo controller. I've programmed in JavaScript, PERL, Windows shell, and many others, so although I answered I believe the poll is flawed.
     
  11. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,804
    833
    One of my favorite quotes.
     
  12. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    I chose "C" for its efficiency, portability and universal application. Mostly, I try to use simple scripting methods if they are available and I've really enjoyed using languages which have direct interfaces to other tools, eg VBA. When I was in ASIC engineering, everyone was ga-ga over Perl. Never really understood why. I could almost always do things easier using good ol' sed and awk. Nowadays, I'm doing more Linux administration stuff ( on my own, not for any job ) and converting my old Unix csh programming methods over to bsh. I find bsh syntax quite confusing and just plain weird sometimes.
     
  13. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,678
    2,737
    I read the question as, literally, "Which is your favorite programming language?", as opposed to, "In which programming language do you do all your work?"

    I am proficient in many languages, and I enjoy programming (and it is only one of many different hats I wear). I most enjoy programming .asm because it allows me to be really, really clever -- I like being clever.

    I've never attempted, though, to write an actual PC application in .asm. That would be stupid.
     
  14. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,795
    I don't think you can reasonably separate "favorite" from what it is being used for. Python might be my favorite for this set of tasks but my least favorite for this other set. Same with about half a dozen or more languages.
     
  15. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I'd disagree, I may prefer C++ over standard C, but a given situation may preclude its use.

    The situation only changes the approach, not a programmer's preference.
     
  16. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,795
    I guess we would have to agree to disagree. There are many tasks for which I could choose the same set of languages and for one task I would prefer to use one language and for another task I would prefer to use another language.
     
  17. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,678
    2,737
    Let me put it this way: All else being equal, if I had a choice of projects where one is best coded in C, and the other is best coded in .asm, I'd choose the second. Not because I am better at .asm than C, but because, to me, .asm is more fun (i.e. it is my "favorite language").

    And, "favorite" is subjective. Let us not argue about such things (lest I inform you that your choice of wine with that particular filet mignon is incorrect).
     
  18. alfacliff

    Well-Known Member

    Dec 13, 2013
    2,449
    428
    english.
     
  19. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,678
    2,737
    Ahhh...COBOL then.
     
  20. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    Or FORTRAN

    Bertus
     
Loading...