views:

394

answers:

16

During a normal work-day, tackling a variety of tasks, there's the potential for several programming languages to be used.

There's application work, with C#, VB.NET, C++, Java, Fortran, then there's database work with involves SQL, and then there's maintenance work involving languages like Python, Perl, PHP, or even bash scripts and similar.

Which programming languages do you use, for which task, and why?

Since this is a poll-type question, please state your main line of work, be it developing web applications or desktop applications, systems maintenance, systems administration, etc.

+1  A: 

Our shop focuses almost exclusively on VB.NET, but you could also say that I have to work with VB and JavaScript since I do a lot of ASP.NET development.

SQL if you want to count that as a programming language as well.

TheTXI
Why wouldn't you? It is the lingua franca of Databases.
George Stocker
@Gortok: it's not even Turing-complete! (but I guess you could still consider a programming language...)
Zifre
SQL itself doesn't feel like a programming language. TSQL on the other hand...
Min
I personally consider it a programming language, just not sure about the rest of the community.
TheTXI
+1  A: 

It really depends what you are doing.

For a web developer, it would be very common to work with a client-side and a server-side language every day, such as javascript and Java.

Edit: you would use HTML and possibly XML, but these are markup languages. I'm honestly not sure what CSS would be considered, but yes, you use that also.

Zack
Just one of each? += HTML, SQL, XML, CSS...
annakata
@annakata: none of those are real programming languages(SQL maybe but is not turing complete)
hiena
A: 

The fewer programming languages I'm dealing with at any given moment in time, the fewer times I find myself making really dumb syntax mistakes.

nikudesu
A: 

On a given day I try to limit it to 2 or 3, but in a given week it may be 5 or 6.

patros
+1  A: 

For web development:

PHP-JS-SQL-{HTML}-{CSS}

Lets count this as... 3.5 languages?

elcuco
Same here, and sometimes I write a small C# tool to help do some work.
Aistina
I would count HTML, CSS, and JS as 1 language. Its hard to make a modern site without all 3. Also, sql is not turing complete so it should also not count as a full language.
Unknown
Unkown, but JS is (as far as I know) turing complete. So your reasoning is flawed :P
Aistina
Just got back from learning what 'turing complete' means! :)
Nick
+1  A: 

Neverminding the other languages I deal with, the first number I thought of was 5, with the list having only one entry: "Javascript"... damn browsers. :)

I suppose "optimal" is measured by the fewest which allow you to create a solution which is reasonably maintainable down the line.

lance
+2  A: 

I am a web application developer, in the last week I've done the following:

  • Created Stored Procedures using T-SQL for SQL Server
  • Debugged Perl Script that created databases
  • Written C# Web-service code
  • Written JavaScript (Both with and without JQuery)
  • Debugged CSS and HTML issues in IE6 and IE7

On my personal time, I've also used the ASP.NET MVC platform and C# to write a customized Content Management System.

George Stocker
sans the perl scripting these are my languages exactly but add IE8, Chrome, Firefox, Safari, and Opera to the list of browsers we test against
knight0323
Professionally, we only test against IE6 and IE7 (although firefox is on the roadmap). This is because our clients are corporations, which primarily use IE6 (and to a lesser extent, IE7). On a personal level, I test to Firefox first, and IE second.
George Stocker
A: 

On a good day, one. On a bad day it's 6-7. I find myself looking up simple syntax a lot more when I'm using many at one time.

Travis
A: 

Probably 1/2 a day mainly switching between Ruby / plpgsql (if that counts?) and BASH.

Though sometimes I may have to debug some JavaScript.

Omar Qureshi
+2  A: 

To make maintenance easier you want to keep the number of different programing languages to a minimum. For me the answer is that I use 2-3 in an average project. Currently I use three languages at work: 1. C++ for needed low level programing. 2. C# for application level programing. 3. VB.NET for some VB related functionality and code examples shipped with the application.

I've used C# and C++ in many projects and found that it covers most of the project's needs.

Dror Helper
A: 

I work as a web developer so on any given day I will be writing/debugging HTML, CSS, Javascript and .Net apps. In my free time I enjoy c++ and c#. I have also been contracted to port a vb app to c# so its going to get interesting...

If I were learning a new language, I would definitely recommend C++ and C#, interesting, powerful and if you are good in c++ you can probably work in anything...

flavour404
A: 

I work for a creative studio and do some freelance work. I am often switching between the following:

  • Actionscript 2 (mainly on old legacy projects)
  • Actionscript 3 (most of my day job projects)
  • javascript (personal projects/user scripts)
  • C# (getting a few projects now for WPF)
  • Processing (quick sketches of ideas/personal projects)

Also some markup and other "languages":

  • HTML/CSS
  • XAML
  • XML (didn't want to put this, but I use it a lot)
  • regex (does this count?)
TandemAdam
A: 

Mostly C#, followed by XSLT/XPath, T-SQL, Javascript, VB.NET when it's forced on me, Power Shell, VBA, and HTML and CSS if you're counting those. So that's about 6-9.

Cognivore
A: 

I use 3 languages every days and 6 or so every weeks.

BUT I really know only 2, maybe 3 of them. When I code using the others, I'm googling every 5 minutes !

(Hey, but it works ! :)

  • Every day or so : VB.NET, C#, SQL/T-SQL.
  • Every week : HTML, XML, C, JavaScript.
  • Every other weeks : Make files, batch files.
  • Really known languages : C, C#, VB.NET.

Cool question ^^

Sylvain
A: 

VB.NET and Javascript at work, with a healthy dose of CSS.

VB.NET, VB6, C++, Javascript, PHP, C#, 65816 ASM, and a bunch of smaller languages at home, for whatever little project I'm working on at the time.

Sukasa
A: 

I've been fortunate to be working with just one language for the past year: C++/CLI. And each day I'm surprised by how little of it I actually know.

Vulcan Eager