Notes
Short notes on Python, JavaScript, Jest, Django, and the web.
Django
- How to revert the last migration in Django
- Django signals VS overriding the model `save` VS overriding the manager `create` method
Engineering Management
Javascript
- Remove a specific item from a Javascript array, knowing its value
- How not to confuse "Slice" with "Splice" in Javascript
Jest
- How to change the URL in your Jest unit-tests
- How to mock a single named export with Jest
- How to generate a code coverage report using Jest
- Reset Jest mock functions calls count before every test
- How to run a single test in Jest: A developer’s guide to efficient testing
Python
- Mastering Enumerate in Python: A Comprehensive Guide
- How to flatten a list of lists into a list in Python
- Python Performance Optimization: Measuring Execution Time with timeit
- Simple method to execute function calls in parallel in Python