Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
That's a fascinating peek at history. Where was all this great stuff in high school?

Almost by definition, the people who teach science are the people who (didn't want to go it|couldn't cut it) in research, thus making them ill equipped to teach the important things about research. Many of the good researchers I have talked to resented having to give lectures because lectures take away from research time (you may only see one hour of class, but it takes three or four hours to prepare, not counting marking homework). Feyman was a good researcher who was different enough to enjoy teaching too.

Of course I should shut up now, since I'm not yet doing research, but I've researched doing research, if that makes sense. I have however noticed that the quality of a teacher can be enough to drive an entire class of people away from a subject, or to pack a lecture hall for a subject - even among third-year students.

If it's ten lines that you want to re-use, but the second use is different enough that it doesn't make sense to build a common subroutine, go ahead.

I can't think of a situation where this would happen. I suspect you mean that the in the second use the code is likely to diverge from the first over time, so factoring the ten lines in a subroutine would end up with lots of conditionals in the routing to deal with changing circumstances. In that case, definately don't factor.

It has been pointed out that typeing use CGI is as much cargo cult as rolling your own, but that's not quite true. Using a module is like buying a manufactured product, like a plane. Rolling a quickie is like trying to make one from scratch is inherently dodgy, like trying to make a plane of of bamboo and get it flying. It worked for Daedelus, kinda, but it's not a good way to do it for production code.

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Re: Re: The first cargo cults by jepri
in thread The first cargo cults by jepri

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found