Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1903 connectés 

  FORUM HardWare.fr
  Programmation
  C

   [WWF] Mais laissons enfin mourrir le C

 


 Mot :   Pseudo :  
 
 Page :   1  2  3  4  5  6  7  8  9  10
Page Précédente
Auteur Sujet :

[WWF] Mais laissons enfin mourrir le C

n°966642
chrisbk
-
Posté le 31-01-2005 à 12:28:06  profilanswer
 

C'est vrai quoi, il est vieux, il pue des pieds, il sert pu a rien sinon a faire monter la tension des pauvres codeux obligé de se le farcir et a segfaulter tous les 10appels de fonctions, laissons le mourrir !
 
Lui aussi a droit a sa retraite :jap:

mood
Publicité
Posté le 31-01-2005 à 12:28:06  profilanswer
 

n°966645
gedeon
Posté le 31-01-2005 à 12:35:50  profilanswer
 

D'accord !
Mais on le remplace par quoi ?
Par exemple pour ecrire un driver ?

n°966647
masklinn
í dag viðrar vel til loftárása
Posté le 31-01-2005 à 12:37:51  profilanswer
 

de l'ASM bordel !


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°966649
black_lord
Truth speaks from peacefulness
Posté le 31-01-2005 à 12:41:20  profilanswer
 

[:rofl]


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
n°966651
minusplus
Posté le 31-01-2005 à 12:44:47  profilanswer
 

salut. Avant de me faire couper la tête je précise que je suis pas programmeur, c'est donc une question de néophyte : pourquoi ne pas remplacer le C par le C++ puisque le C++ permet de faire ce que fait le C ? :o

n°966653
gedeon
Posté le 31-01-2005 à 12:45:40  profilanswer
 

j'aime bien l'asm, mais plutot en tant que particulier, mais pour les dev professionnel ...
Bon sinon pour le reste on remplace par quoi, parce que pour les driver ok, c pas les dev les plus nombreux.  

n°966654
masklinn
í dag viðrar vel til loftárása
Posté le 31-01-2005 à 12:48:33  profilanswer
 

minusplus a écrit :

salut. Avant de me faire couper la tête je précise que je suis pas programmeur, c'est donc une question de néophyte : pourquoi ne pas remplacer le C par le C++ puisque le C++ permet de faire ce que fait le C ? :o


Parce que le C++ est un hoax [:hfrbaxter]  

Citation :

On the 1st of January, 1998, Bjarne Stroustrup gave an interview to the IEEE's 'Computer' magazine.
 
Naturally, the editors thought he would be giving a retrospective view of seven years of object-oriented design, using the language he created.
 
By the end of the interview, the interviewer got more than he had bargained for and, subsequently, the editor decided to suppress its contents, 'for the good of the industry' but, as with many of these things, there was a leak.
 
Here is a complete transcript of what was was said, unedited, and unrehearsed, so it isn't as neat as planned interviews.
 
Interviewer: Well, it's been a few years since you changed the world of software design, how does it feel, looking back?
 
Stroustrup: Actually, I was thinking about those days, just before you arrived. Do you remember? Everyone was writing 'C' and, the trouble was, they were pretty damn good at it. Universities got pretty good at teaching it, too. They were turning out competent - I stress the word 'competent' - graduates at a phenomenal rate. That's what caused the problem.
 
Interviewer: Problem?
 
Stroustrup: Yes, problem. Remember when everyone wrote Cobol?
 
Interviewer: Of course, I did too
 
Stroustrup: Well, in the beginning, these guys were like demi-gods. Their salaries were high, and they were treated like royalty.
 
Interviewer: Those were the days, eh?
 
Stroustrup: Right. So what happened? IBM got sick of it, and invested millions in training programmers, till they were a dime a dozen.
 
Interviewer: That's why I got out. Salaries dropped within a year, to the point where being a journalist actually paid better.
 
Stroustrup: Exactly. Well, the same happened with 'C' programmers.
 
Interviewer: I see, but what's the point?
 
