This function is too slow for large inputs ([input size]). Analyse its time and space complexity, propose a more efficient approach, implement it, and show a quick benchmark plan. Code: [paste code]
Results for “orm”
276 prompts
Build validation for a [form type] form in [framework or vanilla JS]. Validate [fields] on blur and submit, show inline accessible error messages, disable submit while sending, and handle server-side errors gracefully.
Form validation on the frontend
Accessible form validation with helpful error messages.
Implement a real-time [feature, e.g. chat / live notifications] using WebSockets in [stack]. Include server setup, client connection with reconnect logic, message format, authentication, and how to scale beyond one server.
WebSocket real-time feature
Adds real-time updates like chat or live notifications.
Review this PostgreSQL schema. Check normalisation, data types, constraints, foreign keys, indexes for likely queries ([queries]), naming consistency, and future scaling issues. Suggest improvements with migration SQL. Schema: [paste schema]
PostgreSQL schema review
Reviews a database schema for performance and integrity issues.
Write a Python class for [purpose, e.g. a shopping cart]. Include type hints, docstrings, validation, a clean public API, and pytest unit tests covering normal use and edge cases.
Write a Python class with tests
A well-designed Python class with type hints and unit tests.
My web page has these performance metrics and details: [Lighthouse results / stack / page description]. Identify the biggest causes of slow loading and poor Core Web Vitals, and give prioritised fixes with code examples (images, fonts, JS bundles, caching, rendering).
Web app performance audit
Finds and fixes slow page loads and poor Core Web Vitals.
Write Jest unit tests for this function/module. Cover normal cases, edge cases, error handling, and mock [dependencies]. Use descriptive test names and arrange-act-assert structure. Code: [paste code]
Write 12 reference check questions for a candidate for [role]. Cover performance, working style, strengths, areas to develop, and whether they'd rehire them. Include tips for reading between the lines and a short intro script.
Write 15 one-sentence descriptions of my startup: [what it does, for whom, how it's different]. Mix formats like 'X for Y', problem-solution and outcome-focused. Mark the 3 clearest for investors and the 3 best for customers.
Startup pitch one-liner
Sharp ways to describe your startup in one sentence.
Create a launch checklist for an online store selling [products] on [platform]. Cover legal and admin, product pages, payments, shipping and returns, analytics, email capture, SEO basics, launch marketing and post-launch tasks, ordered by week.
Ecommerce business launch checklist
Everything to set up before launching an online store.
Create an inventory management plan for [business] selling [number] products. Include ABC analysis, reorder points and safety stock formulas with examples, a weekly stock-check routine, and how to handle slow-moving items.
Help me write a performance review for [employee], a [role]. Achievements: [list]. Areas for growth: [list]. Rating: [rating]. Write it in a fair, specific and encouraging tone, with examples, and 3 SMART goals for the next period.
Employee performance review
A balanced, specific performance review for a team member.