|
checked exceptions would be great if the default behaviour was to just silently annotate your method with the appropriate exceptions instead of bitching and moaning because you had the gall to try to read a keypress without handling the possibility that the user's keyboard suddenly exploded or w/e
|
# ? Mar 20, 2013 22:14 |
|
|
# ? May 20, 2024 07:29 |
|
Police Academy III posted:checked exceptions would be great if the default behaviour was to just silently annotate your method with the appropriate exceptions instead of bitching and moaning because you had the gall to try to read a keypress without handling the possibility that the user's keyboard suddenly exploded or w/e that's no good cause you need to decide if you want to handle them or not. tef posted:java put them in for a lack of foresight and c# took them out because of hindsight wrong. java did it right the first time
|
# ? Mar 20, 2013 22:15 |
|
c# guy: checked exceptions are a nice idea that doesn't work. we'll add them to c# when we find a way that doesn't lead to fragile code java guy: this new feature seems like a good idea let's mash it in anyway
|
# ? Mar 20, 2013 22:15 |
|
checked exceptions work fine.
|
# ? Mar 20, 2013 22:15 |
|
Police Academy III posted:checked exceptions would be great if the default behaviour was to just silently annotate your method with the appropriate exceptions instead of bitching and moaning because you had the gall to try to read a keypress without handling the possibility that the user's keyboard suddenly exploded or w/e how are you supposed to make work for java programmers unless you make them deal with compiler bureaucracy?
|
# ? Mar 20, 2013 22:16 |
|
only a planger would think understanding and handling error states is bureaucracy
|
# ? Mar 20, 2013 22:16 |
|
the solution is a better type system hth
|
# ? Mar 20, 2013 22:17 |
|
"leave the exception to runtime, the user will handle it" - unchecked exceptions
|
# ? Mar 20, 2013 22:17 |
|
Shaggar posted:that's no good cause you need to decide if you want to handle them or not. yeah, im deciding not to and i don't want the autistic compiler to demand i explicitly tell it every time i don't want to handle KeyBoardIsActuallyAGoatException
|
# ? Mar 20, 2013 22:17 |
|
Shaggar posted:only a planger would think understanding and handling error states is bureaucracy Java code:
|
# ? Mar 20, 2013 22:18 |
|
Malcolm XML posted:the solution is a better type system hth our goal is to get the type system down to the size where we can drown it in the bathtub
|
# ? Mar 20, 2013 22:18 |
|
Jonny 290 posted:if you run out of heap just restart quake.exe with --heapsize=32000 and you're good quake brazenly defied wherever that standard came from by using single dashes for long option names.
|
# ? Mar 20, 2013 22:18 |
|
auto-throwing exceptions isnt any different from unchecked exceptions.
|
# ? Mar 20, 2013 22:18 |
|
Cocoa Crispies posted:
if ur the only one who will ever use that method then ok yeah maybe sure. but if that's the case you can probably come up with a better design. if you aren't the only person using it then yes they should be made aware that it can be thrown.
|
# ? Mar 20, 2013 22:20 |
|
"I like functional programming because functions are black boxes!! if you want to figure out what exceptions my function will throw, read the function!!"
|
# ? Mar 20, 2013 22:20 |
|
I just do public static void main(String[] args) throws IOException (then again the only thing I use Java for is algorithm contests)
|
# ? Mar 20, 2013 22:23 |
|
Shaggar posted:"leave the exception to runtime, the user will handle it" - unchecked exceptions meanwhile: in java land - pokemon exception handling imagine I have a picture of joe armstrong crying
|
# ? Mar 20, 2013 22:23 |
|
tef posted:pokemon exception handling
|
# ? Mar 20, 2013 22:24 |
|
reminder that java was literally invented by a pedophile: http://en.wikipedia.org/wiki/Patrick_Naughton
|
# ? Mar 20, 2013 22:24 |
|
Shaggar posted:I went to jboss world once and it was such a massive waste of time, much like jboss. you know who else uses jboss (just postin' to say: lol blackberry)
|
# ? Mar 20, 2013 22:25 |
|
Gazpacho posted:idgi gotta catch em all
|
# ? Mar 20, 2013 22:26 |
|
tef posted:meanwhile: in java land - pokemon exception handling yeah java is written by people who need software to work
|
# ? Mar 20, 2013 22:26 |
|
Shaggar posted:yeah java is written by people who need software to work huh, turns out my last post is actually relevant to this conversation
|
# ? Mar 20, 2013 22:27 |
|
Shaggar posted:I am perfectly happy to stand on a math major's back but I don't want to hear his options about it. the word you were looking for is 'opinions', and you wanted the singluar rather than the plural
|
# ? Mar 20, 2013 22:27 |
|
ugh. ie10 has auto correct and its constantly loving me up cause I make lots of typos
|
# ? Mar 20, 2013 22:28 |
|
try { thread.close(); } except (Shaggared again) { // do nothing }
|
# ? Mar 20, 2013 22:29 |
|
but no it would be opinions, not the singular. math majors have many opinions and most of them are wrong.
|
# ? Mar 20, 2013 22:29 |
|
Shaggar posted:ugh. ie10 has auto correct and its constantly loving me up cause I make lots of typos lol autocomplete loving up your text
|
# ? Mar 20, 2013 22:30 |
|
I make a lot of really bad typos.
|
# ? Mar 20, 2013 22:32 |
|
Shaggar posted:ugh. ie10 has auto correct and its constantly loving me up cause I make lots of typos think of it as intellisense for your browser
|
# ? Mar 20, 2013 22:32 |
|
intellisense doesn't autocorrect. also eclipse's intellisense is better than vs's.
|
# ? Mar 20, 2013 22:33 |
|
that and most lines of java achieve nothing anyway, so autocompleting can't really do anything bad
|
# ? Mar 20, 2013 22:37 |
|
boost's exception library is the best, c++ exceptions own, etc
|
# ? Mar 20, 2013 22:42 |
|
tef posted:that and most lines of java achieve nothing anyway, so autocompleting can't really do anything bad like my posting
|
# ? Mar 20, 2013 22:42 |
|
comedy post extolling the virtues of the common lisp conditions & restarts
|
# ? Mar 20, 2013 22:44 |
|
Vanadium posted:boost's exception library is the best, c++ exceptions own, etc -fno-exceptions yeah I live dangerously
|
# ? Mar 20, 2013 22:52 |
|
I need the authoritative book/textbook on database theory. Recommendations?
|
# ? Mar 20, 2013 22:57 |
|
the manga guide to databases
|
# ? Mar 20, 2013 22:59 |
|
i'm looking for a schema, it can't be first normal formu
|
# ? Mar 20, 2013 23:03 |
|
|
# ? May 20, 2024 07:29 |
|
Unless posted:I need the authoritative book/textbook on database theory. Recommendations? http://en.wikipedia.org/wiki/The_Third_Manifesto these guys will tell you that null should not be used, and when you read their arguments, you end up agreeing with them but this is just for making you think about databases, as opposed to getting actual poo poo done with real-world products
|
# ? Mar 20, 2013 23:03 |