Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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

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 browsing the Monastery: (12)
As of 2016-09-29 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (554 votes). Check out past polls.