Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just to step back for a moment, it's interesting that /include/linux/list.h in the Linux kernel is a bog-standard linked list implementation. There is nothing particularly clever about it.

Speaking of the word clever, I think some are clutching that a little too proudly. In this context it doesn't mean "more skilled" or "more efficient" or "technically better", it simply means doing something in a particular way because you think it is unique. There is little to no argument to be made in favour of the approach in the linked blog entry, but there are many potential risks with it, not least of which is that it adds one more potential misunderstanding by skilled practitioners. While I love pointers to bits, and love unmanaged, native code, there is a good reason why most environments now trying to reduce their usage, even with the bestest of the bestest developers manning the keyboards.



Obviously using safer languages makes sense where they're available, but if someone's going to use pointers I'd prefer they understand them. My argument in favour of the blog entry's approach is "It's easier to read [for me]".

The more variables and control branches I need to track, the harder it is to verify the code in my head. Obviously, there is such a thing as "clever" code, but I don't think this is it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: