Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Thoughts on "one function, flexible arguments"?

by GrandFather (Sage)
on Aug 29, 2019 at 07:52 UTC ( #11105222=note: print w/replies, xml ) Need Help??

in reply to Thoughts on "one function, flexible arguments"?

A useful test for any API (and passing parameters to a sub is an API in miniture) is: how easy is it to test against? If the test need to be complicated to accommodate the API it implies that the API is complicated and probably difficult both to use and implement. In the longer term that makes it error prone to use and hard to maintain.

Focus your effort on creating the simplest consistent API that achieves the task at hand. If you can't create a simple consistent API that probably means the task at hand is too complicated or badly conceived.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Thoughts on "one function, flexible arguments"?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2020-11-26 21:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found