Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: C any bugs?

by murphya (Sexton)
on Jun 18, 2001 at 22:04 UTC ( #89383=note: print w/replies, xml ) Need Help??

in reply to C any bugs?

Quickly, why mix up subroutines and large chunks of code? May I suggest something like:

&sub_one; &sub_two; &sub_three; sub sub_one{ } sub sub_two{ } sub sub_three{ }

I think that this is clearer and easier to understand. It maximises the benefit of using subroutines.

Other than that I agree with the above comments on CGI and strict. CGI is very important from an upkeep point of view - so long as you keep your CGI module up to date you don't have to worry about rewriting your code to match the latest standards. strict is a very useful learning tool.

"The significant problems we face in life can not be solved at the same level of thinking we were at when we created them." -Albert Einstein

Replies are listed 'Best First'.
Re (tilly) 2: C any bugs?
by tilly (Archbishop) on Jun 18, 2001 at 23:15 UTC
    Unless you have a specific reason to use the implicit argument list, it is best to use parens in calling functions.

    If this comment made no sense to you, the following summary may help.

    Also functions should be given names that clearly describe what they do. Inability to find a meaningful name for a function is usually an excellent indicator that the code is not well factored. Certainly having a function whose name does not properly describe what it does is almost always a maintainance problem...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-09-19 09:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found