Web Development
WordPress Ain't so Bad After All
I've been a Drupal developer for a number of years now. I use it for everything from e-commerce stores to blogs to gaming sites to tiny 5-page brochure-ware websites. It has served my needs really well and will continue to into the future.
However, over the past 4 weeks, I've been working extensively with WordPress and I've realised that it has a place in my world, too. I wouldn't use it for anything too hectic but for blogging and basic websites for SMEs, it beats Drupal every time. You can go from zero-to-blogging in just as long as it takes you to upload WordPress to your host and install it. With Drupal, you need to put in a bit of work to make blogging easy and fun. (Image handling, rich-text editing, etc, all require a bit of configuring before they'll work seamlessly.)
But it's not all sunshine and roses.
The biggest problem I have with WordPress and, specifically, its plugins, is that they allow too much room for error. Drupal has strict standards on how to write modules and how they need to interact with the rest of the Drupal infrastructure whereas WordPress allows you to do pretty much whatever you want. That might sound nice but it means that anyone can throw up a piece of code in the middle of nowhere and it will work. That probably still sounds nice until the project begins to grow and all those bits of code thrown up start unsticking.
(Of course, if you know what you're doing, solid coding standards will go a long way into coding up a WordPress site that any professional PHP coder would be proud of.)
WordPress reminds me of early PHP. PHP forgave everything and allowed the newest of the newest newbies to get coding in minutes or hours instead of months. It was great but, as time went by, I realised that the ease with which I could program PHP also meant that my code was too buggy and prone to security problems.
Over time, the PHP people fixed things (like having global variables enabled by default) and PHP started looking more and more like a real programming language. That seems, to me, to be what's happening with WordPress. Bit by bit, with each new release it's encouraging good habits and good coding.
It's worth keeping in mind that I don't just "use" these CMSes, I program advanced functionality into them every day. For me, a good CMS has to be more of a PHP framework and less of a blogging tool. That's why I fell in love with Drupal. With Drupal, the same amount of effort can take you from "installed" to "blog" as what it would take to get you to "gallery" or "article site" or "basic mailing system" or "simplistic CRM" or "ad serving engine" or or or...
With powerful tools like Views, CCK, ImageCache and more, I can create for R20,000 what I normally would code from scratch for R90,000. That's the rub. With WordPress, I still have to charge that much because I'll have to do a LOT more coding to arrive at the same end-result.
So WordPress is great and I'll keep using it for blogs and simple projects but for the REALLY important, hardcore stuff, I'm sticking with Drupal.
However, over the past 4 weeks, I've been working extensively with WordPress and I've realised that it has a place in my world, too. I wouldn't use it for anything too hectic but for blogging and basic websites for SMEs, it beats Drupal every time. You can go from zero-to-blogging in just as long as it takes you to upload WordPress to your host and install it. With Drupal, you need to put in a bit of work to make blogging easy and fun. (Image handling, rich-text editing, etc, all require a bit of configuring before they'll work seamlessly.)
But it's not all sunshine and roses.
The biggest problem I have with WordPress and, specifically, its plugins, is that they allow too much room for error. Drupal has strict standards on how to write modules and how they need to interact with the rest of the Drupal infrastructure whereas WordPress allows you to do pretty much whatever you want. That might sound nice but it means that anyone can throw up a piece of code in the middle of nowhere and it will work. That probably still sounds nice until the project begins to grow and all those bits of code thrown up start unsticking.
(Of course, if you know what you're doing, solid coding standards will go a long way into coding up a WordPress site that any professional PHP coder would be proud of.)
WordPress reminds me of early PHP. PHP forgave everything and allowed the newest of the newest newbies to get coding in minutes or hours instead of months. It was great but, as time went by, I realised that the ease with which I could program PHP also meant that my code was too buggy and prone to security problems.
Over time, the PHP people fixed things (like having global variables enabled by default) and PHP started looking more and more like a real programming language. That seems, to me, to be what's happening with WordPress. Bit by bit, with each new release it's encouraging good habits and good coding.
It's worth keeping in mind that I don't just "use" these CMSes, I program advanced functionality into them every day. For me, a good CMS has to be more of a PHP framework and less of a blogging tool. That's why I fell in love with Drupal. With Drupal, the same amount of effort can take you from "installed" to "blog" as what it would take to get you to "gallery" or "article site" or "basic mailing system" or "simplistic CRM" or "ad serving engine" or or or...
With powerful tools like Views, CCK, ImageCache and more, I can create for R20,000 what I normally would code from scratch for R90,000. That's the rub. With WordPress, I still have to charge that much because I'll have to do a LOT more coding to arrive at the same end-result.
So WordPress is great and I'll keep using it for blogs and simple projects but for the REALLY important, hardcore stuff, I'm sticking with Drupal.
How Freelancing Works
A good friend of mine asked for a quick run-down of how freelancing sites like vWorker.com work. Freelancing is a great way to earn extra money on the side. When work dries up, I go to vWorker.com and bid on projects and make some quick money. It's not going to make you rich but it'll keep you alive or give you some extra spending money :) And if you enjoy your work, like I do, then it's fun. So here it is, short & sweet:
- A person with a project posts it and requests bids
- Then you as a worker bid on the work saying u can do it for $xx.xx and how long it will take, etc
- Then they pick out of the pool of bidders
- If you win a bid request, 15% of your bid goes to vworker.com for facilitating the process
- The rest goes to you
- Money is paid into vworker (escrow / safe-keeping)
- And u get it once you're done
- Then person rates you
- Once you get some good ratings, you can charge more and win more and also start getting invited to bid on more projects
- Unfortunately, i don't know a way around being cheap at first
- And u can bid on 100 and get none, or get all 100
- In many cases, it's purely about price
- So bidding lowish but bidding on many projects seems the best strategy, at least to start out with
- Be warned, it can take a lot of time to bid on them all and then you wait
Let me know what Qs you have in the comments :)
Super Simple jQuery Accordion
After struggling to get jQuery.UI accordion working in a Drupal site, I gave up and decided to code my own little accordion. As it turns out, it was incredibly simple. All you need is jQuery.
HTML Sample:
JavaScript (jQuery) Sample:
Is there a simpler way? Probably but this is pretty quick and easy too! ;)
HTML Sample:
<br /><div id="accordion">
<br /> <h3>Section 1</h3>
<br /> <div>
<br /> <p>
<br /> Mauris mauris ante, blandit et, ultrices a,
<br /> suscipit eget, quam.
<br /> </p>
<br /> </div>
<br /> <h3>Section 2</h3>
<br /> <div>
<br /> <p>
<br /> Sed non urna. Donec et ante. Phasellus eu
<br /> ligula. Vestibulum sit amet
<br /> </p>
<br /> </div>
<br /> <h3>Section 3</h3>
<br /> <div>
<br /> <p>
<br /> Nam enim risus, molestie et, porta ac,
<br /> aliquam ac, risus. Quisque
<br /> </p>
<br /> </div>
<br /></div>
<br />JavaScript (jQuery) Sample:
<br /> <script type='text/javascript'>
<br /> $(document).ready(function() {
<br /> // accordion effect
<br /> $("#accordion div").hide();
<br /> $("#accordion div:first").show();
<br /> $("#accordion div:first").addClass("active");
<br /> $("#accordion h3").click(function() {
<br /> $("#accordion div.active").hide();
<br /> $(this).next().show("fast");
<br /> $(this).next().addClass("active");
<br /> return false;
<br /> });
<br /> });
<br /> </script>
<br />Is there a simpler way? Probably but this is pretty quick and easy too! ;)
Demo:
Section 1
Mauris mauris ante, blandit et, ultrices a,
suscipit eget, quam.
Section 2
Sed non urna. Donec et ante. Phasellus eu
ligula. Vestibulum sit amet
Section 3
Nam enim risus, molestie et, porta ac,
aliquam ac, risus. Quisque
Finding Articles on ANY Topic!
So you need some content for one of your sites, right? Maybe you're using Blogger, or Squidoo or WordPress and you just need a handy RSS feed to plug in somewhere so your readers can have a little extra content to read, content that's already related to what you blog about.
Well I've Got the Solution to All Your Content Woes :)
FreeArticles.co.za now allows you to search through its index of over 70,000 articles and EXPORT the search results into an RSS feed.
Just replace the bold keywords in the following URL (spaces turn into plus (+) signs) to whatever you need and load it into your browser. You'll get an RSS feed with all articles that matched your query.
http://www.freearticles.co.za/keywordfeed?filter0=photography+tips
Examples:
http://www.freearticles.co.za/keywordfeed?filter0=guitar+lessons
http://www.freearticles.co.za/keywordfeed?filter0=adsense+tips
http://www.freearticles.co.za/keywordfeed?filter0=internet+marketing
All of these will work and, best of all, they'll be a bit intelligent about the search and provide you RELATED articles as well. So if you're into photography, it'll also show you a little bit about painting, in case you like that too :D
Then all you need to do is stick that URL into your blogging software and you're set!
Just remember to replace spaces with plus (+) signs. So guitar tips becomes guitar+tips.
Enjoy!
<!-- technorati tags begin -->
Well I've Got the Solution to All Your Content Woes :)
FreeArticles.co.za now allows you to search through its index of over 70,000 articles and EXPORT the search results into an RSS feed.
Just replace the bold keywords in the following URL (spaces turn into plus (+) signs) to whatever you need and load it into your browser. You'll get an RSS feed with all articles that matched your query.
http://www.freearticles.co.za/keywordfeed?filter0=photography+tips
Examples:
http://www.freearticles.co.za/keywordfeed?filter0=guitar+lessons
http://www.freearticles.co.za/keywordfeed?filter0=adsense+tips
http://www.freearticles.co.za/keywordfeed?filter0=internet+marketing
All of these will work and, best of all, they'll be a bit intelligent about the search and provide you RELATED articles as well. So if you're into photography, it'll also show you a little bit about painting, in case you like that too :D
Then all you need to do is stick that URL into your blogging software and you're set!
Just remember to replace spaces with plus (+) signs. So guitar tips becomes guitar+tips.
Enjoy!
<!-- technorati tags begin -->
Tags: rss, rss feed, free articles, free content
<!-- technorati tags end -->
Subscribe to Blog Posts