-
Complexidade ciclomática
- Marque BLOQUEANTE se > 9.
- Exigir quebra em funções menores OU early return para reduzir ramos.
-
Nomes de variáveis
- Devem expressar intenção. ❌ Abreviações opacas (ex.:
tmp,res,arr1).
Complexidade ciclomática
Nomes de variáveis
tmp, res, arr1).infrastructure → adapters → application → domain.cmd/ entrypoints.| from pymongo import MongoClient | |
| from datetime import datetime | |
| import uuid | |
| from urllib.parse import quote_plus | |
| USER = "master" | |
| PASSWORD = quote_plus("password") # encodes the password | |
| HOST = "localhost" | |
| AUTH_DB = "admin" | |
| DATABASE = "database_name" |
| from pymongo import MongoClient | |
| import json | |
| from datetime import datetime | |
| from urllib.parse import quote_plus | |
| USER = "master" | |
| PASSWORD = quote_plus("password") # encodes the password | |
| PASSWORD_PROD = quote_plus("password_prod") | |
| HOST = "localhost" | |
| HOST_PROD = "cluster.com" |
| #sudo vim /etc/X11/xorg.conf.d/20-intel.conf | |
| #FileContent | |
| Section "Device" | |
| Identifier "IntelGPU" | |
| Driver "intel" | |
| Option "AccelMethod" "sna" | |
| # Option "TearFree" "true" | |
| EndSection |
| vim ~/.XCompose | |
| include "%L" | |
| <dead_acute> <c> : "ç" U+00E7 | |
| <dead_acute> <C> : "Ç" U+00C7 | |
| #Log out afterwards so that the system complies with the instruction |