NikolayRys / Likely

The social sharing buttons that aren’t shabby
ISC License
395 stars 61 forks source link

Major refactoring: what should be improved? #120

Closed iamakulov closed 4 years ago

iamakulov commented 7 years ago

One of my goals here is to resolve all the major code issues so that other contributors can get involved easier. Here’s what I’ve got so far:

I’m sure I’ll discover more points during the refactoring. Meanwhile, @vitkarpov, @ilyabirman, do you have any considerations about this or things that should be also improved?

vitkarpov commented 7 years ago

+1 for everything. I'd suggest unit tests and code coverage (can take this). Unit tests can be very helpful on transition to a new major version (can illuminate a lot of subtle breaking changes).

iamakulov commented 7 years ago

What parts of code are you suggesting to cover with unit tests?

vitkarpov commented 7 years ago

Obviously it should be public API (which is small, and it's good), but we have to be sure that there's no dead code: some internal parts which haven't been called during the public API test

On Sun, 22 Jan 2017 at 12:39, Ivan Akulov notifications@github.com wrote:

What parts of code are you suggesting to cover with unit tests?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilyabirman/Likely/issues/120#issuecomment-274320157, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3Nv7cD4SYzndAmn-95xX1Z-s03-oR7ks5rUyPUgaJpZM4LqDVS .

vitkarpov commented 7 years ago

Moreover, there're some independent modules with clear public API, for instance, button

iamakulov commented 7 years ago

I don’t know. I mean, unit tests will add the infrastructure complexity (as well as the UI tests also added it – look how much time we’ve been spending on them), so I don’t want to opt in for them unless they have a value. And I don’t see a real value at the moment.

If you have any examples of something that we should use unit tests for and that can’t be done or is too complex for doing with UI tests, I’m absolutely open for discussing it. Otherwise, I wouldn’t spend time on them.

vitkarpov commented 7 years ago

Yeah, I know what you're talking about. Let's not to make it more complex for now.

NikolayRys commented 4 years ago

It is now handled as part of 2.5 and 3.0 releases.