Ler e entender um pouco desse artigo. https://wiki.c2.com/?FeynmanAlgorithm
- Reconhecer como você pensa
- Descrever métodos que você usa para pensar
- Entender métodos diferentes de pensar
- Fazer perguntas sobre tudo(incluindo sobre perguntas)
Ler e entender um pouco desse artigo. https://wiki.c2.com/?FeynmanAlgorithm
| /** | |
| * Este arquivo contém o histórico de TODOS comandos que executei durante o treinamento. | |
| * Pode conter alguns erros e falhas, mas fica aqui caso eu tenha esquecido de deixar algum exemplo | |
| * mais claro nos demais arquivos. | |
| */ | |
| select '{"a":1, "b":2}'::jsonb @> '{"b":2}'::jsonb; | |
| \e | |
| select '{"a":1, "b":2}'::jsonb; | |
| select '{"a":1, "b":2, "b": 3}'::json; | |
| select '{"a":1, "b":2, "b": 3}'::json -> 'b'; |
Aviso: Muitas vezes detalhes de várias operações podem variar de banco para banco. Em questões onde fiquei em dúvida, este documento segue o funcionamento do PostgreSQL, pois é o banco que conheço melhor.
Antes de começar a escrever SQL, você precisa entender o modelo de como um banco de dados relacional funciona. Não precisa se aprofundar muito, mas você precisa entender como que dados e relacionamentos entre eles são representados. (Nota importante: Relacionamento e relação não são a
| import { load } from '@workspace/shared'; | |
| import Foo from '@workspace/shared'; | |
| import * as Bar from '@workspace/shared'; | |
| load(); | |
| Foo.doSomething(); | |
| Bar.default.doSomething(); | |
| function test() { | |
| const load = {}; |
| interface ProbabilityProps<T> { | |
| probability: number; | |
| value: T; | |
| } | |
| // Input Example: | |
| /* calculateProbability([ | |
| {value: 'Cat', probability: 29}, |
| import { DevTool } from '@hookform/devtools'; | |
| import { yupResolver } from '@hookform/resolvers/yup'; | |
| import { Button, makeStyles, TextField } from '@material-ui/core'; | |
| import { Controller, SubmitHandler, useForm } from 'react-hook-form'; | |
| import * as yup from 'yup'; | |
| const useStyles = makeStyles(theme => ({ | |
| root: { | |
| display: 'flex', | |
| flexDirection: 'column', |
You first need to undestand the concept of frontend tests.
You should not test the implementation but the behavior
You test like the end user
For instance, imagine a login screen with email and password inputs and a submit button
The test should input the email and the password, then click in the submit button.