https://www.youtube.com/watch?v=GqmsQeSzMdw Interesting throughout. Main points: Build in abstractions, with symbols and functions.Counter-intuitively, abstractions make precision possible.The more expressive a language, the more ambiguous the content.Or more generally, freedom at one level implies constraints at another level.Plan for interoperability and extension, which also implies limits.As much authority is necessary, but no more.The more something can do, … Continue reading Constraints Liberate, Liberties Constrain
Tag: programming
bash: Number of Days Between Today and Some Future Date
#!/bin/bash printf -v date '%(%Y-%m-%d)T\n' -1 echo $(( ($(date -d $1 +%s) - $(date -d $date +%s)) / 86400 )) days Above is a bash script to output the number of days between today and some future date. Copy it into a file, e.g., diffdate.sh, into a directory, e.g., ~/bin/scripts. Then, enter the directory you … Continue reading bash: Number of Days Between Today and Some Future Date