Stroustrup: Well, one day, when I was sitting in my office, I thought of this little scheme, which would redress the balance a little. I thought 'I wonder what would happen, if there were a language so complicated, so difficult to learn, that nobody would ever be able to swamp the market with programmers? Actually, I got some of the ideas from X10, you know, X windows. That was such a bitch of a graphics system, that it only just ran on those Sun 3/60 things. They had all the ingredients for what I wanted. A really ridiculously complex syntax, obscure functions, and pseudo-OO structure. Even now, nobody writes raw X-windows code. Motif is the only way to go if you want to retain your sanity.
 
Interviewer: You're kidding...?
 
Stroustrup: Not a bit of it. In fact, there was another problem. Unix was written in 'C', which meant that any 'C' programmer could very easily become a systems programmer. Remember what a mainframe systems programmer used to earn?
 
Interviewer: You bet I do, that's what I used to do.
 
Stroustrup: OK, so this new language had to divorce itself from Unix, by hiding all the system calls that bound the two together so nicely. This would enable guys who only knew about DOS to earn a decent living too.
 
Interviewer: I don't believe you said that...
 
Stroustrup: Well, it's been long enough, now, and I believe most people have figured out for themselves that C++ is a waste of time but, I must say, it's taken them a lot longer than I thought it would.
 
Interviewer: So how exactly did you do it?
 
Stroustrup: It was only supposed to be a joke, I never thought people would take the book seriously. Anyone with half a brain can see that object-oriented programming is counter-intuitive, illogical and inefficient.
 
Interviewer: What?
 
Stroustrup: And as for 're-useable code' - when did you ever hear of a company re-using its code?
 
Interviewer: Well, never, actually, but...
 
Stroustrup: There you are then. Mind you, a few tried, in the early days. There was this Oregon company - Mentor Graphics, I think they were called - really caught a cold trying to rewrite everything in C++ in about '90 or '91. I felt sorry for them really, but I thought people would learn from their mistakes.
 
Interviewer: Obviously, they didn't?
 
Stroustrup: Not in the slightest. Trouble is, most companies hush-up all their major blunders, and explaining a $30 million loss to the shareholders would have been difficult. Give them their due, though, they made it work in the end.
 
Interviewer: They did? Well, there you are then, it proves O-O works.
 
Stroustrup: Well, almost. The executable was so huge, it took five minutes to load, on an HP workstation, with 128MB of RAM. Then it ran like treacle. Actually, I thought this would be a major stumbling-block, and I'd get found out within a week, but nobody cared. Sun and HP were only too glad to sell enormously powerful boxes, with huge resources just to run trivial programs. You know, when we had our first C++ compiler, at AT&T, I compiled 'Hello World', and couldn't believe the size of the executable. 2.1MB
 
Interviewer: What? Well, compilers have come a long way, since then.
 
Stroustrup: They have? Try it on the latest version of g++ - you won't get much change out of half a megabyte. Also, there are several quite recent examples for you, from all over the world. British Telecom had a major disaster on their hands but, luckily, managed to scrap the whole thing and start again. They were luckier than Australian Telecom. Now I hear that Siemens is building a dinosaur, and getting more and more worried as the size of the hardware gets bigger, to accommodate the executables. Isn't multiple inheritance a joy?
 
Interviewer: Yes, but C++ is basically a sound language.
 
Stroustrup: You really believe that, don't you? Have you ever sat down and worked on a C++ project? Here's what happens: First, I've put in enough pitfalls to make sure that only the most trivial projects will work first time. Take operator overloading. At the end of the project, almost every module has it, usually, because guys feel they really should do it, as it was in their training course. The same operator then means something totally different in every module. Try pulling that lot together, when you have a hundred or so modules. And as for data hiding. God, I sometimes can't help laughing when I hear about the problems companies have making their modules talk to each other. I think the word 'synergistic' was specially invented to twist the knife in a project manager's ribs.
 
Interviewer: I have to say, I'm beginning to be quite appalled at all this. You say you did it to raise programmers' salaries? That's obscene.
 
Stroustrup: Not really. Everyone has a choice. I didn't expect the thing to get so much out of hand. Anyway, I basically succeeded. C++ is dying off now, but programmers still get high salaries - especially those poor devils who have to maintain all this crap. You do realise, it's impossible to maintain a large C++ software module if you didn't actually write it?
 
Interviewer: How come?
 
