Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Go back and reread some of your old code.

Look for places where the code is annoyingly intricate, and ask yourself, "what does this code do?" I don't mean "what are the steps of this process?" I mean "what is this code responsible for?" or "what problem does this code actually solve?" Code often becomes complicated because you're trying to solve the wrong problem.

Case in point, though this comes from the world of engineering: when the US space program first started, the astronauts had problems writing reports in space, because the standard ball-point pen relies on gravity to push the ink into contact with the ball. So the engineers of the space program invented a pen with a pressurized ink cartridge. Then they had to find ways to keep the ink from squirting out when it wasn't supposed to. In the end, they had a device that relied on an intricate and elegant balance of mechanics and chemistry.

The Russians, OTOH, just used a pencil.

The US engineers did a great deal of work to solve the problem "how do we make a pen operate in zero-G?" The Russians spent two seconds finding an alternate solution to "how do we make marks on paper?"

Inspiration is the art of finding the right problem to solve. To do that, you have to look at your solutions and decide what problems they actually solve.


In reply to Re: Inspiration comes to the inspirable? by mstone
in thread Inspiration comes to the inspirable? by simeon2000

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 admiring the Monastery: (3)
As of 2024-04-19 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found