Programming Mood
by Jeremy on May.28, 2006, under Uncategorized
I’m not exactly sure how it works for most of you programmers, but I’ve come to the conclusion that how well I code is directly related to how happy I am. For those of you who might’ve talked to me right after that Bowling Incident, you would know that I was extremely frustrated because I couldn’t get anything done. Now, one week later, since things have “changed” I’m now back in the saddle and throwing together good stuff in small amounts of time.
I’m sure most of my readers would remember the find_file() function I wrote, not too long ago, that I’m using in the CDE to detect and verify “configuration stuff” … well, I lost it with that other server, so I had to re-write the actual function. Well, I made an improvement to it this morning, and with about 5 minutes of coding I added wildcard ( * ) support to the function.
This example shows the find_file function detecting conf_global.php (IPB), the find_file.php file, and all files that match class_*.php …
Update: Lewis inspired a bit of a change. The find_file function’s return array now ties the files to the path and the url they’re located at.
May 28th, 2006 on 1:51 pm
/me attempts to guess Jeremy’s password.
May 28th, 2006 on 4:12 pm
It’s “ismellofpoo”.