Zmienna (Variable)
Nazwane miejsce w pamięci przechowujące zmienną wartość.
Variants: 1. DDoS Reflection. 2. Blind Hijacking. 3. Trust-relationship exploitation. Defense: BCP 38, Cryptographic authentication (IPSec).
graph LR
Center["Zmienna (Variable)"]:::main
Rel_data_type["data-type"]:::related -.-> Center
click Rel_data_type "/terms/data-type"
Rel_threat_intelligence["threat-intelligence"]:::related -.-> Center
click Rel_threat_intelligence "/terms/threat-intelligence"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Wyjaśnij jak 5-latkowi
Zmienna jest jak pudełko z etykietą, w którym przechowujesz rzeczy. Możesz włożyć tam liczbę dzisiaj (jak 5), a jutro inną (jak 10). Pudełko pozostaje to samo, ale zawartość się zmienia!
🤓 Expert Deep Dive
Zmienne są mapowane na rejestry, stos lub stertę. Forma SSA zmienia nazwy zmiennych dla optymalizacji. Przesłanianie (Shadowing) tworzy nowe zmienne o tej samej nazwie. Hoisting przenosi deklaracje (JS). Wnioskowanie typów (Type inference) dedukuje typy.