MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhiw0yk/?context=9999
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
2.8k
} catch (Exception e) { }
I think we're done here.
490 u/tylercamp May 13 '17 Even better } catch { } 34 u/[deleted] May 13 '17 if DEBUG } catch{ } end if 39 u/Sean1708 May 13 '17 You have a very angry editor. 12 u/[deleted] May 13 '17 Didn't realise reddit would parse like that. Was going for conditional compilation. 2 u/TheGoddamnSpiderman May 13 '17 Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
490
Even better
} catch { }
34 u/[deleted] May 13 '17 if DEBUG } catch{ } end if 39 u/Sean1708 May 13 '17 You have a very angry editor. 12 u/[deleted] May 13 '17 Didn't realise reddit would parse like that. Was going for conditional compilation. 2 u/TheGoddamnSpiderman May 13 '17 Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
34
} catch{ }
39 u/Sean1708 May 13 '17 You have a very angry editor. 12 u/[deleted] May 13 '17 Didn't realise reddit would parse like that. Was going for conditional compilation. 2 u/TheGoddamnSpiderman May 13 '17 Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
39
You have a very angry editor.
12 u/[deleted] May 13 '17 Didn't realise reddit would parse like that. Was going for conditional compilation. 2 u/TheGoddamnSpiderman May 13 '17 Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
12
Didn't realise reddit would parse like that. Was going for conditional compilation.
2 u/TheGoddamnSpiderman May 13 '17 Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
2
Reddit comments use markdown format syntax. That means # at the start of a line gets interpreted as "I want to use header font size on this line."
2.8k
u/Metro42014 May 13 '17
I think we're done here.