magefree / magefree/mage

Code Style / Refactoring - Unwrapping highly nested functions

Open
#8,689 1 comment 0 reactions 0 assignees View on GitHub
refactoring
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

I'm looking through the implemented classes and trying to look for any issues or places to make them easier to read, learn from, and maintain.

Some cards seem to feature very heavily nested if statements, while others seem to return as soon as possible to keep the code flat.

Is one preferred by by the project over the other?

I personally find the flat style easier to read and reason about.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.