|We don't bite newbies here... much|
Balancing Coding Time And Code Qualityby Limbic~Region (Chancellor)
|on Dec 03, 2003 at 23:47 UTC||Need Help??|
Today at work, I received the following request:
Quick, I need to know every file that only exists on one of two servers and which server it is on as fast as possible
I started the following command on both servers, while I worked on the code:
Now since I was pretty sure the requirements and formatting would change, I didn't spend any time with a 1 liner. I am not any good at them anyway. Here is what I came up with in an honest 5 minutes:
Ok - so it did the job. Now I am wondering if I should modify it at all and, if so, how. It obviously isn't optimized to be memory efficient, but I am not sure that it needs to be. It is simple enough that maintainability isn't a concern. I have the time to work on it if I feel like it, but I also should use my time wisely.
So as I meditate on this, I would appreciate some of your insight and feedback.
Cheers - L~R