SShortSingh.
Back to feed

Dev builds browser-based 3D RTS in plain JavaScript, shares key lessons learned

0
·1 views

A solo developer released Singularity Rush, a free browser-based real-time strategy game built with roughly 6,700 lines of plain JavaScript and three.js, using no framework or bundler. The game simulates four AI labs competing to train an advanced model, with units mining data, generating compute, and sabotaging rivals. The developer kept the game simulation entirely separate from the rendering layer, enabling automated AI-vs-AI testing in CI and deterministic replays via a seeded random number generator. A post-launch surprise revealed that CDN caching overrode origin headers, causing mismatched JavaScript module versions for returning players, which was fixed by hashing filenames and using immutable URLs in production. The developer noted that while the no-build-step approach worked well during development, production deployment required additional tooling to handle caching and asset versioning reliably.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

DEV Community Members Share Weekly Goals, Projects, and Event Plans in Thread #198

DEV Community's recurring weekly goals thread, now in its 198th edition, invited developers to share what they are building, learning, and attending that week. Participants listed objectives ranging from job searching and networking to working on side projects and learning GitHub Copilot. Several community events were on the agenda, including Virtual Coffee on Thursdays and a Dallas Software Developers meetup. One contributor also prepared for an art show, facing a last-minute printer ink issue that was resolved by printing photos at Walgreens instead. The thread serves as a peer accountability space where members also report back on which goals they completed or missed.

0
ProgrammingDEV Community ·

Hindsight Tool Uses 'Failure DNA' to Spot Recurring Patterns in Past Incidents

A developer has built a tool called Hindsight that treats historical software incidents as engineering memory rather than isolated tickets. The tool introduces the concept of 'Failure DNA,' which identifies recurring root-cause patterns shared across multiple past incidents. Hindsight stores incidents in a SQLite database and uses a pattern library to track how often each root cause appears and which modules it affects. When a new issue is reported, the tool applies TF-IDF vectorization and cosine similarity to match it against historical incidents and surface the underlying failure pattern. The goal is not merely to find a similar old ticket but to help developers recognize repeated systemic failures before they escalate further.

0
ProgrammingDEV Community ·

Why AI Governance Belongs in Your Gateway, Not Your Policy Docs

Most teams enforce AI governance at the application level, leading to inconsistent PII redaction, fragmented logs, and untracked provider keys across services. This fragmented approach fails to provide a unified, auditable record of every model call — a gap that widens as organizations deploy more LLM-powered features and autonomous agents. An AI gateway addresses this by sitting between all applications and model providers, enforcing policies and logging every request in one place regardless of which team or SDK originated it. Developers can redirect existing OpenAI-compatible clients to a gateway with minimal code changes, while routing, credentials, and compliance rules are managed centrally. Centralizing governance as infrastructure — rather than per-app code — makes it possible to answer cross-cutting audit questions and enforce consistent controls at scale.

0
ProgrammingDEV Community ·

ISO 42001 Explained: What AI Governance Standard Demands from Engineering Teams

ISO/IEC 42001, published by ISO in December 2023, is a voluntary, certifiable international standard for managing AI systems within organizations. Unlike the EU AI Act, which is law with penalties, or SOC 2, which attests to security controls, ISO 42001 focuses on whether a company's AI governance processes are sound. Certification occurs in two stages: a document review of policies and risk registers, followed by an audit where teams must demonstrate controls actually operated as described. For engineering teams, the standard requires traceable evidence across the AI lifecycle, including data sourcing, impact assessments, and supplier responsibilities. Adoption is still early globally, but AI vendors selling to enterprises are already encountering it in security questionnaires, making early familiarity worthwhile.