Git Product home page Git Product logo

Comments (4)

dominikbraun avatar dominikbraun commented on May 28, 2024 1

Even though the fields still are accessible from a technical perspective, making the fields private and creating getters and setters for them indicates that they're not intended to be used like the other fields, so this serves as a kind of documentation. Also, we mark those fields as subjects to change and un-stable for usage in templates, so the implementation and the value of these fields are completely up to verless. They're not even documented in the template reference. One of the advantages is that the internal implementation and usage can change at any time, and breaking backwards compatibility won't require a new major release.

This is because verless stores the related pages parsed from the Markdown in RelatedFQNs for example, but those are only the URIs for the pages and don't provide any value for a template. verless creates Pages from these URIs and puts them in Related, which should be used in templates instead.

from verless.

aligator avatar aligator commented on May 28, 2024

which fields exactly?

from verless.

dominikbraun avatar dominikbraun commented on May 28, 2024

RelatedFQNs and Hide.

from verless.

aligator avatar aligator commented on May 28, 2024

But if I add public getters and setters, the fields can be accessed the same as before. I don't understand the purpose of making it private if we then provide the same public access using public getters and setters... Am I missing something?

from verless.

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.