Programming/Debugging

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

23 Terms

1
New cards

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

2
New cards

Null reference error

when you try to use variable that doesn't point to an actual object in memory

- common error

3
New cards

Timeout error

code/error takes too long to complete

- common error

4
New cards

Key not found error

when code tries to retrieve value from collection using lookup key that doesn't exist in the collection

- common error

5
New cards

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

6
New cards

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

7
New cards

git clone

clones existing Git repo to local machine

8
New cards

git branch

list, create, delete branches in git repository

9
New cards

Request flow

browser → web server → app code → database → response

10
New cards

git commit

captures a snapshot of your project's currently staged changes and saves it to your local repository history

11
New cards

git diff

display changes between different states of a Git repository

12
New cards

git log

displays the commit history of your repository in reverse chronological order (newest first)

13
New cards

git revert

undo changes from a previous commit by creating a brand-new commit that applies the exact inverse of those changes

14
New cards

git pull

fetches updates from a remote repository and immediately merges them into your current local branch

- combines git fetch and git merge

15
New cards

environment and bug behavior

- dev, test, staging, production

- configuration/version differences

- scale/concurrency

- Data volume/diversity

- Infrastructure

- missing/different environment variables

16
New cards

Static typed language

types are checked at compile time, before program runs

17
New cards

Dynamic Typed Language

types are checked at runtime, while program is executing

18
New cards

C#

Microsoft's general purpose typed object oriented programming language

19
New cards

ASP.NET

Microsoft's open source, cross platform web app framework for building dynamic web apps with C#

20
New cards

Ruby

dynamic OOP general purpose programming language

Rails - server side web app framework

21
New cards

Javascript

high level dynamic programming language generally used for interactive web apps, can be used server side

22
New cards

Python

used for scripting

23
New cards

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