| Author |
Thread Statistics | Show CCP posts - 5 post(s) |
|

CCP Tuxford

|
Posted - 2011.02.18 22:03:00 -
[1]
I love python and love programming in it. It's very easy to which makes it easier for you to focus on the architecture rather than battling the syntax.
It's similar to C++ and Java but programming in python like you're programming in C++ or Java doesn't make you a good python programmer (actually it probably makes you a bad one ).
There is only one thing I've come across that I find weird about python. I understand the reasoning but I still find it weird.
def foo(x=[]): x.append("foo") return x
Now call foo() twice 
The Zen of Python _______________ |
|
|

CCP Tuxford

|
Posted - 2011.02.18 22:05:00 -
[2]
Originally by: Nypheas Azurai lol python. do they really code any significant amount of this game in it? if so, that would explain a lot.
real men use C++, and girly men at least use lua. only magical fairies hopped up on pixie DUST use LULZ WHITESPACE IS SIGNIFICANT language
good python code > bad c++ code _______________ |
|
|

CCP Tuxford

|
Posted - 2011.02.18 22:30:00 -
[3]
Originally by: Nypheas Azurai
Originally by: CCP Tuxford good python code > bad c++ code
good managed code > bad unmanaged code unmanaged-code programmers > managed-code programmers
I'll take the ability to shoot myself in the foot any day. I mean isn't that what EVE's all about?
It is easier to code in python than C++. If you think otherwise you have either never programmed in python or never coded in C++. The quality of the coders is an entirely different debate but tbh I think it's childish to belief that somehow programming in C++ mystically makes you a better programmer it all depends on what you do not the language you use.
Having said that then it's all I have to say on the subject. Aren't religious debates banned on this forum anyway  _______________ |
|
|

CCP Tuxford

|
Posted - 2011.02.18 22:36:00 -
[4]
Originally by: Cambarus Edited by: Cambarus on 18/02/2011 22:31:05
Originally by: Sephira Galamore
Originally by: CCP Tuxford
There is only one thing I've come across that I find weird about python. I understand the reasoning but I still find it weird.
def foo(x=[]): x.append("foo") return x
Now call foo() twice 
Having no clue about Python but taking your comment into consideration, I'd guess you'd get "foofoo". :)
You'll actually get ['foo', 'foo'] not gonna lie, not sure why though, I'd have thought x would be reset to an empty list when called. EDIT: This is actually bugging me, I'm taking programming in university and we're using python, and I've never noticed that before, why DOES it do that?
This probably explains it better than I can
_______________ |
|
|

CCP Spitfire
C C P C C P Alliance

|
Posted - 2011.02.19 09:02:00 -
[5]
Moved from 'EVE General Discussion'.
Spitfire Community Representative CCP Hf, EVE Online |
|
| |
|