Refactor this function because you are deploying to mobile devices with limited memory (512MB RAM).
The trade-off that matters most is memory usage over speed.
Many developers will maintain this code. Keep it readable.
Refactor this function because you are deploying to mobile devices with limited memory (512MB RAM).
The trade-off that matters most is memory usage over speed.
Many developers will maintain this code. Keep it readable.
Refactor this function
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Abriendo Obsidian...</title> | |
| <script> | |
| const params = new URLSearchParams(window.location.search); | |
| const vault = params.get('vault'); | |
| const file = params.get('file'); | |
| let uri = `obsidian://open?vault=${vault}`; |
I have a folder with multiple JSON files. Each file represents one month of orders.
Each JSON has this structure:
{ "month": "2024-07", "orders": [ { "order_id": "ORD-001",
You are a code reviewer for a legacy PHP project... [context follows]
You are a code reviewer. Here is a lot of context about the project, the team, the coding standards, the history of the codebase, the preferred libraries...
[100 lines later] ...and by the way, never suggest using any deprecated APIs. Also, always respond in Swedish.
Fixed PaymentProcessor null check with Null Object pattern
AI Context Tool : Claude Code (claude-sonnet-4-20250514) Skill : /skills/php-clean-code.md §3 Rules : /AGENTS.md#error-handling Workflow: /workflows/refactor-feature.md Prompt : "Refactor PaymentProcessor using the Null Object pattern instead of null checks. Follow AGENTS.md conventions."