eridius
-
@ I'm going to work for the same startup that @ is working for.
about 20 hours ago
from Tweetie
in reply to Skroob
-
Just walked out the door at Zynga for the last time. New job starts Monday!
about 23 hours ago
from Tweetie
-
@ Yes, that's pretty verbose and it required pulling the declaration of `in` to outside the try block.
6:48 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ Also if you're covering multiple calls with one @ block, you don't know how far you got in @ so what do you clean up?
6:42 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ But you can't use @ to clean up objects in the scope inside the @, among other issues.
6:42 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ That's only appropriate if you don't have to do cleanup in the local scope.
6:35 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ Checking returns on every call is less verbose than @/@ on every call. And creation can be macro'd away.
6:30 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ But in general I view the differences as exceptions are normally fatal, whereas errors should be handled.
6:22 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ NSError forces you to acknowledge its existence. Exceptions are easy to ignore. And programmers are lazy.
6:20 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ Things which should be handled locally are generally better suited to be written as NSErrors.
6:16 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ I believe you should write your code such that you never have to handle exceptions except when calling untrusted code.
6:16 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ Every single time you call -objectAtIndex:, do you wrap it in @/@?
6:05 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ My code needs to be able to handle errors, but it shouldn't be expected to handle exceptions. The programmer should.
6:00 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ I view exceptions as indications of bad code (generally from violating the function contract), but errors are handleable.
6:00 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ Probably because it litters their code with exception declarations that, in practice, are useless because they won't hit them.
5:59 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ Yeah, I actually like that I don't have to handle exceptions - in most cases I have no idea how to respond to them, so I'd rather die
5:57 PM Nov 12th
from Tweetie
in reply to pilky
-
@ That's not an IDE thing, that's a language thing, and it's something I've heard Java programmers complain about.
5:57 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ NSException should be used for exceptional conditions. NSError is designed for non-exceptional error states. Different uses.
5:57 PM Nov 12th
from Tweetie
in reply to mdhughes
-
@ I also think littering my code with @/@ is far more verbose and ugly than handling NSError values.
5:56 PM Nov 12th
from Tweetie
in reply to statefullabs
-
@ The problem with exceptions is you aren't forced to handle them, so most people simply don't. This is a very bad practice.
5:53 PM Nov 12th
from Tweetie
in reply to mdhughes
|
- Name Kevin Ballard
- Location San Francisco, CA
- Web http://kevin.sb.org
- Bio iPhone Game Programmer
|