Stroustrup: You are out of touch, aren't you? Remember the typedef?
 
Interviewer: Yes, of course.
 
Stroustrup: Remember how long it took to grope through the header files only to find that 'RoofRaised' was a double precision number? Well, imagine how long it takes to find all the implicit typedefs in all the Classes in a major project.
 
Interviewer: So how do you reckon you've succeeded?
 
Stroustrup: Remember the length of the average-sized 'C' project? About 6 months. Not nearly long enough for a guy with a wife and kids to earn enough to have a decent standard of living. Take the same project, design it in C++ and what do you get? I'll tell you. One to two years. Isn't that great? All that job security, just through one mistake of judgement. And another thing. The universities haven't been teaching 'C' for such a long time, there's now a shortage of decent 'C' programmers. Especially those who know anything about Unix systems programming. How many guys would know what to do with 'malloc', when they've used 'new' all these years - and never bothered to check the return code. In fact, most C++ programmers throw away their return codes. Whatever happened to good ol' '-1'? At least you knew you had an error, without bogging the thing down in all that 'throw' 'catch' 'try' stuff.
 
Interviewer: But, surely, inheritance does save a lot of time?
 
Stroustrup: Does it? Have you ever noticed the difference between a 'C' project plan, and a C++ project plan? The planning stage for a C++ project is three times as long. Precisely to make sure that everything which should be inherited is, and what shouldn't isn't. Then, they still get it wrong. Whoever heard of memory leaks in a 'C' program? Now finding them is a major industry. Most companies give up, and send the product out, knowing it leaks like a sieve, simply to avoid the expense of tracking them all down.
 
Interviewer: There are tools...
 
Stroustrup: Most of which were written in C++.
 
Interviewer: If we publish this, you'll probably get lynched, you do realise that?
 
Stroustrup: I doubt it. As I said, C++ is way past its peak now, and no company in its right mind would start a C++ project without a pilot trial. That should convince them that it's the road to disaster. If not, they deserve all they get. You know, I tried to convince Dennis Ritchie to rewrite Unix in C++.
 
Interviewer: Oh my God. What did he say?
 
Stroustrup: Well, luckily, he has a good sense of humor. I think both he and Brian figured out what I was doing, in the early days, but never let on. He said he'd help me write a C++ version of DOS, if I was interested.
 
Interviewer: Were you?
 
Stroustrup: Actually, I did write DOS in C++, I'll give you a demo when we're through. I have it running on a Sparc 20 in the computer room. Goes like a rocket on 4 CPU's, and only takes up 70 megs of disk.
 
Interviewer: What's it like on a PC?
 
Stroustrup: Now you're kidding. Haven't you ever seen Windows '95? I think of that as my biggest success. Nearly blew the game before I was ready, though.
 
Interviewer: You know, that idea of a Unix++ has really got me thinking. Somewhere out there, there's a guy going to try it.
 
Stroustrup: Not after they read this interview.
 
Interviewer: I'm sorry, but I don't see us being able to publish any of this.
 
Stroustrup: But it's the story of the century. I only want to be remembered by my fellow programmers, for what I've done for them. You know how much a C++ guy can get these days?
 
Interviewer: Last I heard, a really top guy is worth $70 - $80 an hour.
 
Stroustrup: See? And I bet he earns it. Keeping track of all the gotchas I put into C++ is no easy job. And, as I said before, every C++ programmer feels bound by some mystic promise to use every damn element of the language on every project. Actually, that really annoys me sometimes, even though it serves my original purpose. I almost like the language after all this time.
 
Interviewer: You mean you didn't before?
 
Stroustrup: Hated it. It even looks clumsy, don't you agree? But when the book royalties started to come in... well, you get the picture.
 
Interviewer: Just a minute. What about references? You must admit, you improved on 'C' pointers.
 
Stroustrup: Hmm. I've always wondered about that. Originally, I thought I had. Then, one day I was discussing this with a guy who'd written C++ from the beginning. He said he could never remember whether his variables were referenced or dereferenced, so he always used pointers. He said the little asterisk always reminded him.
 
Interviewer: Well, at this point, I usually say 'thank you very much' but it hardly seems adequate.
 
