# prevent

Published articles for prevent.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Prevent cognitive debt by manually retyping LLM-generated code

DevFeed: [Prevent cognitive debt by manually retyping LLM-generated code](<https://devfeed.tech/articles/prevent-cognitive-debt-by-manually-retyping-llm-generated-code-33287.md>)

Original publisher: [Read original article](<https://freek.dev/3173-prevent-cognitive-debt-by-manually-retyping-llm-generated-code>)

Author: Freek Van der Herten (freek@spatie.be)

Published: 2026-08-04T12:56:26Z

Content type: opinion

Language: en

Sources: [freek.dev - all blogposts](<https://devfeed.tech/sources/freek-dev-all-blogposts.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [code](<https://devfeed.tech/tags/code.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [cognitive-load](<https://devfeed.tech/tags/cognitive-load.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [llm](<https://devfeed.tech/tags/llm.md>), [model](<https://devfeed.tech/tags/model.md>), [practical](<https://devfeed.tech/tags/practical.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [understand](<https://devfeed.tech/tags/understand.md>)

### AI overview

Ankur Sethi argues that manually retyping code generated by large language models can help developers understand the code, identify poor suggestions, and maintain a strong mental model of their codebase, despite slowing development.

### Source excerpt

Ankur Sethi argues that manually retyping LLM-generated code is a practical way to avoid cognitive debt. It slows you down, but helps you understand the code, catch bad suggestions, and keep a strong mental model of your codebase. Read more

## How MIT students are helping to prevent cyberattacks

DevFeed: [How MIT students are helping to prevent cyberattacks](<https://devfeed.tech/articles/how-mit-students-are-helping-to-prevent-cyberattacks-37965.md>)

Original publisher: [Read original article](<https://news.mit.edu/2026/mit-cybersecurity-clinic-preventing-cyberattacks-0713>)

Author: Nicole Estvanik Taylor | Department of Urban Studies and Planning

Published: 2026-07-13T19:10:00Z

Content type: article

Language: en

Sources: [MIT AI News](<https://devfeed.tech/sources/mit-ai-news.md>)

Topics: [Cybersecurity](<https://devfeed.tech/topics/cybersecurity.md>), [Security & Privacy](<https://devfeed.tech/topics/security-privacy.md>), [ransomware](<https://devfeed.tech/topics/ransomware.md>), [Business Security](<https://devfeed.tech/topics/business-security.md>)

Tags: [ai-and-security](<https://devfeed.tech/tags/ai-and-security.md>), [ai-in-cyber-crime](<https://devfeed.tech/tags/ai-in-cyber-crime.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [business-and-management](<https://devfeed.tech/tags/business-and-management.md>), [classes-and-programs](<https://devfeed.tech/tags/classes-and-programs.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [computer-science-and-technology](<https://devfeed.tech/tags/computer-science-and-technology.md>), [cyber-attacks](<https://devfeed.tech/tags/cyber-attacks.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [government](<https://devfeed.tech/tags/government.md>), [health-care](<https://devfeed.tech/tags/health-care.md>), [jungwoo-chun](<https://devfeed.tech/tags/jungwoo-chun.md>), [lawrence-susskind](<https://devfeed.tech/tags/lawrence-susskind.md>), [local](<https://devfeed.tech/tags/local.md>), [massive-open-online-courses-moocs](<https://devfeed.tech/tags/massive-open-online-courses-moocs.md>), [mit-class-11-074-11-274-cybersecurity-clinic](<https://devfeed.tech/tags/mit-class-11-074-11-274-cybersecurity-clinic.md>), [mit-cybersecurity-clinic](<https://devfeed.tech/tags/mit-cybersecurity-clinic.md>), [mit-dusp](<https://devfeed.tech/tags/mit-dusp.md>), [mitx](<https://devfeed.tech/tags/mitx.md>), [organizations](<https://devfeed.tech/tags/organizations.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [public-sector](<https://devfeed.tech/tags/public-sector.md>), [ransomware-attacks](<https://devfeed.tech/tags/ransomware-attacks.md>), [school-of-architecture-and-planning](<https://devfeed.tech/tags/school-of-architecture-and-planning.md>), [software](<https://devfeed.tech/tags/software.md>), [technology-and-society](<https://devfeed.tech/tags/technology-and-society.md>), [training](<https://devfeed.tech/tags/training.md>), [urban-studies-and-planning](<https://devfeed.tech/tags/urban-studies-and-planning.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

MIT's Cybersecurity Clinic trains students to assess cyberattack vulnerabilities and provide free, confidential security assessments to municipalities, health-care organizations, and other at-risk communities.

### Source excerpt

Students from the MIT Cybersecurity Clinic help local governments and other vulnerable organizations defend against digital threats.

## How to break the cycle of firefighting and build engineering excellence

DevFeed: [How to break the cycle of firefighting and build engineering excellence](<https://devfeed.tech/articles/how-to-break-the-cycle-of-firefighting-and-build-engineering-excellence-35231.md>)

Original publisher: [Read original article](<https://jes.al/2025/01/how-break-cycle-of-firefighting/>)

Author: jesalg

Published: 2025-01-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jesal Gadhia](<https://devfeed.tech/sources/jesal-gadhia.md>)

Topics: [Development](<https://devfeed.tech/topics/development.md>), [systems](<https://devfeed.tech/topics/systems.md>), [reactive](<https://devfeed.tech/topics/reactive.md>)

Tags: [career](<https://devfeed.tech/tags/career.md>), [development](<https://devfeed.tech/tags/development.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [engineering-excellence](<https://devfeed.tech/tags/engineering-excellence.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [leadership](<https://devfeed.tech/tags/leadership.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [systems](<https://devfeed.tech/tags/systems.md>)

### AI overview

This article explains how engineering leaders can break out of reactive firefighting by using systems thinking. It introduces the iceberg model, distinguishing visible events from recurring patterns and deeper causes, and argues that identifying persistent patterns can support more proactive engineering practices.

### Source excerpt

Exercise better foresight by identifying patterns, pinpointing what makes them persist, and understanding what could prevent it in the future

## Scrollbar width custom event

DevFeed: [Scrollbar width custom event](<https://devfeed.tech/articles/scrollbar-width-custom-event-37346.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/scrollbar-size-observer/>)

Author: Stanko

Published: 2023-06-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [browser](<https://devfeed.tech/topics/browser.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [code](<https://devfeed.tech/tags/code.md>), [css](<https://devfeed.tech/tags/css.md>), [demo](<https://devfeed.tech/tags/demo.md>), [developers](<https://devfeed.tech/tags/developers.md>), [example](<https://devfeed.tech/tags/example.md>), [examples](<https://devfeed.tech/tags/examples.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [layout](<https://devfeed.tech/tags/layout.md>), [live](<https://devfeed.tech/tags/live.md>), [load](<https://devfeed.tech/tags/load.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [stack-overflow](<https://devfeed.tech/tags/stack-overflow.md>), [value](<https://devfeed.tech/tags/value.md>), [variable](<https://devfeed.tech/tags/variable.md>)

### AI overview

This tutorial explains scrollbar-related layout issues and shows how to create a custom JavaScript event that detects changes in scrollbar width using ResizeObserver. It also covers initializing a CSS variable early to reduce layout shift and briefly mentions a CSS alternative.

### Source excerpt

Some operating systems and browsers are not showing scrollbars by default. That often results in developers forgetting about these pesky gray bars and the issues they can cause. I'll give you two quick examples: When setting overflow: hidden on the body element, if there was a scrollbar visible, content will jump a little as it now has more space. If you ever implemented scroll locking for modals, you've probably encountered this issue. Another thing is that width: 100vw and width: 100% on the body element don't match if there is a scrollbar visible: 100vw is the width of the viewport including the scrollbar. 100% is the width of the viewport excluding the scrollbar. This becomes obvious if you have a fixed element like a header. It will be a little bit wider than the rest of the content when scrollbar is visible. I'm sure there are more issues, but these are the two I remembered on top of my head. Anyhow, let's see how to solve this. JavaScript solution # Ideally we would like to have a scrollbar-width event. It doesn't exist, so we'll have to create a custom event ourselves, and trigger it when scrollbar width changes. To catch the width changing, we can't use the resize event because viewport size don't change when scrollbar is toggled. However, if we set the ResizeObserver on the html element, it will trigger when the scrollbar is toggled. Code # After setting the observer we need to fire our custom event when width has changed. Code looks something like this: const initScrollbarWidthEvent = () => { // Custom event const scrollbarEvent = new Event("scrollbar-width"); // Initial state let currentWidth = window.innerWidth - document.documentElement.clientWidth; const observer = new ResizeObserver(() => { const newWidth = window.innerWidth - document.documentElement.clientWidth; // Check if the scrollbar width has changed and trigger the custom event if (newWidth !== currentWidth) { // Update event data // We are passing both previous and current width, // because

## Speculative Execution Threat Model

DevFeed: [Speculative Execution Threat Model](<https://devfeed.tech/articles/speculative-execution-threat-model-36981.md>)

Original publisher: [Read original article](<https://shostack.org/blog/speculative-execution-threat-model/>)

Author: Adam

Published: 2018-03-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Shostack & Friends Blog](<https://devfeed.tech/sources/shostack-friends-blog.md>)

Topics: [execution](<https://devfeed.tech/topics/execution.md>), [side channel](<https://devfeed.tech/topics/side-channel.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [context](<https://devfeed.tech/topics/context.md>)

Tags: [context](<https://devfeed.tech/tags/context.md>), [disclosure](<https://devfeed.tech/tags/disclosure.md>), [execution](<https://devfeed.tech/tags/execution.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [side-channel](<https://devfeed.tech/tags/side-channel.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

A commentary on Matt Miller's threat model for speculative execution side-channel hardware vulnerabilities. It describes primitives such as conditional and indirect branch misprediction and exception delivery or deferral, along with disclosure gadgets and mitigation models.

### Source excerpt

[no description provided]

## Preventing Google from Indexing Staging Sites

DevFeed: [Preventing Google from Indexing Staging Sites](<https://devfeed.tech/articles/preventing-google-from-indexing-staging-sites-31289.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/prevent-google-from-indexing-staging-sites>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-02-02T09:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>), [Crawler](<https://devfeed.tech/topics/crawler.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [config](<https://devfeed.tech/tags/config.md>), [diluting](<https://devfeed.tech/tags/diluting.md>), [environments](<https://devfeed.tech/tags/environments.md>), [google](<https://devfeed.tech/tags/google.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [insights](<https://devfeed.tech/tags/insights.md>), [multi-environment](<https://devfeed.tech/tags/multi-environment.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [robots-txt](<https://devfeed.tech/tags/robots-txt.md>), [seo](<https://devfeed.tech/tags/seo.md>), [seomatic](<https://devfeed.tech/tags/seomatic.md>), [sites](<https://devfeed.tech/tags/sites.md>), [staging](<https://devfeed.tech/tags/staging.md>), [value](<https://devfeed.tech/tags/value.md>)

### AI overview

This tutorial explains how to prevent Google and other search engines from indexing staging sites. It presents robots.txt and SEOmatic as an alternative to password protection, allowing external performance and SEO testing while avoiding duplicate-content concerns.

### Source excerpt

SEOmatic and a multi-environment config can prevent Google from indexing your staging sites, and diluting your SEO value