cursor-kit-cli 1.2.0-beta → 1.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cursor-reinstall-instance.sh +102 -0
- package/dist/cli.cjs +366 -69
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +367 -70
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/docs.md +5 -3
- package/templates/commands/explain.md +5 -3
- package/templates/commands/fix.md +5 -3
- package/templates/commands/implement.md +5 -3
- package/templates/commands/refactor.md +5 -3
- package/templates/commands/review.md +5 -3
- package/templates/commands/test.md +5 -3
- package/templates/manifest.json +11 -8
- package/templates/rules/git.mdc +0 -2
- package/templates/rules/toc.mdc +17 -9
- package/templates/skills/aesthetic/SKILL.md +121 -0
- package/templates/skills/aesthetic/assets/design-guideline-template.md +163 -0
- package/templates/skills/aesthetic/assets/design-story-template.md +135 -0
- package/templates/skills/aesthetic/references/design-principles.md +62 -0
- package/templates/skills/aesthetic/references/design-resources.md +75 -0
- package/templates/skills/aesthetic/references/micro-interactions.md +53 -0
- package/templates/skills/aesthetic/references/storytelling-design.md +50 -0
- package/templates/skills/backend-development/SKILL.mdc +95 -0
- package/templates/skills/backend-development/references/backend-api-design.md +495 -0
- package/templates/skills/backend-development/references/backend-architecture.md +454 -0
- package/templates/skills/backend-development/references/backend-authentication.md +338 -0
- package/templates/skills/backend-development/references/backend-code-quality.md +659 -0
- package/templates/skills/backend-development/references/backend-debugging.md +904 -0
- package/templates/skills/backend-development/references/backend-devops.md +494 -0
- package/templates/skills/backend-development/references/backend-mindset.md +387 -0
- package/templates/skills/backend-development/references/backend-performance.md +397 -0
- package/templates/skills/backend-development/references/backend-security.md +290 -0
- package/templates/skills/backend-development/references/backend-technologies.md +256 -0
- package/templates/skills/backend-development/references/backend-testing.md +429 -0
- package/templates/skills/frontend-design/SKILL.mdc +41 -0
- package/templates/skills/frontend-design/references/animejs.md +396 -0
- package/templates/skills/frontend-development/SKILL.mdc +399 -0
- package/templates/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/skills/frontend-development/resources/performance.md +406 -0
- package/templates/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/skills/problem-solving/SKILL.mdc +96 -0
- package/templates/skills/problem-solving/references/attribution.md +69 -0
- package/templates/skills/problem-solving/references/collision-zone-thinking.md +79 -0
- package/templates/skills/problem-solving/references/inversion-exercise.md +91 -0
- package/templates/skills/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/templates/skills/problem-solving/references/scale-game.md +95 -0
- package/templates/skills/problem-solving/references/simplification-cascades.md +80 -0
- package/templates/skills/problem-solving/references/when-stuck.md +72 -0
- package/templates/skills/research/SKILL.mdc +168 -0
- package/templates/skills/sequential-thinking/.env.example +8 -0
- package/templates/skills/sequential-thinking/README.md +183 -0
- package/templates/skills/sequential-thinking/SKILL.mdc +94 -0
- package/templates/skills/sequential-thinking/package.json +31 -0
- package/templates/skills/sequential-thinking/references/advanced-strategies.md +79 -0
- package/templates/skills/sequential-thinking/references/advanced-techniques.md +76 -0
- package/templates/skills/sequential-thinking/references/core-patterns.md +95 -0
- package/templates/skills/sequential-thinking/references/examples-api.md +88 -0
- package/templates/skills/sequential-thinking/references/examples-architecture.md +94 -0
- package/templates/skills/sequential-thinking/references/examples-debug.md +90 -0
- package/templates/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/templates/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/templates/skills/sequential-thinking/tests/format-thought.test.js +133 -0
- package/templates/skills/sequential-thinking/tests/process-thought.test.js +215 -0
- package/templates/skills/ui-styling/LICENSE.txt +202 -0
- package/templates/skills/ui-styling/SKILL.mdc +321 -0
- package/templates/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/templates/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/templates/skills/ui-styling/references/shadcn-components.md +424 -0
- package/templates/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/templates/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/templates/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/templates/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/templates/rules/frontend-design.mdc +0 -48
- package/templates/rules/performance.mdc +0 -54
- package/templates/rules/react.mdc +0 -58
- package/templates/rules/security.mdc +0 -50
- package/templates/rules/testing.mdc +0 -54
- package/templates/rules/typescript.mdc +0 -36
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# Backend Development Mindset
|
|
2
|
+
|
|
3
|
+
Problem-solving approaches, architectural thinking, and collaboration patterns for backend engineers (2025).
|
|
4
|
+
|
|
5
|
+
## Problem-Solving Mindset
|
|
6
|
+
|
|
7
|
+
### Systems Thinking Approach
|
|
8
|
+
|
|
9
|
+
**Holistic Engineering** - Understanding how components interact within larger ecosystem
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
User Request
|
|
13
|
+
→ Load Balancer
|
|
14
|
+
→ API Gateway (auth, rate limiting)
|
|
15
|
+
→ Application (business logic)
|
|
16
|
+
→ Cache Layer (Redis)
|
|
17
|
+
→ Database (persistent storage)
|
|
18
|
+
→ Message Queue (async processing)
|
|
19
|
+
→ External Services
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Questions to Ask:**
|
|
23
|
+
- What happens if this component fails?
|
|
24
|
+
- How does this scale under load?
|
|
25
|
+
- What are the dependencies?
|
|
26
|
+
- Where are the bottlenecks?
|
|
27
|
+
- What's the blast radius of changes?
|
|
28
|
+
|
|
29
|
+
### Breaking Down Complex Problems
|
|
30
|
+
|
|
31
|
+
**Decomposition Strategy:**
|
|
32
|
+
|
|
33
|
+
1. **Understand requirements** - What problem are we solving?
|
|
34
|
+
2. **Identify constraints** - Performance, budget, timeline, tech stack
|
|
35
|
+
3. **Break into modules** - Separate concerns (auth, data, business logic)
|
|
36
|
+
4. **Define interfaces** - API contracts between modules
|
|
37
|
+
5. **Prioritize** - Critical path first
|
|
38
|
+
6. **Iterate** - Build, test, refine
|
|
39
|
+
|
|
40
|
+
**Example: Building Payment System**
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Complex: "Build payment processing"
|
|
44
|
+
|
|
45
|
+
Decomposed:
|
|
46
|
+
1. Payment gateway integration (Stripe/PayPal)
|
|
47
|
+
2. Order creation and validation
|
|
48
|
+
3. Payment intent creation
|
|
49
|
+
4. Webhook handling (success/failure)
|
|
50
|
+
5. Idempotency (prevent double charges)
|
|
51
|
+
6. Retry logic for transient failures
|
|
52
|
+
7. Audit logging
|
|
53
|
+
8. Refund processing
|
|
54
|
+
9. Reconciliation system
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Trade-Off Analysis
|
|
58
|
+
|
|
59
|
+
### CAP Theorem (Choose 2 of 3)
|
|
60
|
+
|
|
61
|
+
**Consistency** - All nodes see same data at same time
|
|
62
|
+
**Availability** - Every request receives response
|
|
63
|
+
**Partition Tolerance** - System works despite network failures
|
|
64
|
+
|
|
65
|
+
**Real-World Choices:**
|
|
66
|
+
- **CP (Consistency + Partition Tolerance):** Banking systems, financial transactions
|
|
67
|
+
- **AP (Availability + Partition Tolerance):** Social media feeds, product catalogs
|
|
68
|
+
- **CA (Consistency + Availability):** Single-node databases (not distributed)
|
|
69
|
+
|
|
70
|
+
### PACELC Extension
|
|
71
|
+
|
|
72
|
+
**If Partition:** Choose Availability or Consistency
|
|
73
|
+
**Else (no partition):** Choose Latency or Consistency
|
|
74
|
+
|
|
75
|
+
**Examples:**
|
|
76
|
+
- **PA/EL:** Cassandra (available during partition, low latency normally)
|
|
77
|
+
- **PC/EC:** HBase (consistent during partition, consistent over latency)
|
|
78
|
+
- **PA/EC:** DynamoDB (configurable consistency vs latency)
|
|
79
|
+
|
|
80
|
+
### Performance vs Maintainability
|
|
81
|
+
|
|
82
|
+
| Optimize For | When to Choose |
|
|
83
|
+
|--------------|---------------|
|
|
84
|
+
| **Performance** | Hot paths, high-traffic endpoints, real-time systems |
|
|
85
|
+
| **Maintainability** | Internal tools, admin dashboards, CRUD operations |
|
|
86
|
+
| **Both** | Core business logic, payment processing, authentication |
|
|
87
|
+
|
|
88
|
+
**Example:**
|
|
89
|
+
```typescript
|
|
90
|
+
// Maintainable: Readable, easy to debug
|
|
91
|
+
const users = await db.users.findAll({
|
|
92
|
+
where: { active: true },
|
|
93
|
+
include: ['posts', 'comments'],
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Performant: Optimized query, reduced joins
|
|
97
|
+
const users = await db.query(`
|
|
98
|
+
SELECT u.*,
|
|
99
|
+
(SELECT COUNT(*) FROM posts WHERE user_id = u.id) as post_count,
|
|
100
|
+
(SELECT COUNT(*) FROM comments WHERE user_id = u.id) as comment_count
|
|
101
|
+
FROM users u
|
|
102
|
+
WHERE u.active = true
|
|
103
|
+
`);
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Technical Debt Management
|
|
107
|
+
|
|
108
|
+
**20-40% productivity increase** from addressing technical debt properly
|
|
109
|
+
|
|
110
|
+
**Debt Quadrants:**
|
|
111
|
+
1. **Reckless + Deliberate:** "We don't have time for design"
|
|
112
|
+
2. **Reckless + Inadvertent:** "What's layering?"
|
|
113
|
+
3. **Prudent + Deliberate:** "Ship now, refactor later" (acceptable)
|
|
114
|
+
4. **Prudent + Inadvertent:** "Now we know better" (acceptable)
|
|
115
|
+
|
|
116
|
+
**Prioritization:**
|
|
117
|
+
- High interest, high impact → Fix immediately
|
|
118
|
+
- High interest, low impact → Schedule in sprint
|
|
119
|
+
- Low interest, high impact → Tech debt backlog
|
|
120
|
+
- Low interest, low impact → Leave as-is
|
|
121
|
+
|
|
122
|
+
## Architectural Thinking
|
|
123
|
+
|
|
124
|
+
### Domain-Driven Design (DDD)
|
|
125
|
+
|
|
126
|
+
**Bounded Contexts** - Separate models for different domains
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
E-commerce System:
|
|
130
|
+
|
|
131
|
+
[Sales Context] [Inventory Context] [Shipping Context]
|
|
132
|
+
- Order (id, items, - Product (id, stock, - Shipment (id,
|
|
133
|
+
total, customer) location, reserved) address, status)
|
|
134
|
+
- Customer (id, email) - Warehouse (id, name) - Carrier (name, API)
|
|
135
|
+
- Payment (status) - StockLevel (quantity) - Tracking (number)
|
|
136
|
+
|
|
137
|
+
Each context has its own:
|
|
138
|
+
- Data model
|
|
139
|
+
- Business rules
|
|
140
|
+
- Database schema
|
|
141
|
+
- API contracts
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Ubiquitous Language** - Shared vocabulary between devs and domain experts
|
|
145
|
+
|
|
146
|
+
### Layered Architecture (Separation of Concerns)
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
┌─────────────────────────────┐
|
|
150
|
+
│ Presentation Layer │ Controllers, Routes, DTOs
|
|
151
|
+
│ (API endpoints) │
|
|
152
|
+
├─────────────────────────────┤
|
|
153
|
+
│ Business Logic Layer │ Services, Use Cases, Domain Logic
|
|
154
|
+
│ (Core logic) │
|
|
155
|
+
├─────────────────────────────┤
|
|
156
|
+
│ Data Access Layer │ Repositories, ORMs, Database
|
|
157
|
+
│ (Persistence) │
|
|
158
|
+
└─────────────────────────────┘
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Benefits:**
|
|
162
|
+
- Clear responsibilities
|
|
163
|
+
- Easier testing (mock layers)
|
|
164
|
+
- Flexibility to change implementations
|
|
165
|
+
- Reduced coupling
|
|
166
|
+
|
|
167
|
+
### Designing for Failure (Resilience)
|
|
168
|
+
|
|
169
|
+
**Assume everything fails eventually**
|
|
170
|
+
|
|
171
|
+
**Patterns:**
|
|
172
|
+
1. **Circuit Breaker** - Stop calling failing service
|
|
173
|
+
2. **Retry with Backoff** - Exponential delay between retries
|
|
174
|
+
3. **Timeout** - Don't wait forever
|
|
175
|
+
4. **Fallback** - Graceful degradation
|
|
176
|
+
5. **Bulkhead** - Isolate failures (resource pools)
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { CircuitBreaker } from 'opossum';
|
|
180
|
+
|
|
181
|
+
const breaker = new CircuitBreaker(externalAPICall, {
|
|
182
|
+
timeout: 3000, // 3s timeout
|
|
183
|
+
errorThresholdPercentage: 50, // Open after 50% failures
|
|
184
|
+
resetTimeout: 30000, // Try again after 30s
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
breaker.fallback(() => ({ data: 'cached-response' }));
|
|
188
|
+
|
|
189
|
+
const result = await breaker.fire(requestParams);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Developer Mindset
|
|
193
|
+
|
|
194
|
+
### Writing Maintainable Code
|
|
195
|
+
|
|
196
|
+
**SOLID Principles:**
|
|
197
|
+
|
|
198
|
+
**S - Single Responsibility** - Class/function does one thing
|
|
199
|
+
```typescript
|
|
200
|
+
// Bad: User class handles auth + email + logging
|
|
201
|
+
class User {
|
|
202
|
+
authenticate() {}
|
|
203
|
+
sendEmail() {}
|
|
204
|
+
logActivity() {}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Good: Separate responsibilities
|
|
208
|
+
class User {
|
|
209
|
+
authenticate() {}
|
|
210
|
+
}
|
|
211
|
+
class EmailService {
|
|
212
|
+
sendEmail() {}
|
|
213
|
+
}
|
|
214
|
+
class Logger {
|
|
215
|
+
logActivity() {}
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**O - Open/Closed** - Open for extension, closed for modification
|
|
220
|
+
```typescript
|
|
221
|
+
// Good: Strategy pattern
|
|
222
|
+
interface PaymentStrategy {
|
|
223
|
+
process(amount: number): Promise<PaymentResult>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
class StripePayment implements PaymentStrategy {
|
|
227
|
+
async process(amount: number) { /* ... */ }
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
class PayPalPayment implements PaymentStrategy {
|
|
231
|
+
async process(amount: number) { /* ... */ }
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Thinking About Edge Cases
|
|
236
|
+
|
|
237
|
+
**Common Edge Cases:**
|
|
238
|
+
- Empty arrays/collections
|
|
239
|
+
- Null/undefined values
|
|
240
|
+
- Boundary values (min/max integers)
|
|
241
|
+
- Concurrent requests (race conditions)
|
|
242
|
+
- Network failures
|
|
243
|
+
- Duplicate requests (idempotency)
|
|
244
|
+
- Invalid input (SQL injection, XSS)
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
// Good: Handle edge cases explicitly
|
|
248
|
+
async function getUsers(limit?: number) {
|
|
249
|
+
// Validate input
|
|
250
|
+
if (limit !== undefined && (limit < 1 || limit > 1000)) {
|
|
251
|
+
throw new Error('Limit must be between 1 and 1000');
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Handle undefined
|
|
255
|
+
const safeLimit = limit ?? 50;
|
|
256
|
+
|
|
257
|
+
// Prevent SQL injection with parameterized query
|
|
258
|
+
const users = await db.query('SELECT * FROM users LIMIT $1', [safeLimit]);
|
|
259
|
+
|
|
260
|
+
// Handle empty results
|
|
261
|
+
return users.length > 0 ? users : [];
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Testing Mindset (TDD/BDD)
|
|
266
|
+
|
|
267
|
+
**70% happy-path tests drafted by AI, humans focus on edge cases**
|
|
268
|
+
|
|
269
|
+
**Test-Driven Development (TDD):**
|
|
270
|
+
```
|
|
271
|
+
1. Write failing test
|
|
272
|
+
2. Write minimal code to pass
|
|
273
|
+
3. Refactor
|
|
274
|
+
4. Repeat
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**Behavior-Driven Development (BDD):**
|
|
278
|
+
```gherkin
|
|
279
|
+
Feature: User Registration
|
|
280
|
+
Scenario: User registers with valid email
|
|
281
|
+
Given I am on the registration page
|
|
282
|
+
When I enter "test@example.com" as email
|
|
283
|
+
And I enter "SecurePass123!" as password
|
|
284
|
+
Then I should see "Registration successful"
|
|
285
|
+
And I should receive a welcome email
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Observability and Debugging Approach
|
|
289
|
+
|
|
290
|
+
**100% median ROI, $500k average return** from observability investments
|
|
291
|
+
|
|
292
|
+
**Three Questions:**
|
|
293
|
+
1. **Is it slow?** → Check metrics (response time, DB queries)
|
|
294
|
+
2. **Is it broken?** → Check logs (errors, stack traces)
|
|
295
|
+
3. **Where is it broken?** → Check traces (distributed systems)
|
|
296
|
+
|
|
297
|
+
```typescript
|
|
298
|
+
// Good: Structured logging with context
|
|
299
|
+
logger.error('Payment processing failed', {
|
|
300
|
+
orderId: order.id,
|
|
301
|
+
userId: user.id,
|
|
302
|
+
amount: order.total,
|
|
303
|
+
error: error.message,
|
|
304
|
+
stack: error.stack,
|
|
305
|
+
timestamp: Date.now(),
|
|
306
|
+
ipAddress: req.ip,
|
|
307
|
+
});
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## Collaboration & Communication
|
|
311
|
+
|
|
312
|
+
### API Contract Design (Treating APIs as Products)
|
|
313
|
+
|
|
314
|
+
**Principles:**
|
|
315
|
+
1. **Versioning** - `/api/v1/users`, `/api/v2/users`
|
|
316
|
+
2. **Consistency** - Same patterns across endpoints
|
|
317
|
+
3. **Documentation** - OpenAPI/Swagger
|
|
318
|
+
4. **Backward compatibility** - Don't break existing clients
|
|
319
|
+
5. **Clear error messages** - Help clients fix issues
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
// Good: Consistent API design
|
|
323
|
+
GET /api/v1/users # List users
|
|
324
|
+
GET /api/v1/users/:id # Get user
|
|
325
|
+
POST /api/v1/users # Create user
|
|
326
|
+
PUT /api/v1/users/:id # Update user
|
|
327
|
+
DELETE /api/v1/users/:id # Delete user
|
|
328
|
+
|
|
329
|
+
// Consistent error format
|
|
330
|
+
{
|
|
331
|
+
"error": {
|
|
332
|
+
"code": "VALIDATION_ERROR",
|
|
333
|
+
"message": "Invalid email format",
|
|
334
|
+
"field": "email",
|
|
335
|
+
"timestamp": "2025-01-09T12:00:00Z"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Database Schema Design Discussions
|
|
341
|
+
|
|
342
|
+
**Key Considerations:**
|
|
343
|
+
- **Normalization vs Denormalization** - Trade-offs for performance
|
|
344
|
+
- **Indexing strategy** - Query patterns dictate indexes
|
|
345
|
+
- **Migration path** - How to evolve schema without downtime
|
|
346
|
+
- **Data types** - VARCHAR(255) vs TEXT, INT vs BIGINT
|
|
347
|
+
- **Constraints** - Foreign keys, unique constraints, check constraints
|
|
348
|
+
|
|
349
|
+
### Code Review Mindset (Prevention-First)
|
|
350
|
+
|
|
351
|
+
**What to Look For:**
|
|
352
|
+
- Security vulnerabilities (SQL injection, XSS)
|
|
353
|
+
- Performance issues (N+1 queries, missing indexes)
|
|
354
|
+
- Error handling (uncaught exceptions)
|
|
355
|
+
- Edge cases (null checks, boundary values)
|
|
356
|
+
- Readability (naming, comments for complex logic)
|
|
357
|
+
- Tests (coverage for new code)
|
|
358
|
+
|
|
359
|
+
**Constructive Feedback:**
|
|
360
|
+
```
|
|
361
|
+
# Good review comment
|
|
362
|
+
"This could be vulnerable to SQL injection. Consider using parameterized queries:
|
|
363
|
+
`db.query('SELECT * FROM users WHERE id = $1', [userId])`"
|
|
364
|
+
|
|
365
|
+
# Bad review comment
|
|
366
|
+
"This is wrong. Fix it."
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
## Mindset Checklist
|
|
370
|
+
|
|
371
|
+
- [ ] Think in systems (understand dependencies)
|
|
372
|
+
- [ ] Analyze trade-offs (CAP, performance vs maintainability)
|
|
373
|
+
- [ ] Design for failure (circuit breakers, retries)
|
|
374
|
+
- [ ] Apply SOLID principles
|
|
375
|
+
- [ ] Consider edge cases (null, empty, boundaries)
|
|
376
|
+
- [ ] Write tests first (TDD/BDD)
|
|
377
|
+
- [ ] Log with context (structured logging)
|
|
378
|
+
- [ ] Design APIs as products (versioning, docs)
|
|
379
|
+
- [ ] Plan database schema evolution
|
|
380
|
+
- [ ] Give constructive code reviews
|
|
381
|
+
|
|
382
|
+
## Resources
|
|
383
|
+
|
|
384
|
+
- **Domain-Driven Design:** https://martinfowler.com/bliki/DomainDrivenDesign.html
|
|
385
|
+
- **CAP Theorem:** https://en.wikipedia.org/wiki/CAP_theorem
|
|
386
|
+
- **SOLID Principles:** https://en.wikipedia.org/wiki/SOLID
|
|
387
|
+
- **Resilience Patterns:** https://docs.microsoft.com/en-us/azure/architecture/patterns/
|