Giter Club home page Giter Club logo

copow's Introduction

Some new ideas for PoW

Still in the early beginnings but current work in progress.

I work currently more on this one than on standard PoW...

Idea is basically to make PoW with:

  • MongoDB backend
  • DB <---> json <---> PoW core (coroutines) <--> json <---> views

The coroutine idea is based on the great presentation from dabeaz on on that topic and much much more ... read it !!!!:

Why

  • Document oriented DBs are a good choice for most of the small to medium web based projects (for which Pow is intended)
  • the "json to the backend and json to the frontend" approach decouples PoW from any specific backend persistend storage and frontend template engine
  • coroutines instead of Object Oriented Approach will be faster and will enable a more natural feeling by implementing a processing chain. (I'll make a separate post on that but have a look at this great presentation on generators and coroutines:

PoW for SQL will evolve as well

I will definetly also update PoW for SQL. The idea is to give Pow for MongoDB and PoW for SQL (almost) the same behaviour. And to make it as interchangable as possible. There will be a gap, though, since it woulnd't make any sence to equallize the different opportunities of SQL and NoSQL by software.

You should know yourself when to choose either one or the other.

But Anyway, since I think that the freedom of document oriented DBs also has drawbacks when developing prod applications I will give PoW for MongoDB a small layer of schema definition, migrations and relations in the PoW Framework.

That was also on reason to test something like the typecheck decorator. The Freedom of Mongo is amazing and pretty good to have, but sometimes I like to ensure some things ebfore adding them silently to the DB ;)

(see the typo ? Mongo would have silently added that to your DB ....)

copow's People

Contributors

kilohertz avatar pythononwheels avatar

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.