Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Turn Transform methods not handling state into a module #5

Open

Description

@pjotrp

The transform methods do not need to keep track of state. I would make this a module, so as to force a more functional style. All you are using is the type, which can be passed in with every method, or fetched from the surrounding class(name). If you need state, add a separate state class and include the module.

Split out methods that can be 'pure' from methods that really need 'state'.

Activity

  1. pjotrp commented on Jul 6, 2013

    @pjotrp
    Author

    OK, you are also tracking properties. Let me rephrase what I wrote: put all methods that are not handling state into a separate module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions