Coder Social home page Coder Social logo

Comments (8)

chrisdew avatar chrisdew commented on June 11, 2024

Hi, I'm busy with http://www.barricane.com/2011/03/05/uk-internet-startup-week.html for the next couple of weeks.

I'll investigate and fix in two weeks' time.

Thanks for the bug report,

Chris.

from barricane-db.

joshmarinacci avatar joshmarinacci commented on June 11, 2024

no prob. So far I'm enjoying the library. It's made my life a lot easier. The biggest help would probably be a more full featured sample.

-ju
On Apr 21, 2011, at 1:12 AM, chrisdew wrote:

Hi, I'm busy with http://www.barricane.com/2011/03/05/uk-internet-startup-week.html for the next couple of weeks.

I'll investigate and fix in two weeks' time.

Thanks for the bug report,

Chris.

Reply to this email directly or view it on GitHub:
#2 (comment)

Blasting forth in three part harmony!

from barricane-db.

chrisdew avatar chrisdew commented on June 11, 2024

The cause of the problem is that BarricaneDB is based on defineSetter (which intercepts object alterations).

This does not work the same on Arrays. A partial fix would involve overriding the prototype's push, pop, shift, etc. and asking the application programmer to use a.set(1, 'a') instead of a[1] = 'a'. This is not very palatable. Let me know if you can think of a solution.

This problem is likely to exist on other mutable, non-object, 'native' types. e.g. 'Date' may have a similar issue.

from barricane-db.

chrisdew avatar chrisdew commented on June 11, 2024

http://stackoverflow.com/questions/2449182/getter-setter-on-javascript-array/2449735#2449735

from barricane-db.

chrisdew avatar chrisdew commented on June 11, 2024

Hi, I've had a further look into this, and there is a possible hack, but nothing nice.

Hack: create an explicit 'save' method on each object, which must be called after an array is modified.

I'm happy to do this. Will it solve your problem?

All the best,

Chris.

from barricane-db.

chrisdew avatar chrisdew commented on June 11, 2024

Hi Josh,

Could you reply to the question above, please, if you would like me to resolve this issue?

Thanks,

Chris.

from barricane-db.

joshmarinacci avatar joshmarinacci commented on June 11, 2024

I understand arrays better now. I think there isn't a good solution so you can just close out the bug. thanks for trying!
On May 19, 2011, at 6:53 AM, chrisdew wrote:

Hi Josh,

Could you reply to the question above, please, if you would like me to resolve this issue?

Thanks,

Chris.

Reply to this email directly or view it on GitHub:
#2 (comment)

Blasting forth in three part harmony!

from barricane-db.

chrisdew avatar chrisdew commented on June 11, 2024

Closed as 'no good solution found'.

from barricane-db.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.