DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

View Poll Results: favorite programming language?
Asm 19 12.67%
C 56 37.33%
C++ 32 21.33%
C# 7 4.67%
Java 13 8.67%
Javascript 5 3.33%
Perl 28 18.67%
PHP 30 20.00%
Ruby 11 7.33%
Python 34 22.67%
Shell 25 16.67%
Awk 12 8.00%
Others: Tcl, Erlang, Haskell, Ocaml, D, Forth ... 19 12.67%
Multiple Choice Poll. Voters: 150. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default favorite programming language?

if you have chosen others please mention the language in your post.

its c, c++, asm, shell, awk for me.

Last edited by ephemera; 24th May 2008 at 02:23 PM.
Reply With Quote
  #2   (View Single Post)  
Old 23rd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

JavaScript and PHP are two very different languages...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 23rd May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by Carpetsmoker
JavaScript and PHP are two very different languages...
... generally used for web programming and not for general purpose scripting?

Last edited by ephemera; 23rd May 2008 at 09:35 PM.
Reply With Quote
  #4   (View Single Post)  
Old 23rd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

I use(d) PHP for general purpose scripting ... M0n0wall for example uses PHP for startup scripts, config, etc.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 23rd May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
I use(d) PHP for general purpose scripting ... M0n0wall for example uses PHP for startup scripts, config, etc.
Oh, i didn't know that it was being outside web prog.
i was constrained by the 10 option limit and had to make a choice.

(i added shell as a seperate option as you suggested)

Last edited by ephemera; 23rd May 2008 at 10:03 PM.
Reply With Quote
  #6   (View Single Post)  
Old 23rd May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Easy choice: Bourne shell. Simple and quick. My favorite hammer.

To give some context here (since different languages satisfy different requirements), most of my programming needs revolve around automating data loads and data analysis. Shell programming - paired with the right utilities - is perfect for this situation: running quick tests, uncovering data differences, gluing apps together, etc.

FWIW, I've always been a bit partial to python as well, especially as a beginner-oriented language. (Which is not to imply that it is lacking in features or capabilities.)
__________________
Kill your t.v.

Last edited by anomie; 23rd May 2008 at 09:58 PM. Reason: explained a bit.
Reply With Quote
  #7   (View Single Post)  
Old 23rd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

Ah, I didn't realize this.

I increased the maximum number of poll options to 100.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #8   (View Single Post)  
Old 23rd May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Carpetsmoker,

is the poll immutable? if not i would like to seperate out some of the languages.
Reply With Quote
  #9   (View Single Post)  
Old 23rd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

In the "titlebar" of the poll itself it says "edit poll".
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 24th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

This is a really hard poll for me (no vote yet) because I'm very much a linguistically diverse person at heart.

I began learning about programming through a tutorial on C++ about November 2005 and have always been largely self-educating with it like everything else I do in computers... I pick up languages pretty easy and like learning them, especially ones that take different approaches to problems.


As far as language design goes, I would say my favorite is probably Java. It's a nice language, most things in Java I've seen just 'make sense', and comes with a large collection of classes -> the only problem I have is the design is so OOP focused.

I especially love Javas interfaces, although I'm indifferent to whether a language uses single/multi-inheritance but I like the concept of interfaces.

Although I must admit, I generally do my best to _avoid_ writing any Java code!!!


If I had to pick a single favorite, I probably would pick either C or Perl.


C is to me, a perfect language without flaws. It is small, you can fit the entire language into your head w/o problems and use a reference to look for functions you use rarely. The only problem is the best parts of what make C so perfect also mean I tend to be more productive the less I use it :|


Perl I might pick, because it is the closest to natural language and I often can use it to do a lot of stuff. While still having a lot of familiar and logically thought up syntax. Not to mention for various tasks I often find it most effective to write a perl script to deal with it, define and refine a command line interface to the problem, and quickly document the entire thing in POD. Perl is like a best friend in my toolbox, not sure if I'd want to work with 10 thousands of lines of it but it's a great language for working on my machines.




