- What tech stack do you use? Are you rolling out new technologies or sunsetting older ones? Do you have any legacy system that you need to maintain?
- What is your maturity stage? Finding a direction, feature work, maintenance...
- What are the next big engineering challenges you will face?
- How are requirements delivered to the engineering teams? How are technical decisions made and communicated?
- What level of involvement do engineers have in relation to architecture and system design? How much freedom for decision making do individual developers have? What happens if an engineer identifies areas of improvement?
- What is the junior/senior balance of the team?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NetworkConnectivityShould { | |
@Rule public ImmediateSchedulersTestRule rule = new ImmediateSchedulersTestRule(); | |
@Mock private ConnectivityManager mockConnectivityManager; | |
@Mock private Context mockContext; | |
private NetworkConnectivity networkConnectivity; | |
@Before public void setUp() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EspressoDaggerMockRule extends DaggerMockRule<ApplicationComponent> { | |
public EspressoDaggerMockRule() { | |
super(ApplicationComponent.class, new ApplicationModule(getApp())); | |
set(component -> getApp().setComponent(component)); | |
} | |
private static DriveApplication getApp() { | |
return (DriveApplication) InstrumentationRegistry.getInstrumentation() | |
.getTargetContext() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConstantsObfuscator { | |
private String obfuscator(String args) { | |
Random r = new Random(System.currentTimeMillis()); | |
byte[] b = args.getBytes(); | |
int c = b.length; | |
PrintStream o = System.out; | |
o.print("(new Object() {"); | |
o.print("int t;"); | |
o.print("public String toString() {"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.android.build.gradle.AppPlugin | |
task consolidateJunitXml { | |
description 'Copies JUnit XML reports into a single directory so SonarQube can import them all' | |
doLast { | |
def dest = file("${buildDir}/allJunit") | |
delete dest | |
copy { | |
from "${buildDir}/test-results/debug" | |
into dest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View; | |
/** | |
* A {@linkplain View.OnClickListener click listener} that debounces multiple clicks posted in the | |
* same frame. A click on one button disables for a period all buttons for that frame. | |
* | |
* The default period value is 400 milliseconds, it can be modified through the constructor. | |
*/ | |
public abstract class DebouncingPeriodOnClickListener implements View.OnClickListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class with util methods about screen size and density | |
*/ | |
public class DensityUtils { | |
/** | |
* Converts the given device independent pixels (DIP) value into the corresponding pixels | |
* value for the current screen. | |
* | |
* @param context Context instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.worldline.xcountry.domain.util; | |
import java.util.regex.Matcher; | |
/** | |
* String related Utils | |
*/ | |
public class StringUtils { | |
/** the \s from regex does not include all the kind of whitespace. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Pager<I, O> { | |
private static final Observable FINISH_SEQUENCE = Observable.never(); | |
private PublishSubject<Observable<I>> pages; | |
private Observable<I> nextPage = finish(); | |
private Subscription subscription = Subscriptions.empty(); | |
private final PagingFunction<I> pagingFunction; | |
private final Func1<I, O> pageTransformer; |
NewerOlder