Author Archives: Randy Peterman

Why Won’t the Toilet Won’t Work

Abby came in asking me, “Why won’t the Toilet won’t work?” Which of course was a double negative. Everything my mother trained me to react with (correction) was held back because the last thing I needed to do was confuse Abby with why her potty was or wasn’t flushing. The not flushing lead to me lifting the lid off the top of the commode. Wow! Abby was very impressed with the inner workings of the toilet. I can remember the same wonder of how a toilet worked. Previously it had been magic, but then it became mechanics… mechanical parts to be played with.

I hope Abby doesn’t want to not not play with the toilet [I’m so clever].

Software Architecture Tips

I’m probably not the worlds foremost expert in software architecture, but I’m the son of an engineer. A civil engineer. That is to say that he’s nice to most people, and it shows in his engineering, too. Software architecture is something that I understood the least when I was first learning about software development. At that stage in the game I needed to learn how to write code and didn’t grasp the critical nature of designing the code in such a way that I didnt’ have to rebuild the wheel every time I did something. “Hello, World!,” meet impulsive idea man.

As time went on and I stubbed my toes on various ideas (accidents can lead to learning) I learned more by learning how not to do things. I didn’t go to school to be a software developer, I majored in history. As the infamous quote goes, “Those who don’t learn from history are doomed to repeat it.” Boy, did I repeat myself. Eventually I learned more about how to do things the right way and more recently I learned more about Model/View/Controller (MVC) coding. Here are some architecture tips I’ve learned, hopefully you’ll find them helpful as you learn:

Consume Open Source Code
Open source code, such as WordPress, xinha and the YUI code are places I learned about software architecture – free, and usually commented. See how and why things are done. Don’t just learn a technique, learn why to use the technique by trying to see why the open source software used a technique. Check out Sourceforge.

Learn Existing Code Libraries
If you have the chance learn some coding libraries and their functions. Often you’ll find that a code library is useful in more than one place. Matt Mullenweg has said that he re-uses components from WordPress in other projects. If your software architecture doesn’t fit with these libraries then you’ve probably got more thinking to do about your architecture. Closed systems can be a headache. I’m currently learning the PHP Cake library, and that’s powerful!

Build Your Own Libraries
Build your own libraries. No, not huge open source libraries necessarily, but find snippets of code that you can re-use as needed. Know your coding style and know how it will work for you. When you’re designing the structure of your code, these libraries will play a role in this.

Go To Libraries
Libraries house books. Free for you to look at and often for you to check-out and take home to learn from. Don’t underestimate the power of a good paper, physical book 🙂 Software architecture is going to develop over time and you’re learning and reading is going to grow if you invest in it. it won’t happen by magic (usually).

Learn What Optimized Code Looks Like
I have studied optimized coding practices for every language I’ve learned. In PHP I learned about commas as concatenators, various loop type speeds, and of course MySQL optimization to help keep queries fast. Your code architecture will need to employ these things yourself.

Join a Community
Find an online forum or email list that you can participate in. You’ll quickly find out that you, too, can help others learn. This will most certainly help you develop better software architecture practices.

Dancing with the Stars: I Love My Children

I danced last night with Abigial to the soundtrack of whatever was playing on dancing with the stars.  I think the judges would have kicked us off the show for our out of control, wacky, jerky and impromptu movements.  Abby laughed over and over so I figured that our ‘dancing’ was doing the trick.  Jessica, our only judge gave us a ten each time, to which Abby responded by either bowing or raising her hands in victory.  I even scored a victory peck on the lips.  Its good to dance with a child star like Abby because she really throws herself into it.  I just have to catch her.

Fair

I have been a big fan of Poor Old Lu since the mid 90’s when two brothers who were in a (sphhhblunk rock) rock band with me encouraged me to give them another listen. When I had listened to the demo tape at the Christian bookstore I had heard a slower song and shut the tape player off. Yeah, I was really a good music listener back then. However, after borrowing their copy of ‘Sin’ I became hooked. Fast forward to 2005. Poor Old Lu is gone (for now), but Aaron Sprinkle, their guitarist has a lower priority solo career. Aaron’s touring band turns into his band Fair. Fair isn’t Poor Old Lu 2.0. Fair is more like Aaron Sprinkle 4.0. Its got a good solid sound, great harmonies, and a nice driving feel at places and careful respect for the delicate intricacies of dynamics in other places.

Genre: Rock
Released: 2006
Rating: 4.5 ear canals out of a total 5 ear canals
Theological Content: Could Play on Secular Radio without anyone knowing the band was Christian unless you knew they were Christian, in which case you can pick up underdones & themes.

If you’ve not heard Fair I’d check them out on iTunes or Amazon.com.

Recommended Tracks:

  • The Attic
  • Carelessness
  • Cut Down Sideways
  • Confidently Dreaming
  • The Dumbfound Game
  • Unglued

Because I’m Insensitive Like That

So today I had the privelege of leading the church service. I went through the announcements and prayer requests in the bulletin and then asked if anyone had any other prayer requests. One of the gentlemen said, “Bud [lastname withheld to protect the innocent].” Which made me ask Bud, who was sitting in another pew, what was going on. He replied, “They think I’m too skinny.”

So I said, “You’re going for the super model look, eh? You’re going to be on America’s Next Top Senior Model?”

Yes, I was on a microphone amplified throughout the building. Apparently I am missing that part of the brain that hinders my mouth from spouting out humor at the expense of the elderly.

**Oh, and for the record: Bud has a good sense of humor and thought it was funny.**

Make Your Own Filet Mignon!

OK, so this isn’t news, but did you know you can buy a Tenderloin at your favorite wholesaler (Costco, for example) and butcher it at home for filets that are significantly cheaper than the grocery store, and super juicy?  Sure, if you’re a vegetarian I’ve just suggested you go suck on a dirty gym sock, but for the omnivorous folks out there, wow!  We had tried this for Easter this year and had limited success because our tenderloin was spread between too many people.  However, tonight Kurt & Becky kindly invited us over for Kurt’s birthday (Happy Birthday, again!  Don’t eat the Pie!) where Kurt’s parents had kindly bought another tenderloin for us all to share.

WOW!  All my base are belong to Pismo.  Yummy stuff!  The butchering of the tenderloin isn’t that difficult and you will end up with approximately 10 tenderloins and meat for some very tasty philly cheesesteak sandwiches for about $50.00 (USD).  Give it a shot if you get the loot, its well worth it.

Microsoft and PHP (via a Yahoo! Merger)

Matt Mullenweg asks, “If Microsoft were to buy Yahoo, I wonder if that would have an impact on PHP?” I think that everyone will have to say, “Yes.” on some level. There are two ways that this impact could take place:

1) PHP is challenged to compete with other languages in the market, that’s either ASP, Ruby, Perl, Python or some new language that comes around. JSP could be re-written to be easier (ha! Like that’s going to happen). PHP is going to be challenged by these languages, at least one of which is tied into Microsoft.
2) PHP will be challenged because Yahoo! needs more of something to deal with their demand. If Microsoft is after Yahoo! for revenue/ad related things then the engines running the machines will be left alone over time. People will adopt PHP (or whatever language) because of its functionality. I personally think that WordPress is a compelling reason to use PHP, Yahoo’s use of it is not as strong as WordPress’ because its easy to get your hands on the source and learn PHP from it.

Yahoo! has a commitment to PHP at present, unless Microsoft dumps their entire staff in charge of making Yahoo! what it is, its going to be a slow transition if it were to change over to .NET/ASP. Industry leaders in the web development/software development community are at Yahoo! working on code and making choices, if Yahoo! loses interest for them they’ll move somewhere else and employ their killer PHP skills there.

PHP libraries like PHP Cake (which I’m using for a new project) make using PHP fun and easy. I think PHP will be around for years to come because of what it is: fast, easy and powerful. I hope Microsoft causes PHP to change, Yahoo! or not. I also hope that Yahoo! opens up more than their YUI library so that coders can learn PHP stuff from them as well.

Thanks Matt for the interesting question!

Thankful Thursday: Frenz

I’m grateful for my friends.  I’ve got friends around the world and its pretty humbling that people would be in any way interested in my life.  I find that people still want to talk to me even though I’m a complete nut case 😀  What’s even more amazing is that my friends look out for me at times, pray for me many times, joke with me and put up with my wacky sense of humor.  I’m thankful for you folks – its an honor to have you call me friend.

Postmodernism Rears Its Ugly Head

I’m a closet philosophy geek/logic person.  One of the biggest problems with philosophy is that its personal, you believe what and the way you do personally [or at least that is what I believe ;)].   One of the bigger problems is the philosophical positions called postmodernism.  Postmodernism says that you can’t understand me.  I can’t understand you.  Postmodernism doesn’t work well in politics:

http://comment.independent.co.uk/columnists_a_l/johann_hari/article2496657.ece

This article is graphic and disturbing.   I can’t understand how a judge would let someone be immoral by the culture of the nation that these immigrants moved to.  Its not postmodernism on my part, its just sickness in the justice system.