View Single Post
  #26   Report Post  
Posted to uk.d-i-y
Tim Watts[_3_] Tim Watts[_3_] is offline
external usenet poster
 
Posts: 7,434
Default OT - Programming Languages

On 29/01/15 09:09, Dave Liquorice wrote:
On 28 Jan 2015 22:19:59 GMT, Huge wrote:

Boy1 ...


Only daughters are numbered, boys have names. B-)

... (13) is interested in learning how to write code ...


Code to do what? Writing a game that is much above Pong or Breakout
takes a lot of effort. "Hello World" gets boring after a while. There
has to be an itch that needs to scratched.

I'd go for Python.


Hum, personally I'm not keen on Python, it relies on correct and non
mixed (tab/space) indentation to run and when it doesn't it doesn't,
in my experience, tell you that it's upset about the indentation, it
just weird things (cause code is being run in an unexpected order) or
falls over with an error "that can't happen", except when the code is
running in an unexpected order.


I agree - was ranting about this at work the other day. Managed to
offend all my colleagues when I said, after learning some python to hack
on an existing script:

Nice langauge, shame about the syntactically significant indenting crap.

.... and something about muppets.

After having wasted 2x 30 minutes finding a logic error (not a syntax
error) due to a line having slipped over.



Oh, and python changes it's damn syntax randomly.

except IOError, e:
or
except IOError as e:


c'mon on - make up your minds....


This is the singularly most annoying thing for me as a sysadmin - having
multiple versions of python installed because someone needs some new
stuff and some old stuff won't run under the new version. I'm talking
sub versions in the 2.x series here - not even 3.x

Perl on the other hand is extremely well behaved with a very long term
deprecation policy.