News for hackers. Stuff that matters.
Re:That's Not an Abstraction, That's Just a Layer of Indirec... by themadsens on Saturday December 28, 2024 @05:14AM (#42529921)
Well said! I have met a few of these codesmells where the actual functioning is hidden behind a bewildering maze of facades, shims, proxies and whatnot.

I guess some has had an irresistible itch to use as many patterns from the GoF book as possible.

Re:That's Not an Abstraction, That's Just a Layer of Indirec... by xtracto on Saturday December 28, 2024 @07:30AM (#42530588)
Smells like Ruby to me haha. I know is not the language, but for some reason the ruby code I've stumbled into are all like that.
Re:That's Not an Abstraction, That's Just a Layer of Indirec... by vidarh on Saturday December 28, 2024 @10:01AM (#42531472)
To me it sounds like what I use Ruby to get away from.

It's rare to need facades, proxies, and shims in a dynamically typed language where the caller doesn't need to care about the type of the object they call.

In fact, most of the Gang of Four design patterns either make no sense in Ruby or are reduced to next to nothing.