- Test-Driven Development (TDD) with pytest: Always write a failing test before writing implementation code (Red-Green-Refactor). Use
pytest
andpytest-fixtures
for test setup, execution, and teardown. - KISS (Keep It Simple, Stupid): Favor the simplest solution that meets the requirements.
- DRY (Don't Repeat Yourself): Avoid code duplication. Extract reusable logic into functions or classes.
- Standard Libraries and Tools: Utilize standard Python libraries (like
datetime
for date/time,requests
for HTTP requests, andlogging
) and external libraries, includingBeautifulSoup4
for HTML parsing, to avoid reinventing the wheel. Favor well-maintained and widely-used libraries. - YAGNI (You Ain't Gonna Need It): Don't implement features or functionality unless they are currently required.
- SOLID Principles & Extensibility: Adhere to SOLID principles, promoting maintainability, testability, and future extension. Consider potential future requi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global.logStep = function() { | |
console.log('Yeah!'); | |
console.log(`event: ${JSON.stringify(event)}`) | |
} |
I hereby claim:
- I am azurelogic on github.
- I am azurelogic (https://keybase.io/azurelogic) on keybase.
- I have a public key whose fingerprint is FFAA BC38 1299 E2D9 AA48 2060 F0D2 DEBF 84AF 9C42
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
angular.module('yourModule') | |
.decorator('$http', httpConfig); | |
// Uses the following libs: | |
// angular-cache: https://github.com/jmdobry/angular-cache | |
// lodash: https://lodash.com/ | |
// node-uuid: https://github.com/broofa/node-uuid | |
// I wrap lodash and node-uuid in their own services separately | |
httpConfig.$inject = ['$delegate', '$q', '$timeout', 'CacheFactory', '_', 'uuid']; |