Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: LinkList implementation



Michael Hwang wrote:
> I solved my problem by simply reversing the direction I added on to
> the LinkList, and therefore the direction I walked through it. I'll
> see if I can't make the LinkList implementation simpler and more
> intuitive. These "gotcha!"'s are a bit annoying.

If you're doing *anything* to the linked list code, the first imperative
is documenting what it currently does.  I'm not interested in improving
it until it's clearly written in <your foreground colour> and <your
background colour> what it is that's being improved.

To get on my high horse, in fact the first and last imperative with lots
of the code is better documentation.  I have wasted days of my life
having to puzzle things out.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author