Jacek Marchwicki - Blog

Posts in 2021
  • How to introduce yourself to a new team

    Monday, March 15, 2021 in People

    Featured Image for How to introduce yourself to a new team
    Photo by [krakenimages](https://unsplash.com/@krakenimages?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/Y5bvRlcCx8k?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

    Why? It is important to note that people who you meet during the hiring process make only a fraction of employees you’re going to work with. This is why the first impression you make after joining the team is almost as crucial as the recruitment …

    Read more

Posts in 2018
  • No sleeping during testing RxJava app!

    Monday, November 26, 2018 in Android

    Featured Image for No sleeping during testing RxJava app!
    Image from [unsplash](https://unsplash.com/)

    During development of Android tests you’ve written something like this: @Test fun afterStartActivity_verifyIfDataIsDisplayedFromTheServer() { activityRule.launchActivity() Thread.sleep(5000L) // 5 seconds onView(withId(R.id.main_activity_text)) …

    Read more

  • Solve your problems with time during Android Integration test

    Tuesday, November 06, 2018 in Android

    Featured Image for Solve your problems with time during Android Integration test
    Image from [unsplash](https://unsplash.com/photos/iiRQxPCDQ_Y)

    TL;DR; You can simply fake/adjust current time and locales via TimeTravelRule, LocaleTestRule rules. For a usage look here: MainActivityTest. Example Let’s implement very simple UI that displays the current time as a text view. In …

    Read more

  • My Story@Appunite

    Monday, June 11, 2018 in People

    Featured Image for My Story@Appunite
    Image from [European Southern Observatory](https://www.eso.org/public/images/eso0932a/)

    Our client was so content with our iOS development that he asked Karol (CEO and one of AppUnite’s co-founders) to develop the same app for Android. Karol refused because AppUnite hadn’t had experience developing Android apps. Actually, 2 years before …

    Read more

  • Using schedulers while testing your code

    Tuesday, February 27, 2018 in Android

    Featured Image for Using schedulers while testing your code
    Image from [unsplash](https://unsplash.com/)

    Let’s start with an example We would like to implement UI that sends a post to a server. Our UI needs a text field for typing a message and a button for sending it to the server. Of course, the UI displays error/success messages (via toast). We …

    Read more

  • Errors... oh... those errors - coding

    Tuesday, February 27, 2018 in Android

    Featured Image for Errors... oh... those errors - coding
    Image from [Unsplash](https://unsplash.com)

    If you haven’t read Errors… oh… those errors, please read it first Main objectives: Almost 0 code to use, Customizable, Extendable. TL;DR: The full exemplary code is available here. Idea The idea of error messages is quite simple. …

    Read more

  • How to find StackOverflowError's

    Wednesday, February 07, 2018 in Android

    Featured Image for How to find StackOverflowError's
    Image from [unsplash](https://unsplash.com/)

    Description. Usually, StackOverflowError appears unexpectedly and sometimes it’s hard to trace it just with a stack trace. On Android, different devices have different stack sizes depending on the API level or even manufacturer. So the right …

    Read more

  • Errors... oh... those errors

    Monday, February 05, 2018 in Engineering

    Featured Image for Errors... oh... those errors
    Image from [unsplash](https://unsplash.com/)

    Product owner focuses on happy path, ignoring issues like missing Internet connection. UI/UX designers focus on product owner satisfaction UI/UX designers don’t have good technical knowledge. Developers have thousands of tasks to fulfill, and …

    Read more

  • A nice reader/writer pattern

    Monday, January 15, 2018 in Android

    Featured Image for A nice reader/writer pattern
    Photo by [Patrick Lindenberg](https://unsplash.com/@heapdump) on [Unsplash](https://unsplash.com/photos/1iVKwElWrPA)

    TL;DR; An example of good practice: NewDatabaseTest NewDatabase Compared to an example of bad practice:: OldDatabaseTest OldDatabase Example Let’s start with a database which looks like this: class OldDatabase { val readWriteLock = …

    Read more

  • Kotlin and RxJava with extension functions

    Sunday, January 07, 2018 in Android

    Featured Image for Kotlin and RxJava with extension functions
    Image from [unsplash](https://unsplash.com/photos/L94dWXNKwrY)

    Warning: Lots of codes. Since it’s relatively a technical article and I am an Android dev (probably as you are), there will be a lot of code examples. TL;DR; The full code is available here Used libraries TIP: In the example, I use RxJava 1.x …

    Read more