View Poll Results: Is that right?

Voters
10. You may not vote on this poll
  • Yes, sure.

    4 40.00%
  • I don't think so.

    4 40.00%
  • I don't know.

    2 20.00%

Thread: Programming, design and concept

  1. #1
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489

    Programming, design and concept

    "Programming needs a design and concepts, without them you just write a throwaway code. While mean you'll get nothing"

    Is that right?
    Just GET it OFF out my mind!!

  2. #2
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    I think that sentence could use some work.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It sounds reasonable though you can have a good design and concepts and still write "throwaway code"

    Oh, and writing "throwaway code" does not necessarily mean that you'll get nothing. For example, while learning the interface to some library you might write "throwaway code" to get familiar with it, but you will certainly gain from that experience. Likewise, a prototype might eventually get discarded, but the act of creating it might give you valuable insight.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Poll please xD
    Just GET it OFF out my mind!!

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by audinue
    Poll please
    Change your statement to:
    "Programming needs a design and concepts, without them you just write a throwaway code."
    The part of about "While mean you'll get nothing" does not make sense and effectively makes your statement express two opinions.

    That said, what do you hope to gain from a poll?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by laserlight View Post
    That said, what do you hope to gain from a poll?
    Reality through consensus?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  7. #7
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    At least it's not a public poll. So no-one will actually know if I'm a noob or not -- I hope I voted for the right one!

    I don't agree you get nothing by writing code and throwing it away...
    1. You shouldn't throw it away, archive it for a rainy day
    2. You learn :-)

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    What do you do with your code on rainy days?

    Not sure I want to know ...
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CornedBee
    What do you do with your code on rainy days?
    Save it just in case lightning in the wrong place causes a power failure
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Of course programs need a design, at least in your head. How do you go about coding something without even knowing what you are going to write?

  11. #11
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > Of course programs need a design, at least in your head. How do you go about coding something without even knowing what you are going to write?
    Obviously you haven't used Windows Vista? . Sorry, couldn't resist!

  12. #12
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Quote Originally Posted by cyberfish View Post
    Of course programs need a design, at least in your head. How do you go about coding something without even knowing what you are going to write?
    Hope the inspiration will come up on the way? Which more likely doesn't and you end up with Windows Millenium...

  13. #13
    Why am I a programmer? shoutatchickens's Avatar
    Join Date
    Mar 2008
    Posts
    45
    Quote Originally Posted by C_ntua View Post
    Hope the inspiration will come up on the way? Which more likely doesn't and you end up with Windows Millenium...
    I miss updating from windows 98 SE to ME.
    One of the disadvantages of being a 22 year old RPG programmer is having to repeatedly explain to your friends that you don't make videogames for a living.

  14. #14
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by shoutatchickens View Post
    I miss updating from windows 98 SE to ME.

    DOS 5.0 RULEZ!

  15. #15
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Sigh everyone ignores NT 4.0 -- that was the best Windows ever.

    What puzzles me is why they based 2000 on the NT kernel and not the 9x kernel? NT was a flop, and 9x seemed to be good.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++0x - a few doubts
    By Mario F. in forum C++ Programming
    Replies: 33
    Last Post: 09-23-2006, 01:22 PM
  2. Design Question
    By rwmarsh in forum C++ Programming
    Replies: 1
    Last Post: 05-13-2006, 12:42 PM
  3. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  4. Concept help
    By Mithoric in forum Windows Programming
    Replies: 13
    Last Post: 04-18-2004, 03:05 PM
  5. Rough Portable Chat Design Sketch
    By ggs in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-27-2001, 07:44 AM