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

It's usually more concise because idempotency comes by default. Instead of saying "create this file" (which might throw a 'file already exists' error the 2nd time you run the setup script), you say "ensure this file exists".

Some bash commands are idempotent too (e.g. apt-get install), but it's not something you can rely upon, and you often have to code the idempotency in yourself.



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

Search: