Author Topic: Python overtakes PHP  (Read 5763 times)

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Python overtakes PHP
« Reply #15 on: February 15, 2011, 12:21:22 PM »

I'm pretty particular about my indentation but I'm working on code written by others that have just horrendous coding styles.  If I had to actually deal with making sure the file was indented properly I'd have gone insane a long time ago.



but that's the nice thing about python. It doesn't matter who wrote the code or what their coding style is, with python, the indentation is guaranteed to be correct consistent (if the program is correct).

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Python overtakes PHP
« Reply #16 on: February 15, 2011, 12:42:18 PM »
I'm sure they'd find a way to break python's indentation :D  (Adding more indentation then is needed, mixing tabs and spaces, etc).

Out of curiosity:  would you say python's indentation is more like K&R or Allman?

Dumah

  • Jackass IV
  • Posts: 960
  • Karma: +21/-6
Re: Python overtakes PHP
« Reply #17 on: February 15, 2011, 04:20:36 PM »
Sooo.....lots of "oh yeah, I dont care"....
;)
Basically :D  Talk to me when Python doesn't freak out over whitespace ;)


I never worried about the whitespace thing. If you have a decent editor it doesn't matter too much. I'm fussy with indentation no matter if I'm using C++ or markup
I keep hearing the "decent editor" argument (for more than just python's indentation but for other things as well) and I don't buy it.  I've had to make code changes using notepad and other really basic editors because that was all I had available to me at the moment.  To me a decent editor is a nice to have.

I often end up editing the files on nano via ssh and don't have a problem with whitespace...
Still I guess we should agree to disagree on the whitespace pitfalls/benefits

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Python overtakes PHP
« Reply #18 on: February 15, 2011, 04:56:09 PM »
Bah, don't need the nerd fight so easily :D

Can we at least agree that a list with lisp and pascal in the top 20 is suspect?

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Python overtakes PHP
« Reply #19 on: February 15, 2011, 10:05:16 PM »
Bah, don't need the nerd fight so easily :D

Can we at least agree that a list with pascal in the top 20 is suspect?

fixed and agreed.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Python overtakes PHP
« Reply #20 on: February 15, 2011, 11:07:30 PM »
Wait, are you a dirty lisp user?

That one assignment gave me nightmares for months.  I almost went blind due to all the parentheses.

That said, I have written a few GIMP plugins using scheme...

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Python overtakes PHP
« Reply #21 on: February 16, 2011, 12:02:42 AM »
I TA a course on functional programming.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Python overtakes PHP
« Reply #22 on: February 16, 2011, 12:28:19 AM »
I TA a course on functional programming.
Which is kinda funny as lisp isn't that functional of a language :P

Dumah

  • Jackass IV
  • Posts: 960
  • Karma: +21/-6
Re: Python overtakes PHP
« Reply #23 on: February 16, 2011, 01:43:14 AM »
I TA a course on functional programming.
Which is kinda funny as lisp isn't that functional of a language :P

That just shows how good he was at it!

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Python overtakes PHP
« Reply #24 on: February 16, 2011, 10:58:09 AM »
hah, they use scheme in the course I TA. But I used lisp in school (and we could only use the functional subset, no destructive assignments etc...)