Code architecture, principles and standards can be found on CODING_PRACTICES
We are following Ray Wenderlich's Swift Style Guide.
Code architecture, principles and standards can be found on CODING_PRACTICES
We are following Ray Wenderlich's Swift Style Guide.
| from datetime import datetime | |
| import os | |
| from slacker import Slacker | |
| import requests | |
| SLACK_TOKEN = os.environ['SLACK_TOKEN'] | |
| SLACK_CHANNEL = os.environ['SLACK_CHANNEL'] | |
| BITLY_API = "https://api-ssl.bitly.com/v3/user/link_history" |
| import redis | |
| from collections import Counter | |
| REDIS_URL = | |
| REDIS_PORT = | |
| REDIS_DB = | |
| REDIS_PASSWORD = | |
| r = redis.StrictRedis(host=REDIS_URL, port=REDIS_PORT, db=REDIS_DB, | |
| password=REDIS_PASSWORD) |
The main concept is to assign and separate the responsibilities of each layer.
Resources: