Missing the Vibe in the Rails Community

For a while I was involved pretty heavily with the Ruby on Rails community. I did design consulting on a number of application interfaces and some frontend programming. Alas, those days have passed and I’m 100% WordPress and PHP focussed.

Now I like WordPress and PHP just fine but one thing I really miss from the Rails community is the focus of the developers. Take the time to listen to [Ruby Rogues 47][rr47]. I love the depth that the Rails community, and [@dkubb][dkubb] in this episode, works hard to test all their code.

While all the WordPress developers I know want to do a good job, there is simply a different vibe of excellence in the Rails community. This overall vibe is something I miss.

I know Dan since he lives locally and he has imparted a bunch of other knowledge to me that applies to more than just an single language. These are items I remember him saying to me, my memory may be imperfect.

1. If you can’t fit your function on the screen then you need to ask yourself if it’s too complex.
2. If a line of code has to wrap to the next line, you probably need to make sure it’s not too complex.

I think about those items with every site I build. The tips in the podcast are even better, certianly worth a listen for any programmer.

[rr47]: http://rubyrogues.com/047-rr-coding-disciplines/ “Ruby Rogues 47: Coding Disciplines”
[dkubb]: http://twitter.com/#!/dkubb “Dan Kubb on Twitter”

Using stripslashes() with Theme Options

PHP docs stripslashes()

**Update:** This is not the right way to do this. Use WordPress functions to sanitize data. April 27, 2012

While I might be showing a bit about my PHP naivety but while working with theme options recently I found that some of my content had a just before a single quote. Now I knew it was working to escape the content but didn’t know how to get that dang out of the content. After reading up a bit more on escaping and data sanitization I found the


function and guess what it does exactly what you’d think.

Remember if you’re going to echo any theme options to call


on it too. So my theme options changed from

echo get_option( theme_option_name );


echo stripslashes( get_option( theme_option_name ) );

And we’ve killed the that were messing us up.

News around the Blogoshpere

I thought today I would bring you up to speed with some of the neat things I found in my feedreader today.

Smashing Magazine is offering 67 free photoshop brushes today. They are free to use for any project but not to distribute.

Over at Niki’s DesignO’Blog there are some very cool tech coasters that you should check out.

If you have been following the NETTUTS tutorials on learning PHP like I have you’ll like to know that the second Learning PHP from Scratch tutorial is now out.

Finally Abduzeedo just put out the sites of the week post. There are a number of beautiful designs here that I have added to my inspiration folder.

Hope that give you enough reading for the weekend. I may not be posting this weekend as my internet connection is down and I have to get that fixed, so have a good one.