Welcome, Guest. Please login or register.

Author Topic: My C homework  (Read 15981 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show all replies
Re: Mel's C homework
« on: February 24, 2007, 11:50:16 AM »
Quote
Is it looking valid so far?

Only one way to find out, right?  :-P
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.
 

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show all replies
Re: Mel's C homework
« Reply #1 on: February 24, 2007, 08:06:30 PM »
Quote
Perhaps we should keep the optimal container design chatter down a bit, lest we deter the student ;-)

I agree. It's nice and all to be discussing algorithms, fascinating these might be, but really, this for when you're looking for fast ways to solve the excercise.
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.
 

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show all replies
Re: Mel's C homework
« Reply #2 on: March 02, 2007, 01:51:38 PM »
Quote
Piru wrote:
I guess what I am trying to say is: Don't be too hard on yourself and don't demand perfection from the beginning. Allow yourself to use simple(r) solutions, it is enough to recognize that better solutions exist. You can always improve the code after the basics work. (And in case you can't get the advanced solution working, at least you have the simpler one that DOES ;-))

In addition, it always makes a big impression on people when you're able to brag you've rewritten the code to make it 1000% faster. (Everyone goes 'Wow!' and 'That's HUMONGOUS!' and 'There's a coder who knows where his towel is!'.) What you don't say is how terrible your first solution was  :-P
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.