3 ms·
That doesn't sound very efficient. OP, what is the rationale behind this?
by Mahn 12y ago
That doesn't sound very efficient. OP, what is the rationale behind this?
- ChiperSoft 12y agoIf OP just made it for fun, it doesn't have to be efficient
- Mahn 12y agoSure, but it's such an odd design choice that one can't help but wonder why, even if it was for fun only.
- alphapapa 12y agoPeople come up with all kinds of "odd choices" when they haven't been indoctrinated with existing dogma (I don't necessarily mean that in a negative way, despite the connotations). Sometimes that's how new breakthroughs happen, by bringing fresh eyes to bear on an old problem. Whether sharing this particular example here was brave or stupid is up for grabs though... ;) (No offense to the OP intended. I think it's an interesting example of thinking outside the box, and I'm sure you're learning a lot more than you would going through a bunch of online tutorials!)
- jhedwards 12y agoWell, I've only been programming for two years and I'm new to advanced concepts like compiling etc. There aren't really simple tutorials on how to make a database afaik, so I figured I'd just think something up and try it out. I realized it was an inefficient design, but I didn't know if it would be unusably inefficient or just slow compared to programs written by teams of CS majors. Only one way to find out, as they say.
- theseoafs 12y ago> Well, I've only been programming for two years and I'm new to advanced concepts like compiling etc. What exactly have you been doing for two years if you think compiling is an "advanced concept"? By the way, your functions go in the .c file, not in the .h file.
- jhedwards 12y agoWeird, most programmers I know consider compilers to be at least somewhat advanced. To answer your question, two years ago I knew nothing about programming, I was poor, living in China, with no marketable skills. I had to teach myself everything in my spare time. In that time I mostly studied frameworks, algorithms, data structures, the quirks of JS etc. I managed to do well enough that I'm now working 9-5 in silicon valley making UI for medical software. Unfortunately, I have never had the opportunity to learn about compilers or database internals.
- danbruc 12y agoI guess he referred to using a compiler, not writing one. The later is obviously one of the more advanced topics in computer science.
- danbruc 12y agoThere are a lot of books on database system design like »Fundamentals of Database Systems« [1] by Elmasri and Navathe. The reason there is no such thing as a simple tutorial is because any serious attempt to build a database system will consume on the order of tens or hundreds of men-years of effort if you start from scratch. [1] http://www.amazon.com/Fundamentals-Database-Systems-Ramez-Elmasri/dp/0136086209 http://www.amazon.com/Fundamentals-Database-Systems-Ramez-El...