[ProgClub programming] Announcing the base() shell function

John Elliot V | ProgClub jj5 at progclub.org
Sun Jun 23 13:31:56 AEST 2019


On 23/6/19 8:06 am, Jedd Rashbrooke wrote:
> The 'reference implementation' attempts to change the working directory
> to parent *before* it checks if it's already in in the top level
> directory.  Nice!

That's the beauty of the Null Object Pattern [1]. You don't need to check.

This is a good example of you picking something which doesn't matter and
leveling accusations against me over it.

[1] https://en.wikipedia.org/wiki/Null_object_pattern

-- 
|_|O|_| ProgClub
|_|_|O| Because every programmer needs a good club!
|O|O|O| https://www.progclub.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jj5.vcf
Type: text/x-vcard
Size: 231 bytes
Desc: not available
URL: <http://www.progclub.org/pipermail/programming/attachments/20190623/12daf028/attachment.vcf>


More information about the programming mailing list