Coder Social home page Coder Social logo

Comments (2)

estebanlm avatar estebanlm commented on June 24, 2024

well... right now is pretty useless.
the rational for it was:
a) I do not want to trust in the subdir name.
b) I want a way make possible to coexist packages and regular dirs (then we need to "mark" them in someway... something like the .package extension in filetree)
c) I want to be able to store also package metadata (package comments, etc.). Which are for the moment just "envisioned" for Pharo, but it will take time to arrive.

But... purposes a-b are a failure because I discovered monticello implementation of package name validation is very naive and it receives a package name which is just a plain string (I guess that's the reason why you ended adding a .package extension to filetree).
Anyway I was planning a refactor of #canReadFileNamed: to fix that, but then there is backward compatibility, etc. to take into account :/

So now my idea is to implement a second mechanism on monticello that validates better, but keep the old one for older versions... a mess ;)

Other solution is just to resign that functionality and drop support for it, but in the long way I think we will need that.

from tonel.

dalehenrich avatar dalehenrich commented on June 24, 2024

... okay ... I actually have a use for including package metadata in the very short term ... basically when you "copy" a source tree out of a git repository (primary) into another repository like svn, you'd like to be able to trace the source back to the original git version, so I was thinking that I'd stash the commit SHA into the package.st file ... and for now it would write only for now ... anyway I agree that not relying on the directory name is a good thing ... although it becomes an additional point of pain/validation if a user does the copy by hand:) ... I think I mentioned before that in the first 6 months of FileTree, i think I spun through 6 different formats before finally settling on one ... I think that most of the Filetree implementations will still read them ...

You could add some info to the package.st indicating how the file was written and then a reader can use that meta data to decide how to read/interpret the rest of the data ... that way we'll have an early adopter reader for handling older formats and then the latest and greatest which will be much easier to tweak ...

from tonel.

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.