Code Monkey home page Code Monkey logo

entity-compiler's People

Contributors

bobgarner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

entity-compiler's Issues

Control Method Exposure

The template engine does not explicitly try to control which objects or methods can be accessed by template code.

This has the advantage that there is less work to do when you want to expose a new class and its methods. However it also has a downside that you may not want to allow such access. As well, the exposed classes can get pretty full of methods and thus difficult to manage.

We should look into adding some kind of interface that these classes need to implement in order to be accessible by the template engine. The interface doesn't have to have any methods, the code that searches for a method would simply check if the object's class implements that interface.

Another idea would be to require a class to be extended and have the extended class implement that interface. The template engine would then have to cast objects to the extending class before looking for the method (not sure this would even work). This could get complicated fast.

If a viable way to solve this issue could be found it could help manage access to the internal objects.

Method Consistency

Methods on objects exposed to templates are not always consistent. Some don't require () but some do and some start with get and some don't. It would be better to have some consistency.

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.