On 9/22/05, [EMAIL PROTECTED] (Olle Mulmo) wrote:
Peter's example is standard to the language. It's just not used much
by those influenced by other idioms prior to learning Java.
I guess another way of saying this is: the people on this list are
getting old. :-)
I guess insisting on correct
In message [EMAIL PROTECTED], Steve Furlong writes:
On a related note, I've worked a bit with avionics and embedded
medical software. The certification requirements for those bits of
critical code might be helpful for crypto programming.
Not quite. The name of the game is information
On 2005-09-20, Jerrold Leichter wrote:
One thing to consider is that an idiom like this solves an annoying problem.
Consider a linear search through an array:
for (i = 0; i lim; i++)
{ if (a[i] == target)
{ do something
break;
| One thing to consider is that an idiom like this solves an annoying
problem.
| Consider a linear search through an array:
|
| for (i = 0; i lim; i++)
| { if (a[i] == target)
| { do something
| break;
| }
| }
|
On 9/20/05, Rich Salz [EMAIL PROTECTED] wrote:
This is wandering way far afield of the list charter. In an effort
to maintain some relevance, I'll point out that code reviews, and
crypto programming, are rarely done, and arguably shouldn't, by
programming wizards.
If by that you mean,
It used to be that checking bounds on certain collections was less
efficient than waiting for the out of bounds exception. I think Joshua
Bloch discusses this in his book.
I've also seen this in generated code where you aren't sure of the
nature of the object you're indexing and thus don't know
On 9/19/05, [EMAIL PROTECTED] (Peter Gutmann) wrote:
Found on the Daily WTF, http://www.thedailywtf.com/forums/43223/ShowPost.aspx:
try {
int idx = 0;
while (true) {
displayProductInfo(prodnums[idx]);
idx++;
}
}
catch (IndexOutOfBoundException ex) {
In message [EMAIL PROTECTED], Peter Gutmann writes
:
Found on the Daily WTF, http://www.thedailywtf.com/forums/43223/ShowPost.aspx:
try {
int idx = 0;
while (true) {
displayProductInfo(prodnums[idx]);
idx++;
}
}
catch (IndexOutOfBoundException ex) {