13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 1 ■ SAVING YOURSELF EFFORTSimilarly, if you’re implementing something on box 1 and one of your interim tests also passes onbox 2, which you haven’t changed, then you may be doing more work than you need to do. This isparticularly true when working on client-server software, when a change to the server can affect all theclients without you having to do any more work. Checking against your comparison client can find thesesorts of problems.Testing regularly can also be a useful part of a system monitoring setup; see Chapter 3 for more onsystem monitoring.1-16. Reinventing the WheelWhen you come across something that needs to be fixed or implemented, it can be very tempting tocrack straight on with rolling your own solution. Writing stuff yourself is fun, and it can seem a lot moreappealing than the process of looking for a solution that already exists, checking that it really does dowhat you want it to, getting it installed, and so on.Here’s some reasons why you should ignore the impulse to reinvent the wheel and instead shouldtake yourself to Google, reread this book, check out the many others available for specific or broaderadmin topics to see whether they have anything useful to say, or solicit recommendations from othersysadmins:• It’s quicker. It may feel like less interesting work, but it really will be quicker thangoing through the design-implement-test process.• More support is available—even just a couple of users (and most existing projectswill have more than that) is a couple more than your self-constructed tool, andthat’s a couple more people than just you to get input from when something doesgo wrong.• When eventually you move on to bigger and better things, the person whoreplaces you will have more chance of picking the tool up smoothly and may evenhave previous experience with it.• Documentation should already exist, so you won’t have to write it yourself! (OK,this isn’t always an absolute guarantee with open source software, unfortunately,but there should be at least some. And if you do have to write more, you can get anice warm altruistic glow by making it available to the rest of the usercommunity.)• If it really doesn’t have everything you want, you can patch it—without having towrite everything from scratch. And again, you can hand that over to thecommunity as well.• Someone else has done all the testing for you.This list applies to things like Perl modules (CPAN, which is great in many ways but is sadly unrated;try http://cpanratings.perl.org/ to get more information on modules). Use other people’s hard workso that you can direct your own hard work more usefully.18Download at WoweBook.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!