3 ms·
In my first programming job I was working on a financial application in VB6 where there were two global variables that were used to pass extra parameters. If th
by coutego 4y ago
In my first programming job I was working on a financial application in VB6 where there were two global variables that were used to pass extra parameters. If there was something to pass which was not on the signature you would just leave it on the first variable. Sometimes that variable was already used to pass something to the current function so you would use the second one. I kid you not.
Why all this nonsense? No idea. When asking people looked at me as if I was some kind of purist. They didn't seem to even understand this was not a good idea.
Now I find myself 23 years later, after having long left all that imperative crap, getting TDD, Spring and all those niceties just to find people to come back with dynamic variables as if they were a good idea instead of a needed hack when you don't have something better. I guess next trend will be factories and singletons. I just don't get it. It's very sad.