Re: Unit-testing in same file

new topic     » goto parent     » topic index » view thread      » older message » newer message

A monolithic program with multiple includes is quite feasible and executable in Euphoria. Even Matt's own wxEuphoria can be considered monolithic. When I use it with about 20 files of my own 200 or so functions, with all files included at the beginning, there are no problems.

Namespaces were invented at the time when programmers were finding it difficult to give unique names to their functions. With due respect to the efforts of Euphoria programmers who use and are trying to convert everything to namespaces, I feel it is not necessary. Certainly the CPUs and the memory in the computers of today far exceeds what you can normal throw at them.

During development, I use the technique of calling all functions by their full names i.e. nm1:fn7 nm5:fn9 etc. I then use word processors to identify duplicate function names and apply corrections.

Perhaps, having been taught by teachers of the old school, I am old-fashioned, but a monolithic program calling functions in 20 different files in the same sub-folder works with me, using a larger amount of comments within each file and function.

Just my two-pence – no, two-cent's worth!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu