PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Good development practices
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Good development practices

Réponse
 
LinkBack Outils de la discussion
Vieux 17/01/2008, 19h03   #1
Nickolai Leschov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Good development practices

Hello,

I have done some programming, mostly on embedded systems but now I would
feel like I have to learn good development practices (i.e programmer's
good manners). Let's say I want to build an application using some
established open source library or application. Do I just download the
source and hack away? Or I'd better do it in some controlled manner, i.e
set up some source control system so that I can always compute the diffs
from the original code? Or maybe I should try to keep my changes
separate from the original code base? How do I do it?

Where do I learn about things like that? I'm sorry for asking this here,
where we dicuss standard-compliant C/C++ programming, but I really don't
know any other place now. I do program in C/C++.

Regards,
Nickolai Leschov
  Réponse avec citation
Vieux 17/01/2008, 19h32   #2
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

Nickolai Leschov wrote:
> [..] I
> would feel like I have to learn good development practices [..]
>
> Where do I learn about things like that? I'm sorry for asking this
> here, where we dicuss standard-compliant C/C++ programming, but I
> really don't know any other place now. I do program in C/C++.


news:comp.sofware-eng.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  Réponse avec citation
Vieux 17/01/2008, 19h52   #3
Lew Pitcher
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

On Jan 17, 2:03 pm, Nickolai Leschov <nlesc...@gmail.com> wrote:
> Hello,


Hi, Nickolai

[snip]
> Where do I learn about things like that? I'm sorry for asking this here,
> where we dicuss standard-compliant C/C++ programming, but I really don't
> know any other place now. I do program in C/C++.


OK, first thing is to recognize that there is no such thing as
"standard-compliant C/C++ programming", because there is no standard
that defines something called "C/C++".

However, there /are/ standards for the C language, and /different/
standards for the C++ language. You are going to have to choose which
language you want to learn about wrt "standard-compliant" programming.
If you are planning to program in /both/ C and C++, you'll have to
learn both standards, and a bunch of things about inter-language calls
(which, IIRC, the C++ standard talks about, but the C standard does
not).

Having said all that, neither comp.lang.c nor comp.lang.c++ seem to me
to be the best place to discuss the theory of "standard-compliant
programming". Both of these newsgroups discuss the practice of
"standard-compliant programming", and try to leave the theory to other
groups.

HTH
--
Lew



  Réponse avec citation
Vieux 17/01/2008, 20h47   #4
Malcolm McLean
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices


"Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
>
> OK, first thing is to recognize that there is no such thing as
> "standard-compliant C/C++ programming", because there is no standard
> that defines something called "C/C++".
>

Standards-compilant C/C++ would be a language that anyone would call C, or C
with a few twiddles, but actually conforms to the C++ standard.
Many thousands of such programs are written.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

  Réponse avec citation
Vieux 17/01/2008, 22h23   #5
Martin Ambuhl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

Malcolm McLean wrote:
>
> "Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
>>
>> OK, first thing is to recognize that there is no such thing as
>> "standard-compliant C/C++ programming", because there is no standard
>> that defines something called "C/C++".
>>

> Standards-compilant C/C++ would be a language that anyone would call C,
> or C with a few twiddles, but actually conforms to the C++ standard.
> Many thousands of such programs are written.


Or a language that anyone would call C++, or C++ with a few twiddles,
but actually conforms to the C standard. Many thousands of such
programs are written.

Your parochialism is showing. The fact is that there is no C/C++
language, and no standard to conform to. Not to bother with the obvious
point that the expression 'C/C++' is a violation of the standards of
either C or C++.

  Réponse avec citation
Vieux 18/01/2008, 03h22   #6
CBFalconer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

Malcolm McLean wrote:
> "Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
>
>> OK, first thing is to recognize that there is no such thing as
>> "standard-compliant C/C++ programming", because there is no
>> standard that defines something called "C/C++".

>
> Standards-compilant C/C++ would be a language that anyone would
> call C, or C with a few twiddles, but actually conforms to the
> C++ standard. Many thousands of such programs are written.


No. Run the following program to get the idea:

#include <stdio.h>

int main(void) {
int C;

C = rand(void);
if (C) printf("C / C++ == %d\n", C / C++);
else printf("C / C++ is undefined\n");
return 0;
}

and I expect the vast majority of results to be the value 1.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com

  Réponse avec citation
Vieux 18/01/2008, 08h21   #7
Michael DOUBEZ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

Nickolai Leschov a écrit :
> Hello,
>
> I have done some programming, mostly on embedded systems but now I would
> feel like I have to learn good development practices (i.e programmer's
> good manners). Let's say I want to build an application using some
> established open source library or application. Do I just download the
> source and hack away? Or I'd better do it in some controlled manner, i.e
> set up some source control system so that I can always compute the diffs
> from the original code? Or maybe I should try to keep my changes
> separate from the original code base? How do I do it?
>
> Where do I learn about things like that? I'm sorry for asking this here,
> where we dicuss standard-compliant C/C++ programming, but I really don't
> know any other place now. I do program in C/C++.


You can learn some of it from de Herb Sutter and Andrei Alexandrescu:
http://www.amazon.fr/Coding-Standard.../dp/0321113586

Michael
  Réponse avec citation
Vieux 18/01/2008, 09h51   #8
Nickolai Leschov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Good development practices

Victor Bazarov wrote:

> news:comp.sofware-eng.



Thank you. I'm subscribing.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h50.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,25773 seconds with 16 queries