- Web Server: Play (framework) or http4s (library)
- Actors: akka
- Asynchronous Programming: monix (for tasks, reactors, observables, scheduler etc)
- Authentication: Silhouette
- Authorization: Deadbolt
- Command-line option parsing: case-app
- CSV Parsing: kantan.csv
- DB: doobie (for PostgreSQL)
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Before running this script, plese ensure the following tools are installed. | |
# 1. inotifywait (yum install inotify-tools) | |
# 2. akamai-purge (script https://github.com/akamai/cli-purge) | |
# 3. Keep the CCU API credentials in the .edgerc file in the user home dir. | |
ROOTDIR='/data/www/htdocs/publish/content/site1' | |
HOST_URL='https://www.myhost.com' | |
inotifywait -m -r -e delete $ROOTDIR | | |
while read dir ev file; do |