• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about how the assignments were "invented"

 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently learning Perl from Sam's Teach Yourself Perl in 21 Days. I am noticing that some of the sample code looks really familiar. Was this book an inspiration for some of the assignments or are the assignments common programming teaching tools (such as Hello World)?
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1820
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some time ago I did a couple of the earlier assignments in Ruby. It was a fun exercise. But since I had no style guide to follow and no nitpicker, I had trouble at times deciding which of several different approaches I liked better.
Are you doing any of the assignments in Perl?
Do they end up being more than one line of code?
I remember somebody way back telling us how he did Say 4b on his programmable calculator.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed variations on the leap year and say assignments in a couple of introductory computer science books and internet sites.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing any of the assignments in Perl?

Not yet, but since some of them are already in the book there wouldn't be much challenge.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed similarities in these assignments to others in classes, tutorials, and hearing non-Cattle Drive students discussions.
There most likely are standard assignments that almost all programming books/classes go through because these are just well known methods for teaching a certain concept. How many times have you a read a book that started out with "Hello World!" (or some derivative)?
For instance, in my EJB class we have to write a program where users can check out, add, remove, etc. books from a library. Pretty much our JDBC assignments, except as videos.
 
paul wheaton
Trailboss
Pie
Posts: 21682
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Hello World" has been a standard for decades.
And, yes, I've seen the leap year assignments in the past. And the idea of a video rental store has been a more recent regular.
 
Manju Jain
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just started working jdbc-4 assignment using php and mysql combo.
hope it turns out to be fun redoing it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic