General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
TheEVEInspiration
ThePrimeTime
comments
Comments by "TheEVEInspiration" (@TheEVEInspiration) on "8 Design Patterns | Prime Reacts" video.
Who decided that "singleton" is outdated? Probably some n00b with too much podium coming into the scene again, expecting everyone to follow. I hate those people, seriously I do, rewriting language all the time to suit their personal goal. Only idiots go along with that, really F that!
1
It is only useful when you need to control what actually gets instantiated or how it gets configured during or after constructing. In all other cases, just doing a "new" of the proper class is both simpler and easier to follow. So if there is this need, sure, go for it. But I will never consider it a pattern to default to.
1
The "For N in MyList" pattern is of poor quality, because not only is the current item needed, but often also the current index (into the array, or else just the iteration count). Then programmers have to run a counter in conjunction with the iteration, making the construct much less elegant than it could have been. I consider it a poorly invented pattern and poorly implemented in every language so far. Especially considering the index is already kept somewhere in case of an array.
1