News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by chrischattin on Thursday May 28, 2020 @01:55PM (#23340279)
I get how this works and the reason for it. It just doesn't feel DRY to me. Like we're adapting to satisfy a pattern vs the pattern serving us and our dev goals. Aesthetically unpleasing, imo.
Re:The use of `class` for things that should be simple free ... by encoderer on Thursday May 28, 2020 @02:13PM (#23340460)
We suffer so many bad abstractions at the church of DRY.
Re:The use of `class` for things that should be simple free ... by mehrdadn on Thursday May 28, 2020 @04:53PM (#23342448)
There's nothing repeating here... you define a procedure to achieve a higher-level task, which is a combination of other tasks. Kind of like File.ReadAllBytes() vs. FileStream. Later you use it when you need to perform that high-level task.