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

Lint roadmap #149

Open
matuella opened this issue May 2, 2024 · 1 comment
Open

Lint roadmap #149

matuella opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@matuella
Copy link

matuella commented May 2, 2024

Hey @SandroMaglione, thanks for this great package and the great upgrade incoming with the Effect strategy that has been widely validated in the TS ecosystem.

I'd like to know if you're planning to provide (somewhere in the future) custom lints on top of this package's API? When we are adding this package (or any other fp package such as either and dartz) to projects with multiple collaborators, there will be peers that won't know about all the possibilities of this package and the implications of using each "functionality", neither why it's being used in such scenarios.

To give a little bit more context, when we get closer to the core of pure functional programming, it is not a common knowledge amongst many people when comparing to OOP. We can see that here in practice with the new Effect API, that aims to remove most of the fp "glossary" out of the way to mitigate friction for new users. This is even more impactful because we are talking about a object-oriented language, Dart.

So, a lint would make this friction even less severe for such scenarios, providing local suggestions (and link to explanations) on why we should use Either instead of try/catch or Task instead of Future, for example. Not only the fact that it makes the whole codebase consistent, preventing different standards for the same "problem". I know that people may be okay with an inconsistent codebase, where some implement using the FP approach and others the "native" one, but I digress.

I am open to help doing this if you'd like, but I wanted to hear your opinion on this matter first - thanks.

@SandroMaglione
Copy link
Owner

Hi @matuella

Yes, there was already an idea of providing custom lints for fpdart. In fact, there is already a fpdart_lint folder ready for a possible implementation.

It's now better to wait for fpdart v2 before adding support packages to fpdart. Once the new fpdart core is released as stable we can start working on tooling.

@SandroMaglione SandroMaglione added the enhancement New feature or request label May 3, 2024
@SandroMaglione SandroMaglione pinned this issue May 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

2 participants