Skip to content

Reduce code duplication and increase readability with NSA - #456

Closed
Nyholm wants to merge 1 commit into
KnpLabs:masterfrom
Nyholm:nsa
Closed

Nyholm wants to merge 1 commit into
KnpLabs:masterfrom
Nyholm:nsa

Conversation

@Nyholm

@Nyholm Nyholm commented Oct 19, 2016 •

Copy link
Copy Markdown
Collaborator

As mentioned in #446

Instead of using reflection, we could increase readability with the NSA lib.

@GrahamCampbell

Copy link
Copy Markdown
Contributor

Don't think it's worth adding a dependency for the sake of like 4 lines looking slightly different.

@Nyholm

Nyholm commented Oct 20, 2016

Copy link
Copy Markdown
Collaborator Author

That is a fair point. But how many lines of code should one remove before we feel comfortable adding a dev dependency? Where is the magic limit? =)
screen shot 2016-10-20 at 10 54 52

@cursedcoder

Copy link
Copy Markdown
Contributor

I think something like 5-10% of codebase should be at least?

@Nyholm

Nyholm commented Oct 20, 2016

Copy link
Copy Markdown
Collaborator Author

We have 9105 lines of test code. I'll make the same PR again when it removes about 500 lines of code.

@Nyholm Nyholm closed this Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants