Giter Site home page Giter Site logo

domino-v2-proposal's Introduction

๐Ÿ‘‹ Hello!

I'm Alexis Jacomy, aka @jacomyal, a Front-End Engineer specialized in graphical rendering and data visualization.

I'm part of the innovative team at OuestWare, an agency based in Nantes, France. We specialize in developing web applications for data exploration.

As a part of my work at OuestWare, I'm the main developer and maintainer of sigma.js, an open-source library focused on efficiently displaying networks within web pages.

We also develop:

  • Gephi Lite a web-based, lighter version of Gephi, the networks visualization and exploration software;
  • Retina, a web application to share graph visualizations online.

Finally, I sometimes write on ๐Ÿ˜ Mastodon or on ๐Ÿ—’ OuestWare's blog.

Thank you for visiting, and let's connect!

domino-v2-proposal's People

Contributors

jacomyal avatar yomguithereal avatar

Watchers

 avatar  avatar  avatar

domino-v2-proposal's Issues

Controller events data

  1. I think that data in events is not unit tested
  2. When emitting an event with data, data is not correctly passed to the listeners (function _execute here is fishy and provide for undefined data to emitter.

[Idea]: properties fallback

Would it be useful to define a fallback value for some properties?

controller.registerProperty('prop1', {
  type: '?string',
  fallback: 'Hey, I am the fallback string!'
});

controller.update('prop1', false);

controller.get('prop1');
>>> 'Hey, I am the fallback string!'

Types instantiation

It would be nice to be able to create types instances. An instance would be attributed to a given controller instance and it would be possible to register types through it.

Properties registration polymorphism

In old domino, properties would be stated thusly:

var d = new domino({
   properties: [
    {
        id: 'p1',
        type: 'string'
    },
    {
        id: 'p2',
        type: 'number'
    }
   ] 
});

So, for starters, we need a a posteriori low-level interface to deal with properties like:

d.addProperty({id: 'p3', type: 'number', namespace: 'x'});
// or
d.addProperty('p3', {type: 'number'});

And we could register properties likewise (considering namespaces also):

var d = new domino({
    properties: {
        ns1: {
            x: {
                type: 'number',
                description: 'a random number'
            },
            y: {
                type: 'string',
                defaultValue: 'Hello World!'
            }
        },
        ns2: {
            x: {
                type: 'number',
                description: 'This property is also x but is also namespaced.'
            },
            z: {
                type: 'object'
            }
        }
    } 
});

But now, what do we decide for polymorphism, that is to say, if we write something like the following:

var d = new domino({
    properties: {
        x: scalar
    } 
});

// or

d.addProperties('x', scalar);

I would advocate for property type, likewise:

var d = new domino({
    properties: {
        x: 'number'
    } 
});

// or

d.addProperties('x', 'number');

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.