CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: C++ and Design

  1. #1
    Join Date
    Jun 2009
    Posts
    18

    C++ and Design

    C++ is a powerful language, it contains many concepts that not exist in other languages.
    So we have to be careful more than other languages to avoid complicated implementation .

    The question is :

    The C++ community focus more in design or more in technical layer?
    Last edited by Issam_Lahlali; August 1st, 2009 at 04:44 AM.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: C++ and Design

    The C++ community focus more in design or more in technical layer?
    The community doesn't focus on anything. People simply write code.

  3. #3
    Join Date
    Jun 2009
    Posts
    18

    Re: C++ and Design

    Quote Originally Posted by Skizmo View Post
    The community doesn't focus on anything. People simply write code.
    it's a big problem if people simply write code
    before writing code we have to analyze and design to keep the code and the project simple to understand.
    Last edited by Issam_Lahlali; August 1st, 2009 at 05:35 AM.

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: C++ and Design

    Quote Originally Posted by Issam_Lahlali View Post
    it's a big problem if people simply write code
    before writing code we have to analyze and design to keep the code and the project simple to understand.
    This is not unique to C++. All development using any language must have a design in mind. Do you think that Java, Fortran, COBOL, Python, etc. programmers don't have projects and design goals?

    Regards,

    Paul McKenzie

  5. #5
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: C++ and Design

    Quote Originally Posted by Issam_Lahlali View Post
    it's a big problem if people simply write code
    before writing code we have to analyze and design to keep the code and the project simple to understand.
    Yeah... design is nice to have What I meant was... there are a lot of people with a lot of styles. I don't think there really is a focus on 1 or the other.

  6. #6
    Join Date
    Jun 2009
    Posts
    18

    Re: C++ and Design

    Quote Originally Posted by Paul McKenzie View Post
    This is not unique to C++. All development using any language must have a design in mind. Do you think that Java, Fortran, COBOL, Python, etc. programmers don't have projects and design goals?

    Regards,

    Paul McKenzie
    you are right we must have design in mind for each langage, but for a langage like c++ created 20 years ago , we have to focus more in business layer, but unfortunately we spend many times only to resolve technical problems and to search for tips and tricks.

  7. #7
    Join Date
    Nov 2006
    Posts
    1,611

    Re: C++ and Design

    So we have to be careful more than other languages to avoid complicated implementation .

    but unfortunately we spend many times only to resolve technical problems and to search for tips and tricks.

    It sounds like you're touching on a subject Stroustrup has addressed a couple of times.

    When asked about his opinion of boost, he observed that some of boost is "to cute" - his observation parallels what you're saying here, that he sees a complicated, perhaps convoluted solution in some of the library (he may have been thinking of lambda functions, or perhaps 'any').

    He accepted the observation that some of C++ was "too expert friendly" and not quite as simple as novices or other developers needed. There's a wide range of users of the language, some are dedicated developers like myself, others are scientists or mathematicians interested in using the language without becoming experts in the language. It's a flaw somewhat addressed in C++0x. The issue of "expert" level understanding is one reason concepts was pulled from this next version of C++. The idea was to simplify generic programming, but the details have yet to resolve to the goal - some issues actually made the use of concepts more complicated, and until they can be resolved, the decision was made to hold the implementation of concepts until a later time.

    So I think it depends on the audience - the perspective of the consumer of C++. Most of us focus on finding the best libraries, or developing components of our own library, to suit most purposes.

    We hope to find leverage, and it does exist in so many examples that there is a net gain.

    Like any study, however, we are required to gain enough expertise that solutions can be distilled into simpler usage strategies. A few discussions here seek to implement generic callbacks - a set of objects which represent the generic notion of deciding what functions to call based on runtime criteria outside the virtual function paradigm. By it's nature this isn't a simple concept, but if the library is successful it can be fairly simple to use.

    So the practice can waver between states where we are consuming such libraries, gaining leverage and enjoying easier development work, but the occasionally shifting into a mode where we explore a new idea which consumes time and thought just to get a concept implemented in a way that's simple to use.

    It does mean that there is an "expert" requirement involved.

    Several threads around here discuss the merit of win32 development (or question about it). My own observation is that this non-C++ concept is full of expert level detail, which is leveraged out of the problem with a good framework like Qt or even MFC. Making such choices can be the difference between spending time detail with technical minutia or moving forward with an application goal.
    If my post was interesting or helpful, perhaps you would consider clicking the 'rate this post' to let me know (middle icon of the group in the upper right of the post).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured