n00ki3 n00ki3 - 1 year ago 87
C++ Question

is it reasonable to program an algorithm without function calls?

I am programming an algorithm for a library and I didn't use function calls at all.
The algorithm is about 100 lines and there is no duplicate code.or should I use inlining?

Answer Source

Is your algorithm readable? Maybe dividing it into several functions would be beneficial for readability (and hence maintainability) even if it will not reduce duplication.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download