- Python est codé en C
- Node.js est codé en C++
- Python est mono coeur car créée avant l'apparition des multi coeur
- Node.js est mono thread
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
// ==UserScript== | |
// @name Vérifier la bonne configuration d'un projet JavaScript | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-06-09 | |
// @description Vérifier la bonne configuration d'un projet JavaScript | |
// @match https://github.com/inclusion-numerique/* | |
// @match https://github.com/anct-cnum/* | |
// @grant GM_xmlhttpRequest | |
// @connect raw.githubusercontent.com | |
// ==/UserScript== |
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
Show hidden characters
// TS v5.2 | |
// Quelques bases https://github.com/tsconfig/bases#centralized-recommendations-for-tsconfig-bases | |
// tsconfig.json | |
{ | |
"compilerOptions": { | |
// Interop Constraints | |
// ??? | |
"esModuleInterop": true, | |
// ??? |
- Installation
- Documentation
- Projet open source
- what-is-rust-and-why-is-it-so-popular
cargo
équivaut àyarn
cargo new [DIRECTORY] --bin
Cargo.toml
équivaut àpackage.json
- pour compiler
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
// Prettier est inutile sur un projet où il y a eslint | |
{ | |
"printWidth": 120, // max-len | |
"tabWidth": 2, // indent | |
"useTabs": false, // no-tabs | |
"semi": false, // semi | |
"singleQuote": true, // quotes | |
"quoteProps": "as-needed", // quote-props | |
"jsxSingleQuote": false, // jsx-quotes | |
"trailingComma": "es5", // comma-dangle |
- code splitting par défaut par page
- s'il y a un Link dans une page, en production uniquement, il prefetche la page du lien en question quand on passe la souris dessus
- static generation : généré au build time (sauf en dev) et ne change jamais
- peut être cachée par un CDN car c'est une page HTML (code source en HTML)
- par défaut, une page est statique
- https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
- https://pgtune.leopard.in.ua/
- A priori, on ne peut pas avoir les logs en stdout...
SHOW config_file
pour voir où est le fichier de configdocker exec -it pc-postgres cat /var/lib/postgresql/data/postgresql.conf
docker exec -it pc-postgres cat /var/lib/postgresql/data/log/postgresql-2020-03-16_144749.log
docker exec -it pc-postgres tail -f /var/lib/postgresql/data/log/postgresql-2020-03-17_103605.log
SELECT * FROM pg_matviews WHERE matviewname = 'discovery_view'
;
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 { TennisGame } from './TennisGame'; | |
export class TennisGame1 implements TennisGame { | |
private scoreForPlayer1: number = 0; | |
private scoreForPlayer2: number = 0; | |
private player1Name: string; | |
private player2Name: string; | |
private score: string = ''; | |
private normalPoints: string[] = [ |
Clean Architecture: A Craftsman's Guide to Software Structure and Design by Robert C. Martin, 2017
- PART I Introduction
- Chapter 1 What Is Design and Architecture?
- The Goal?
- Case Study
- Conclusion
- Chapter 2 A Tale of Two Values
- Behavior
- Chapter 1 What Is Design and Architecture?
- Architecture
NewerOlder