• Home

CodingExperiments.com

Linux, PHP, and the blogosphere

Search

Category:

  • Apple Inc.
  • Apps
  • Facts
  • Fun
  • Google
  • Ideas
  • Internet
  • Linux
  • Microsoft
  • PHP
  • Programming
  • Rants
  • Security
  • Uncategorized
  • web 2.0

Archives:

  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007

Pages

  • About
    • The Authors
  • Commenting your code
  • How to Write Papers with Groff
  • ModCMS Anti-Spam Component Set
  • ModCMS Technical Specifications
  • Regular Expressions Guessing Game
  • Saving code directly to a web server
  • The (Almost) Perfect PHP 404 Page

Meta:

  • RSS
  • Comments RSS

Awesomeness tracker

CodingExperiments at Blogged View blog authority
Free Page Rank Tool

My Idea: the Dual Tutorial

June 16th, 2008 by Rishabh Mishra

Sometimes, there are two ways to do things. It’s great if a programmer knows how to write a specific block of code in both ways, and understand the advantages and disadvantages of doing so. Now, why not take web tutorials or technical books and have them teach two things at once? If it sounds a little confusing to you, think of it this way. Let’s see, there are a lot of online PHP tutorials out there, so let’s use that as an example. Let’s say we have an online PHP tutorial that teaches how to use MySQL and PostgreSQL with PHP.

The programmer, previously knowing how to work with neither, now knows how to work with two popular databases that PHP supports. I think that the dual tutorial could greatly improve what is learned from a tutorial or book that applies this concept. It will also save the programmer time as he does not have to learn something else in the event that he cannot write something the way that he wants to (or, continuing with the database example, MySQL is not available).

But might be a problem with my dual tutorial idea. What if teaching two ways to do everything takes too long? Well, it depends on how much is taught in the tutorial and who the audience is. If the audience is a beginning PHP programmer that wants to learn to program well, that programmer might be willing to spend more time on learning in exchange for being able to write better code.

So, what do you think? Is the dual tutorial actually something that might help people learn, or is it just another idea that wouldn’t work?


Posted in Ideas |

  • Voyagerfan5761
    As soon as you started talking about databases, I immediately thought about the two different ways to handle connections. You can do OO-style and procedural style (the difference between $dbc->query( $sql ); and mysqli_query( $dbc, $sql ); ). For some reason I thought of that instead of the differences between MySQL and PostgreSQL.
  • Rishabh Mishra (possible248)
    Well, any two things can fit into a dual tutorial, as long as both ways contain good programming practices. MySQL and PostgreSQL have just been on my mind lately.
blog comments powered by Disqus