# guards

Published articles for guards.

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

## AI Coding Tip 022 - Give AI a Harness to Work With

DevFeed: [AI Coding Tip 022 - Give AI a Harness to Work With](<https://devfeed.tech/articles/ai-coding-tip-022-give-ai-a-harness-to-work-with-18212.md>)

Original publisher: [Read original article](<https://maximilianocontieri.com/ai-coding-tip-022-give-ai-a-harness-to-work-with>)

Author: Maxi Contieri

Published: 2026-05-31T22:21:20Z

Content type: tutorial

Language: en

Sources: [Maximiliano Contieri - Software Design](<https://devfeed.tech/sources/maximiliano-contieri-software-design.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [coding](<https://devfeed.tech/topics/coding.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [coding](<https://devfeed.tech/tags/coding.md>), [guards](<https://devfeed.tech/tags/guards.md>), [harness](<https://devfeed.tech/tags/harness.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

This tutorial explains how to give AI coding tools a structured harness before prompting. It recommends project rules, clean commit checkpoints, explicit test requirements, read-only planning, scoped instruction files, documented AI context, and protected tests to make changes safer, more consistent, and easier to review or revert.

### Source excerpt

TL;DR: Install your harness before prompting: the structure you set up first is what turns an impulsive AI into a safe, steerable collaborator. Common Mistake ❌ You open a fresh chat and type a bare

## Explore Angular Router's runGuardsAndResolvers

DevFeed: [Explore Angular Router's runGuardsAndResolvers](<https://devfeed.tech/articles/explore-angular-router-s-runguardsandresolvers-21395.md>)

Original publisher: [Read original article](<https://juri.dev/blog/router-improvements-angular-7_2/>)

Published: 2019-01-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [guards](<https://devfeed.tech/tags/guards.md>), [resolvers](<https://devfeed.tech/tags/resolvers.md>), [route](<https://devfeed.tech/tags/route.md>), [router](<https://devfeed.tech/tags/router.md>), [state](<https://devfeed.tech/tags/state.md>)

### AI overview

This tutorial explains Angular Router's runGuardsAndResolvers configuration and the options introduced in Angular 7.1 and 7.2. It describes when route guards and resolvers run based on path parameters, query parameters, URL changes, and a custom function.

### Source excerpt

Lorem ipsum dolor sit amet

## Learn Angular Router for Real-World Applications

DevFeed: [Learn Angular Router for Real-World Applications](<https://devfeed.tech/articles/learn-angular-router-for-real-world-applications-21337.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2018/12/egghead-learn-router-real-world-apps/>)

Published: 2018-12-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [guards](<https://devfeed.tech/tags/guards.md>), [lazy-loading](<https://devfeed.tech/tags/lazy-loading.md>), [performance-tuning](<https://devfeed.tech/tags/performance-tuning.md>), [router](<https://devfeed.tech/tags/router.md>), [rxjs](<https://devfeed.tech/tags/rxjs.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

An announcement for a two-part Egghead video course that teaches the Angular router, beginning with an approximately 60-minute introduction. The course covers routing concepts, route configuration, child routes, routing modules, URL segments, RxJS Observables, route guards, and lazy loading.

### Source excerpt

Lorem ipsum dolor sit amet

## Install on Home Screen

DevFeed: [Install on Home Screen](<https://devfeed.tech/articles/install-on-home-screen-19331.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/install-home-screen/>)

Author: Shai Almog

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

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [PWA](<https://devfeed.tech/topics/pwa.md>), [Web](<https://devfeed.tech/topics/web.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [guards](<https://devfeed.tech/tags/guards.md>), [hints](<https://devfeed.tech/tags/hints.md>), [install](<https://devfeed.tech/tags/install.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [pwa](<https://devfeed.tech/tags/pwa.md>), [screen](<https://devfeed.tech/tags/screen.md>), [web](<https://devfeed.tech/tags/web.md>), [web-apps](<https://devfeed.tech/tags/web-apps.md>)

### AI overview

This tutorial explains how Progressive Web Apps can be installed on a device home screen. It discusses the need for explicit browser installation prompts because desktop, mobile, and web platforms behave differently, and notes that the prompt is shown only once to avoid duplicate prompts.

### Source excerpt

We talked about our support for Progressive Web Apps before. We added quite a few enhancements since that support was introduced and it's a pretty powerful feature. Personally I consider it a killer feature, even if Google decides to ban your account you can still distribute your app. One of the cool features is the seamlessness. Most of the functionality "just works". However, there are some cases where we need explicit hints due to the different behavior of desktop/mobile and web.

## Better Redirects in Angular Route Guards

DevFeed: [Better Redirects in Angular Route Guards](<https://devfeed.tech/articles/better-redirects-in-angular-route-guards-21335.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2018/11/better-route-guard-redirects/>)

Published: 2018-11-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [User experience (UX)](<https://devfeed.tech/topics/ux.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [async](<https://devfeed.tech/tags/async.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [bugfixes](<https://devfeed.tech/tags/bugfixes.md>), [data-structure](<https://devfeed.tech/tags/data-structure.md>), [features](<https://devfeed.tech/tags/features.md>), [guards](<https://devfeed.tech/tags/guards.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [object](<https://devfeed.tech/tags/object.md>), [route](<https://devfeed.tech/tags/route.md>), [router](<https://devfeed.tech/tags/router.md>), [state](<https://devfeed.tech/tags/state.md>), [view](<https://devfeed.tech/tags/view.md>)

### AI overview

This tutorial explains Angular 7.1 route guard improvements, focusing on returning an UrlTree to redirect users when a route cannot be activated. It also distinguishes client-side route guards as a UX feature from server-side security checks.

### Source excerpt

Lorem ipsum dolor sit amet

## Intentional Optionality

DevFeed: [Intentional Optionality](<https://devfeed.tech/articles/intentional-optionality-25807.md>)

Original publisher: [Read original article](<https://www.steveonstuff.com/2018/09/13/intentional-optionality>)

Author: Steve Barnegren

Published: 2018-09-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Steve Barnegren](<https://devfeed.tech/sources/steve-barnegren.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [guards](<https://devfeed.tech/tags/guards.md>), [let](<https://devfeed.tech/tags/let.md>), [optional](<https://devfeed.tech/tags/optional.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

A Swift article examines intentional use of optionality. It argues that while non-optional types are usually preferable, optional values can sometimes make code easier to read and understand, including when handling leaderboard entries and conditional menu items.

### Source excerpt

When I first started writing Swift, I felt like Optionals were a constant pain point. Everything seemed to end up being Optional, resulting in me littering if lets and guards around my code, and generally just making a horrible mess of things.

## Foobar, Blossoms, and Isomorphism

DevFeed: [Foobar, Blossoms, and Isomorphism](<https://devfeed.tech/articles/foobar-blossoms-and-isomorphism-22352.md>)

Original publisher: [Read original article](<https://yifan.lu/2017/09/13/foobar-blossoms-and-isomorphism/>)

Author: yifanlu

Published: 2017-09-13T07:00:00Z

Content type: tutorial

Language: en

Sources: [Yifan Lu](<https://devfeed.tech/sources/yifan-lu.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>), [Google](<https://devfeed.tech/topics/google.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [foobar](<https://devfeed.tech/tags/foobar.md>), [google](<https://devfeed.tech/tags/google.md>), [guards](<https://devfeed.tech/tags/guards.md>), [latex](<https://devfeed.tech/tags/latex.md>), [math](<https://devfeed.tech/tags/math.md>), [number-theory](<https://devfeed.tech/tags/number-theory.md>), [programming](<https://devfeed.tech/tags/programming.md>), [technical](<https://devfeed.tech/tags/technical.md>)

### AI overview

A detailed solution to Google Foobar's "Distract the Guards" problem. The article models when two guards enter an infinite loop and explains how maximum matching can pair the greatest possible number of guards into such loops.

### Source excerpt

A friend recently invited me to participate in Foobar, Google's recruiting tool that lets you solve interesting (and sometimes not-so-interesting) programming problems. This particular problem, titled "Distract the Guards" was very fun to solve but I found no good write-ups about it online! Solutions exist but it is rather hard to understand how the author came upon the solution. I thought I might take a shot and go into detail into how I approached it-as well as give proofs of correctness as needed.