Programming Languages

The place to hang out and talk about totally anything general.

What programming language do you most often use?

Assembler
0
No votes
BASIC (and others)
4
8%
C-family
18
37%
Delphi
0
No votes
Haskell
0
No votes
Java
4
8%
JavaScript
2
4%
Pascal
0
No votes
Perl
2
4%
Python
3
6%
PHP
6
12%
Ruby
1
2%
Smalltalk
0
No votes
Visual Basic
2
4%
Multiple. Specify which before voting.
3
6%
Other. Again, only vote this if you are actually going to specify which.
4
8%
 
Total votes: 49
User avatar
KingAl
level5
level5
Posts: 4138
Joined: Sun Sep 10, 2006 7:42 am

Postby KingAl » Wed Jan 30, 2008 10:32 pm

Yeah, there's a real 'tipping' culture in America. Out of interest, what language do you most prefer?
Gentlemen, you can't fight in here: this is the War Room!
Ultimate Uplink Guide
Latest Patch
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Jan 30, 2008 11:23 pm

There is no FORTRAN option, and CowboyNeal is sadly missing. :'(

xander
User avatar
The GoldFish
level5
level5
Posts: 3961
Joined: Fri Mar 01, 2002 9:01 pm
Location: Bowl / South UK
Contact:

Postby The GoldFish » Thu Jan 31, 2008 4:17 am

My favoured programming language is Assembly. But not for coding on PCs so much... PCs have too many layers of bullshit going on with their OS for my liking!

Most recently I've messed with LSL, the SL scripting language which is exceptionally slow, dated and has very limited memory and data structure support, as well as dabbling in Lua though so far I've had little real experience with it (sadly, mostly meddling with WoW interface addons). The only thing of any scale is some ground work for Antithesis (a game I may or may not ever make, sequal to BGE) which I did in an offshoot of basic. Because of that, at the moment my mind thinks of programming only in basic, which is wierd after being with C and similars for so long - I did a bit of C at university, mostly data structure orientated stuff rather than anything extreme / helpful, and LSL is relatively C like, as is Lua (at least in my mind). Hopefully I'm going to overhaul Antithesis' procesing structure and main service routines, while simultaneously migrating to C++ and doing some proper rendering (although it is all 2D). Depending on the libs and whathaveyou I get to use will depend on if this ever happens, since I'm used to some fairly lovey dovey functions with the offshoot it was originally made in.
byrneda
level1
level1
Posts: 21
Joined: Thu Dec 21, 2006 10:47 am
Location: Dublin

Hrm - does scripting count?

Postby byrneda » Thu Feb 14, 2008 1:57 am

Lessee - in college I tried my hand at Modula 2, C, Assembler (Motorola 68000), COBOL but none really stuck, as much as my next love which I've been using for the last 7 years:
DOS Batch Files
:shock:

I love scripting languages, as I can never get my head around all the data objects that have to be initliased at the beginning (but that might be changing).

To this end, I've written a little batch file which you can call whatever you want (but it's only been tested, and written on, Windows)

Code: Select all

@echo off
setlocal
cls

title Who are you?
echo Please Enter Your Name:
set /p NAME=

title The world says HI to you, %NAME%
echo.
echo Hello %NAME%, what do you think of Subversion?
echo.

for /l %%I IN (10,-1,1) do (
  call :UPDATE %%I
)
title See you later :o)
goto :END

:UPDATE
title %1...
ping -n 2 127.0.0.1 > nul
goto :EOF

:END
endlocal
pause


