qwph
qwph on Hacker News
Posted by
qwph on Tuesday November 18, 2008 @12:53AM
from the charleslockhart.com dept.
Why stop at SourceForge - they should probably sue Dell, Microsoft and Tim Berners-Lee as well, as I heard a lot of people use PCs, Windows and the internet for activities which potentially infringe record companies' copyright...
Posted by
qwph on Friday November 14, 2008 @09:04PM
from the plan9.bell-labs.com dept.
Yeah, that's what the interpreter says... :(
Python and Ruby are pretty equivalent in terms of what you can do with them. Given a choice between the two, I'd probably choose Ruby, as I personally find it to be less cognitively dissonant than Python.
I'm really not fond of having to haul the self parameter around all over the place in Python, and there seems to be some confusion between what's a function and what's a method. (Some of this is being addressed in Python 3 I think.)
The whitespace thing, I can just about cope with, but I always miss the colons off the end of lines. Oh, and at least on Windows, the supplied documentation is organized in a seemingly arbitrary manner (but at least it has an index if you know what you're looking for).
Having said that, Python probably has a better standard library than Ruby, so, meh, learn both and see which you prefer.
Posted by
qwph on Thursday November 13, 2008 @12:33PM
from the thedailywtf.com dept.
Yeah, if you have more tests than actual code, that would seem to indicate something's gone wrong somewhere. And I'd agree that no amount of testing is going to turn an O(n) algorithm into an O(log n) one. There's no substitute for sitting down with a pen and paper and doing some old fashioned design sometimes.
I do think having a suite of repeatable test cases you can run against developing software is a useful thing to have, though. Not only can you test for correctness, but you can also run benchmarks against each modification to see if your performance or memory usage is going up or down.
It probably depends on what you're trying to do...
That's not an exclusive or though. If you have a proof of your code's correctness, I'd still like to see it being regressed against any changes to the code. Ideally the more different methods you have for validating that your code is doing what it's supposed to be doing, the better.
I'm actually quite disappointed to see my original comment with a negative score. I'm going to assume it was just badly phrased, as I don't seriously think that anyone believes that more testing of software results in a decrease in quality.
You can actually use setjmp()/longjmp() to implement that kind of thing, it turns out. Here's but one example:
http://www.on-time.com/ddj0011.htm
I'm almost tempted to make an analogy with scheme's (call-with-current-continuation) here, but I think that might be pushing it.
The stability of any system is roughly proportional to how much automated testing is done against it.
I'm still not convinced that there's anything particularly magical about C here. Reliable programs are written by people who:
* understand the problem domain
* know the implementation language and its supporting library
* pay attention to detail
Admittedly, some languages fit some problem domains better than others, but 90% of the time, picking the language you're personally most familiar with will be as good a choice as any.
If exit() is too abrupt, you can always use setjmp() and longjmp() to set up a non-local jump to an error handler.
"Developers! Developers! Developers! Developers! Developers..."
Sympathies to the OP, but my general rule for all data: if it doesn't exist in two places, it doesn't exist.
(A lesson I also learned the hard way.)
That probably depends on where it is. ;)
This makes me wonder how many amazing species have been lost through deforestation without us ever knowing what benefits they could have had...
If I ran a newspaper, I'd have both articles already written, so I could hit the press as soon as the result was confirmed...
I'd like to come but I work in Burnaby, so could only do weekends/evenings. I'll send you a mail anyway...
I quite like this one:
4.4: People keep saying the behavior is undefined, but I just tried it on an ANSI conforming compiler, and got the results I expected.
They were probably wrong. Flame them mercilessly. Be sure before you do that your compiler is really ANSI conforming, though. If it turns out you were wrong, they get a legal claim on your firstborn.
I find it odd that that the more people there are in the world, and the more technology there is, the harder we all have to work. It seems counter-intuitive.
Youth is wasted on the young...
I think it's a Halloween special...
Bush is a national socialistThat's an interesting choice of words.
Posted by
qwph on Thursday October 30, 2008 @01:29AM
from the c2.com dept.
Hardly anyone knows anything about Karl Marx nowadays...
Death is not necessary to give life meaning.That's an unfalsifiable statement, I'm afraid.