PDA

View Full Version : What language and when?



slavik
January 4th, 2007, 11:08 PM
Out of interest, list what languages you use and when you use them. This only applies when you can use 2 or more languages and if you know more than one. :)

situations can be copied from here or invent your own (such as when writing for specific platform or such).

for me:
speed - C/C++
quick problem solving (ubuntu programming contest) - perl
something more complex than above where speed is not of concern - Java

thumper
January 4th, 2007, 11:19 PM
server side complexity and speed -> C++
everything else -> Python

At least that is how it is for me at the moment.

Wybiral
January 4th, 2007, 11:19 PM
When I want to test a theory or when I know the project isn't going to become too large, python is becoming my language of choice.

When speed is an issue and I know the project is going to become very large, C++ is my language of choice.

When I feel like playing around and testing some low level stuff, ASM.

When I want to write something small, platform independent, and accessible to everyone, believe it or not... Javascript is pretty versatile.

When I want to write a program with scriptable components, I usually use a mix of C++ and embedded python.

When I'm feeling nostalgic, yet still want to write cool programs, Basic4SDL (http://p13.wikispaces.com/B4SDL).

And when I REALLY want to challenge myself, turing machines are fun. Such as my recent project ScripTur (http://esoteric.voxelperfect.net/wiki/ScripTur).

But mostly C++ for large+fast projects, Python for small+easy to develop projects.

jordilin
January 4th, 2007, 11:26 PM
I love Python and I regularly use it.
In admin tasks there's nothing like shell scripting, and in Linux is a very powerful language like python.
C sharp rocks as well, and I use it if I'm in the ms windows platform.

Mirrorball
January 5th, 2007, 12:39 AM
Work: C++ for the simulations and Python for data analysis.
Web development: PHP, SQL, Javascript.
Everything else: mostly Python, but PHP if a PHP solution springs to my mind first.

coder_
January 5th, 2007, 08:01 AM
Web: PHP, hopefully some more Ruby on Rails soon

Fun: C or Python usually

I'm also a fan of toying around in lex (http://en.wikipedia.org/wiki/Lex_programming_tool) (flex (http://en.wikipedia.org/wiki/Flex_lexical_analyser) actually) and yacc (http://en.wikipedia.org/wiki/Yacc) (bison (http://en.wikipedia.org/wiki/GNU_bison) actually) because I love that kind of stuff. I'm intriegued by parsers and compilers and such. :) Also, designing languages is neat and how they transfer to asm, or whatever the target is. It is some pretty cool stuff that has a lot of uses, but is overlooked by many.

Wybiral
January 5th, 2007, 08:25 AM
Web: PHP, hopefully some more Ruby on Rails soon

Fun: C or Python usually

I'm also a fan of toying around in lex (http://en.wikipedia.org/wiki/Lex_programming_tool) (flex (http://en.wikipedia.org/wiki/Flex_lexical_analyser) actually) and yacc (http://en.wikipedia.org/wiki/Yacc) (bison (http://en.wikipedia.org/wiki/GNU_bison) actually) because I love that kind of stuff. I'm intriegued by parsers and compilers and such. :) Also, designing languages is neat and how they transfer to asm, or whatever the target is. It is some pretty cool stuff that has a lot of uses, but is overlooked by many.

I too share the same interest... Compilers are very interesting. I'm working on a couple of interpreted languages and an assembler right now, if you ever want to mess with them or join the project, just contact me. (Basic4SDL, ScripTur, and now delving into hand coding ELF executables for writing compilers/assemblers)

amo-ej1
January 5th, 2007, 08:29 AM
Work/Fun: C/C++
Task automation: bash/sh
When I've got waaaaay to much time on my hands and am reading SICP: Scheme

What I've used but don't use anymore: Perl/PHP/Java

pmasiar
January 5th, 2007, 02:35 PM
I too share the same interest... Compilers are very interesting.


I'm intriegued by parsers and compilers and such. :) Also, designing languages is neat and how they transfer to asm, or whatever the target is.

You guys might be interested in Forth (http://en.wikipedia.org/wiki/Forth_%28programming_language%29) to see completely different kind of language.

Forth has no grammar (almost: space is delimiter, so say '>V' and ',.' are valid words), assembler is seamlesly integrated, and programming means developing new language for solving your problem. I've seen Tiny-Pascal compiler implemented in 11 pages of commented, not too dense Forth code (including P-machine interpreter). Amazing how Forth allows to stack abstraction levels one on top of another. Almost scary. :-)

raevin
January 5th, 2007, 06:32 PM
C++ : Complexity is heavily there, and I need power.
PHP : Anything for server-side scripting and the like (blogs, CMS, forums, etc...)
ASM : When I'm bored and it's late at night
Any others I know and use still : When I'm bored and it's early in the morning