Very BAD routines in your book!!!


Martsis John
10-06-2006, 06:32 AM
WORST CODE EVER SEEN!!!

I am sorry to say this...I have been programming for many years with C/C++ and when I read Numerical recipies with C++ I realised that the routines given in the book are the,

WORST
NOT WELL WRITTEN
CONFUSING
examples I HAVE EVER SEEN

Guys...

Why do you make life difficult???
The use of so many loops and variables is not a good practice in C++. Maybe you should study some good book about C++ and OOP.

Also I don't see any difference in routines from NR with C and NR with C++. DID U FORGET about classes and object oriented programming

Being good in DSP theory and in programming are two distinct things!

I have developed my own programs for FFT and spectrum estimation of real and complex data since your four1 simply does not work as given in the book.

Please revise your code to OOP because it is OLD and not well written!


ALSO..Next time use MATLAB or OpenGL programming to visualise your results

QuantumString
02-07-2007, 08:31 AM
Or maybe you should just learn to program (honestly)

Numerical Recipes isn't just a book chalk full of code put there so you can plagiarize it, you know! Have you put much thought into how much good programmers are being paid recently? In case you didn't notice, Numerical Recipes is littered with those neat little things called chapters and paragraphs that assist you in understanding the underlying principles of the code outlined. Maybe you should look up the definitions for these two words if they are not familiar to you.

Also, it has been noted that inexperienced programmers often tend to complain when they cannot interpret other more experienced programmers' code.

Have you ever wondered why that is? I have.

Seriously tho... stop whining like a 2nd year undergrad and do some real research for a change!

-Cambridge University Press-

briemann1
02-16-2007, 03:37 PM
Nice response QuantumString .... for the most part the NR routines are very well done. Alas, some folks would whine if they were hung with a new rope!!