News for hackers. Stuff that matters.
Re:"Useless Ruby sugar": Argument forwarding by viralpraxis on Friday November 24, 2023 @04:39PM (#38408670)
I’ve been using the same structure for years :)

But I prefer to replace ‘raise NotImplementedError’ with ´raise “Not Implemeneted”’ because that exception has different semantics (method unavailability on the current platform)

Re:"Useless Ruby sugar": Argument forwarding by prognostikos on Saturday November 25, 2023 @02:54AM (#38412025)
I also avoid `NotImplementedError` as it inherits from `Error` instead of `StandardError`. This can bring down services like job queue processors that rescue `StandardError`.