Why Can’t Programmers … Program?

Written by Mat on Friday, March 16, 2007 13:32 - 0 Comments

The rant continues.  I found this article while reading through Digg and it pretty much objectifies what I’ve continued to rant about – you may “learn” while you’re in school but sometimes what you’re “learning” can be pretty superficial.  Instructors are there to guide you and they will often give you tons of information but it’s your job to take it and run.  With the tools you are provided, experiment, try variations, do more than just get the basics.

In the case of this article, the simple test is:

Write a program that prints the numbers from 1 to 100.  For any number that is a multiple of 3, print “fizz” instead of the number and for multiples of 5, print “buzz”.  If the number is both a multiple of 3 and 5, print “fizzbuzz” instead of the number.

If you’re looking at this and you can’t write it in either Javascript or PHP – it’s time to get cracking!  As a challenge to all my scripting students (that’s IMD223, IMD 322 and IMD402 for those of you who are wondering), try it!

Now I’m not saying that I expect every IMD student to become a programmer – I realize that this is primarily a design school – but the objective is still the same.  For those of you with design inclination, can you turn a photograph into a “Lichtenstein”-style pop art image?  Or how about how to create a tilable background image from a downloaded graphic?  Just like scripting languages, graphic applications have an incredible wealth of tools available, most of which you probably have never touched or may not be aware of it’s capabilities.  An interesting article – “Design Schools: Please Start Teaching Design Again“.

Keep working at it – develop your professional skills if you want those high-end jobs!

And just in case you were wondering:

Javascript

<script language=”javascript”>
var x,y;
for ( x = 1; x <= 100; x++ ) {
 y = x;
 if ( x%3 == 0 ) { y = ‘fizz’; }
 if ( x%5 == 0 ) { y = ‘buzz’; }
 if ( x%3 == 0 && x%5 == 0 ) { y = ‘fizzbuzz’; }
 document.write(y+’<br />’);
}
</script> 

PHP

<?php
for ( $x = 1; $x <= 100; $x++ ) {
 $y = $x;
 if ( $x%3 == 0 ) { $y = ‘fizz’; }
 if ( $x%5 == 0 ) { $y = ‘buzz’; }
 if ( $x%3 == 0 && $x%5 == 0 ) { $y = ‘fizzbuzz’; }
 echo $y.’<br />’;
}
?>
Share this post on digg, del.icio.us, facebook, blah blah blah


Leave a Reply

Comment

SocialStuff

RSS Feedburner LinkedIn Twitter Delicious Jen's MadeByGirl Blog

Quick Lists

  • Art Institute of Las Vegas
  • IMD123: Program Logic »
  • IMD213: Intermediate Scripting (SP09) »
  • IMD223: Advanced Scripting (SU08) »
  • IMD322: Dynamic Design (WI09) »
  • IMD325: User Centered Design (WI09) »
  • IMD335: Usability Testing (SP09) »
  • IMD335: Usability Testing (SP08) »
  • IMD345: UCD Integration (SU08) »
  • IMD375: Databases (FA09) »
  • IMD402: Server-Side Technology (WI09) »
  • Independent Studies (SU08) »
  • University of Nevada, Las Vegas
  • INF400: Web Security »
  • INF340: Web Design Concepts »

Yummy Delicious

Meanwhile on Flickr ... [+ Designers Pool]

macho madness
Duccio Von Stanley
Orbital
Zuddyl (Logo&Label) 2
Zuddyl (Logo&Label)
wash by barnpaulsi
agosto
Ivory Satin and Lace Flower Wedding Hair Pin Set
Íconos Bicentenario
Kate 3
Bamboo umbrella girl
White Ghost Stomp

Reading Recommendations



Soapbox

Jun 21, 2010 11:16 - 0 Comments

Innovation

More In Soapbox


IMD414 Dynamic Design

Jun 14, 2010 14:36 - 0 Comments

The Local Maximum

More In IMD414 Dynamic Design


INF400 Web Security

Jun 13, 2010 22:03 - 0 Comments

Fast CMS Deployment with jQuery and Web Services

More In INF400 Web Security