| View previous topic :: View next topic |
| Author |
Message |
Vincent Diepeveen
Joined: 09 Mar 2006 Posts: 1738 Location: The Netherlands
|
Post subject: Re: A logging facility Posted: Mon Mar 19, 2012 8:22 am |
|
|
| mcostalba wrote: |
| diep wrote: |
| In C++ equivalents that's the same thing as Bob's Print command in C |
In C++ equivalent I could have been written my_cout object of a class derived from std::ostream at any time, replace std::cout with mine my_cout and do anything: this is _trivial_ and it takes nothing to do. What I have presented is different: suppose your program links some third part libraries that use std::cout and you want to add logging also there but you _cannot_ change their code. How do you did in the 90s ? |
As we print data from our own chessprograms, which is a 1 person product usually, C is far easier to use of course than C++, and there is no weird linking against third party libraries at all of course, as it's all code you wrote yourself.
No weird difficult 'namespace' definitions. No need to know worlds most complicated programming language, and no need to write as much code, as we already have the Print() command that's there doing a simple 'if then else' on what gets displayed.
Of course as my GUI's are in C++, i do know C++, yet even then it keeps a difficult programming language.
Bob however doesn't.
Yet in the end the executable you run is not an object oriented program, it's imperative machine code.
So somewhere in the C++ proces, there is always a conversion to the imperative world, at which point suddenly things start to look very similar to how Bob solved it, just in C++ you needed more code, and think about more complicated things
So to write espionage type software, that sneaky catches from specific program the output, and then displaying that, i'm sure C++ is the only programming language that's a requirement to get hired by N*SA. See also the NASA styleguide on C++, which is pretty ugly by the way. The Russian standards there seem more sensible there than the The North American Spy Agency styleguide, which is words most stupid and silliest styleguide ever.
Yet in this forum we are busy with computerchess, which are 1 person products usually, until start 21th century somewhere the C++ dudes got moved in, at which point computerchess became a mess.
Of course i'm using C++ for GUI's and C for the different engines i wrote.
It's silly to even start an engine in C++, as you need to be hell of a C++ programmer to even 'make' it to the same speed in nps as a much worse programmer can do in C. |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
A logging facility |
Marco Costalba |
Sun Mar 18, 2012 10:23 pm |
Re: A logging facility |
Gary |
Sun Mar 18, 2012 11:56 pm |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 3:50 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 7:18 am |
Re: A logging facility |
Vincent Diepeveen |
Mon Mar 19, 2012 7:37 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 7:50 am |
Re: A logging facility |
Vincent Diepeveen |
Mon Mar 19, 2012 8:22 am |
Re: A logging facility |
Jan Brouwer |
Mon Mar 19, 2012 6:43 pm |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 6:54 pm |
Re: A logging facility |
Jan Brouwer |
Mon Mar 19, 2012 8:00 pm |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 9:09 pm |
Re: A logging facility |
Daniel Shawul |
Mon Mar 19, 2012 9:37 pm |
Re: A logging facility |
Marco Costalba |
Tue Mar 20, 2012 8:30 pm |
Re: A logging facility |
Ben-Hur Carlos Langoni |
Wed Mar 21, 2012 2:16 am |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 9:20 am |
Re: A logging facility |
Ben-Hur Carlos Langoni |
Wed Mar 21, 2012 1:54 pm |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 3:38 pm |
Re: A logging facility |
Marco Costalba |
Thu Mar 22, 2012 8:01 pm |
Re: A logging facility |
Daniel Shawul |
Thu Mar 22, 2012 10:48 pm |
Re: A logging facility |
Rein Halbersma |
Fri Mar 23, 2012 7:03 am |
Re: A logging facility |
Daniel Shawul |
Fri Mar 23, 2012 10:04 am |
Re: A logging facility |
Rein Halbersma |
Fri Mar 23, 2012 12:32 pm |
Re: A logging facility |
Martin Sedlak |
Fri Mar 23, 2012 1:00 pm |
Re: A logging facility |
Daniel Shawul |
Fri Mar 23, 2012 2:05 pm |
Re: A logging facility |
Robert Hyatt |
Wed Mar 21, 2012 4:36 pm |
Re: A logging facility |
Mark Pearce |
Wed Mar 28, 2012 12:49 pm |
Re: A logging facility |
Rein Halbersma |
Mon Mar 19, 2012 7:50 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 8:00 am |
Re: A logging facility |
Rein Halbersma |
Mon Mar 19, 2012 8:09 am |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 6:56 pm |
Re: A logging facility |
Daniel Shawul |
Mon Mar 19, 2012 7:52 pm |
Re: A logging facility |
Robert Hyatt |
Wed Mar 21, 2012 1:26 am |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 9:00 am |
Re: A logging facility |
H.G.Muller |
Wed Mar 21, 2012 7:58 am |
Re: A logging facility |
Vincent Diepeveen |
Wed Mar 21, 2012 2:39 pm |
Re: A logging facility |
H.G.Muller |
Wed Mar 21, 2012 5:29 pm |
Re: A logging facility |
H.G.Muller |
Thu Mar 22, 2012 8:11 am |
Re: A logging facility |
Daniel Shawul |
Thu Mar 22, 2012 11:18 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|