Stroustrup: Promise me you'll publish this. My conscience is getting the better of me these days.
 
Interviewer: I'll let you know, but I think I know what my editor will say.
 
Stroustrup: Who'd believe it anyway? Although, can you send me a copy of that tape?
 
Interviewer: I can do that.


Spoiler :

[:tang]


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°966657
minusplus
Posté le 31-01-2005 à 12:50:44  profilanswer
 

Masklinn a écrit :

Parce que le C++ est un hoax [:hfrbaxter]  

Citation :

blabla


Spoiler :

[:tang]



je connais, j'ai failli la prendre au sérieux la première fois que je l'ai lue. Mais sinon sérieusement ? Vous avez pas un lien vers une discussion dans cette cat au moins ? (je suis certain qu'elle a déjà eu lieu ! :o)

n°966667
manatane
En vous remerciant, bonsoir
Posté le 31-01-2005 à 13:03:25  profilanswer
 

http://www.tux.org/lkml/#s15-3
Attention, troll inside.

n°966669
uriel
blood pt.2
Posté le 31-01-2005 à 13:04:30  profilanswer
 

Fortran et C meme combat [:petrus75]


---------------
IVG en france
mood
Publicité
Posté le 31-01-2005 à 13:04:30  profilanswer
 

n°966681
chrisbk
-
Posté le 31-01-2005 à 13:13:18  profilanswer
 

minusplus a écrit :

salut. Avant de me faire couper la tête je précise que je suis pas programmeur, c'est donc une question de néophyte : pourquoi ne pas remplacer le C par le C++ puisque le C++ permet de faire ce que fait le C ? :o


 
On se le demande [:icon3]

n°966682
chrisbk
-
Posté le 31-01-2005 à 13:14:24  profilanswer
 

gedeon a écrit :

D'accord !
Mais on le remplace par quoi ?


C++, java, c#, python, les alternatives manquent pas dans 97% du tps...

gedeon a écrit :


Par exemple pour ecrire un driver ?


et ca c'est dans les 3% restant

n°966683
minusplus
Posté le 31-01-2005 à 13:15:01  profilanswer
 


wé, je connais cette faq (:o) mais bon, le moins qu'on puisse dire c'est qu'elle n'est pas très convaincante... :o

n°966686
minusplus
Posté le 31-01-2005 à 13:17:34  profilanswer
 

chrisbk a écrit :

C++, java, c#, python, les alternatives manquent pas dans 97% du tps...
 
et ca c'est dans les 3% restant


pourquoi ça pose problème ?

n°966689
manatane
En vous remerciant, bonsoir
Posté le 31-01-2005 à 13:25:15  profilanswer
 

Citation :

le moins qu'on puisse dire c'est qu'elle n'est pas très convaincante


Pourquoi?

Citation :

pourquoi ça pose problème ?


Parce que ces langages ne permettent pas de gèrer la mèmoire à un niveau suffisament bas.
 
Le C reste indispensable pour faire de la programmation bas niveau et portable en particulier sous Unix, bref de la programmation d'homme, avec des poils, pour le reste il est quand meme pertinent de profiter de 30 ans de progrès dans les langages informatiques.

n°966691
Chronoklaz​m
Posté le 31-01-2005 à 13:26:15  profilanswer
 

De toute facon, les languages du futur seront tous fonctionnels ... alors tant qu'a faire, oublions le C :D
 
Apprenons le Scheme ! :D  
 
Laissons nous envahir par la veritable puissance avec la prise du controle à l'aide des continuations, programmation paresseuse et non-deterministe ... !
 
Enfin, liberons nous des contraintes physiques pour s'elever  
vers des languages de 4eme et 5eme generation.
 
L'avenir de la programmtion est là, devant nous, il ne reste plus qu'a le saisir !
 
http://www.drscheme.org

n°966693
masklinn
í dag viðrar vel til loftárása
Posté le 31-01-2005 à 13:28:19  profilanswer
 

bah, Java2k > all, rien ne vaut la programmation probabiliste :o


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°966698
minusplus
Posté le 31-01-2005 à 13:39:58  profilanswer
 

manatane a écrit :

Citation :

le moins qu'on puisse dire c'est qu'elle n'est pas très convaincante


Pourquoi?


Ben la plus part des réponses c'est "why should we" ou alors "historical reasons". Quand à ce qu'en dit Linus, c'est pas trop argumenté (pas du tout en fait) et puis je ne comprend pas ça : "any compiler or language that likes to hide things like memory allocations behind your back just isn't a good choice for a kernel." (cf. ta remarque ci-dessous) : pourquoi alors que les fonctions de gestion de la mémoire et les manips de pointeurs du C existent en C++ :??:
 
 

manatane a écrit :

Citation :


[quote]pourquoi ça pose problème ?


Parce que ces langages ne permettent pas de gèrer la mèmoire à un niveau suffisament bas.
 
Le C reste indispensable pour faire de la programmation bas niveau et portable en particulier sous Unix, bref de la programmation d'homme, avec des poils, pour le reste il est quand meme pertinent de profiter de 30 ans de progrès dans les langages informatiques.


cf. ma remarque ci-dessus ! :o

n°966701
gedeon
Posté le 31-01-2005 à 13:45:02  profilanswer
 

chrisbk a écrit :

C++, java, c#, python, les alternatives manquent pas dans 97% du tps...
 
et ca c'est dans les 3% restant


 
Sauf que meme avec 3 % ca ne disparait donc pas et en pluis ce sont peut etre les 3 % les plus important.
 
Donc objectivement, on ne peut pas encore se passer du c ou du C++ au profit de langage plus "evolué" comme java, c# ou autre. Le jour ou ça sera possible c que les systemes d'exploitation seront hermétiques !! Et là ....

n°966704
manatane
En vous remerciant, bonsoir
Posté le 31-01-2005 à 13:49:43  profilanswer
 

Citation :

"any compiler or language that likes to hide things like memory allocations behind your back just isn't a good choice for a kernel." (cf. ta remarque ci-dessous) : pourquoi alors que les fonctions de gestion de la mémoire et les manips de pointeurs du C existent en C++


Quand tu fais du C++ autant utiliser new et delete plutot que ce que des fonctions C (malloc, free, mmap...), sinon autant faire du C (du C++ et du C mélangés c'est pas top). Qui plus est le C++ étant plus haut niveau que le C certaines implémentations (les normes sont plutot floues en générale) de méthodes / fonctions vont te cacher ce qu'elles font pour manipuler la mémoire (new n'est pas obligé d'utiliser malloc, malloc n'est pas obligé d'utiliser telles fonctions plus bas niveau), bref le C++ rajoute une couche d'abstraction sur le C, ce qui complique la tache quand tu programmes bas niveau.

n°966716
minusplus
Posté le 31-01-2005 à 14:01:23  profilanswer
 

manatane a écrit :

Citation :

"any compiler or language that likes to hide things like memory allocations behind your back just isn't a good choice for a kernel." (cf. ta remarque ci-dessous) : pourquoi alors que les fonctions de gestion de la mémoire et les manips de pointeurs du C existent en C++


Quand tu fais du C++ autant utiliser new et delete plutot que ce que des fonctions C (malloc, free, mmap...), sinon autant faire du C (du C++ et du C mélangés c'est pas top). Qui plus est le C++ étant plus haut niveau que le C certaines implémentations (les normes sont plutot floues en générale) de méthodes / fonctions vont te cacher ce qu'elles font pour manipuler la mémoire (new n'est pas obligé d'utiliser malloc, malloc n'est pas obligé d'utiliser telles fonctions plus bas niveau), bref le C++ rajoute une couche d'abstraction sur le C, ce qui complique la tache quand tu programmes bas niveau.

ben je suis d'accord mais bon, si on parle de rattraper les 3% de code cités ci-dessus, il me semble que être obligé de faire des malloc et des free dans le code d'un driver c'est pas très cher payer pour pouvoir profiter de l'architecture objet du C++... (enfin c'est mon avis :o (bon en même temps, j'ai jamais programmé bas-niveau... :o²))

n°966717
chrisbk
-
Posté le 31-01-2005 à 14:03:31  profilanswer
 

gedeon a écrit :


Donc objectivement, on ne peut pas encore se passer du c ou du C++ au profit de langage plus "evolué" comme java, c# ou autre. Le jour ou ça sera possible c que les systemes d'exploitation seront hermétiques !! Et là ....


 
pas d'accord, dans 97% du tps on peut leur dire au revoir (surtout au C §§§) alors jvois pas pkoi on le fait pas [:el g]
stronul ste langage [:sisicaivrai]

n°966724
Emmanuel D​elahaye
C is a sharp tool
Posté le 31-01-2005 à 14:11:04  profilanswer
 

Masklinn a écrit :

de l'ASM bordel !


Pas très portable...
 


---------------
Des infos sur la programmation et le langage C: http://www.bien-programmer.fr Pas de Wi-Fi à la maison : http://www.cpl-france.org/
n°966725
Emmanuel D​elahaye
C is a sharp tool
Posté le 31-01-2005 à 14:11:44  profilanswer
 

minusplus a écrit :

Avant de me faire couper la tête je précise que je suis pas programmeur


Alors de quoi tu te mèles ?
 


---------------
Des infos sur la programmation et le langage C: http://www.bien-programmer.fr Pas de Wi-Fi à la maison : http://www.cpl-france.org/
n°966726
Moktar1er
No one replies...
Posté le 31-01-2005 à 14:12:01  profilanswer
 

pourquoi faire autre chose que du C alors que le C permet de tout faire?

n°966727
minusplus
Posté le 31-01-2005 à 14:12:23  profilanswer
 

Emmanuel Delahaye a écrit :

Alors de quoi tu te mèles ?


je me renseigne. Mais si ça te pose problème, je me jette par la fenêtre dans la minute, hein.

n°966728
skeye
Posté le 31-01-2005 à 14:12:56  profilanswer
 

moktar1er a écrit :

pourquoi faire autre chose que du C alors que le C permet de tout faire?


Parce-qu'on peut le faire en se prenant moins la tête avec d'autres outils?:o


---------------
Can't buy what I want because it's free -
n°966729
chrisbk
-
Posté le 31-01-2005 à 14:13:08  profilanswer
 

moktar1er a écrit :

pourquoi faire autre chose que du C alors que le C permet de tout faire?


 
 
parce que c'est de la daube en barre ?

n°966730
Moktar1er
No one replies...
Posté le 31-01-2005 à 14:13:50  profilanswer
 

le C c'est trés bien, le reste c'est de la prise de tête en boîte!!!

n°966732
chrisbk
-
Posté le 31-01-2005 à 14:14:52  profilanswer
 

moktar1er a écrit :

le C c'est trés bien, le reste c'est de la prise de tête en boîte!!!


 
Quand tu feras autre chose que des hello worlds, tu comprendras [:petrus75]

n°966733
minusplus
Posté le 31-01-2005 à 14:14:58  profilanswer
 

moktar1er a écrit :

le C c'est trés bien, le reste c'est de la prise de tête en boîte!!!


moi je trouve que la programmation objet clarifie pas mal le code, quand même... :o

n°966735
chrisbk
-
Posté le 31-01-2005 à 14:16:14  profilanswer
 

minusplus a écrit :

moi je trouve que la programmation objet clarifie pas mal le code, quand même... :o


 
oué enfin faut pas trop ecouter moktar, il a jamais trop décollé de la programmation de sa calculatrice, alors bon...

n°966738
Emmanuel D​elahaye
C is a sharp tool
Posté le 31-01-2005 à 14:17:34  profilanswer
 

chrisbk a écrit :

C'est vrai quoi, il est vieux, il pue des pieds, il sert pu a rien sinon a faire monter la tension des pauvres codeux obligé de se le farcir et a segfaulter tous les 10appels de fonctions, laissons le mourrir !


Il sert à écrire de bons correcteurs d'orthographe...  :)  
 
Sur beaucoup de plateformes (embarquées, notamment), l'alternative est entre l'assembleur (non merci) et le C.
 
D'autre part, c'est une école de rigueur irremplacable, Et puis, un code C, c'est beau...


Message édité par Emmanuel Delahaye le 31-01-2005 à 14:18:07

---------------
Des infos sur la programmation et le langage C: http://www.bien-programmer.fr Pas de Wi-Fi à la maison : http://www.cpl-france.org/
n°966741
retrox
Posté le 31-01-2005 à 14:18:12  profilanswer
 

chrisbk a écrit :

Quand tu feras autre chose que des hello worlds, tu comprendras [:petrus75]


On n'est pas vendredi  :??:

n°966746
skeye
Posté le 31-01-2005 à 14:20:06  profilanswer
 

Emmanuel Delahaye a écrit :

Et puis, un code C, c'est beau...


Oui euh faut pas exagérer, non plus...:o


---------------
Can't buy what I want because it's free -
n°966748
gedeon
Posté le 31-01-2005 à 14:20:36  profilanswer
 

chrisbk a écrit :

pas d'accord, dans 97% du tps on peut leur dire au revoir (surtout au C §§§) alors jvois pas pkoi on le fait pas [:el g]
stronul ste langage [:sisicaivrai]


 
Tu te répète  !!
Je ne suis pas pro-c du tout et effectivement la plupart du temps je choisi java ou le c#. Mais pour l'instant on a pas le choix voila pourquoi on le garde.
Quand a sa "nulité" elle est toute relative, comme tu le disais il a l'age de la retraite ce langage. Mais si tu etudie un peu l'histoire des  architecture informatiques le c est apparu comme une put... d'évolution.
Et ce qui nous parrait acqui aujourd'hui comme techniques de l'information ne l'etait pas il y a 40 ans

n°966749
chrisbk
-
Posté le 31-01-2005 à 14:20:37  profilanswer
 

Emmanuel Delahaye a écrit :


Sur beaucoup de plateformes (embarquées, notamment), l'alternative est entre l'assembleur (non merci) et le C.


ja balance ca dans les 3% restant. (tout le monde ne fait pas de l'embarqué)
 
 

Emmanuel Delahaye a écrit :


D'autre part, c'est une école de rigueur irremplacable


 
Ca doit surtout faire le bonheur des psychiatre
 
-Et au travail, ca se passe comment ?
-Segfault...Segfault HAHAHAHHA SEGFAULT §§§
 

Emmanuel Delahaye a écrit :


 Et puis, un code C, c'est beau...


 
non la je proteste, ca ne ressemble a rien.
 
pis on peut pas faire d'inner structs, donc ca pue [:petrus75]
 

n°966751
manatane
En vous remerciant, bonsoir
Posté le 31-01-2005 à 14:21:40  profilanswer
 

Citation :

ben je suis d'accord mais bon, si on parle de rattraper les 3% de code cités ci-dessus, il me semble que être obligé de faire des malloc et des free dans le code d'un driver c'est pas très cher payer pour pouvoir profiter de l'architecture objet du C++...


Cette histoire de 3% c'est un troll hein (bon il y a une part de vérité mais bon). Le C++ c'est bien joli sur la feuille mais :
- il n'a pas vocation à etre un assembleur portable comme le C (depuis 30 ans, programmation bas niveau portable = programmation en C dans la plupart des cas (système, réseau, compilo, librairie graphique...).  
- la norme est tellement énorme qu'aucun compilo ne l'implémente complétement alors qu'elle date de 1997. -> Problème de portabilité.
- certains (puristes du C ou de la programmation objet) détestent. C'est un peu Microsoft qui a popularisé le langage, Objective C est bien meilleur selon moi, mais Next n'a malheureusement pas eu le monopol^W succes de MS.  
 

n°966756
skeye
Posté le 31-01-2005 à 14:23:02  profilanswer
 

(java et php vaincront! [:petrus75])


---------------
Can't buy what I want because it's free -
n°966760
masklinn
í dag viðrar vel til loftárása
Posté le 31-01-2005 à 14:23:58  profilanswer
 

minusplus a écrit :

moi je trouve que la programmation objet clarifie pas mal le code, quand même... :o


On peut parfaitement faire de la POO en C [:spamafote]


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  6  7  8  9  10
Page Précédente

Aller à :
  FORUM HardWare.fr
  Programmation
  C

   [WWF] Mais laissons enfin mourrir le C

 

Sujets relatifs
Plus de sujets relatifs à : [WWF] Mais laissons enfin mourrir le C


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR