- Identify the use cases that are in scope
- Determine constraints based on scoped use cases
use case
: the things your system needs to be do.
constraints
: the things your system will have to consider to be able to do stuff
import sys | |
# The way this worksheet seems to work is: | |
# A = taxes you would pay if it was just income | |
# B = calculate taxes on capital gains, using the capital gains tax rate schedule, BUT skip the first X dollars of the rate schedule, where X is your income | |
# total taxes = A + B | |
def income_tax (amt): | |
taxes = 0.0 | |
lower_end = 0 |
{ | |
"AWSAccountActivityAccess": { | |
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess", | |
"AttachmentCount": 0, | |
"CreateDate": "2015-02-06T18:41:18+00:00", | |
"DefaultVersionId": "v1", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
{ | |
"APIGatewayServiceRolePolicy": { | |
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
"AttachmentCount": 0, | |
"CreateDate": "2019-10-22T18:22:01+00:00", | |
"DefaultVersionId": "v6", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
// recursive reimplementation of JSON.stringify | |
var stringifyJSON = function(obj) { | |
// null | |
if (obj === null) { | |
return "null"; | |
} | |
// unstringifiable - functions and undefined | |
if (obj === undefined || obj.constructor === Function) { return; } |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\