- Tempos de build e testes
- Tamanho do repositório (tempo de checkout)
- Nescessidade de tooling dedicado
- Tendencia a aumentar o acoplamento entre as dependências
This file contains hidden or 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 React from 'react'; | |
import { | |
createAppContainer, | |
createStackNavigator | |
} from 'react-navigation' | |
import TestScreen, { | |
testScreenOptions | |
} from './TestScreen' | |
const stack = createStackNavigator({ |
This file contains hidden or 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
const fs = require('fs'); | |
const english = require("./english.json").text | |
const portuguese = require("./portuguese.json").text | |
const DEFAULT_KEY = "en-US" | |
const accumlator = {} | |
// Acc the english ones | |
english.reduce((all, value) => { | |
all[value.key] = { |
This file contains hidden or 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
type Routes = { | |
a: { | |
string: string | |
} | |
b: undefined | |
} | |
type NullableKeys<T, K extends keyof T> = T[K] extends null | undefined | |
? K |
This file contains hidden or 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 why.android.dont.have.those | |
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.annotation.ColorRes | |
import androidx.core.content.ContextCompat |
This file contains hidden or 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
/* All the massive/repetitive/boring activity code above */ | |
override fun onPrepareOptionsMenu(menu: Menu) { | |
super.onPrepareOptionsMenu(menu) | |
val filterMenu = menu.findItem(R.id.actionFilter) | |
/* |
This file contains hidden or 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
abstract class QuerySpec<Manager, Entity, TRepository : Repository<Manager, Entity>, Return> { | |
abstract fun fetchResult(arg: Manager): Return | |
} | |
abstract class Repository<Manager, Entity> { | |
abstract val manager: Manager | |
fun <TQuerySpec : QuerySpec<Manager, Entity, Repository<Manager, Entity>, Return>, Return> executeQuery(querySpec: TQuerySpec): Return { | |
return querySpec.fetchResult(manager) | |
} |
This file contains hidden or 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
<- $ # module settings where | |
{ map, join, concat, filter, empty, fold, all, sort-by, any } = require 'prelude-ls' | |
response = JSON.parse """ | |
{ | |
"requestRepository":true, | |
"enterprises":[ | |
{ | |
"code":"T1", |
This file contains hidden or 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
/* | |
* This function doesn't work. I get a tiny error log saying that i cannot | |
* update the email of a anonymous user and that i should call `registerIdentifiedUser` | |
* | |
* In the `RealIntercom` class, on the `registerIdentifiedUser` | |
* there's a if condition that fails in this case | |
* `if (userIdentity.canRegisterIdentifiedUser(userRegistration))` | |
* | |
* It fails cuz the `Registration` class expects the `updateState` to be called | |
* at least once, `withEmail` and `withUserId` are the ones that do that |
This file contains hidden or 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
/** | |
* Forks a nullable into a non nullable, | |
* | |
* This differs from the if else expression | |
* which is thread unsafe and doesn't guarantee | |
* the non nullability even if the value was validated as non null | |
* by the if expression (due to concurrency) | |
* NOTE: need to check this :D, probably i need to use contracts like the std to assure what | |
* i said above | |
* |