Home » Community » Coffee corner » "(national) C compiler"
Re: "(national) C compiler" [message #20717 is a reply to message #20716] |
Wed, 01 April 2009 16:43 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
kbyte wrote on Wed, 01 April 2009 17:07 | I just plain to attract people to program their programs... helder people, young people, people that do not understand english...
May be I am following a wrong strategy...
Thank you very much
Kim
|
Well if this is your objective you may be following the wrong strategy.
First of all, there is no good reason for non professionals to learn C. I can be even damaging. While the core of the language is as fresh as ever and will remain like that forever (I mean writing algorithms, reasoning and principles, and even syntax), other features are very dated and counter productive. C is not something to which you want to attract people. C is what you do when you need to work on embedded systems, need extreme performance code (but here also C++ does the job as fast), need very fast compile speed by careful structuring of you code, need dynamic libraries, need to create a new compiler by having it generate C and thus opening up all existing platforms and so on. If you want to attract people to programming try some scripting language, ObjectPascal or Java. ObjectPascal is based on Pascal, which has didactic roots and while being a competent tool it makes it very hard to shoot yourself in the proverbial foot. But don't try Turbo Pascal, because people generally hate it .
As for using native keywords to make learning easier and more attractive, I don't think it's going to count for C. C is not a verbose language. You use about 5 keywords very often in an imperative way: if, else, while, return and class. And even if you add the rest, their number is quite low. These could benefit from native language form, but still people will grasp quite easily "if" even if they don't understand the word. As for the rarer ones like volatile and register, I doubt that by renaming them you will make the concept easier to grasp. On the other hand, "char *(*(**foo [][8])())[];" will look just as but no matter what you put in the place of char. And here unfortunately preprocessor wont help. And you can use typedef to replace all the keywords that define types.
|
|
|
|
|
"(national) C compiler"
By: kbyte on Tue, 31 March 2009 18:10
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 20:26
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 21:18
|
|
|
Re: "(national) C compiler"
By: mirek on Wed, 01 April 2009 05:33
|
|
|
Re: "(national) C compiler"
By: mr_ped on Tue, 31 March 2009 22:21
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 23:03
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 11:20
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 11:58
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 12:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 15:03
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 15:56
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 16:07
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 23:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: wilf123 on Thu, 28 May 2009 19:19
|
Goto Forum:
Current Time: Wed Jun 05 07:14:00 CEST 2024
Total time taken to generate the page: 0.02095 seconds
|