1/22
Looks like no tags are added yet.
Stack trace/execution
- shows path of function calls leading up to moment of failure
- contains error message + call stack (where/how it happened)
- Find first line pointing to application code (ignore errors pointing to libraries/frameworks) and check how widespread it is
Null reference error
when you try to use variable that doesn't point to an actual object in memory
- common error
Timeout error
code/error takes too long to complete
- common error
Key not found error
when code tries to retrieve value from collection using lookup key that doesn't exist in the collection
- common error
logging
- correlate log entry with reported failure time
Info - normal/routine app state changes, used for audits/tracking
Warn - abnormal event but system automatically recovered, process finished successfully
Error - specific operation/request failed, expected outcome of a process/action did not occur
Debugging approach
- reproduce with smallest case (strip scale/complexity)
- Use console logs to check on data at specific points in process
- Use breakpoints to pause program at specific points to inspect variables, call stack, control flow and navigate code line by line
git clone
clones existing Git repo to local machine
git branch
list, create, delete branches in git repository
Request flow
browser → web server → app code → database → response
git commit
captures a snapshot of your project's currently staged changes and saves it to your local repository history
git diff
display changes between different states of a Git repository
git log
displays the commit history of your repository in reverse chronological order (newest first)
git revert
undo changes from a previous commit by creating a brand-new commit that applies the exact inverse of those changes
git pull
fetches updates from a remote repository and immediately merges them into your current local branch
- combines git fetch and git merge
environment and bug behavior
- dev, test, staging, production
- configuration/version differences
- scale/concurrency
- Data volume/diversity
- Infrastructure
- missing/different environment variables
Static typed language
types are checked at compile time, before program runs
Dynamic Typed Language
types are checked at runtime, while program is executing
C#
Microsoft's general purpose typed object oriented programming language
ASP.NET
Microsoft's open source, cross platform web app framework for building dynamic web apps with C#
Ruby
dynamic OOP general purpose programming language
Rails - server side web app framework
Javascript
high level dynamic programming language generally used for interactive web apps, can be used server side
Python
used for scripting
Calling API Process
1. Use language's fetch method to call API
2. Store results in a variable and use method to convert to language appropriate object
3. Use for loop to loop through results