Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^5: RFC: Swagger-codegen for Perl

by TGI (Parson)
on Jun 05, 2015 at 21:02 UTC ( #1129257=note: print w/replies, xml ) Need Help??

in reply to Re^4: RFC: Swagger-codegen for Perl
in thread RFC: Swagger-codegen for Perl

IMHO, Moose is a pretty big dependency to add. All that we need here are vanilla objects. Blessed hashes are fine.

Raisin manages to tie type information into Swagger merely with Type::Tiny. So even creating documentation doesn't need Moose.

TGI says moo

Replies are listed 'Best First'.
Re^6: RFC: Swagger-codegen for Perl
by Anonymous Monk on Jun 06, 2015 at 01:19 UTC

    IMHO, Moose is a pretty big dependency to add....

    You know whats an even bigger dependency? Java :)

    Also, Moose is not the point, code reuse is the point

    Instead of generating code that issues a few has attribute/does calls, its just copy/pasting a lot of the details that should live in seperate modules (baseclass, objtypes , roles, validators ... whatever )

    Also, Moose/Moo/Mo whatever

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1129257]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2021-05-11 01:45 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (111 votes). Check out past polls.