SShortSingh.
Back to feed

How CogniPrep built a scalable content cluster by keeping copy out of components

0
·12 views

CogniPrep, a candidate prep platform, had two product pages — /interview and /assessment-centre-practice — with no supporting content cluster, internal links, or search visibility. To fix this, the team built a structured content architecture with a clear rule: shared components may own markup, mobile behaviour, and structured data, but never the copy a visitor reads. All user-facing text is written at the page level, preventing the common failure where components accumulate variant props and default headings until no one can trace where a paragraph originates. A central metadata registry drives hub cards, sitemaps, and sibling navigation, while a single utility function generates consistent Next.js metadata across every guide in the cluster. The result is a system where adding a new guide requires only one registry entry and one folder, with build-time errors catching omissions before they reach production.

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
ProgrammingHacker News ·

Chip stocks slump as Wall Street heads for worst post-midterm day since 1896

Shares of semiconductor companies sank sharply in a broad market sell-off. Major U.S. indexes were on track for their steepest decline following a midterm election since 1896. The source article attributes the drop largely to weakness in chip stocks. The source material provided here contains only a link and discussion metadata, so the specific causes and figures could not be verified.

0
ProgrammingDEV Community ·

morluto/rea Automates Binary and API Reverse Engineering With Agent-Driven Analysis

The morluto/rea project is an agent-driven orchestration tool meant to speed up reverse engineering of closed-source binaries and undocumented APIs, which typically demands manual static analysis and trial-and-error. Its three harnesses cover binary analysis via a Ghidra wrapper, live API fuzzing that rebuilds OpenAPI 3.1 specs from network traffic, and an LLM-augmented pattern matcher for contextual reasoning. The author reports practical issues, including Ghidra running out of memory on large stripped Rust binaries, which was worked around by chunking analysis and caching p-code in Redis. Browser process zombies from unbounded parallelism were fixed by capping concurrency at three using p-limit. Because agent output is unstructured, the author also added Zod schemas to validate reconstructed API specs at runtime.

0
ProgrammingDEV Community ·

Cómo crear un bot de Telegram en Python que solo responda a su propietario

Un bot de Telegram puede servir de mando a distancia para un script o un agente de IA en tu propia máquina, sin app propia ni servidor público. Como cualquiera puede escribirle, el artículo propone un diseño de emparejamiento: un código aleatorio de un solo uso que caduca a los 10 minutos y se vincula al ID numérico del remitente. Para recibir mensajes sin exponer puertos ni certificados se usa long polling con getUpdates, y el autor explica que el timeout HTTP debe superar la espera del long poll. Según sus pruebas locales, este enfoque evita miles de peticiones inútiles frente a un sondeo corto, aunque el error de una línea que disparó las peticiones se presenta como advertencia. El texto incluye una implementación de unas 70 líneas de Python con la biblioteca estándar.

0
ProgrammingDEV Community ·

How to Organize AI Prompts in Text Files and Refine Them Over Time

Rather than leaving useful AI prompts buried in chat history, the article recommends saving a dedicated text file for each recurring task. History is sorted only by time, mixes working and failed versions, and loses refinements, so it works as a record rather than a reusable asset. Each prompt file is suggested to cover its purpose, context, instructions, things to avoid, and an example of good output. The author advises separating context and don'ts from the instructions so fixes are easier to target when results fall short. The piece also compares storage options such as plain files, note-taking apps, AI tool custom instructions and text expanders, suggesting text files as the master copy.