One general attitude here is that it is important to learn what attitudes are important.

Take your example. Round figures let us say that a server costs $5,000 and a developer costs $60,000. (Actually both cost far more, supporting a developer includes office space, insurance, etc. Supporting a server takes up front money, installation, configuration, and ongoing administration. But the basic point remains the same.) Then a brand new machine is worth one month of one developer's time.

If you have 4-5 developers, that means that one week of wasted time is worth a brand new server. If your code review took one month, you lost money doing it. If you have an application that needs to scale, then you might find it well worth while. If there are complications with having multiple servers in your application, then keeping to a single server may be worth quite a bit of bother. If you are shipping to customers, then keeping within typical resources matters a lot. Rules of thumb tend to have lots of exceptions.

But still this is the economics of, "RAM is cheap." Developers shouldn't be stupid about it. But being only slightly concerned about memory usage while paying attention to maintainability etc is not being lazy. It is an appropriate allocation of resources for the typical situation. (If your situation varies, then optimize appropriately.)


In reply to Re (tilly) 5: Space taken by a coderef by tilly
in thread Space taken by a coderef by dragonchild

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.