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 />’; } ?> |
SocialStuff
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 »
- IMD213: Intermediate Scripting
- IMD322: Dynamic Design
- IMD335: Usability Testing
- Save UNLV Informatics
- Why Can't Programmers Program?
- Designer, Developer or Deity?
- Top Ten Mistakes in Web Design
Yummy Delicious
Meanwhile on Flickr ... [+ Designers Pool]
Reading Recommendations
- Art & Science of CSS by Jonathan Snook, Steve Smith, Jina Bolton, Cameron Adams & David Johnson
- Everything You Know About CSS is Wrong! by Rachel Andrew and Kevin Yank
- The Long Tail (updated version) by Jason Baeird
- Beautiful Web Design by Chris Anderson
- The Future of the Internet and How to Stop It
by Jonathan Zittrain - The Namesake by Jhumpa Lahiri
- The Overcoat and Other Short Stories
by Nikolai Gogol - We The Living by Ayn Rand
- Everything is Miscellaneous by David Weinberger
- Danny The Champion of the World by Roald Dahl
- Successful Freelancing by Miles Burke
- PHP for the World Wide Web by Larry Ullman
- Advanced PHP for the World Wide Web
by Larry Ullman



















Leave a Reply