Server Help

Trash Talk - Python is cool?

i88gerbils - Tue May 09, 2006 1:58 pm
Post subject: Python is cool?
So I was reading that informal python tutorial waiting for a client's machine to run some updates and I noticed something:

Code: Show/Hide
...       a, b = b, a+b


What? How cool is that? If it weren't for all this gay new formatting to learn I'd learn this in a heartbeat.
Mr Ekted - Tue May 09, 2006 3:12 pm
Post subject:
Why would you ever do something as convoluted as that?
i88gerbils - Tue May 09, 2006 3:22 pm
Post subject:
if you wanted to display the fibonacci sequence?

sorry, i didn't display the whole code snippet, but just the part i liked about the syntax.
Mr Ekted - Tue May 09, 2006 4:17 pm
Post subject:
Yes. And I'm saying it is silly to code that way just because you can. It is confusing.
Dr Brain - Tue May 09, 2006 10:12 pm
Post subject:
Agreed, do it in two/three lines like everyone else
Mine GO BOOM - Tue May 09, 2006 10:26 pm
Post subject:
Mr Ekted wrote:
Yes. And I'm saying it is silly to code that way just because you can. It is confusing.

I take it you just l o v e perl and viewing other people's code?
Dr Brain - Tue May 09, 2006 10:36 pm
Post subject:
Perl coders should be rounded up and shot. Right after the self modifying assembly coders are.
i88gerbils - Tue May 09, 2006 10:59 pm
Post subject:
Dr Brain wrote:
Perl coders should be rounded up and shot.


:*(
Mr Ekted - Tue May 09, 2006 11:13 pm
Post subject:
Mine GO BOOM wrote:
I take it you just l o v e perl and viewing other people's code?


I hate perl, and I hate other people's code. My programming philosophy is all about code ownership. Even if it's a multi-person project. Break things up into functional blocks. Define the interfaces between them. Give each block to a programmer. They are the experts in their respective blocks, and do all the design, coding, commenting, and maintenance.

You touch it, you own it. Taking someone else's code and trying to fix something is just asking for trouble. You often have no idea how far reaching a simple change might be--how it affects the rest of the design. People should also be able to use whatever coding style they want--whatever is easiest for them (and not anyone else) to read. If the person quits, then assign the block to someone else and let them reformat it to suit their needs.

The whole notion of full-blown code sharing on a massive project makes me want to vomit diced carrots.
i88gerbils - Wed May 10, 2006 12:15 am
Post subject:
That's okay. Perl still loves you.
SamHughes - Wed May 10, 2006 11:12 am
Post subject:
Mr Ekted wrote:
Yes. And I'm saying it is silly to code that way just because you can. It is confusing.


That's an ignorant viewpoint. If you consider anything that doesn't copy the behavior of C to be confusing and silly, you'll just be restricted to coding in these types of assembly languages all your life: C, C++, and Java. If you consider "a, b = b, a + b" to be convoluted, there's something wrong.
Dr Brain - Wed May 10, 2006 12:08 pm
Post subject:
C, C++ and Java aren't assembly languages.

If it made the code more obvious, then I'm all for it, but making things more obscure is just dumb, especially when the less obscure way is 1 extra line.
SamHughes - Wed May 10, 2006 12:42 pm
Post subject:
Dr Brain wrote:
C, C++ and Java aren't assembly languages.


Really, they are assembly languages. Not really.

They're not high level in any way. Everything you write in them maps directly to how processors execute instructions, and when you write in them, you have to tailor your code to how the processor thinks, not how humans think. Obviously, you don't write instructions like mov %eax, %edx, but that's not the point I was making. These languages provide virtually no level of abstraction above the way machines work.
Dr Brain - Wed May 10, 2006 1:48 pm
Post subject:
You are a moron. Please never go into programming as a profession.
Mr Ekted - Wed May 10, 2006 2:45 pm
Post subject:
Wow, I agree with Brain.
i88gerbils - Wed May 10, 2006 4:16 pm
Post subject:
I agree with 9:08am Brain.
Cyan~Fire - Wed May 10, 2006 6:40 pm
Post subject:
Oh, I agree with 1:48pm Brain. icon_sad.gif

And Ekted, what if someone makes some crappy app but it's open-source? You should remake it yourself instead of modifying his code?
Bak - Wed May 10, 2006 8:25 pm
Post subject:
I disagree, RPI forever
Mr Ekted - Wed May 10, 2006 8:29 pm
Post subject:
Cyan~Fire wrote:
And Ekted, what if someone makes some crappy app but it's open-source? You should remake it yourself instead of modifying his code?


Well, there are 2 issues: crappy code and sloppy code. If someone writes crappy code, why use it all? Make your own. If someone makes sloppy code, then you have 2 options: submit fixes and let them work it into their own style, or take all the code and reformat it to your style (then you have to do it all yourself).
Cyan~Fire - Thu May 11, 2006 11:02 am
Post subject:
Ekted wrote:
or take all the code and reformat it to your style (then you have to do it all yourself)

Alright, that was what I was talking about.
Smong - Mon May 15, 2006 4:41 am
Post subject:
I'd like to point out you can unpack tuples in a similar way:
Code: Show/Hide
x, y, z = (1, 2, 3)
This gets used in asss modules.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group