Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^6: The joys of bad code (coupling)

by g00n (Hermit)
on Oct 28, 2004 at 06:42 UTC ( #403283=note: print w/ replies, xml ) Need Help??


in reply to Re^5: The joys of bad code
in thread The joys of bad code

coupling is something I noticed. if you call *GetMonthName* and pass an arg for the month name, than another arg to abbreviate. The same effect could be obtained writing a formatting function, Format(GetMonthName(arg), "mmm") or even better as you suggest calling Date. having the formatting within the function may be a short cut for now but I bet at sometime changes could be made introducing bugs.

its also pretty common trap to reimplement (usually poorly) functions that pre-exist.

Janitored by Arunbear - retitled from 'coupling', as per Monastery guidelines


Comment on Re^6: The joys of bad code (coupling)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-11 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls