views:

44

answers:

1

I'm working on an LGPL game engine library and I prefer to code without dependencies. So far I have windowing code using Xlib and OpenGL code. But I'm worried that eventually I'll need to use libraries anyway. This may be the case, I can write my own image loading stuff and much more, but I can't write audio code or networking code.

Now, I'm wondering, is it best to do it all myself for the learning experience? I'm sure I could figure it out, but what I'm really worried about is having bugs in my code that libraries have solved.

Now, if I do use libraries, that'd make it pointless to write original code and just use libraries.

I'm sorry if this is a hard thing, but I have OCD and it's either one or the other or some kind of solution like writing original code and having libraries as alternatives (since everything is abstracted anyway)

+3  A: 

I do use libraries, that'd make it pointless to write original code and just use libraries.

Right.

Notice that everyone seems to use libraries of other people's code.

Download a few dozen large, sophisticated open-source projects and look at the dependencies.

You can climb higher by standing on the shoulders of giants.

Use other people's code early and often. The "No Dependencies" life-style can't exist unless you write your own OS and language.

but I have OCD and

Doesn't matter. Keep your personal issues to yourself. Seriously. If you refuse to make a technical decision based on the technology, consider another line of work.

S.Lott