Skip to content

Instantly share code, notes, and snippets.

View symbaa1356's full-sized avatar
🎯
Focusing

Brijesh symbaa1356

🎯
Focusing
  • honeycomb
View GitHub Profile
@jameshwang
jameshwang / gist:5335032
Last active January 20, 2025 12:09
Notes on TDD Patterns

Test-Driven Development By Example: Kent Beck

Test-Driven Development Patterns

  1. Isolate Test: If 1 test breaks, it should be 1 problem to fix. Likewise, if 2 break, then 2 fixes. It shouldn't be that 10 test break and 1 fix fixes them all. Isolating tests encourages you to compose solutions out of many highly cohesive, loosely coupled objects.
  2. Test List: Before beginning, write a list of all the tests. However, this doesn't mean write the tests, it means list them. If you write a bunch of tests all at once, you break the cycle of Red, Green, Refactor.
  3. Test First: write tests before you write code. Writing tests first helps you think about design and also helps you focus
  4. Assert First: try to write your assert/expect/should first. It will show what you want to have pass. Then work backwards to "how" you will make that assert pass. What will you have to setup, mock, stub, etc.
  5. Test Data: Try to use real data that makes sense to the reader. Potentially fixtures and factories
  6. Evident
@leonardofed
leonardofed / README.md
Last active March 14, 2025 18:19
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@wojteklu
wojteklu / clean_code.md
Last active March 15, 2025 23:49
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules