Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleRene Integration #204

Open
Nyan11 opened this issue Sep 3, 2024 · 1 comment
Open

SimpleRene Integration #204

Nyan11 opened this issue Sep 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Nyan11
Copy link
Collaborator

Nyan11 commented Sep 3, 2024

SimpleRene is a meta-description tool used to describe object in Pharo.

https://github.com/pharo-contributions/SimpleRene

The idea behind the SimpleRene integration is to describe Bloc and Toplo using SimpleRene and compute the equivalent PyramidProperty.

Example

For example:

  • A BlElement has a BlBackground
  • A BlBackground is eitheir a BlTransparentBackground or a BlPaintBackground.
  • A BlPaintBackground has a Color
  • A Color has 3 Integers (red, green and blue)

With all of this informations, we can create 2 PyramidProperties for a BlElement:

  • One is a choice between the BlTransparentBackground and the BlPaintBackground.
  • One is a color selector for BlPaintBackground (3 number inputs).

This 2 properties can be used to create the Pyramid UI (one selection between 2 values and one input with 3 integers)

Pros and Cons

The pros

  • We remove one dependance from Pyramid (at least for the properties, not for the display in the middle)
  • We remove a lot of code from Pyramid
  • We make Pyramid more generic and more extensible
    • Anyone can add a meta-description to Bloc Object and this meta-description could be interpreted by Pyramid.
  • We use a meta-description tool that can be used for other things and therefor we make it more robust.
    • Serialization: replace Stash pragmas with SimpleRene descriptions.
    • Domain Object: automaticaly put domain object insides Bloc UI using Pyramid

The cons

  • We have a lot of things to change
  • We have to meta-describe all of Bloc and Toplo
  • Will SimpleRene be easy to use ?
@Nyan11
Copy link
Collaborator Author

Nyan11 commented Sep 3, 2024

There is an example here: #189
Some code is missing (the simple rene description of the font size) but it was working.

@Nyan11 Nyan11 added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant