learning to code
- Anmelden oder Registrieren um Kommentare zu schreiben
I have been trying to learn to code programs for more than 2 decades. Currently I am reading within Emacs the An Introduction to Programming in Emacs Lisp book. I figure I should try an introductory book as I never got any real programs off the ground as something requiring more than 2 files. One obstacle is that I find that I misunderstand what the excercises actually want and I usually find it as a deterrant to actually wanting to write the answer.
I understand that programming is actually a discipline that takes time (you cannot learn it in a weekend), but it seems that other having racing past me. I usually am learning it solo, although twice I went to school for it.
I can code a little bit in C and python, but object oriented programming has been more than confusing to me over the years.
I never looked at that book before but since I learned Lisp already (even though it was 30 years ago), it feels rather easy to read for me. On the opposite, I tried reading a book on Python (that I never learned), I felt miserable there and gave up.
I am also confused with object-oriented programming. For example, I wonder how different a class is from a C structure and associated functions, and a list of preambles of functions provided as interface to the structure.
In C++, a class only differs from a struct by the fact that its members (variables and functions) are private by default. In a struct, they are public by default. In pure C, can a struct have functions?

