Re:Show HN: Send a slack msg with AWS IoT button
by tyingq on Sunday July 30, 2017 @10:52AM
(#14886186)
>lacks essential concepts like object orientation and exceptions
Perl does OO without Moose. There is a tiny bit of boilerplate, but it's essentially bless() and 1 or 2 lines in the constructor.
Try/catch blocks are indeed an add on. The traditional pattern is more golang like, returning an error code, then using Carp or similar for stack traces.
>Why would you choose something like this instead of Python or Ruby?
That might be an interesting discussion for a large codebase, but for something limited in scope like this, I just don't see the problem.
Perl does OO without Moose. There is a tiny bit of boilerplate, but it's essentially bless() and 1 or 2 lines in the constructor.
Try/catch blocks are indeed an add on. The traditional pattern is more golang like, returning an error code, then using Carp or similar for stack traces.
>Why would you choose something like this instead of Python or Ruby?
That might be an interesting discussion for a large codebase, but for something limited in scope like this, I just don't see the problem.