← all publishers

yanko-belov

@yanko-belov source repo

32 published skills

  1. Dont Repeat Yourself · yanko-belov
    Use when writing similar code in multiple places. Use when copy-pasting code. Use when making the same change in multiple locations.
    0
    installs
  2. Test Driven Development · yanko-belov
    Use when implementing any new feature or function. Use when asked to "add tests later". Use when writing code before tests.
    0
    installs
  3. Keep It Simple · yanko-belov
    Use when tempted to write clever code. Use when solution feels complex. Use when showing off skills instead of solving problems.
    0
    installs
  4. You Aint Gonna Need It · yanko-belov
    Use when tempted to add features "for later". Use when building "production-ready" systems before needed. Use when adding flexibility that isn't required yet.
    0
    installs
  5. Caching · yanko-belov
    Use when same data is fetched repeatedly. Use when database queries are slow. Use when implementing caching without invalidation strategy.
    0
    installs
  6. Fail Fast · yanko-belov
    Use when handling errors. Use when tempted to catch and swallow exceptions. Use when returning default values to hide failures.
    0
    installs
  7. Aaa Pattern · yanko-belov
    Use when writing tests. Use when test structure is unclear. Use when arrange/act/assert phases are mixed.
    0
    installs
  8. Idempotency · yanko-belov
    Use when creating mutation endpoints. Use when trusting frontend to prevent duplicates. Use when payments or critical operations can be repeated.
    0
    installs
  9. Open Closed Principle · yanko-belov
    Use when adding new functionality to existing code. Use when tempted to add if/else or switch branches. Use when extending behavior of existing classes.
    0
    installs
  10. Immutability · yanko-belov
    Use when modifying objects or arrays. Use when tempted to mutate function parameters. Use when state changes cause unexpected bugs.
    0
    installs
  11. Lazy Loading · yanko-belov
    Use when loading all data upfront. Use when initial page load is slow. Use when fetching data that might not be needed.
    0
    installs
  12. Auth Patterns · yanko-belov
    Use when implementing authentication. Use when storing passwords. Use when asked to store credentials insecurely.
    0
    installs
  13. Encapsulation · yanko-belov
    Use when exposing internal state. Use when making fields public for convenience. Use when external code modifies object internals.
    0
    installs
  14. API Versioning · yanko-belov
    Use when designing or modifying APIs. Use when adding breaking changes. Use when clients depend on API stability.
    0
    installs
  15. Law Of Demeter · yanko-belov
    Use when accessing nested object properties. Use when chaining method calls. Use when reaching through objects to get data.
    0
    installs
  16. Test Isolation · yanko-belov
    Use when writing tests that share state. Use when tests depend on other tests. Use when test order matters.
    0
    installs
  17. Error Responses · yanko-belov
    Use when returning errors from APIs. Use when exposing internal errors. Use when error responses lack structure.
    0
    installs
  18. Race Conditions · yanko-belov
    Use when multiple operations access shared state. Use when order of operations matters. Use when "it works most of the time" but occasionally fails mysteriously.
    0
    installs
  19. Skill Awareness · yanko-belov
    Always active. Tracks usage of code-craft skills across sessions. Log skill applications to enable analytics and identify gaps.
    0
    installs
  20. Error Boundaries · yanko-belov
    Use when deciding where to catch errors. Use when errors propagate too far or not far enough. Use when designing component/service isolation.
    0
    installs
  21. Input Validation · yanko-belov
    Use when accepting user input. Use when handling request data. Use when trusting external data without validation.
    0
    installs
  22. REST Conventions · yanko-belov
    Use when designing API endpoints. Use when using wrong HTTP methods. Use when POST is used for reads.
    0
    installs
  23. Secrets Handling · yanko-belov
    Use when working with API keys, passwords, or credentials. Use when asked to hardcode secrets. Use when secrets might leak.
    0
    installs
  24. Deadlock Prevention · yanko-belov
    Use when acquiring multiple locks. Use when operations wait for each other. Use when system hangs without crashing.
    0
    installs
  25. Liskov Substitution Principle · yanko-belov
    Use when creating subclasses or implementing interfaces. Use when tempted to override methods with exceptions or no-ops. Use when inheritance hierarchy feels wrong.
    0
    installs
  26. Dependency Inversion Principle · yanko-belov
    Use when a class creates its own dependencies. Use when instantiating concrete implementations inside a class. Use when told to avoid dependency injection for simplicity.
    0
    installs
  27. Exception Hierarchies · yanko-belov
    Use when creating custom exceptions. Use when error handling feels chaotic. Use when catch blocks are too broad or too specific.
    0
    installs
  28. Interface Segregation Principle · yanko-belov
    Use when designing interfaces. Use when implementing interfaces with methods you don't need. Use when forced to implement throw/no-op for interface methods.
    0
    installs
  29. N Plus One Prevention · yanko-belov
    Use when fetching related data in loops. Use when seeing multiple queries for one request. Use when database is slow on list endpoints.
    0
    installs
  30. Single Responsibility Principle · yanko-belov bundle
    Use when creating or modifying classes, modules, or functions. Use when feeling pressure to add functionality to existing code. Use when class has multiple reasons to change.
    0
    installs
  31. Separation Of Concerns · yanko-belov
    Use when component does too many things. Use when mixing data fetching, logic, and presentation. Use when code is hard to test.
    0
    installs
  32. Composition Over Inheritance · yanko-belov
    Use when tempted to use class inheritance. Use when creating class hierarchies. Use when subclass needs only some parent behavior.
    0
    installs