Git Product home page Git Product logo

mzio's Introduction

mzio

mzio's People

Contributors

paretje avatar di-hardt avatar david-bouyssie avatar ralfg avatar

Stargazers

Micha Birklbauer avatar Dominik Lux avatar  avatar

Watchers

 avatar  avatar Dominik Lux avatar

mzio's Issues

Function Getters and Setters, what is our consensus?

In #2 i saw the following: entry.get_header().get_header(), which uses two getters to retrieve the attributes in a class.

What is our consensus in getters and setters? From my experience, this makes projects less readable and somewhat slow to tangle through. Especially it is tedious to write getters and setters for all attributes or if we want to access attributes in classes within classes (within classes, ...), we chain those getters (as above). Basically, i am wondering what we should decide on:

  1. We write getters and setters and also propagate them to other languages (like here in python)
  2. We try to avoid them and try to make variables, which should be publicly available, public in structs/classes

Is there a "good practice" or guideline in Rust?

So what are you thoughts!?

(linking @david-bouyssie and @di-hardt , since you two are also mentioned in the PR)

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.