Re:The controller pattern is awful (and other OO heresy)
by 000ooo000 on Tuesday July 11, 2023 @11:38PM
(#36690216)
Do you put all of your source code files in 1 folder?
[ Parent
| on HN ]
Re:The controller pattern is awful (and other OO heresy)
by afiori on Wednesday July 12, 2023 @06:31AM
(#36692567)
I am confused on the relevance of this question
Re:The controller pattern is awful (and other OO heresy)
by 000ooo000 on Wednesday July 12, 2023 @06:51AM
(#36692697)
My obtuse point is that though sorting your source code files into various directories offers no functional benefit*, some folk find it useful from an organisational perspective. Maybe there's an element of that in housing functions an object.
*bear with me - admittedly there are languages/technologies where directory structures are required, but hopefully you get my point.
Re:The controller pattern is awful (and other OO heresy)
by afiori on Wednesday July 12, 2023 @08:15AM
(#36693420)
My point was that if a function in your language is
class {public function call() {...}}
then it is going to be unergonimic to write what other languages write as array.map((elem)=>{...})