Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing database software in C/C++ [closed]

I have been a self taught web developer for a few years now, and usually use C#/ASP.NET, Python, and PHP. But I want to try to advance my skills by doing something more advanced. I am looking to try to build a database program like SQLite, or a mini MySQL sort of thing in C/C++ just to practice and learn new things.

EDIT: My project doesn't have to be a RDBMS. It can be something like a simple web server or something. Just something to see if I like doing that kind of thing more than web development.

However, I can't seem to find any kind of book or tutorials online that teaches this sort of thing. Does anyone know where I can find resources regarding this? I have a C book that teaches the language itself, but I learn how to think through things a lot better when I try to build something specific like a database engine etc. Thanks for any input.

like image 315
vt-cwalker Avatar asked Dec 03 '22 05:12

vt-cwalker


2 Answers

For literature I could recommend something like Accelerated C++ or Thinking in C++. I also recently got my hands on Code Complete, found it in a shelf at work, and it is as good as people say. Solid language agnostic advice.

Also you should separate C and C++, they may seem similar and people clump them together but it's really two different ways of thinking. Now the new C++11 makes the differences even more important to understand, C++ is just not C with classes.

like image 181
r_ahlskog Avatar answered Dec 05 '22 19:12

r_ahlskog


Why don't you try something a bit smaller like a ray tracer? Its very attainable to write a simple one that can produce some nice images, and its something you can come back to again and again to add features.

like image 27
Bill Avatar answered Dec 05 '22 19:12

Bill