# suggestion for source code to read to improve my programming skills

#### bug13

Joined Feb 13, 2012
1,838
Hi team

Don't want to hijack a post here, so I created a new post.

@JohnInTX

What are some source code that I can read to improve my programming skills, thanks! Ideally start with some easy ones.

Thanks team!

#### JohnInTX

Joined Jun 26, 2012
4,013
I thought that Rosetta stuff was pretty good. The focus was on the method then the code.

The key for me when learning this stuff was to try to improve each time I did it. I rarely went back to improve existing, working code but often found better ways to do something the next time out. I also worked hard to learn the tools, assembler, compiler, macros etc. and use features of those to do build-time calculations, checks on stupidity etc.

I learned the basics from reading K&R, Plaugher, Knuth, Wienberg and other authors that addressed how to model solutions rather than just slam code together.

#### djsfantasi

Joined Apr 11, 2010
6,339

#### bug13

Joined Feb 13, 2012
1,838
Most of the driver code is easy if you understand C bit-banging and memory structures.
https://www.kernel.org/doc/html/latest/driver-api/index.html
Any reason why the kernel like to use this:
C:
struct foo {
int balh1;
int blah2;
...
}

struct foo foo_1;
C:
typedef struct FOO{
int blah1;
int blah2;
...
}foot_t;

foo_t foo_1;
???

#### nsaspook

Joined Aug 27, 2009
7,184

#### 402DF855

Joined Feb 9, 2013
194