Skip to content

Instantly share code, notes, and snippets.

View daveboling's full-sized avatar
💭
🔥 🐶 This is fine 🔥

David D. Boling daveboling

💭
🔥 🐶 This is fine 🔥
View GitHub Profile

Coding Rules and Instructions

  1. Test-Driven Development (TDD) with pytest: Always write a failing test before writing implementation code (Red-Green-Refactor). Use pytest and pytest-fixtures for test setup, execution, and teardown.
  2. KISS (Keep It Simple, Stupid): Favor the simplest solution that meets the requirements.
  3. DRY (Don't Repeat Yourself): Avoid code duplication. Extract reusable logic into functions or classes.
  4. Standard Libraries and Tools: Utilize standard Python libraries (like datetime for date/time, requests for HTTP requests, and logging) and external libraries, including BeautifulSoup4 for HTML parsing, to avoid reinventing the wheel. Favor well-maintained and widely-used libraries.
  5. YAGNI (You Ain't Gonna Need It): Don't implement features or functionality unless they are currently required.
  6. SOLID Principles & Extensibility: Adhere to SOLID principles, promoting maintainability, testability, and future extension. Consider potential future requi
@daveboling
daveboling / APIGateway.md
Created March 10, 2023 15:41 — forked from bskim45/APIGateway.md
CloudWatch Logs Insights query for API Gateway

Req id:

parse @message '(*) *' as reqId, message
| filter reqId like "c19dd3fc-5f27-11e9-a823-930d231e2ab8"
| sort @timestamp asc
| limit 50

Status code:

@daveboling
daveboling / rails_interview.md
Last active August 1, 2019 19:13
Rails Remote Programming Interview Question(s) (Mid-Level)

Foreword and Instructions

These questions are not made to be difficult and should be easy to a true mid-level Rails developer. The point here is to see how confidently they carry themselves. Candidates should get kudos for asking good questions. If they go off the deepend, try to steer them back to the objective. If an interview is going poorly, it's OK for you to step in herd them in any particular direction. A poor interview is not necessarily a sign of a poor candidate, use good judgment.


Expectations

  • Should be able to converse and gather requirements effectively
@daveboling
daveboling / .vimrc
Created August 19, 2014 15:35
Dave's vimrc
" http://vimdoc.sourceforge.net/htmldoc/options.html
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
@daveboling
daveboling / tmux.conf
Last active August 29, 2015 14:05
Dave's tmux.conf
#Dave's tmux confg
# Setting the prefix from C-b to C-a
# START:prefix
set -g prefix C-a
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind
unbind C-b
# END:unbind