Can anyone point me in a nice direction to learn about scripting game engines? I've tried the Unreal Game Engine and its unreal script, and to be honest, it scared me away!
I learn by example (easiest and best way, actually - nothing like a good bug hunt) and would love to find a game which can be easily accessible for scripting with either Lua or Ruby (that sample script posted by Chris http://www.amk.ca/python/simple/letters.html is another no-no for me).

Next on the list is to harness in the likes of the WMI script.
:oops:
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: Hrm - does scripting count?

Postby xander » Thu Feb 14, 2008 5:07 pm

jelco the galactaboy wrote:I find that interesting, as I can understand much of the code (sort of) even though it's my first time seeing a Python script. Perhaps it's because the syntax bears much resemblance with PHP. Did you also notice that the URL denotes it's simplicit

A language is a language is a language. They all have loops, and variables, and such (well, most of them). If you are familiar with one scripting language, any other scripting language should be intelligible, unless intentionally written otherwise (I'm looking at you, perl). Also, if you know a scripting language, a compiled language like C++ or FORTRAN shouldn't be terribly difficult to interpret, either.

At the end of the day, all programming languages are doing about the same thing, and the differences are in the style, or specific syntax.

xander
Stewsburntmonkey
level5
level5
Posts: 11553
Joined: Wed Jul 10, 2002 7:44 pm
Location: Nashville, TN
Contact:

Re: Hrm - does scripting count?

Postby Stewsburntmonkey » Thu Feb 14, 2008 5:14 pm

xander wrote:
jelco the galactaboy wrote:I find that interesting, as I can understand much of the code (sort of) even though it's my first time seeing a Python script. Perhaps it's because the syntax bears much resemblance with PHP. Did you also notice that the URL denotes it's simplicit

A language is a language is a language. They all have loops, and variables, and such (well, most of them). If you are familiar with one scripting language, any other scripting language should be intelligible, unless intentionally written otherwise (I'm looking at you, perl). Also, if you know a scripting language, a compiled language like C++ or FORTRAN shouldn't be terribly difficult to interpret, either.

At the end of the day, all programming languages are doing about the same thing, and the differences are in the style, or specific syntax.

xander


That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.
Stewsburntmonkey
level5
level5
Posts: 11553
Joined: Wed Jul 10, 2002 7:44 pm
Location: Nashville, TN
Contact:

Postby Stewsburntmonkey » Thu Feb 14, 2008 5:27 pm

jelco the galactaboy wrote:Well, when I look at the Lua example Chris picked (http://lua-users.org/wiki/SciteCleanDocWhitespace) I get an immediate dislike of Lua. For the simple reason that the syntax is unreadable to me when clauses aren't included in {wiggly brackets} or even (normal brackets) but in opening statements and 'end' statements. If only for that, I'd never pick that language. So this small difference in syntax makes the languages stand apart completely to me.

Jelco


I'm the same way. Curly bracketed clauses are just so much easier for me to read.
byrneda
level1
level1
Posts: 21
Joined: Thu Dec 21, 2006 10:47 am
Location: Dublin

Postby byrneda » Thu Feb 14, 2008 5:55 pm

jelco the galactaboy wrote:Well, when I look at the Lua example Chris picked (http://lua-users.org/wiki/SciteCleanDocWhitespace) I get an immediate dislike of Lua.


Funny thing that - I look at the Lua code and I like its format.
I reckon the opening and end statements make it for me, as its so very close to batch scripting (although the end in my scripts usually are a "goto", which, in itself, can get very confusing if the functions aren't managed properly.

Although, it does seem to have some likeness to SED http://www.grymoire.com/Unix/Sed.html in that its way of performing a Regular Expression seems rather natural to me.

This is cool - always nice to find out why people like one scripting language over another.

Anyone tried Ruby?
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: Hrm - does scripting count?

Postby xander » Thu Feb 14, 2008 6:27 pm

Stewsburntmonkey wrote:That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.

Indeed. I should have included that caveat.

xander
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Re: Hrm - does scripting count?

Postby martin » Fri Feb 15, 2008 12:13 am

xander wrote:
Stewsburntmonkey wrote:That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.

Indeed. I should have included that caveat.

xander


I was having a discussion similar to this with my dad yesterday on the way back from an applicants day at Birmingham university (for computer science applicants). I was moaning that Bham only teaches one language, java, and I'd have thought it would be better to teach several; but he pointed out that when you learn a new language you really learn the concepts the language is built on. Hence why it's so easy to understand that python script for a lot of people with some programming experience but no python experience to understand that script - it uses concepts a lot of other languages use and nothing particularly python specific.
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
User avatar
Pox
level5
level5
Posts: 1786
Joined: Sat Mar 03, 2007 11:23 am
Location: Melbourne

Re: Hrm - does scripting count?

Postby Pox » Fri Feb 15, 2008 12:21 am

martin wrote:
xander wrote:
Stewsburntmonkey wrote:That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.

Indeed. I should have included that caveat.

xander


I was having a discussion similar to this with my dad yesterday on the way back from an applicants day at Birmingham university (for computer science applicants). I was moaning that Bham only teaches one language, java, and I'd have thought it would be better to teach several; but he pointed out that when you learn a new language you really learn the concepts the language is built on. Hence why it's so easy to understand that python script for a lot of people with some programming experience but no python experience to understand that script - it uses concepts a lot of other languages use and nothing particularly python specific.


Yeah, apart from the syntax.

Rawr, I'm a python-stomping troll.
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Re: Hrm - does scripting count?

Postby martin » Fri Feb 15, 2008 12:46 pm

Pox wrote:
martin wrote:
xander wrote:
Stewsburntmonkey wrote:That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.

Indeed. I should have included that caveat.

xander


I was having a discussion similar to this with my dad yesterday on the way back from an applicants day at Birmingham university (for computer science applicants). I was moaning that Bham only teaches one language, java, and I'd have thought it would be better to teach several; but he pointed out that when you learn a new language you really learn the concepts the language is built on. Hence why it's so easy to understand that python script for a lot of people with some programming experience but no python experience to understand that script - it uses concepts a lot of other languages use and nothing particularly python specific.


Yeah, apart from the syntax.

Rawr, I'm a python-stomping troll.


yes but the syntax is usually pretty simple to pick up, from looking at example scripts and then constantly attempting to run it and discover the bugs that are automatically picked out ;)
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
User avatar
Pox
level5
level5
Posts: 1786
Joined: Sat Mar 03, 2007 11:23 am
Location: Melbourne

Re: Hrm - does scripting count?

Postby Pox » Sat Feb 16, 2008 12:47 am

martin wrote:
Pox wrote:
martin wrote:
xander wrote:
Stewsburntmonkey wrote:That is unless you switch from procedural languages to a functional language like LISP which a completely different animal.

Indeed. I should have included that caveat.

xander


I was having a discussion similar to this with my dad yesterday on the way back from an applicants day at Birmingham university (for computer science applicants). I was moaning that Bham only teaches one language, java, and I'd have thought it would be better to teach several; but he pointed out that when you learn a new language you really learn the concepts the language is built on. Hence why it's so easy to understand that python script for a lot of people with some programming experience but no python experience to understand that script - it uses concepts a lot of other languages use and nothing particularly python specific.


Yeah, apart from the syntax.

Rawr, I'm a python-stomping troll.


Bah, the syntax has no advantage in my opinion, I would probably use python for the do-it-right model if not for the syntax... Nearly all widely-used languages in the last 20 years have been based on curlys and semicolons, they were mad to change it.

yes but the syntax is usually pretty simple to pick up, from looking at example scripts and then constantly attempting to run it and discover the bugs that are automatically picked out ;)

Return to “Introversion Lounge”

Who is online

Users browsing this forum: No registered users and 18 guests