When it comes to actually writing code, I usually use whatever I am using the most of at the moment, what I feel like (the oh let's just do XYZ in Foo for the sake of doing it in Foo), or the language I have to (e.g. working a websites CMS or a given library)



A lot of times I try to use the simplest solution first, if I can do it in Bourne I usually will -> the utilities provided on a unix box are to good to write my own!

If I need more then that can do, I'll often apply Perl, Python, or Ruby -> which ever I'm using most of at the time or feel most like using^^


PHP is also a great scripting language and recently has transitioned from most hated to debug to very handy since I learned it had an interactive mode . Because my introduction to the language was having to edit someone else's sludge without even learning the language first lol. Since then I've had to grab the manual and start writing a library for a website that has lacked anyone with a brain behind the code.

I could swear... My predecessor is the first "know nothing" in terms of HTML/CSS/JS/PHP/SQL we've had as a webmaster but most of the code was written by his predecessors (now a graduate of Cambridge) predecessor (who became a MCSE). And I'm probably the first moron on the website to ever hear of doing things "properly" instead of the half rear-ended way!


GUI related projects usually end up in Python with Qt because I don't like C++ for a lot of stuff I'd rather do in C or Perl/Python/Ruby. Most command line driven projects I do end up in Perl or C.


I guess you could say, I don't have a favorite language exactly :|
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 24th May 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

My vote's for PERL, but it's obviously not for everyone or every situation. In my situation, as a network administrator, it's been invaluable in the past. And the fact that most network administrators are just that ("that" being network administrators), and not programmers, means PERL fits well because you don't have to be a complete evil genius to crank out some useful scripts. You can cook something up pretty quickly, and then get back to your life.

I'm seriously on-again-off-again with PERL. I won't touch it for months at a time, then there will be some migration project (like migrating away from MS-DNS to BIND, with 7k domains spread across 30+ DNS servers) and suddenly there's PERL, staring at me with that look on it's face that's saying "Now can I come out and play?"
__________________
Network Firefighter
Reply With Quote
Old 24th May 2008
mtx's Avatar
mtx mtx is offline
Real Name: Valentin Bud
Fdisk Soldier
 
Join Date: May 2008
Location: RO/TM
Posts: 79
Thanked 5 Times in 3 Posts
Default

Quote:
Originally Posted by ai-danno View Post
... And the fact that most network administrators are just that ("that" being network administrators), and not programmers, ...
+1
never have been a programmer (never will be) myself but since i've started using bsd at home/work i had to automate certain tasks and there it comes the efficiency of bourne shell. since i'm at the start of my bsd experience and career in net admin i don't know what will happen with my "programming skills" but bourne shell will always be my "first love".
I am also thinking of perl in the future

/v
__________________
Stop! think! ... the problem is somewhere between the monitor and chair...
"First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi
links: spreadbsd syk
Reply With Quote
Old 24th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
In the "titlebar" of the poll itself it says "edit poll".
i can't find it. maybe it's available only to admin account?
Reply With Quote
Old 24th May 2008
nero nero is offline
New User
 
Join Date: May 2008
Location: Austin, TX
Posts: 9
Thanked 0 Times in 0 Posts
Default

Laugh as much as you wish, but I still use Mumps, Snobol, FORTRAN and APL for little home projects. I'm turning 64 next week, by way of explanation. 'Never have understood why GOTO is such a bad thing. Cheers to your choices from an old fart.
Reply With Quote
Old 24th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by nero View Post
Laugh as much as you wish, but I still use Mumps, Snobol, FORTRAN and APL for little home projects.
Well designed & well implemented code using older tools is a whole lot better than bad code slapped together with trendy tools. Ultimately, it comes down to getting the best out of what tools are available, & this comes from knowing the tools through experience.
Quote:
'Never have understood why GOTO is such a bad thing. Cheers to your choices from an old fart.
As opposed to the platitudes taught in schools, goto has its place, however, it takes significant time to develop the insight needed to know when to use it in a disciplined manner. Paraphrasing Dijkstra, gratuitous use of goto doesn't scale well, & it can make the maintenance job of the next guy inheriting the code a living hell. Given that most code ends up being write-only (It only made sense to whoever wrote it...), & given that most code lives in a maintenance phase, it behooves programmers to have a solid reasoning for using it. If you are maintaining your own code, then you understand why various decisions were made.

As for my experience, I can't recall that I have intentionally used goto's in original code, but I have perpetuated the practice when extending the work of others.
Reply With Quote
Old 4th January 2009
Randux Randux is offline
Disgruntled desktop user
 
Join Date: May 2008
Location: Siberia
Posts: 100
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by nero View Post
Laugh as much as you wish, but I still use Mumps, Snobol, FORTRAN and APL for little home projects. I'm turning 64 next week, by way of explanation. 'Never have understood why GOTO is such a bad thing. Cheers to your choices from an old fart.
Never used Mumps but spent my fair share of time with the rest of what you mentioned.

S/390 assembler is my favorite and most used language. I also like SNOBOL, APL, Ada (haven't used it much but it is waaay cool) and PL/I. I actually used to write quite a bit of 390 object code so for me assembler is still HLL

Still haven't learned a language worth a damn for UNIX programming but maybe Ada will be enough there.
__________________
BSDForums.org refugee #27
Multibooting with LILO

Last edited by Randux; 4th January 2009 at 01:55 PM.
Reply With Quote
Old 4th January 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

> Never have understood why GOTO is such a bad thing

I agree. I suppose GOTO must feel like a natural way to branch to an assembly programmer.
Reply With Quote
Old 24th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

I don't know, doesn't seem like it ... here's a screenshot.
Attached Images
File Type: jpg Capture-1.jpg (37.6 KB, 65 views)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 24th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

nope, i don't get that option.
Reply With Quote
Old 24th May 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
I don't know, doesn't seem like it ... here's a screenshot.
You are back to Windows?

Remember guys, you cant master any language without kitten's assistant

__________________
The power of plain text? It can control an entire OS
Reply With Quote
Reply

Tags
programming, programming language

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favorite Programming Tools JMJ_coder Programming 18 4 Weeks Ago 05:56 PM
your 3 favorite games welkin FreeBSD Ports and Packages 17 5th June 2010 08:26 PM
Best Web Application Language JMJ_coder Programming 24 25th November 2008 12:25 PM
The language here scottro Feedback and Suggestions 11 19th May 2008 11:54 PM


All times are GMT. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick