onClick is perfectly legal, as is ONCLICK, ONclIck, or whatever combination (unless it's a xhtml document, that it's not.)
I'm more worried at the lack of a doctype, and use of ancient stuff such as font tags.
onClick is perfectly legal, as is ONCLICK, ONclIck, or whatever combination (unless it's a xhtml document, that it's not.)
I'm more worried at the lack of a doctype, and use of ancient stuff such as font tags.
TRWTF is using Java to catch Whitespace's exceptions.
@Lexarius said:
My problem is that testing to see if the array is sorted still takes O(n). Any help? Plz send teh codez.
void sortArray( arr[] ArrayToSort ) { }
There you have it, the full function. It works flawlessly if you call it in the correct universe (the one where the algorithm is already sorted). If you run it in the wrong universe... well, I can't help you with that, can I?
@Carnildo said:
There are sorting algorithms with O(n log n) worst-case performance, where quicksort is O(n2) worst-case. Further, radix sort is O(n)
The best performance is O(1). Just use the multiple-universes theory, and you can assume the set is already sorted.
But efficient algorithms are boring... bad algorithms are interesting! What about evilsort, with O( (n^2)! ) ?
@bstorer said:
@Lingerance said:Fixed that to something 1000% more enterprisey.@DeLos said:Fixed that to something 150% more awesome.I nominate CONSTANTS::NUMERIC::THOUSAND_SEPARATOR for thousands seperator and CONSTANTS::NUMERIC::DECIMAL_SEPARATOR for decimal seperator. Yup, thats the American in me being ethnocentric.Fixed that to something more sane and legible.
@DaveK said:
See for yourself if you don't believe me: http://*.computing.net/
I get a "Page Load Error". This is Firefox 3.0b5, which browser do you use?
@AbbydonKrafts said:
I find that's the way with a lot of open source software. They take the phrase "optimize later" a little too seriously.
True, but sometimes, "later" finally arrives and the improvement is immense. Firefox 3's beta, for example, is much, much faster in javascript tasks.
Ack, I thought I was already a member... Count me in.
@AbbydonKrafts said:
I'm still waiting for a replicator. I want one more than a teleporter.
Same here. It would greatly simplify backups. Sadly, they will come with a huge tax to appease the RIAA.
@tster said:
I'm not arguing that it is impossible to do, I've already stated that I was simply arguing that to play devils advocate. I'm arguing, as has been my point the whole time, that the wording of the question is poor. The problem with the argument "software developers should be able to figure out a way to work around unclear specifications" isn't valid because these specifications are imposing arbitrary rules. When developing real software for users, such arbitrary rules do not apply, therefore there is no correlation.
Tster, would you post the question "as it should have been done", please? So we can start nitpicking you :)