Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: To initialise or not to initialise?

by Aragorn (Curate)
on Jun 24, 2004 at 10:36 UTC ( #369281=note: print w/replies, xml ) Need Help??


in reply to To initialise or not to initialise?

It's more work definitely but it generally makes the code more readable (for instance, if I've no idea what 'page' means, I at least know the variable $page is going to be used for some numerical value).
If you have no idea what $page means, then, IMO, the name is not descriptive enough. If you use $page_nr, that would make it clear that it's used for a numerical value. $page could just as well contain a string with a PostScript rendition of a page.

Arjen

Replies are listed 'Best First'.
Re^2: To initialise or not to initialise?
by Anonymous Monk on Jun 25, 2004 at 23:55 UTC
    Would this be a good place to suggest using Hungarian Notation? my $lpszhwndPage;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369281]
help
Chatterbox?
[Discipulus]: but Dumas is waiting for me in the bed.. luckly as book author.. see you!
[ELISHEVA]: Sleep well!
[ELISHEVA]: Or read well
[Discipulus]: thanks, best dreams to you all

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-05-28 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?