Re: Pass by Reference
- Posted by Shian_Lee Jan 03, 2015
- 2950 views
I think that programming style fits to specific personality; Personally I really don't like 'Pass by Reference' - because it's less maintainable and very confusing. local and global variables I use with caution, when really necessary, with full documentation.
I think that Euphoria is very safe if you're a disciplined programmer. But I/O routines must not trigger a fatal error - instead they should return an error value. I don't see why an I/O error should crash a program, it's ridiculous.
David's 'filters' program can be written very easily in Euphoria, in many ways, as long as you are a disciplined and consistent programmer.
I've never learned programming officially. Yet I took the job from professional programmers because the programs I wrote were maintainable. My last boss realised very quick that maintainable programs are saving him a lot of money.
For writing maintainable programs, I try to avoid any advanced or confusing feature, such as 'Pass by Reference', overriding identifiers, etc.