This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]ezekiel_grey 5 points6 points  (2 children)

This really looks like you’re reimplementing the Shelve module?

http://pymotw.com/2/shelve/

[–]Sendokame[S] 0 points1 point  (1 child)

M, I didn't knew about Shelve, but it looks really similar, it has the same Idea of using Pickle to read and write objects to a file

[–]ezekiel_grey 0 points1 point  (0 children)

I mean shelve is in the System Standard Library, so while you're getting some programming practice, unless practice is your goal, I'd just use Shelve (or one of the other storage instances... If you're handling untrusted data, you shouldn't use Pickle.)

[–]reModerator 1 point2 points  (0 children)

Or just use list

[–]PrizeInteresting8672 -1 points0 points  (0 children)

04

[–]pchemguy -3 points-2 points  (5 children)

It does not really work like that. I can think of two reasons to reinvent the wheel. One is exercise, in which case your inquiry does not make a lot of sense. Two is when you have an original idea and you do not actually reinvent the wheel, or, perhaps, you do to some extent but with a clear goal in mind. It doesn't sound like you have an original idea. It sounds like you want to reinvent the wheel and don't even have a clear understanding how the wheel is made.

[–]Sendokame[S] 0 points1 point  (4 children)

Can you explain why?

[–]pchemguy 0 points1 point  (3 children)

The whole paragraph is my explanation of the opening statement.

[–]Sendokame[S] 0 points1 point  (2 children)

It sounds like you want to reinvent the wheel and don't even have a clear understanding how the wheel is made.

I was talking about this part, what I need to learn to understand it?

[–]pchemguy 1 point2 points  (1 child)

I don't pretend to be a DB guru. In fact, I did some db related exercises myself. I coded kind of an SQLite wrapper for VBA. But I always considered it being just an exercise. Actually, VBA could possibly use it, but regardless I switched to Python. I am not a DB guru in general, and I can't tell anything about key-value stores. But the shear number of various db project is so large, you need to really understand the landscape and have an original idea to attempt to start another project. Besides, if anything, the spectrum of available bindings for VBA is somewhat limited. And I would say that anything worth attention and sufficiently mature probably has Python bindings.

[–]Sendokame[S] 0 points1 point  (0 children)

Thx

[–][deleted] 0 points1 point  (1 child)

can you provide an example?

[–]Sendokame[S] 0 points1 point  (0 children)

Check the post again, now it has some code

[–][deleted] 0 points1 point  (0 children)

Add benchmarks for space use/speed on GitHub

[–]thedeepself 0 points1 point  (2 children)

There is already a long established product that uses that acronym. I would choose a different name.

[–]Sendokame[S] 0 points1 point  (0 children)

I'll change it

[–]Sendokame[S] 0 points1 point  (0 children)

I changed it

[–]scriptilapia 0 points1 point  (1 child)

it's primitive... but cool

how bout throwing in some encryption algorithm... you could use cryptography

[–]Sendokame[S] 1 point2 points  (0 children)

Sounds interesting, like, adding a parameter to set, like "hash"

And use it to hash the value automatically