My primary language is PHP, but I have done some (not very much) programming in other languages.
I've written 2 modules for Apache in C. I wrote them in C because this was one of the things where performance did matter. (generating projected maps of the world on the fly and output to .png).
These modules work, and that's as far as I can guarantee the quality of the code. Don't get me wrong, I did my best to write correct code, but I'm sure it has a lot of room for improvement.
I'm playing around with the thought of changing the current modules to be threaded but have no experience with threaded software and thing like chasing down bugs still take me a lot of time.
my question is:
Should I first learn to properly program in C (get a copy The C Programming Language) or do you recommend another approach.
note:
I've currently no plans for using C other that for Apache modules
If you are serious about programming, I think learning C is really important. It's the foundation of many languages and you'll encounter lots of source code written in C. However, we could tell so of Java, C++, etc..
IMHO, I think you should just continue to write your modules and learn new things as you need them. That's the best way of learning things
Sounds like you are doing quite well already. What about open sourcing those modules and asking for feedback from the community?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With