Re: Unknown error 1309 in didFailToConnectToPeripheral
Re: Unknown error 1309 in didFailToConnectToPeripheral
- Subject: Re: Unknown error 1309 in didFailToConnectToPeripheral
- From: András Kövi <email@hidden>
- Date: Wed, 19 Feb 2014 22:36:01 +0100
NSError is a precisely forged hammer that can hold any info one can imagine. Still, mostly it is used as a sharp axe that cuts cleanly leaving no traces of reasons. One has to dig and reasearch instead of having some meaningful explanation of an event. The situation is just a little better than it was with errno and int return values.
Memory should not be a concern, speed should not be a concern. Spending more time to generate a reasonable error instead of a zero cost, zero info string. Make the error self explaining, add permalinks to documentation if possible, give as much context as possible.
Maybe one day framework creators will come to understand that programmers are still humans who need explanation, not just an error code. Especially not a code that has no documentation.
Rant over.
A
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden