# extend

In programming, to add features to a program, especially through hooks; plug-ins are one form of extension.

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

## Claude Code Mods: Custom Hooks to Fix My Biggest AI Coding Frustrations

DevFeed: [Claude Code Mods: Custom Hooks to Fix My Biggest AI Coding Frustrations](<https://devfeed.tech/articles/claude-code-mods-custom-hooks-to-fix-my-biggest-ai-coding-frustrations-107782.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/claude-code-mods-custom-hooks-to-fix-my-biggest-ai-coding-frustrations/>)

Author: Chien Vu Minh

Published: 2026-10-30T11:00:00Z

Content type: tutorial

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [extend](<https://devfeed.tech/topics/extend.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Vibe coding](<https://devfeed.tech/topics/vibe-coding.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Process](<https://devfeed.tech/topics/process.md>), [To-Do](<https://devfeed.tech/topics/todo.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-coding-assistants](<https://devfeed.tech/tags/ai-coding-assistants.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [api](<https://devfeed.tech/tags/api.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [aws](<https://devfeed.tech/tags/aws.md>), [base64](<https://devfeed.tech/tags/base64.md>), [bash](<https://devfeed.tech/tags/bash.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [context](<https://devfeed.tech/tags/context.md>), [custom](<https://devfeed.tech/tags/custom.md>), [developer-productivity](<https://devfeed.tech/tags/developer-productivity.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [plan](<https://devfeed.tech/tags/plan.md>), [progress](<https://devfeed.tech/tags/progress.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article describes four Claude Code mods that automate repeated workflow checks: secret-guard masks recognized `.env` values and blocks some risky commands; done-gate warns when tasks are marked complete without a passing test after code changes; plan-meter displays plan progress; and context-meter shows context usage and can request compaction. In replay tests, secret-guard's value mode blocked 2 of 369 harmless calls and stopped or redacted 10 of 12 crafted leaks, while command mode blocked 157 harmless calls and stopped 7 leaks. Neither is a security boundary. A simple mod check took 0.27 ms in the test harness and a median 0.6 ms live, compared with 55-99 ms for fresh-process settings hooks on one Windows machine. The four mods passed 135 tests on Claude Code 2.1.296. Mods run with the user's permissions, are not sandboxed, and may access files or start programs through declared API calls, so the author advises reviewing those calls before installation.

### Source excerpt

How I built four Claude Code mods to protect API keys, track plan progress, catch untested code, and monitor context usage -- with 135 passing tests and up to 100x less overhead than traditional hooks -- and why they can outperform traditional hooks. The post Claude Code Mods: Custom Hooks to Fix My Biggest AI Coding Frustrations appeared first on Towards Data Science.

## Prepare your custom plug-ins for Red Hat Developer Hub 2.1

DevFeed: [Prepare your custom plug-ins for Red Hat Developer Hub 2.1](<https://devfeed.tech/articles/prepare-your-custom-plug-ins-for-red-hat-developer-hub-2-1-91088.md>)

Original publisher: [Read original article](<https://developers.redhat.com/articles/2026/10/20/prepare-your-custom-plug-ins-red-hat-developer-hub-21>)

Author: Tomas Kral

Published: 2026-10-20T13:00:29Z

Content type: tutorial

Language: en

Sources: [Red Hat Developer](<https://devfeed.tech/sources/red-hat-developer.md>)

Topics: [Backstage](<https://devfeed.tech/topics/backstage.md>), [extend](<https://devfeed.tech/topics/extend.md>), [internal developer platform](<https://devfeed.tech/topics/internal-developer-platform.md>), [redhat](<https://devfeed.tech/topics/redhat.md>), [podman](<https://devfeed.tech/topics/podman.md>), [Release notes](<https://devfeed.tech/topics/release-notes.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [backstage](<https://devfeed.tech/tags/backstage.md>), [blueprints](<https://devfeed.tech/tags/blueprints.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [developer-productivity](<https://devfeed.tech/tags/developer-productivity.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [front-end](<https://devfeed.tech/tags/front-end.md>), [hub](<https://devfeed.tech/tags/hub.md>), [internal-developer-platform](<https://devfeed.tech/tags/internal-developer-platform.md>), [oci](<https://devfeed.tech/tags/oci.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [red-hat](<https://devfeed.tech/tags/red-hat.md>)

### AI overview

Red Hat Developer Hub 2.1 removes the legacy front-end system and Scalprum, so custom plug-ins that depend on `dynamicPlugins.frontend` mount points can fail at startup. Plugin authors should define UI through Backstage extension blueprints, publish a `./alpha` entry alongside the root export for compatibility with 1.10, and verify types and builds. Administrators move layout overrides to `app.extensions` in `app-config.yaml`; its array replaces the whole array from lower-priority configuration rather than merging entries. Plugin wrappers also leave the core image and are published as standalone OCI images. The excerpt recommends testing against the 2.1 development image with `rhdh-local` on `release-2.1`. It notes that other breaking changes exist and directs readers to release notes and migration documentation for the complete list.

### Source excerpt

Upgrading your internal developer platform shouldn't feel like navigating a minefield. Upcoming Red Hat Developer Hub release 2.1 introduces major performance and architectural updates--including upstream Backstage's new front-end system and standalone OCI plugin images--but getting there requires rethinking how your custom plug-ins are built and mounted. The post Prepare your custom plug-ins for Red Hat Developer Hub 2.1 appeared first on Red Hat Developer.

## Too Little, Too Late: Flock Admits Their Technology Needs Reforms

DevFeed: [Too Little, Too Late: Flock Admits Their Technology Needs Reforms](<https://devfeed.tech/articles/too-little-too-late-flock-admits-their-technology-needs-reforms-50655.md>)

Original publisher: [Read original article](<https://www.eff.org/deeplinks/2026/08/too-little-too-late-flock-admits-their-technology-needs-reforms>)

Author: Matthew Guariglia

Published: 2026-08-13T20:52:35Z

Content type: opinion

Language: en

Sources: [Deeplinks](<https://devfeed.tech/sources/deeplinks.md>)

Topics: [data](<https://devfeed.tech/topics/data.md>), [audit](<https://devfeed.tech/topics/audit.md>), [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [audit](<https://devfeed.tech/tags/audit.md>), [data](<https://devfeed.tech/tags/data.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [surveillance](<https://devfeed.tech/tags/surveillance.md>), [surveillance-technologies](<https://devfeed.tech/tags/surveillance-technologies.md>), [technology](<https://devfeed.tech/tags/technology.md>)

### AI overview

An opinion article examines Flock Safety's reforms to its automated license plate reader system, including shorter default data retention, offense filtering, stronger auditing, and blocking suspicious data requests. It argues that these measures do not resolve the broader privacy and abuse risks of mass surveillance.

### Source excerpt

Flock Safety, the embattled vendor of mass surveillance technology, has rolled out a handful of new reforms intended to appease the justified nationwide anger that has seen scores of towns cancel or suspend their contracts with the company for automated license plate readers (ALPRs). The reforms are a combination of long overdue changes along with some cosmetic fixes that fail to address the fundamental dangers of this technology. We should not be letting companies decide how much privacy we deserve. So, what do these reforms actually do? The most consequential is Flock's default setting of an optional 7-day retention period for ALPR data, down from its original default optional 30-day retention period. This means if police want to retain data beyond the duration of their retention setting, they need to access "Evidence Mode," i.e., when the desired data is associated with an active investigation and not just a fishing expedition. This is significant because, in at least some circumstances, Flock has previously charged its customers to extend their retention period. So, while towns can likely easily flip the switch to longer retention periods, it might come with a price tag some cities will be unwilling to pay. Flock also has two other, likely easier-to-bypass reforms. The first is offense filtering so that cities can enable other departments to access their ALPR data only if they are investigating certain crimes, e.g., murder or robbery but not immigration-related investigations. The second is supposedly beefing up their audit feature and proactively locking out officers who file suspicious requests for data. The major problem here is the fact that Flock's enhanced audit and transparency tools help to address a problem that Flock itself has created--an abusable mass surveillance system that tracks all cars all the time. In addition to these reforms, there is also a tone shift coming from Flock's CEO, Garrett Langley. Langley went from calling the DeFlock movement "t

## Bazel rule extensions

DevFeed: [Bazel rule extensions](<https://devfeed.tech/articles/bazel-rule-extensions-25413.md>)

Original publisher: [Read original article](<https://smileykeith.com/2025/10/31/bazel-rule-extensions/>)

Author: Keith Smiley

Published: 2025-10-31T17:00:00Z

Content type: article

Language: en

Sources: [Keith Smiley](<https://devfeed.tech/sources/keith-smiley.md>)

Topics: [bazel](<https://devfeed.tech/topics/bazel.md>), [Inheritance](<https://devfeed.tech/topics/inheritance.md>), [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [bazel](<https://devfeed.tech/tags/bazel.md>), [class](<https://devfeed.tech/tags/class.md>), [custom](<https://devfeed.tech/tags/custom.md>), [existing](<https://devfeed.tech/tags/existing.md>), [extend](<https://devfeed.tech/tags/extend.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [inheritance](<https://devfeed.tech/tags/inheritance.md>), [object-oriented-programming](<https://devfeed.tech/tags/object-oriented-programming.md>), [providers](<https://devfeed.tech/tags/providers.md>), [use-case](<https://devfeed.tech/tags/use-case.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>)

### AI overview

Bazel 8.0 rule extensions let a new rule inherit an existing rule, call its implementation with `ctx.super()`, then alter providers, add a transition, or attach aspects. The excerpt shows post-processing a rule's output with a sort action; normalizing macOS and Linux debug outputs into one `OutputGroupInfo` group; adding a Python version transition to `py_wheel`; and applying Apple platform transitions to Swift libraries. The Swift example requires transition attributes and can use `select()` in a macro to preserve tvOS dependencies. Limitations include restricted attribute overrides, the requirement that `parent` be a rule rather than a macro, and difficulty modifying existing actions such as adding `-ftime-trace` output.

### Source excerpt

One of Bazel's best features is being able to easily write custom rules specific to your project. This is great for many use cases, but when what you really want is to enhance the behavior of existing rules, historically your options have been limited. What you would often do is wrap the existing rule in a macro, and add some number of custom rules to try and achieve the desired effect. When really what you want is to edit the existing rule, without having to re-implement all of its functionality (or maintain a fork). With Bazel 8.0, Googlers added a few new ways to extend existing rules that can help with this use case. In this post we will look at the aptly named rule extensions feature and some practical use cases I have found for it. Basic rule extensions Rule extensions allow you to inherit the behavior of an existing rule, similar to class inheritance in object-oriented programming. Importantly you can make a few modifications to augment the behavior of the rule to your liking. Let's say you have a rule that concatenates the given srcs: def _foo_impl(ctx): output = ctx.actions.declare_file("output.txt") ctx.actions.run_shell( inputs = ctx.files.srcs, outputs = [output], command = "cat {} > {}".format(" ".join([src.path for src in ctx.files.srcs]), output.path), ) return [DefaultInfo(files = depset([output]))] foo = rule( implementation = _foo_impl, attrs = { "srcs": attr.label_list(allow_files = True), }, ) Now let's assume in your project, you want the output file to be sorted. If you own the original rule you could of course change _foo_impl to handle that for you, but if you are relying on a more complex upstream rule, you may not have that luxury. Here's how we can extend this to post-process the file it produces: def _bar_impl(ctx): providers = ctx.super() # Invoke 'foo' and get the providers # NOTE: This assumes there's always only the provider we want. original_output = providers[0].files.to_list()[0] new_output = ctx.actions.declare_file("new_output.tx

## Add Resend to your Convex App

DevFeed: [Add Resend to your Convex App](<https://devfeed.tech/articles/add-resend-to-your-convex-app-81324.md>)

Original publisher: [Read original article](<https://stack.convex.dev/convex-resend>)

Author: Stack

Published: 2025-07-19T17:00:00Z

Content type: release

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [extend](<https://devfeed.tech/topics/extend.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [all](<https://devfeed.tech/tags/all.md>), [api](<https://devfeed.tech/tags/api.md>), [api-design](<https://devfeed.tech/tags/api-design.md>), [app](<https://devfeed.tech/tags/app.md>), [apps](<https://devfeed.tech/tags/apps.md>), [backend](<https://devfeed.tech/tags/backend.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [convex](<https://devfeed.tech/tags/convex.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [dx](<https://devfeed.tech/tags/dx.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [features](<https://devfeed.tech/tags/features.md>), [fullstack](<https://devfeed.tech/tags/fullstack.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [hackathon](<https://devfeed.tech/tags/hackathon.md>), [integrate](<https://devfeed.tech/tags/integrate.md>), [x](<https://devfeed.tech/tags/x.md>)

### AI overview

Convex has launched a Resend component that lets developers add Resend to Convex apps as a modular library, with private namespaced tables for persisting data and running workflows in a sandboxed environment. The launch also includes a joint hackathon requiring entrants to build a Convex app integrated with the component.

### Source excerpt

Integrate Resend into your Convex apps and participate in our Convex X Resend hackathon.

## Improving the Heroku Postgres Extension Experience

DevFeed: [Improving the Heroku Postgres Extension Experience](<https://devfeed.tech/articles/improving-the-heroku-postgres-extension-experience-26452.md>)

Original publisher: [Read original article](<https://www.heroku.com/blog/improving-the-heroku-postgres-extension-experience/>)

Author: Jon Daniel

Published: 2023-07-15T00:04:00Z

Content type: release

Language: en

Sources: [Heroku](<https://devfeed.tech/sources/heroku.md>)

Topics: [Heroku Postgres](<https://devfeed.tech/topics/heroku-postgres.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [developers](<https://devfeed.tech/tags/developers.md>), [experience](<https://devfeed.tech/tags/experience.md>), [extend](<https://devfeed.tech/tags/extend.md>), [extension](<https://devfeed.tech/tags/extension.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [features](<https://devfeed.tech/tags/features.md>), [functionality](<https://devfeed.tech/tags/functionality.md>), [functions](<https://devfeed.tech/tags/functions.md>), [gis](<https://devfeed.tech/tags/gis.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [heroku-postgres](<https://devfeed.tech/tags/heroku-postgres.md>), [native](<https://devfeed.tech/tags/native.md>), [news](<https://devfeed.tech/tags/news.md>), [postgis](<https://devfeed.tech/tags/postgis.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>)

### AI overview

Heroku Postgres now supports installing extensions into schemas beyond the previously required dedicated schema, restoring flexibility for workflows affected by that restriction. The option is opt-in, available only on non-Essential-tier databases, and can be enabled during provisioning for new databases or through Heroku Data Labs for existing ones; applying it to an existing database may take up to 15 minutes. Forks and followers inherit the setting. Once enabled, extensions install into the first schema in the database's search_path, usually public. Existing extensions and database structure are unchanged; extensions already in the dedicated schema stay there unless relocated. Heroku planned to make the option the default later.

### Source excerpt

PostgreSQL extensions are powerful tools that allow developers to extend the functionality of PostgreSQL beyond its basic types and functions. These extensions can connect your database to an external PostgreSQL instance (postgres_fdw), add native GIS functionality (postgis), standardize address information (address_standardizer), and more. Extensions are arguably one of PostgreSQL's greatest features and are partially responsible [...] The post Improving the Heroku Postgres Extension Experience appeared first on Heroku.

## Features composability

DevFeed: [Features composability](<https://devfeed.tech/articles/features-composability-30328.md>)

Original publisher: [Read original article](<https://www.mdubakov.com/posts/features-composability>)

Published: 2019-03-19T14:27:48Z

Content type: article

Language: en

Sources: [Michael Dubakov](<https://devfeed.tech/sources/blog-by-michael-dubakov.md>)

Topics: [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [board](<https://devfeed.tech/tags/board.md>), [component](<https://devfeed.tech/tags/component.md>), [composability](<https://devfeed.tech/tags/composability.md>), [copy](<https://devfeed.tech/tags/copy.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [features](<https://devfeed.tech/tags/features.md>), [filter](<https://devfeed.tech/tags/filter.md>), [flexibility](<https://devfeed.tech/tags/flexibility.md>), [interface](<https://devfeed.tech/tags/interface.md>), [internals](<https://devfeed.tech/tags/internals.md>), [list](<https://devfeed.tech/tags/list.md>), [product](<https://devfeed.tech/tags/product.md>), [project](<https://devfeed.tech/tags/project.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [services](<https://devfeed.tech/tags/services.md>), [sort](<https://devfeed.tech/tags/sort.md>), [system](<https://devfeed.tech/tags/system.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

### AI overview

The text argues that features should depend on other components' public interfaces, not their internal details. In its ToDo app examples, coupling a Filter to List internals or Copy to Task View makes those features difficult to reuse in Board View or Project. It recommends treating features as independent components and giving complex components extension points, so a component can act as a skeleton filled by smaller features. The author says this improves reuse and software evolution, while tight coupling makes changes increasingly painful.

### Source excerpt

When we add features to a product, we rarely think about composability. We assume that it is OK for any feature to rely on internal...

## Creating domain-specific languages in Julia using macros

DevFeed: [Creating domain-specific languages in Julia using macros](<https://devfeed.tech/articles/creating-domain-specific-languages-in-julia-using-macros-46259.md>)

Original publisher: [Read original article](<https://julialang.org/blog/2017/08/dsl/index.html>)

Author: David P. Sanders

Published: 2017-08-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [JuliaLang - The Julia programming language](<https://devfeed.tech/sources/julialang-the-julia-programming-language.md>)

Topics: [The Julia Language](<https://devfeed.tech/topics/julia.md>), [syntax](<https://devfeed.tech/topics/syntax.md>), [function](<https://devfeed.tech/topics/function.md>), [extend](<https://devfeed.tech/topics/extend.md>), [object](<https://devfeed.tech/topics/object.md>), [constructor](<https://devfeed.tech/topics/constructor.md>), [interface](<https://devfeed.tech/topics/interface.md>)

Tags: [constructor](<https://devfeed.tech/tags/constructor.md>), [domain-specific-languages](<https://devfeed.tech/tags/domain-specific-languages.md>), [dsls](<https://devfeed.tech/tags/dsls.md>), [expression](<https://devfeed.tech/tags/expression.md>), [extend](<https://devfeed.tech/tags/extend.md>), [function](<https://devfeed.tech/tags/function.md>), [functions](<https://devfeed.tech/tags/functions.md>), [interface](<https://devfeed.tech/tags/interface.md>), [languages](<https://devfeed.tech/tags/languages.md>), [macros](<https://devfeed.tech/tags/macros.md>), [object](<https://devfeed.tech/tags/object.md>), [variable](<https://devfeed.tech/tags/variable.md>)

### AI overview

A tutorial on creating domain-specific languages in Julia using macros. It presents a reusable pattern for extending Julia syntax, constructing callable objects, manipulating expressions, and reducing performance overhead through parametric types.

### Source excerpt

Creating domain-specific languages in Julia using macros | Since the beginning of Julia, it has been tempting to use macros to write domain-specific languages (DSLs), i.e. to extend Julia syntax to provide a simpler interface to create Julia objects with complicated behaviour. The first, and still most extensive, example is JuMP (https://github.com/Ju...

## Sass Mixins vs. @extend: Comparing CSS Performance After Gzip Compression

DevFeed: [Sass Mixins vs. @extend: Comparing CSS Performance After Gzip Compression](<https://devfeed.tech/articles/mixins-better-for-performance-45599.md>)

Original publisher: [Read original article](<https://csswizardry.com/2016/02/mixins-better-for-performance/>)

Author: Harry Roberts

Published: 2016-02-25T08:55:12Z

Content type: article

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [Sass](<https://devfeed.tech/topics/sass.md>), [extend](<https://devfeed.tech/topics/extend.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Compression](<https://devfeed.tech/topics/compression.md>)

Tags: [compression](<https://devfeed.tech/tags/compression.md>), [css](<https://devfeed.tech/tags/css.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [extend](<https://devfeed.tech/tags/extend.md>), [mixins](<https://devfeed.tech/tags/mixins.md>), [performance](<https://devfeed.tech/tags/performance.md>), [sass](<https://devfeed.tech/tags/sass.md>)

### AI overview

This article investigates whether Sass mixins or @extend produces better CSS performance. It argues that network size after gzip compression matters more than the uncompressed file size and describes an experiment comparing the two approaches.

### Source excerpt

A look at the performance difference between Sass' mixins and @extend

## BEMIT: Taking the BEM Naming Convention a Step Further

DevFeed: [BEMIT: Taking the BEM Naming Convention a Step Further](<https://devfeed.tech/articles/bemit-taking-the-bem-naming-convention-a-step-further-45596.md>)

Original publisher: [Read original article](<https://csswizardry.com/2015/08/bemit-taking-the-bem-naming-convention-a-step-further/>)

Author: Harry Roberts

Published: 2015-08-05T20:01:58Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [syntax](<https://devfeed.tech/topics/syntax.md>), [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [css](<https://devfeed.tech/tags/css.md>), [developers](<https://devfeed.tech/tags/developers.md>), [extend](<https://devfeed.tech/tags/extend.md>), [html](<https://devfeed.tech/tags/html.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

The article introduces BEMIT, an extension of the BEM CSS naming convention that incorporates ideas from ITCSS. It explains how BEM clarifies relationships among blocks, elements, and modifiers, then adds usage, state, and namespace information to make CSS and markup more transparent and maintainable.

### Source excerpt

Adding further meaning and information to the BEM naming convention

## Extending silent classes in Sass

DevFeed: [Extending silent classes in Sass](<https://devfeed.tech/articles/extending-silent-classes-in-sass-45576.md>)

Original publisher: [Read original article](<https://csswizardry.com/2014/01/extending-silent-classes-in-sass/>)

Author: Harry Roberts

Published: 2014-01-07T12:57:05Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [Sass](<https://devfeed.tech/topics/sass.md>), [extend](<https://devfeed.tech/topics/extend.md>), [class](<https://devfeed.tech/topics/class.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [css](<https://devfeed.tech/tags/css.md>), [extend](<https://devfeed.tech/tags/extend.md>), [sass](<https://devfeed.tech/tags/sass.md>)

### AI overview

A practical Sass tip for controlling how @extend applies across a project. It recommends defining each silent class only once, using naming conventions or namespaces to limit selector reach, and keeping placeholder classes out of compiled CSS.

### Source excerpt

A simple trick for controlling the reach of Sass' `@extend`

## Introducing Prism: An awesome new syntax highlighter

DevFeed: [Introducing Prism: An awesome new syntax highlighter](<https://devfeed.tech/articles/introducing-prism-an-awesome-new-syntax-highlighter-52055.md>)

Original publisher: [Read original article](<https://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/>)

Author: Lea Verou

Published: 2012-07-31T00:00:00Z

Content type: release

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [extend](<https://devfeed.tech/topics/extend.md>), [HTML](<https://devfeed.tech/topics/html.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [addition](<https://devfeed.tech/tags/addition.md>), [also](<https://devfeed.tech/tags/also.md>), [awesome](<https://devfeed.tech/tags/awesome.md>), [best](<https://devfeed.tech/tags/best.md>), [better](<https://devfeed.tech/tags/better.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [blog](<https://devfeed.tech/tags/blog.md>), [body](<https://devfeed.tech/tags/body.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [core](<https://devfeed.tech/tags/core.md>), [css](<https://devfeed.tech/tags/css.md>), [dabblet](<https://devfeed.tech/tags/dabblet.md>), [days](<https://devfeed.tech/tags/days.md>), [define](<https://devfeed.tech/tags/define.md>), [doesn-t](<https://devfeed.tech/tags/doesn-t.md>), [draft](<https://devfeed.tech/tags/draft.md>), [highlighter](<https://devfeed.tech/tags/highlighter.md>), [original](<https://devfeed.tech/tags/original.md>), [releases](<https://devfeed.tech/tags/releases.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

Prism is presented as a small, extensible syntax highlighter released from Dabblet: its core is 1.5 KB minified and gzipped, rising to about 2 KB with the available CSS, Markup, and JS definitions. Authors mark code with semantic `<code>` elements and `language-xxxx` classes; language declarations inherit from ancestors, so a shared language can be set once. Hooks support plugins and extending languages, and Web Workers can improve performance in some cases. The excerpt says Prism strips pre-existing HTML inside code blocks and does not work in IE8, though it does not break there.

### Source excerpt

For the past three weeks, on and off, I've been working on releasing Dabblet's syntax highlighter as standalone, since many people had requested it. Zachary Forrest suggested the name "Prism" and I liked it so much I decided to go with it, even though there is an abandoned Mozilla project with the same name. I ended up refactoring and extending it so much that I will need to backport it to Dabblet one of these days! This doesn't mean I bloated it, the core is still a tiny 1.5KB minified & gzipped. It just means it's more awesome. :) Seriously? The world needs another syntax highlighter? In certain ways, Prism is better than any other syntax highlighter I've seen: It's tiny. The core is only 1.5KB minified & gzipped, which can go up to 2KB with the currently available language definitions (CSS, Markup and JS). But many other highlighters are also small, so read on. It's incredibly extensible. Not only it's easy to add new languages (that's a given with every syntax highlighter these days), but also to extend existing ones. Most importantly, it supports plugins, through hooks strategically placed in its source. There are a few plugins already available, and it's really easy to write your own. I haven't seen any other highlighter that supports plugins. It encourages good author practices. Other highlighters encourage or even force you to use elements that are semantically wrong, like <pre> (on its own) or <script>. Prism forces you to use the only semantically correct element for marking up code: <code>. On its own for inline code, or inside a <pre> for blocks of code. In addition, the code language is declared through the way recommended in the HTML5 draft: through a language-xxxx class. One of its best features: The language definition is inherited. This means that if multiple code snippets have the same language, you can just define it once, in one of their common ancestors. Obviously, if you define a language on the <body> element, you've essentially declared a def

## Why $.extend(someObj, anotherObj) might be dangerous!

DevFeed: [Why $.extend(someObj, anotherObj) might be dangerous!](<https://devfeed.tech/articles/why-extend-someobj-anotherobj-might-be-dangerous-21163.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2012/07/why-extendsomeobj-anotherobj-might-be/>)

Published: 2012-07-17T00:00:00Z

Content type: article

Language: en

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

Topics: [Data integrity in software engineering](<https://devfeed.tech/topics/data-integrity-in-software-engineering.md>), [extend](<https://devfeed.tech/topics/extend.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [effects](<https://devfeed.tech/tags/effects.md>), [example](<https://devfeed.tech/tags/example.md>), [extend](<https://devfeed.tech/tags/extend.md>), [jquery](<https://devfeed.tech/tags/jquery.md>), [merge](<https://devfeed.tech/tags/merge.md>), [object](<https://devfeed.tech/tags/object.md>), [property](<https://devfeed.tech/tags/property.md>), [request](<https://devfeed.tech/tags/request.md>), [server](<https://devfeed.tech/tags/server.md>), [values](<https://devfeed.tech/tags/values.md>)

### AI overview

jQuery's `$.extend` can mutate an existing object when that object is passed as the first argument. The excerpt describes merging request parameters into `obj1`: values from the later object overwrite matching properties on `obj1`, so a property can change unexpectedly. To avoid that side effect, pass a new empty object first, then `obj1` and the additional parameters, so the merged values are copied into a separate object. The excerpt omits the code examples and function signature, so their exact contents and output are not available.

### Source excerpt

Lorem ipsum dolor sit amet

## The open/closed principle applied to CSS

DevFeed: [The open/closed principle applied to CSS](<https://devfeed.tech/articles/the-open-closed-principle-applied-to-css-45538.md>)

Original publisher: [Read original article](<https://csswizardry.com/2012/06/the-open-closed-principle-applied-to-css/>)

Author: Harry Roberts

Published: 2012-06-21T20:09:41Z

Content type: article

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [extend](<https://devfeed.tech/topics/extend.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [reusable code](<https://devfeed.tech/topics/reusable-code.md>), [object](<https://devfeed.tech/topics/object.md>), [class](<https://devfeed.tech/topics/class.md>), [function](<https://devfeed.tech/topics/function.md>), [properties](<https://devfeed.tech/topics/properties.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [extend](<https://devfeed.tech/tags/extend.md>), [functions](<https://devfeed.tech/tags/functions.md>), [modules](<https://devfeed.tech/tags/modules.md>), [object](<https://devfeed.tech/tags/object.md>), [open-closed](<https://devfeed.tech/tags/open-closed.md>), [properties](<https://devfeed.tech/tags/properties.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

This article applies the open/closed principle to object-oriented CSS. It argues that shared base objects should remain simple and closed to modification, while variations should be implemented through extensions to avoid unintended effects across components.

### Source excerpt

The open/closed principle applied to CSS Written by Harry Roberts on CSS Wizardry. A question that often gets asked of OOCSS is What happens when an object changes? . That is to say, if you have a basic object that underpins a dozen different components, what happens when changing that object will favourably impact one component, but negatively impact the other 11?