Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

CodeSOD: ReferenceError: HELL is not defined

David came across some Java code. This particular block needed to, based on an integer masquerading as an enumerated type, return an amount of time to sleep.…

Beitrag
0
Seite
0
↗ Quelle (The Daily WTF)
Quelle & Fakten · 1 Min. Lesezeit
Quelle: The Daily WTF (thedailywtf.com)
Rubrik: Sichere Programmierung

David came across some Java code. This particular block needed to, based on an integer masquerading as an enumerated type, return an amount of time to sleep. It has strong opinions about what should happen when you send it an invalid value: private static int getTime(int mode) { return switch (mode) { case 0 -> 30 * SECOND; case 1 -> 15 *... Weiterlesen: CodeSOD: ReferenceError: HELL is not defined

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Dyskusja społeczności i komentarze

🌐 Dołącz do głównego czatu

Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.

Community Rating & Social Proof
⭐ Ocena czytelników
–
Ø / 5.0
Brak recenzji czytelników
Czy ten artykuł był pomocny?
0
Dodaj swoją ocenę
Ocena szczegółowa (opcjonalnie)
Treść i jakość
Źródło i wiarygodność
Aktualność
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem

Intelligence Digest - bezpłatnie

Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili

Powiązany klaster opowieści i źródła (wektor AI)

1 Cluster
2 źródeł
Security Assessment: Sizzle (Hack The Box) — Penetration Testing Report
DEV Community 34 minuty temu
1 inne źródło
Rysunek do aktualizacji
Widgets & Topics
Loading widgets…
Nächster Beitrag