Giter Site home page Giter Site logo

Comments (1)

aperezdc avatar aperezdc commented on August 23, 2024

This idea has been in my head as well, because it forces uses of libcogcore to have a GApplication even if a particular application does not want one or cannot use one for some reason. What I would do is:

  • Split the functionality that is independent from GApplication out of CogLauncher into a new class, let's say CogView (if somebody can think of a better name, I'm all ears).
  • Move plug-in handling into the new CogView class. This way code that uses libcogcore does not need to duplicate code that now lives in cog.c.
  • Keep the CogLauncher class around, but make it use the new CogView class.

I like the idea of keeping a basic GApplication subclass around, because for cases where using it can be used it will avoid third party developers having to write a good chunk of non-trivial code. One of my mental goals in this regard is that writing a very basic launcher using libcogcore should be possible in under <500 LOC (currently cog.c is 368 LOC).

from cog.

Related Issues (20)

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.