Code development ideas.

For general rambling.
Post Reply
quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Code development ideas.

Post by quantus »

1) Always give software developers the slowest weakest machine possible so that it becomes impossible to write bad/inefficient code. If they can't run their code to test it, then they'll write it better.
Have you clicked today? Check status, then: People, Jobs or Roads

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

I don't know if that's a stupid idea or a really stupid idea. I have seen what kind of code developers can write before compiling, and it much much wrose than stuff they write after some test. At least it works sometime with testing.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

If code can't be tested in a reasonable amount of time, it doesn't work. Period. Exclamation. Reasonable may be defined differently for different applications, and for the code I'm looking at, it could've been written to go quickly on a pentium, but instead it runs slowly on a P4. If you're trying to simulate the big bang or the aerodynamic properties of a plane, then you really need all those operations and it'll take days. I just want to generate some files.
Have you clicked today? Check status, then: People, Jobs or Roads

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

my master project took 3-4 hours to run one simulation sometimes! I r besterest codar
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

Oh, I see. You are talking about runtime effiiency not correctness of the program. Is it in the spec on how fast the program should run? If not, well too bad.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

Ha! Specs? It'd be nice to have gotten a spec. Anyways, if runtime efficiency is not part of the spec, that does not mean you should go off and solve the meaning of Life, the Universe, and Everything first. Make the thing "reasonably" efficient. I think the problem with most engineering code is two fold. One, usually only the author can run the code. Two, even when someone else can figure out how to use the code, it's so god-awful slow and painful, that you could've done the same thing by hand quicker and easier. The whole point of writing code is to do a job quickly and easily.
Have you clicked today? Check status, then: People, Jobs or Roads

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

Well, if you were working with someone from CMU who has taken 213 and algorithm you won't have this problem.

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

Algorithms didn't teach anything about how to be a better coder. It only taught us to accept our limitations (like getting a 10% on the first test). I suspect Alan learned something similar from his time in 213.
I feel like I just beat a kitten to death... with a bag of puppies.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Regarding engineering code, I see the first problem all the time. Can't say I've witnessed the second. We do have a script which takes a long time to run, but honestly it is just because disk accesses for thousands of gzipped files are painful.

Alan
Veteran Doodler
Posts: 2758
Joined: Fri Jul 18, 2003 2:32 am
Location: Where I am
Contact:

Post by Alan »

George wrote:Algorithms didn't teach anything about how to be a better coder. It only taught us to accept our limitations (like getting a 10% on the first test). I suspect Alan learned something similar from his time in 213.
Yes, thanks to my 7% midterm grade, I ran away from computer science. It was probably the best thing for me as well as the field of computer science.
Image

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

And becoming a doctor is better for the rest of us?
Have you clicked today? Check status, then: People, Jobs or Roads

Alan
Veteran Doodler
Posts: 2758
Joined: Fri Jul 18, 2003 2:32 am
Location: Where I am
Contact:

Post by Alan »

In that you will never have to depend on my coding ability, as George will attest.
Image

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

I like when george attests. makes me all warm and fuzzy.
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Post Reply