question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rewrite & Refactor using TDD

See original GitHub issue

Over the next few weeks/months I’m going to be doing a rewrite of the library using TDD so there are some actual worthwhile tests. I’m also going to refactor a lot of the code to make it easier to add new features, such as having a component version (#86) and dragging between multiple grids.

While I will try to keep the current functionality the same, there will be some changes, such as moving to a new cascade algorithm similar to how the limit_to_screen works (#87). I will try to keep this issue updated with my progress, any design decisions, and new functionality.

At the end of this rework, there will be a major change update due to the scope of the work involved and the likelihood of there being a breaking change.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
BTMortoncommented, Mar 5, 2017

I will try to, yeah. I’m not the best when it comes to writing comments so don’t expect miracles 😛, but I’ll try to have something written up, and make it more contributor friendly in general.

0reactions
haakotsmcommented, May 26, 2017

Will you possibly be looking at boxes resizing when you drop another box on top of it? #87, will this look to fill the entire grid, or will it stick to the box sizes you’ve set?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refactoring In TDD: When Does It Happen? - MethodPoet
The refactoring phase – is the final step in the TDD cycle. It's when you change or improve existing code without changing its...
Read more >
When should we Refactor in TDD? - Medium
The best time to refactor in the TDD process​​ Remove a code smell within 3 baby-step iterations from the first appearance even the...
Read more >
Red, Green, Refactor | Codecademy
Red, Green, Refactor ... Test-driven development (TDD) is an approach to software development where you write tests first, then use those tests to...
Read more >
Refactoring in Test Driven Development - planetgeek.ch
The simplest refactoring regarding TDD is a refactoring that is local inside a class. The unit tests for this class keep unchanged and...
Read more >
TDD & Refactoring in Legacy Systems - LinkedIn
Add tests only for code that you are changing. Use Approval Tests or Acceptance Tests to defend the code that you want to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found