Journeys of a not so young anymore Software Engineer Software Engineering, Humans, Ruby, Elixir, the web As I just happened upon it again, I gotta take a moment to talk about one my most despised ruby code patterns: Struct.new(...).new – ever since I happened upon it for the first time. Struct.new? Struct.new is a convenient way to create a class with accessors: 2.2.2 :001 > Extend = Struct.new(:s
![Don’t you Struct.new(…).new(…)](https://cdn-ak-scissors.b.st-hatena.com/image/square/3d45abc5f96f5ca43d44d65495ed3c390c722cc3/height=288;version=1;width=512/https%3A%2F%2Fpragtob.wordpress.com%2Fwp-content%2Fuploads%2F2016%2F04%2Fstruct_new_benchmark2.png)