O
O
olafars2015-06-10 01:37:13
System Programming
olafars, 2015-06-10 01:37:13

C programming?

Good day! I'm quietly learning pure C from K&R. I like it, I solve simple problems from the programming book, for fun so to speak. I myself am a web developer: php, js, a little bit of python.
While learning the language and solving problems, I ran into a lack of understanding, where to start after that?
Tell me the simplest project to implement in C, for example, under Linux, which would not take much time, but would allow a deeper understanding, from a practical point of view, of the use of the language. Is it worth reading A. Robbinson's book - Linux programming by examples?
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Glamor, 2015-06-10
@olafars

Small projects:
You can write a simple compiler or interpreter.
C extensions for Python say a funny thing ^^
If you are interested in low-level programming that includes access to hardware, then find any gadget (camera, router, phone ..) with open source firmware. Try hacking!
If you'd like to browse/tweak some really good code:

  • SQLite - 50 Shades of Pure C
  • Unix utilities such as less.
    Just run this:apt-get source less

Finally, try looking at the Linux kernel.
Sure, it's over 10 million lines of code, but it's also extremely modular and well documented. There are two very good books on the subject: Understanding the Linux Kernel and Linux Device Drivers (the latter is freely available online).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question