jdc {l Wrote}:I disagree lightly, Linux is build on C so is a good language after all.
jdc {l Wrote}:PHP push languages a lot forwards bringing new functionality and ways of doing things in new ways. In terms of innovation i think is a great language.
jdc {l Wrote}:Most of the stuff that is in that article, i think is more a person that is not very creative, or don't like to solve problems. Of course is going to have problems with a loose language like PHP. If you are expecting the programming language just to allow things to be done in one way or very strict, but that cut off all your creativity. Can become extremely boring to code like that.
jdc {l Wrote}:Dulsi : it is stated clear that is done in C in Dropbox only contains files in C. But often project contains several languages. For example a database is made in SQL which have nothing to do with PHP or C. Engines like unreal have the core done in C++ and have biding's for Lua, or other high level scripting language.
jdc {l Wrote}:Naaa is a proven fact debated on the forums that C++ or objects for that matter are slower. Objects are a entanglement of data, so they are bit far way for the zero and ones that the computer understand.
i will need to digg a bit more to know how to do this stuff in C
How to handle variables ?
For example why to re declare pointers all the way in the project when we can have generic pointers declared :
int *int_pointer;
char *char_pointer;
float *float_pointer;
When we need to use them inside our files, we know that the structure have generic declared pointers. This is used in? A form of structure, so the template have this stuff build in. In your file you access the int_pointer.
Pointers are just a address to a variable they are not, a variable this means that it loads less stuff.
int large_number = 00987987987989890;
*int_pointer = large_number;
if we use our *int_pointer to pass it to a function, we don't move the variable around this is where we are saving resources. In our structure, we are saving lines of code by not re declaring stuff and by having pre build in variables.
Another pre build variable :
screen_width = 640;
screen_height = 480;
variables that :
why should we re declare this stuff which time we start a project?
This stuff should be a standard variable.
jdc {l Wrote}:I use C the way i want, and i don't control other people topics. Nor do i make ironic comments, how to manage project's that i have no intention to help out. Talk comes cheap!
I was reading the forums, and seen this attitude before, people are doing some stuff that they like when others see some kind of competition, or project, they try to black out other people projects.
Great that this community try to help out others, and the administrators are active in looking in to this kind of situations.
I only appreciate constructive criticism and this one is not one of them.
Pointers are just a address to a variable they are not, a variable this means that it loads less stuff.
int large_number = 00987987987989890;
error: invalid digit "9" in octal constant
*int_pointer = large_number;
if we use our *int_pointer to pass it to a function, we don't move the variable around this is where we are saving resources. In our structure, we are saving lines of code by not re declaring stuff and by having pre build in variables.
my_function(&large_number);
smcameron {l Wrote}:Based on what you've written, you seem like a novice at C. Very much so. I'm trying to tell you that as a novice, you shouldn't be offering advice on how to write C code.
Users browsing this forum: No registered users and 1 guest