Tab layouts indicate that there are multiple pages to look at, and users can swipe them or click them to move from page to page.
Their implementation makes them difficult to test drive, so in this post we will go over how to do it.
We implement the tabs in Android by placing a TabLayout element in our activity’s view, then getting ahold of it in the Activity class code and adding tabs to it. There are limited ways to get an instance of TabLayout.Tab, and because it is a final class, it cannot be mocked.
Continue reading “Test-Driven Android: Tab Layouts”
For the past four months, I have worked on a project in which I needed to pair program remotely with developers in other states, other countries, and other time zones.
Remote pairing feels different from pairing with someone in person: you lose the benefits of colocation for asking each other questions and reading each others’ moods and body language. That said, I have learned some practices that work better than others for pairing remotely, and I’d like to share them so that you can make your remote pairing experiences go as smoothly as possible.
Continue reading “Remote Pair Programming: Best Practices”