Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.java.programmer Subject: Re: need regular expression to replace part of result based on a search pattern Date: Thu, 12 Jul 2012 18:34:37 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 18 Message-ID: References: <6aefda61-b66a-4e8f-8634-ef6a95f79c4d@googlegroups.com> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:15987 Leif Roar Moldskred wrote: (snip) > There's a quote by Brian Kernighan that ???Debugging is twice as hard as > writing the code in the first place. Therefore, if you write the code > as cleverly as possible, you are, by definition, not smart enough to > debug it.??? I believe one of Brooks' laws goes something like: "Writing the program takes the first 90% of the time, debugging the second 90%." So, according to that it takes the same amount of time, but nine times as long as you thought it would. (Based on his experience with OS/360.) -- glen