It took me a week, but phpNonsense is done. By "done" I mean that it's successfully parsing all of the templates I'm throwing at it without error or notice and that it has met every expectation I had for it to begin with.
This little project reminded me of a few basic tenets of programming I'd either forgotten or just failed to adequately remember in the last few non-programming months. Tidbits of valuable knowledge such as....
Links to follow. Wanna kinda pretty-up the website.
This little project reminded me of a few basic tenets of programming I'd either forgotten or just failed to adequately remember in the last few non-programming months. Tidbits of valuable knowledge such as....
- The first 90% of a project takes 90% of the development time. The last 10% takes the other 90% of the time.
- Regexes are your friend. They can move mountains and carve valleys. I spent quite a bit of time bouncing between browser, text editor and the Regex Coach. If you do any programming at all, you should use this program. Fantastic piece of work.
- Remember that "=" means "assignment" and "==" means "evaulates as equivalent."
- Variable scope. Don't forget variable scope. If you're at a dead-end and you think you've exhausted every avenue of debugging, it's probably variable scope. Note: this is mainly for me, because, you know, it is.
Links to follow. Wanna kinda pretty-up the website.