Better HN
topnewbestaskshowjobs
Log inSign up

qwph

412 karma · joined Feb 17, 2008 (18y ago) · 189 submissions

language geek
Submissions

1.

GPG Cheatsheet(charleslockhart.com ↗)

1 points · by qwph · 18y ago · discuss

comment 18y ago · link · parent

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...

3.

The Development of the C Language (Dennis Ritchie)(plan9.bell-labs.com ↗)

8 points · by qwph · 18y ago · 1 comment

comment 18y ago · link · parent

I think this is the non-scribd version: http://www.cs.utah.edu/plt/publications/pllc.pdf

comment 18y ago · link · parent

Yeah, that's what the interpreter says... :(

comment 18y ago · link · parent

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.

7.

The Toggle that Wouldn't(thedailywtf.com ↗)

10 points · by qwph · 18y ago · 1 comment

comment 18y ago · link · parent

Soldering up a bunch of electrodes, hooking them up to a power source and strapping the whole lot to your head? What could possibly go wrong?

(I'd read this first though: http://openeeg.sourceforge.net/doc/WARNING.html)

comment 18y ago · link · parent

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...

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

The stability of any system is roughly proportional to how much automated testing is done against it.

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

If exit() is too abrupt, you can always use setjmp() and longjmp() to set up a non-local jump to an error handler.

comment 18y ago · link · parent

"September 1993 will go down in net.history as the September that never ended."

http://en.wikipedia.org/wiki/Eternal_september

comment 18y ago · link · parent

"Developers! Developers! Developers! Developers! Developers..."

comment 18y ago · link · parent

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.)

comment 18y ago · link · parent

That probably depends on where it is. ;)

comment 18y ago · link · parent

This makes me wonder how many amazing species have been lost through deforestation without us ever knowing what benefits they could have had...

comment 18y ago · link · parent

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...

comment 18y ago · link · parent

I'd like to come but I work in Burnaby, so could only do weekends/evenings. I'll send you a mail anyway...

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

Youth is wasted on the young...

comment 18y ago · link · parent

I think it's a Halloween special...

comment 18y ago · link · parent

I agree.

comment 18y ago · link · parent

Bush is a national socialist

That's an interesting choice of words.

28.

The Three Great Virtues of a Programmer(c2.com ↗)

1 points · by qwph · 18y ago · discuss

comment 18y ago · link · parent

Hardly anyone knows anything about Karl Marx nowadays...
1234567