Open in app
Home
Notifications
Lists
Stories

Write
Kyriakos Georgiopoulos
Kyriakos Georgiopoulos

Home

Jan 5, 2021

The takeIf fallacy

Response is a sealed class. A response can be either Success or Error and nothing else. A Success encapsulatesData. An Error encapsulates Exception. The function getAnswer takes response as a parameter and if this response is Success returns the data-id else the exception message. Let’s test it.

Android

1 min read

The takeIf fallacy
The takeIf fallacy

The takeIf fallacy

Photo by Deva Darshan on Unsplash

Response is a sealed class. A response can be either Success or Error and nothing else. A Success encapsulatesData. An Error encapsulates Exception.

The function getAnswer takes response as a parameter and if this response is Success returns the data-id else the exception message.

Let’s test it.

--

--


Jan 1, 2021

No more USB cables

10 steps to debug your Android app over WiFi 1. Download the SDK Platform Tools for Windows, Mac, or Linux. 2. Extract the ZIP file somewhere easily accessible. 3. Connect your Android device to the computer with a USB cable for the initial setup. 4. Connect your device to the same WiFi network with the Android Debug Bridge (adb)…

Android App Development

2 min read

No more USB cables
No more USB cables
Kyriakos Georgiopoulos

Kyriakos Georgiopoulos

Android Software Engineer @vodafone.gr, fitness, bodybuilding and powerlifting enthusiast https://www.linkedin.com/in/kyriakos-georgiopoulos/

Following
  • Enrique López-Mañas

    Enrique López-Mañas

  • Elye

    Elye

  • Saurabh Pant

    Saurabh Pant

  • Wajahat Karim

    Wajahat Karim

  • Matt Carroll

    Matt Carroll

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable