- Memoize every thing by hand is hard
- you can forget to memoize something
- you can wrongly memoize something that you shouldn't
-How the compiler does this optimization
- new euristics
- skiping unnecessary renders
- skipping unnecessary calculations
- Coliseu: Comece cedo para evitar filas. Reserve ingressos com antecedência.
- Fórum Romano e Monte Palatino: Explore as ruínas históricas e obtenha uma vista panorâmica do Palatino.
- Pantheon: Visite este antigo templo romano.
Casos de Uso Limitados
-
Enquanto as Server Actions podem simplificar certas tarefas, elas podem não ser adequadas para todos os casos de uso, especialmente quando se trata de interações complexas no lado do cliente e gerenciamento de estado.
-
Arquitetura Pode Ser Mais Complexa
- Agora que estamos dependendo do servidor para realizar parte do trabalho, precisamos garantir uma maneira consistente de lidar com erros, estados de carregamento e ações.
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
require('dotenv').config() | |
const express = require('express') | |
const app = express() | |
const jwt = require('jsonwebtoken') | |
app.use(express.json()) | |
// Aqui salvando os tokens nesse array apenas para fins didaticos | |
// no mundo real vc deve guardar isso em algum banco |
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
auto-switch-node-version() { | |
NVMRC_PATH=$(nvm_find_nvmrc) | |
CURRENT_NODE_VERSION=$(nvm version) | |
if [[ ! -z "$NVMRC_PATH" ]]; then | |
# .nvmrc file found! | |
# Read the file | |
REQUESTED_NODE_VERSION=$(cat $NVMRC_PATH) |
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
// Rules | |
const isNotValidParams = (n, m) => n > m | |
const isNotInteger = n => !Number.isInteger(n) | |
const logger = number => { | |
let foo = number % 3 == 0 | |
let boo = number % 5 == 0 | |
console.log(foo ? (boo ? 'fooBoo' : 'Foo') : boo ? 'Boo' : number) | |
} |
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
.type.storage, | |
.type.storage.declaration, | |
.storage.class.modifier { | |
font-family: 'Operator Mono'; | |
} | |
.type.storage.arrow.function { | |
font-family: 'Fira Code' | |
} |
NewerOlder