Page 1 of 1
Code development ideas.
Posted: Thu May 19, 2005 4:05 am
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.
Posted: Thu May 19, 2005 4:24 am
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.
Posted: Thu May 19, 2005 6:56 am
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.
Posted: Thu May 19, 2005 1:02 pm
by Dave
my master project took 3-4 hours to run one simulation sometimes! I r besterest codar
Posted: Thu May 19, 2005 2:20 pm
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.
Posted: Thu May 19, 2005 5:04 pm
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.
Posted: Thu May 19, 2005 6:13 pm
by Peijen
Well, if you were working with someone from CMU who has taken 213 and algorithm you won't have this problem.
Posted: Thu May 19, 2005 6:38 pm
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.
Posted: Thu May 19, 2005 6:39 pm
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.
Posted: Fri May 20, 2005 5:36 am
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.
Posted: Fri May 20, 2005 5:27 pm
by quantus
And becoming a doctor is better for the rest of us?
Posted: Sat May 21, 2005 5:41 am
by Alan
In that you will never have to depend on my coding ability, as George will attest.
Posted: Mon May 23, 2005 2:14 pm
by Dave
I like when george attests. makes me all warm and fuzzy.