NPCoding Cossack (@CodingCossack) profile picture

learning

Joined November 2022
Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)Photo by NPCoding Cossack (@CodingCossack)
Replying to @illyism
Astro / tanstack is all most need
1
1
525
02. Authorisation + tenant isolation Audit server side permission, ownership and tenant checks on every access path, including exports, background jobs, admin tools and direct file access. Find ways a caller can read or change another user's data or invoke restricted actions.
Security & access control prompts 01. Authentication + sessions Audit authentication and session lifecycles, covering login, refresh, expiry, revocation, logout and account recovery. Find routes or transitions where identity is trusted wrongly, or where access survives after it should have ended.
34
02. Concurrent writes + races Audit updates to shared state for check then act races, lost updates, double allocation and stale overwrites. For each one, write out a concrete interleaving that breaks an invariant. Cover interactions between users, tabs and workers.
State, concurrency & correctness prompts 01. Explicit + implicit state machines Find the app's state machines, both the explicit ones and the ones implied by status fields and flags. Document the states, the invariants and the transition tables, starting with the workflows that matter most. Show with evidence which invalid states or transitions the code can reach, including through retries and concurrency.
37
03. Unnecessary rendering Profile the important interactions for needless rerenders, overly broad subscriptions, unstable identities and repeated derived calculations. Find the expensive update paths first, then decide whether memoisation or a state change is the right fix.
02. Initial loading & hydration Audit the path from navigation to useful, interactive content. Find render-blocking resources, hydration problems, work done on both server and client, and loading dependencies that delay the main task. Measure LCP and INP on a throttled mobile profile.
59
03. Payload efficiency Audit request and response sizes. Look for unneeded fields, repeated payloads, whole object updates for small edits, missing compression and buffering where streaming would do. Report the bandwidth and parsing cost where it is large enough to matter.
02. Redundant requests Audit client network activity for duplicate fetches, refetch loops, polling that is more frequent than needed and identical requests fired by several components. For each one, give the trigger, how often it happens and what it costs the user.
1
84
04. Background jobs + queues Audit queues, scheduled jobs and workers for lost or stuck work, overlapping runs, wrong acknowledgements, poison messages and unsafe restarts. Trace what happens when a job is interrupted, both before and after its result is durably saved.
03. Compute hotspots Find backend paths that parse, serialise, validate, render or transform the same data repeatedly. Measure the hotspots that matter. Before recommending optimisation, establish whether the time goes on CPU or on waiting.
59
05. Schema integrity Audit the data model for missing constraints, ambiguous types, broken relationships and combinations of values that should be impossible. Show how application code or direct writes can create inconsistent, duplicate or orphaned records.
03. Connection management Audit how database connections are opened, reused and released across all workers and instances. Compare the total connections the app can open at peak with the database limit. Look for leaks, churn, exhaustion, and code that breaks behind a transaction-mode pooler, such as prepared statements or session settings.
45
Replying to @SeraAndroid
Got shown the offer then got pulled 2 days later :(
41
Architecture, complexity & test confidence 01. Responsibility boundaries + coupling Find module or service boundaries where tight coupling, circular dependencies or hidden shared state have caused real faults or make changes disproportionately risky. Propose boundaries based on what each part is responsible for, and do not push a favourite architectural pattern.
35
Deployment, infrastructure & operations prompts 01. Configuration + environment drift Compare what the code assumes with the configuration deployed in each environment. Find wrong endpoints, inconsistent flags, missing settings and defaults that hide misconfiguration. Mark each finding as read from the repository or verified against the live environment.
57
Security & access control prompts 01. Authentication + sessions Audit authentication and session lifecycles, covering login, refresh, expiry, revocation, logout and account recovery. Find routes or transitions where identity is trusted wrongly, or where access survives after it should have ended.
1
73
State, concurrency & correctness prompts 01. Explicit + implicit state machines Find the app's state machines, both the explicit ones and the ones implied by status fields and flags. Document the states, the invariants and the transition tables, starting with the workflows that matter most. Show with evidence which invalid states or transitions the code can reach, including through retries and concurrency.
1
95
NPCoding Cossack retweeted
Putin discovering Ukraine isn’t a US Proxy about 12 years in to his war on Ukraine.
Russian President Putin: "We see that the Kyiv regime is not halting attacks on our refining capacity. By the way, despite the call and direct request of the US President not to do this, to refrain from such attacks. Kyiv's authorities do not listen to such advice. Everything continues as if nothing happened."
30
662
10
6,623
111,070
04. Transactions & contention Audit transaction boundaries and locking. Look for long held locks, external calls made inside transactions, needless serialisation and deadlock risks. Name the concurrent workloads affected and the consistency guarantees any fix must keep.
03. Connection management Audit how database connections are opened, reused and released across all workers and instances. Compare the total connections the app can open at peak with the database limit. Look for leaks, churn, exhaustion, and code that breaks behind a transaction-mode pooler, such as prepared statements or session settings.
54
02. Initial loading & hydration Audit the path from navigation to useful, interactive content. Find render-blocking resources, hydration problems, work done on both server and client, and loading dependencies that delay the main task. Measure LCP and INP on a throttled mobile profile.
Frontend performance & interactions prompts 01 JavaScript and dependency weight Audit what each important page downloads, parses and executes. Find unnecessary dependencies, duplicated code and eagerly loaded features that impose material startup costs. Base recommendations on the delivered build rather than source file size.
1
1
129
02. Redundant requests Audit client network activity for duplicate fetches, refetch loops, polling that is more frequent than needed and identical requests fired by several components. For each one, give the trigger, how often it happens and what it costs the user.
APIs, networking & integrations prompts 01 Network waterfalls Trace important user journeys end to end. Identify avoidable serial network dependencies, repeated internal HTTP hops and work unnecessarily placed on the critical path. Distinguish genuine dependencies from accidental sequencing.
1
138
03. Compute hotspots Find backend paths that parse, serialise, validate, render or transform the same data repeatedly. Measure the hotspots that matter. Before recommending optimisation, establish whether the time goes on CPU or on waiting.
Async orchestration Find independent backend work executed unnecessarily in sequence, dependent work started before prerequisites finish, unbounded parallel fan out and detached tasks whose failures or lifetime are unmanaged.
1
115
03. Connection management Audit how database connections are opened, reused and released across all workers and instances. Compare the total connections the app can open at peak with the database limit. Look for leaks, churn, exhaustion, and code that breaks behind a transaction-mode pooler, such as prepared statements or session settings.
02 Indexes and query plans Audit important queries against their actual filters, joins, ordering and data distribution. Use execution plans where safely available to identify costly scans, sorts and unsuitable indexes. Account for write and storage costs before recommending more indexes.
1
155
Frontend performance & interactions prompts 01 JavaScript and dependency weight Audit what each important page downloads, parses and executes. Find unnecessary dependencies, duplicated code and eagerly loaded features that impose material startup costs. Base recommendations on the delivered build rather than source file size.
1
141