Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning C properly: yes or no?

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

like image 430
Jacco Avatar asked Feb 06 '09 16:02

Jacco


2 Answers

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

like image 89
user35978 Avatar answered Oct 03 '22 03:10

user35978


Sounds like you are doing quite well already. What about open sourcing those modules and asking for feedback from the community?

like image 23
George Mauer Avatar answered Oct 03 '22 01:10

George Mauer