Skip to content

Instantly share code, notes, and snippets.

View thebestpol's full-sized avatar

Pol Gómez Guerrero thebestpol

  • Barcelona
View GitHub Profile

Reverse interview

Engineering

  1. 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?
  2. What is your maturity stage? Finding a direction, feature work, maintenance...
  3. What are the next big engineering challenges you will face?
  4. How are requirements delivered to the engineering teams? How are technical decisions made and communicated?
  5. 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?
  6. What is the junior/senior balance of the team?
@thebestpol
thebestpol / NetworkConnectivityShould.java
Created November 15, 2017 10:32 — forked from mgdiez/NetworkConnectivityShould.java
NetworkConnectivityShould.java
public class NetworkConnectivityShould {
@Rule public ImmediateSchedulersTestRule rule = new ImmediateSchedulersTestRule();
@Mock private ConnectivityManager mockConnectivityManager;
@Mock private Context mockContext;
private NetworkConnectivity networkConnectivity;
@Before public void setUp() {
@thebestpol
thebestpol / EspressoDaggerMockRule.java
Last active May 10, 2017 08:17
Intrumented unit testsing setup: Stand alone fragment test activity, custom test rules and much more
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()
@thebestpol
thebestpol / ConstantsObfuscator.java
Last active May 15, 2017 22:12
Security stuff, showing some of my security knowledge. NOT ALL...
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() {");
@thebestpol
thebestpol / android-sonar.gradle
Created March 21, 2017 08:27 — forked from mjdetullio/android-sonar.gradle
Configuring Android project for SonarQube
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
@thebestpol
thebestpol / DebouncingOnClickListener.java
Last active February 19, 2018 11:43
Skip multiple clicks in a defined period of time on a frame.
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 {
@thebestpol
thebestpol / HelloWorld.java
Created August 4, 2016 10:38 — forked from lolzballs/HelloWorld.java
Hello World Enterprise Edition
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();
@thebestpol
thebestpol / DensityUtils.java
Created May 10, 2016 09:46
Class with util methods about screen size and density
/**
* 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
@thebestpol
thebestpol / StringUtils.java
Last active May 3, 2016 19:18
String related Utils
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. */
@thebestpol
thebestpol / Pager.java
Created April 26, 2016 15:03 — forked from mttkay/Pager.java
A simple Rx based pager
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;