HN user

qwph

412 karma

language geek

Posts20
Comments166
View on HN
www.charleslockhart.com 17y ago

GPG Cheatsheet

qwph
1pts0
plan9.bell-labs.com 17y ago

The Development of the C Language (Dennis Ritchie)

qwph
8pts1
thedailywtf.com 17y ago

The Toggle that Wouldn't

qwph
10pts1
c2.com 17y ago

The Three Great Virtues of a Programmer

qwph
1pts0
www.nyx.net 17y ago

The Quine Page (self-reproducing code)

qwph
2pts0
c2.com 17y ago

Lisp in Jak and Daxter

qwph
2pts0
www-128.ibm.com 17y ago

Anatomy of a flawed microbenchmark

qwph
1pts0
www.usenix.org 17y ago

Virtual Machine Showdown: Stack Versus Registers [pdf]

qwph
1pts0
community.schemewiki.org 17y ago

Scheme vs Common Lisp

qwph
15pts5
www.haskell.org 17y ago

Haskell for C Programmers

qwph
1pts0
make.paulandlesley.org 17y ago

GNU Make Hints and Tips

qwph
2pts0
luaforge.net 17y ago

A No-Frills Introduction to Lua 5.1 VM Instructions [pdf]

qwph
5pts0
www.nhplace.com 17y ago

Condition Handling in the Lisp Language Family

qwph
3pts0
www.cs.ucsb.edu 17y ago

Exploring the Limits of Indirect Branch Prediction [pdf]

qwph
1pts0
citeseerx.ist.psu.edu 17y ago

Optimizing Dynamically-Typed Object-Oriented Languages With Polymorphic Inline Caches

qwph
14pts6
users.ipa.net 17y ago

Smalltalk 80: The Language and its Implementation

qwph
22pts6
web.archive.org 17y ago

The Hitch Hiker's Guide to the Smalltalk Compiler

qwph
8pts0
www-users.cs.york.ac.uk 18y ago

A survival guide for people with Asperger syndrome

qwph
11pts8
www.csd.uwo.ca 18y ago

The Great Quux Poem Collection (by Guy L Steele)

qwph
1pts0
berkshirehunt.com 18y ago

Linux mint rocks!

qwph
1pts0

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

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.

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.

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.

Tell HN: Vote. 18 years ago

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