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
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.…
Quelle & Fakten · 1 Min. Lesezeit
Quelle: The Daily WTF (thedailywtf.com)
Rubrik: Sichere Programmierung
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
💬 Dyskusja społeczności i komentarze
Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.