|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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++. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Victor Bazarov wrote:
> news:comp.sofware-eng. Thank you. I'm subscribing. |
|
![]() |
| Outils de la discussion | |
|
|