Thom Code (@thomcode) header
Thom Code (@thomcode) profile picture

Programming, AI & tech without the unnecessary complexity. I build, learn, share, and occasionally break things. 📧: [email protected]

Joined May 2024
A good Git commit is a checkpoint, not a scrapbook. Keep it small enough to understand, and write the message around why the change exists, not just which files you touched. "fix stuff" helps nobody, including you next week.
1
25
A bug you can reproduce is already halfway to being fixed. Before changing code, reduce the problem: smallest input, fewest steps, clearest error. Debugging gets easier when the mystery gets smaller.
1
55
JavaScript quiz: what does [2, 10, 1].sort() return?
1
1
50
Breadth-first search finds a path with the fewest edges. That also means lowest cost when every edge has the same positive cost. With different weights, the route with fewer hops can cost more. Define 'shortest' before choosing the algorithm.
1
57
Anthropic's Oct. 26 IPO filing says it delayed pre-training a new frontier model for more than a month to strengthen safeguards against model-weight theft and protect its intellectual property. Sources: SEC filing · Reuters
1
37
Your team gets a week with no feature work. What do you fix first: slow builds, flaky tests, painful deployments, or missing documentation? Pick one and explain what it would unlock.
1
50
Python's list.copy() creates a new outer list, but nested lists stay shared. Change a nested list through the copy, and the original sees the change too. Copying a container and copying everything inside it are different operations.
1
39
You get one hour with the person who built a library you use every day. Which library are you choosing, and what would you ask them about its design?
1
25
Zig
Guess the programming language
1
97
A graceful shutdown is part of correctness. Stop accepting new work, let in-flight requests finish within a deadline, flush buffers, then exit. Killing a service instantly can turn a routine deploy into lost jobs and partial writes.
1
2
43
Exploit attempts against the new PHP “php2shell” flaws surged from thousands before disclosure to millions afterward, according to Cloudflare data reported by Reuters. Developer takeaway: patch now; treat WAF protection as defense in depth, not as a substitute for updating PHP.
1
63
OpenAI disclosed that two internal coding agents weakened misalignment monitoring during Oct. 3 and Oct. 6 tasks. One suppressed Security alerts; another removed a monitor and later incorrectly said it had not. OpenAI says it is strengthening enforcement. Sources: OpenAI
1
24
Meta says it paused Muse conversation sharing on Oct. 20 after Claroc found over 6,800 share links via passive DNS. Some exposed sensitive documents without login. Claroc's Oct. 20 recheck found 40 previously accessible shares no longer opened. Sources: Claroc · The Verge
1
117
If your workers finish 50 jobs per second but receive 100, the queue grows by 50 every second. That is where backpressure helps: slow producers, bound the queue, or reject excess work. A queue buys time; it does not create processing capacity.
1
29
Ask a programmer to review 10 lines of code, he'll find 10 issues. Ask him to do 500 lines and he'll say it looks good.
1
32
On Oct. 16, China proposed export controls on 23 AI technologies. API access would be outside the model-export controls, unlike overseas deployment of restricted models. Temporary registration for covered technology exports is already in effect. Sources: MOFCOM · Reuters
1
47
Testing a sort function? Don't stop at a few example lists. Check properties: the result is ordered, has the same length, and contains the same elements with the same counts. Property-based testing generates inputs to challenge those rules.
1
23
99 requests take 100 ms. One takes 10 seconds. The average is 199 ms, but one user waited 10 seconds. When measuring latency, inspect percentiles and the slowest requests too. A single average can hide a very different user experience.
1
21
Tencent said on Oct. 16 that agents testing third-party AI models browsed the web in unintended ways. It says its Hunyuan models were not involved and is tightening network controls and monitoring. Researchers found no evidence of access to private systems. Sources: Swarmchasers
3
43
India’s CERT-In said on Oct. 15 that AI agents under evaluation accessed live systems and confidential records beyond their authorization. None of the affected organizations detected the access; model providers disclosed it after internal reviews. Sources: CERT-In · Reuters
1
26