Coder Social home page Coder Social logo

Comments (7)

jecisc avatar jecisc commented on September 18, 2024

The problem if you stop using precooked entity is how you manage code of something managing not one MM but multiple.

Exemple:
How do you build the File and Folder generator?

Currently, it check in the current MM which entity is a FamixTFile and a FamixTFolder to know what to generate.

I we don't have this information, how do we do this generator?

from famix.

sbragagnolo avatar sbragagnolo commented on September 18, 2024

But nor file or folder are language specific concepts. Maybe OS specific, but we do not really care.
If you define it at the level of the visitor you can allways subclass this visitor, sharing the same definition.

from famix.

sbragagnolo avatar sbragagnolo commented on September 18, 2024

Also if the visitor delegates to a strategy, you can always reuse the same strategy, and that's it .

from famix.

badetitou avatar badetitou commented on September 18, 2024

I believe we need to keep pre-cooked entity.
Maybe they are not all defined because they mostlty come from legacy famix, but still.

However, I believe we can split the trait in different packages.
Famix-Anchor-Traits (TFile)
Famix-OO-Traits (TClass)
Famix-General-Traits (TNamed)

from famix.

badetitou avatar badetitou commented on September 18, 2024

Note that this is something we are already doing with FileBasedMetamodelGenerator

from famix.

badetitou avatar badetitou commented on September 18, 2024

Please consider this issue #115

from famix.

NicolasAnquetil avatar NicolasAnquetil commented on September 18, 2024

note: linked to #113

from famix.

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.