# adapter pattern

The Adapter pattern is a structural design pattern that converts one interface into another so otherwise incompatible software components can work together.

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

## UAEF: A framework-agnostic system for closed-loop evaluation of AI agents

DevFeed: [UAEF: A framework-agnostic system for closed-loop evaluation of AI agents](<https://devfeed.tech/articles/uaef-a-framework-agnostic-system-for-closed-loop-evaluation-of-ai-agents-129292.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/uaef-a-framework-agnostic-system-for-closed-loop-evaluation-of-ai-agents/>)

Author: Samaneh Aminikhanghahi

Published: 2026-11-11T15:50:55Z

Content type: article

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [Langgraph](<https://devfeed.tech/topics/langgraph.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Trustworthy AI](<https://devfeed.tech/topics/trustworthy-ai.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-evaluation](<https://devfeed.tech/tags/agent-evaluation.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [can](<https://devfeed.tech/tags/can.md>), [canonical](<https://devfeed.tech/tags/canonical.md>), [compare](<https://devfeed.tech/tags/compare.md>), [dimensions](<https://devfeed.tech/tags/dimensions.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [format](<https://devfeed.tech/tags/format.md>), [framework](<https://devfeed.tech/tags/framework.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [one](<https://devfeed.tech/tags/one.md>), [regressions](<https://devfeed.tech/tags/regressions.md>), [results](<https://devfeed.tech/tags/results.md>), [system](<https://devfeed.tech/tags/system.md>), [teams](<https://devfeed.tech/tags/teams.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [traces](<https://devfeed.tech/tags/traces.md>)

### AI overview

UAEF normalizes agent traces from supported frameworks and runtimes into a common AgentTrace, then applies the same selected metrics and comparison process across them. Its 36 built-in metrics cover seven dimensions; deterministic metrics score directly from traces and references, while LLM judge metrics use Amazon Bedrock. Ground-truth answers are optional, but tool-call evaluation requires expected tools, order, and arguments; metrics needing references are skipped when those are absent. Persisted experiments store metadata in DynamoDB and full results in S3, enabling per-metric comparisons, regression detection, and reports. PII screening occurs before storage, and stored-copy redaction is available. The Python library and web service share the evaluation engine and stores. Judge scores are evaluation signals rather than security controls, and comparisons require persisted runs.

### Source excerpt

The Universal Agent Evaluation Framework (UAEF) is a framework-agnostic system for evaluating AI agents. UAEF converts each framework's traces into one canonical format, scores them with 36 built-in metrics across 7 dimensions, and stores results so teams can compare agent versions and catch regressions.

## Composable Parts Architecture

DevFeed: [Composable Parts Architecture](<https://devfeed.tech/articles/composable-parts-architecture-121430.md>)

Original publisher: [Read original article](<https://blog.devops.dev/composable-parts-architecture-b660caf40e8f?source=rss----33f8b2d9a328---4>)

Author: Scaibu

Published: 2026-11-06T09:47:16Z

Content type: article

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [architecture-components](<https://devfeed.tech/topics/architecture-components.md>), [Dependency Inversion](<https://devfeed.tech/topics/dependency-inversion.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [event-sourcing](<https://devfeed.tech/topics/event-sourcing.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [clean-architecture](<https://devfeed.tech/tags/clean-architecture.md>), [code](<https://devfeed.tech/tags/code.md>), [components](<https://devfeed.tech/tags/components.md>), [connect](<https://devfeed.tech/tags/connect.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [crash](<https://devfeed.tech/tags/crash.md>), [data](<https://devfeed.tech/tags/data.md>), [data-ownership](<https://devfeed.tech/tags/data-ownership.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [design](<https://devfeed.tech/tags/design.md>), [durability](<https://devfeed.tech/tags/durability.md>), [enterprise-architecture](<https://devfeed.tech/tags/enterprise-architecture.md>), [event](<https://devfeed.tech/tags/event.md>), [event-driven-architecture](<https://devfeed.tech/tags/event-driven-architecture.md>), [execution](<https://devfeed.tech/tags/execution.md>), [features](<https://devfeed.tech/tags/features.md>), [independent](<https://devfeed.tech/tags/independent.md>), [integrate](<https://devfeed.tech/tags/integrate.md>), [internals](<https://devfeed.tech/tags/internals.md>), [logic](<https://devfeed.tech/tags/logic.md>), [messages](<https://devfeed.tech/tags/messages.md>), [parts](<https://devfeed.tech/tags/parts.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>)

### AI overview

The architecture aims to let parts change independently by having them depend on published, versioned contracts rather than one another's internals. Each part owns its data and exposes pure logic through ports and replaceable adapters; manifests let the platform validate and wire parts without hand-edited central registries. Events through a durable log are the default connection, while synchronous requests are reserved for cases needing an immediate answer and constrained to short call chains. An atomic outbox, idempotency keys, deduplication, checkpoints, deadlines, and retries make interruptions and duplicate delivery recoverable; consumers keep read-only data copies and reconcile them against their owner. The same contracts and host protocol support different runtimes, with adapters and test kits handling host-specific integration. The excerpt also describes contract versioning, graph validation, and domain-based deployment packing as ways to manage growth. These are architectural prescriptions; the supplied text does not establish implementation results.

### Source excerpt

How small, independent parts connect, share data, survive disconnects, integrate with any host, and grow to 1000+ features -- where adding or changing something touches one place, not a hundred.Contents The six rules Vocabulary The system at a glance Anatomy of a part Contracts Connecting parts Execution model inside a part Data ownership and sharing Integrating with any system Durability: connections that break safely Changing the system Scaling to 1000+ parts Platform components Enforcement Testing Adding a new part: checklist Anti-patterns Open decisions Introduction Most large systems do not fail because a single component is badly written. They fail because components know too much about each other. One service reads another service's tables "just this once"; a handler calls three other services in sequence because it was quicker than designing an event; a central routing file collects one line from every team until nobody can change it without a merge conflict. Each shortcut is harmless on its own. Together they produce a system in which adding a field means editing a hundred files, an outage in one corner takes down everything, and a dropped network connection corrupts data. This document describes a structure that prevents those outcomes by design rather than by discipline. It rests on two ideas: No part knows another part. Parts know contracts. A part is aware of its own logic and of the published, versioned contracts it uses. It never sees another part's code, storage, or deployment details. Because nothing depends on internals, internals can change freely. Every connection is assumed to break, and breaking must cost nothing. Networks drop, processes crash, and messages arrive twice or out of order. Instead of trying to prevent these failures, the structure makes each one harmless: nothing is lost, nothing happens twice, and nothing waits forever. Everything that follows is an elaboration of those two ideas, together with the tooling that keeps them true as

## How two engineer side projects became the agent taking action inside Dropbox

DevFeed: [How two engineer side projects became the agent taking action inside Dropbox](<https://devfeed.tech/articles/how-two-engineer-side-projects-became-the-agent-taking-action-inside-dropbox-118919.md>)

Original publisher: [Read original article](<https://dropbox.tech/machine-learning/how-two-engineer-side-projects-became-the-agent-taking-action-inside-dropbox>)

Author: Daniel Reiter Horn,Rich Chan

Published: 2026-11-05T13:27:01.469417Z

Content type: article

Language: en

Sources: [Dropbox Tech Blog](<https://devfeed.tech/sources/dropbox-tech-blog.md>)

Topics: [dropbox](<https://devfeed.tech/topics/dropbox.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [3D](<https://devfeed.tech/topics/3d.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [3d-modeling](<https://devfeed.tech/tags/3d-modeling.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [agent-sandbox](<https://devfeed.tech/tags/agent-sandbox.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [audio](<https://devfeed.tech/tags/audio.md>), [chat](<https://devfeed.tech/tags/chat.md>), [codex](<https://devfeed.tech/tags/codex.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [collection](<https://devfeed.tech/tags/collection.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [commands](<https://devfeed.tech/tags/commands.md>), [customer-experience](<https://devfeed.tech/tags/customer-experience.md>), [developer-productivity](<https://devfeed.tech/tags/developer-productivity.md>), [developer-spotlight](<https://devfeed.tech/tags/developer-spotlight.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [dropbox](<https://devfeed.tech/tags/dropbox.md>), [files](<https://devfeed.tech/tags/files.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [side-projects](<https://devfeed.tech/tags/side-projects.md>)

### AI overview

Dropbox's agent experience combines file access, an isolated workspace for running software, and review and rollback controls. It grew from two engineer prototypes: one used a sandbox and rclone to work with Dropbox files, while the other added an in-app interface with permission controls, previews, and revision history. In the product, a trusted host layer outside the sandbox checks file and service access; broad tasks can require an accepted plan, and folder changes require explicit approval. The interface displays progress and file changes. Dropbox ties versions to the conversation that made them, enabling targeted undo while preserving later edits by saving restored content as a separate copy. Workspaces launch from VM snapshots; in testing, 75% were connected and ready to send a model request within 300 milliseconds. The excerpt describes the design and rollout, but does not specify broad customer outcomes.

### Source excerpt

Two side projects explored a new way to get work done with files already in Dropbox. Here's how engineers brought them together and turned those experiments into a new customer experience.

## Evaluate Vercel Flags from another project without sharing SDK keys.

DevFeed: [Evaluate Vercel Flags from another project without sharing SDK keys.](<https://devfeed.tech/articles/evaluate-vercel-flags-from-another-project-without-sharing-sdk-keys-112451.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/evaluate-vercel-flags-from-another-project-without-sharing-sdk-keys>)

Author: Rauno Freiberg

Published: 2026-11-02T16:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Vercel](<https://devfeed.tech/topics/vercel.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [openid](<https://devfeed.tech/topics/openid.md>)

Tags: [1-6](<https://devfeed.tech/tags/1-6.md>), [adapter](<https://devfeed.tech/tags/adapter.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [cli](<https://devfeed.tech/tags/cli.md>), [core](<https://devfeed.tech/tags/core.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [deployments](<https://devfeed.tech/tags/deployments.md>), [environment](<https://devfeed.tech/tags/environment.md>), [environments](<https://devfeed.tech/tags/environments.md>), [identity](<https://devfeed.tech/tags/identity.md>), [keys](<https://devfeed.tech/tags/keys.md>), [library](<https://devfeed.tech/tags/library.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [project](<https://devfeed.tech/tags/project.md>), [required](<https://devfeed.tech/tags/required.md>), [requires](<https://devfeed.tech/tags/requires.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Project Connections let an app evaluate Vercel Flags from another project in the same team using the consumer deployment's identity, instead of copying and managing a server SDK key. Grant read-only access through the project's Flags > Connections page or `vercel flags connections`; connections cover all environments, while the consumer deployment selects which environment's flags are evaluated. In the app, configure `createVercelAdapter` with the source project ID. For local development, `vercel env pull` retrieves the project's OIDC token. Access can be revoked without redeploying. Connections are available on all plans and require `@flags-sdk/vercel` 1.6.0+ or `@vercel/flags-core` 1.11.0+; CLI management requires Vercel CLI 63.0.0+.

### Source excerpt

Project Connections let applications evaluate flags defined in another Vercel project within the same team, without managing SDK keys. Previously, sharing flags between projects required copying a server SDK key into an environment variable and managing it manually. Connected projects authenticate using their deployment's identity. For local development, vercel env pull retrieves your project's OIDC token. Manage access from the Connections page under your project's Flags section, or with vercel flags connections in the CLI. Connections grant read-only access across all environments. The consumer deployment determines the flag environment (production deployments evaluate production flags). In the consumer application, create an adapter with the source project's ID. Access can be revoked without redeploying. Project Connections are available on all plans and require @flags-sdk/vercel 1.6.0 or later, or @vercel/flags-core 1.11.0 or later when using the core library directly. Managing connections from the CLI requires Vercel CLI 63.0.0 or later. Learn more in the Vercel Flags documentation Read more

## App Architecture: Analytics

DevFeed: [App Architecture: Analytics](<https://devfeed.tech/articles/app-architecture-analytics-103675.md>)

Original publisher: [Read original article](<https://proandroiddev.com/app-architecture-analytics-ec3471ca619b?source=rss----c72404660798---4>)

Author: Mkhytar Mkhoian

Published: 2026-10-27T23:25:11Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [architecture-components](<https://devfeed.tech/topics/architecture-components.md>), [product analytics](<https://devfeed.tech/topics/product-analytics.md>), [Dependency Inversion](<https://devfeed.tech/topics/dependency-inversion.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [async](<https://devfeed.tech/topics/async.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [app-architecture](<https://devfeed.tech/tags/app-architecture.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

### AI overview

The article proposes keeping analytics vendors out of feature code: features emit app-defined events and user properties, while vendor-specific factories map events and trackers call SDKs. A dispatcher forwards calls off the main thread so one vendor's crash does not prevent others from receiving an event. In modular apps, features own their events and factories, DI collects them, and only the app module sees the full graph. The approach aims to avoid a central analytics god object, isolate vendor changes, preserve parameter types, and give ViewModels small interfaces that are easy to test. The author says the open-source Herald library implements this design.

### Source excerpt

Photo by Hunter Harritt on Unsplash It's been a while since the last time I covered app architecture topics. Today I am back with a new one. This time it's analytics and everything around it. The problem We engineers often treat analytics as a secondary piece of software. We spend so much time on the architecture design of the main parts and so little on designing analytics as part of the program that it always leads to a bad cocktail. This cocktail brings a bad smell to the code, some workarounds, and forces us to make exceptions to the architecture rules. In practice, developers spend time thinking about general architecture; no one thinks about analytics at that moment. Then business comes and asks to track this and that. Send a couple of events to a third-party analytics vendor, and devs start thinking about how to do that and integrate analytics. After some time, business asks to add more events for a new vendor. Now you need to not only track it, but also manage vendors and decide which event goes where. In code, it looks like one AnalyticsRepository or AnalyticsManager class that contains all analytics-related stuff, a huge list of methods where each of them calls due to tracking events. A god object class engineers drag across the codebase and make different components and layers depend on it. And here we are, holding a bad cocktail in our hand. The idea So how to stop making this cocktail? I came to a simple idea: the app should not know which analytics vendors exist. Feature code doesn't need to care if an event goes to Firebase, Mixpanel, AppsFlyer or all of them. It should only say what happened, in the app's own words. "Ticket purchased", "Settings screen opened". Where the event goes and in what format each vendor wants it is a different job, and it should live in a different place. Instead of one god object that knows everything, let's split the work into small pieces, and each piece has one job: The Event Event describes what happened, in the app's w

## The fx adapter now runs the harness on the host

DevFeed: [The fx adapter now runs the harness on the host](<https://devfeed.tech/articles/the-fx-adapter-now-runs-the-harness-on-the-host-103442.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/fx-harness-adapter-now-separates-host-and-sandbox>)

Author: Felix Arntz

Published: 2026-10-27T06:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [out-of-process](<https://devfeed.tech/topics/out-of-process.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-sdk](<https://devfeed.tech/tags/ai-sdk.md>), [application](<https://devfeed.tech/tags/application.md>), [bridge](<https://devfeed.tech/tags/bridge.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [fx](<https://devfeed.tech/tags/fx.md>), [generate](<https://devfeed.tech/tags/generate.md>), [harness](<https://devfeed.tech/tags/harness.md>), [image](<https://devfeed.tech/tags/image.md>), [images](<https://devfeed.tech/tags/images.md>), [install](<https://devfeed.tech/tags/install.md>), [instructions](<https://devfeed.tech/tags/instructions.md>), [latest](<https://devfeed.tech/tags/latest.md>), [learn](<https://devfeed.tech/tags/learn.md>), [library](<https://devfeed.tech/tags/library.md>)

### AI overview

The fx adapter for the AI SDK's HarnessAgent now runs the harness and model requests in the application's host process, while built-in filesystem and shell operations remain sandboxed. Using libfx removes the need to install fx in the sandbox, run a bridge, or expose a sandbox port; model credentials stay on the host. The rewrite adds built-in tool filtering, mid-turn steering, schema-based structured output, and image results passed to the model through toModelOutput(). Sessions can be saved and resumed in a new host process. The source says to update @ai-sdk/harness-fx to the latest version to use the adapter.

### Source excerpt

The fx adapter for the AI SDK's HarnessAgent now runs the harness and model requests in the same process as your application. Built-in filesystem and shell operations remain isolated in the sandbox. The adapter uses libfx, the TypeScript library for fx. It no longer needs to install fx inside the sandbox, run a sandbox bridge, or expose a sandbox port. Model credentials stay on the host rather than being forwarded into the sandbox. The rewrite also adds: Built-in tool filtering: choose which built-in tools the agent can use Mid-turn steering: send new instructions while a turn is running Structured output: generate responses that match a schema Image tool results: return images to the model through toModelOutput() Sessions can be saved and resumed in a new host process. Update @ai-sdk/harness-fx to the latest version to use the new adapter. Learn more in the fx harness documentation. Read more

## dbt v2 lands: faster parsing, one shared adapter layer, and a docs experience that skips the giant manifest.json

DevFeed: [dbt v2 lands: faster parsing, one shared adapter layer, and a docs experience that skips the giant manifest.json](<https://devfeed.tech/articles/dbt-v2-lands-faster-parsing-one-shared-adapter-layer-and-a-docs-experience-that-skips-the-giant-manifest-json-101831.md>)

Original publisher: [Read original article](<https://www.getdbt.com/blog/dbt-v2-fast-parsing-shared-adapters-documentation>)

Author: Daniel Poppy

Published: 2026-10-26T21:58:00Z

Content type: news

Language: en

Sources: [dbt Labs](<https://devfeed.tech/sources/dbt-labs.md>)

Topics: [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Tree-sitter](<https://devfeed.tech/topics/tree-sitter.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [GeoJSON](<https://devfeed.tech/topics/geojson.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [adapters](<https://devfeed.tech/tags/adapters.md>), [ai](<https://devfeed.tech/tags/ai.md>), [analytics-engineering](<https://devfeed.tech/tags/analytics-engineering.md>), [autofix](<https://devfeed.tech/tags/autofix.md>), [bigquery](<https://devfeed.tech/tags/bigquery.md>), [blast-radius](<https://devfeed.tech/tags/blast-radius.md>), [claude](<https://devfeed.tech/tags/claude.md>), [column](<https://devfeed.tech/tags/column.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [core](<https://devfeed.tech/tags/core.md>), [dbt](<https://devfeed.tech/tags/dbt.md>), [docs](<https://devfeed.tech/tags/docs.md>), [faster](<https://devfeed.tech/tags/faster.md>), [files](<https://devfeed.tech/tags/files.md>), [json](<https://devfeed.tech/tags/json.md>), [layer](<https://devfeed.tech/tags/layer.md>), [learn](<https://devfeed.tech/tags/learn.md>), [manifest](<https://devfeed.tech/tags/manifest.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [v2](<https://devfeed.tech/tags/v2.md>)

### AI overview

dbt v2 aims to bring v1 and v2 toward one engine and binary, while offering practical upgrade checks in v1.12. The excerpt says v1.12 includes a v2 parser for compatibility checks and an autofix deprecations command; a live demo resolved 22 flagged issues in about five minutes. In v2, adapters share a layer built on the ADBC driver standard and ship with the engine, avoiding the dependency conflicts that could arise when installing separate v1 adapters. On a synthetic 1,800-model project, parsing took about 3 seconds in v2 versus 10-13 seconds in v1. SQL typo detection took about 1.5 seconds on the OSS distribution, which round-trips to the warehouse, versus 0.06 seconds on the full distribution, which understands SQL directly. Docs v2 replaces a large manifest.json with queryable Parquet files; demos used Claude to query lineage and downstream impact. The excerpt notes that migration will take years and that v2 was generally available on most adapters at the time of the talk.

### Source excerpt

dbt v2 bundles adapters, speeds up parsing, and replaces manifest.json with smaller, queryable files for people and AI.

## DTO -\> Domain -\> UI Model: When Is the Mapping Worth It?

DevFeed: [DTO -\> Domain -\> UI Model: When Is the Mapping Worth It?](<https://devfeed.tech/articles/dto-domain-ui-model-when-is-the-mapping-worth-it-100952.md>)

Original publisher: [Read original article](<https://proandroiddev.com/dto-domain-ui-model-mapping-clean-architecture-2603f0010fcf?source=rss----c72404660798---4>)

Author: Ravi Rawal

Published: 2026-10-26T13:38:18Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [modular-monolith](<https://devfeed.tech/topics/modular-monolith.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [business logic](<https://devfeed.tech/topics/business-logic.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [MVVM](<https://devfeed.tech/topics/mvvm.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [clean-architecture](<https://devfeed.tech/tags/clean-architecture.md>), [coupling](<https://devfeed.tech/tags/coupling.md>), [domain](<https://devfeed.tech/tags/domain.md>), [external](<https://devfeed.tech/tags/external.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

DTO -> Domain -> UI mappings are useful when they protect distinct responsibilities, but three models are not required by default. The article's product example separates an API-shaped DTO from a domain Product that interprets fields such as price, seller type, and status, then from a ProductCardUiModel that adds formatted price, localized labels, and favorite state. Mapping can validate or reject incomplete records, represent unknown values, and keep backend changes from spreading into business logic or presentation. A ViewModel can combine product and favorite data into card models and expose screen loading, content, or error state separately; Composables render that state. Keep a boundary when the next layer has different needs, rules, or likely reasons to change. For a small feature with a stable API, simple UI, and no meaningful domain behavior, fewer models may avoid duplicated declarations and mapping omissions. Android guidance cited in the article allows separate models for complex apps and treats the domain layer as optional. Use simple explicit mappers where sufficient; extract dedicated ones when rules, reuse, or independent testing justify them.

### Source excerpt

Three models, two mapping steps, and one simple question: are we protecting architectural boundaries or just creating more code to maintain? Open a mobile application built with Clean Architecture, and you will probably find some variation of this flow: ProductDto -> Product -> ProductUiModel The API response becomes a DTO. The DTO becomes a domain model. The domain model becomes a UI model. Each transformation has its own mapper, and each model lives in its own package or module. It looks clean. It follows familiar architectural conventions. It can also produce a surprising amount of code for displaying a product on a screen. And that raises a question worth discussing: does every layer need its own model, or have we turned a useful architectural technique into a rule that we follow without questioning? I have seen both sides of this design make sense. Sharing a network DTO throughout an application can create coupling that becomes expensive later. Introducing multiple models that contain the same properties, however, can create maintenance work without delivering much protection. The interesting part is knowing the difference. Let's follow one feature -- a product listing -- from the API response to the screen and examine what each model should contribute, where the transformations belong, and when we can reasonably skip them. Start with the API contract Imagine a marketplace application that fetches a list of products from a backend. The response for each listing looks something like this: https://medium.com/media/02059b91befe4e6cc4715d4de56bc69b/href The networking layer needs a model capable of representing this response. In Kotlin, it might look like this: https://medium.com/media/7cea74b0c4f9a5ff5de917c0b67df314/href The nullable properties are intentional. They acknowledge that the response may contain missing values, even when the backend's ideal contract says otherwise. The DTO represents an external contract. Its field names, serialization annotations, and da

## Stop building agents that can't change models

DevFeed: [Stop building agents that can't change models](<https://devfeed.tech/articles/stop-building-agents-that-can-t-change-models-100447.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4239696/stop-building-agents-that-cant-change-models.html>)

Author: Alex Merced

Published: 2026-10-26T09:00:00Z

Content type: opinion

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>)

Tags: [2022](<https://devfeed.tech/tags/2022.md>), [2025](<https://devfeed.tech/tags/2025.md>), [agents](<https://devfeed.tech/tags/agents.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-development-approaches-development-tools-generative-ai-software-developm](<https://devfeed.tech/tags/artificial-intelligence-development-approaches-development-tools-generative-ai-software-developm.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [changes](<https://devfeed.tech/tags/changes.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-sonnet](<https://devfeed.tech/tags/claude-sonnet.md>), [contributor](<https://devfeed.tech/tags/contributor.md>), [development-approaches](<https://devfeed.tech/tags/development-approaches.md>), [development-tools](<https://devfeed.tech/tags/development-tools.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [google](<https://devfeed.tech/tags/google.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llm](<https://devfeed.tech/tags/llm.md>), [menlo-ventures](<https://devfeed.tech/tags/menlo-ventures.md>), [migration](<https://devfeed.tech/tags/migration.md>), [october](<https://devfeed.tech/tags/october.md>), [openai](<https://devfeed.tech/tags/openai.md>), [providers](<https://devfeed.tech/tags/providers.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [storytype-opinion](<https://devfeed.tech/tags/storytype-opinion.md>)

### AI overview

The article argues that agents should treat models as replaceable compute behind a stable interface, since providers retire models and APIs, market shares shift, and prices fall quickly. It recommends keeping provider SDKs out of business logic, storing state and source data in systems the team controls, and using provider adapters with common request and response types. The example contract uses JSON Schema tools, task labels for routing and evaluation, and records token counts and model IDs. A test suite of real tasks, with team-controlled checks plus cost and latency measurements, makes upgrades and provider switches measurable. The text also notes tradeoffs: embeddings must be regenerated when changing embedding models, and a strict common interface can lose provider-specific features. Optional adapter capabilities and small per-model prompt overrides can preserve useful features while keeping their costs visible.

### Source excerpt

No one can predict which AI provider will win the next benchmark cycle. The smarter approach is to build an architecture that can adapt as models change. One with a stable contract between agents and models, tools and state that exist outside any single provider, and evaluations that make each model change a measurable decision. The goal isn't to avoid choosing a preferred model. It's to ensure that when the next model emerges, changing that choice doesn't require rebuilding the system around it. For example, on June 15, 2026, Anthropic retired Claude Sonnet 4 and Claude Opus 4 from its API, after giving developers notice on April 14. Any application still calling those model IDs started receiving errors. Claude Opus 4.1 followed on August 5. Later that month, OpenAI shut down its entire Assistants API and pointed developers to its Responses API. None of this was a surprise. Each provider published dates and migration guides well ahead of time. The problem sits on the builder's side. Many teams designed agents where the model is the foundation and not a component, so when the foundation moves, the whole building moves with it. The model market is moving too fast for that design, and enterprises should treat models as replaceable compute behind stable interfaces. By doing so, they can change providers for cost, capability, privacy or performance without rebuilding their agents. The market refuses to sit still, and the rising costs of tokens According to Menlo Ventures, OpenAI held 50% of enterprise large language model (LLM) API usage in 2023. By the end of 2025, that share had fallen to 27%. Anthropic climbed from 12% to 40%, and Google went from 7% to 21%. The data clearly indicates that leadership in this market changes hands faster than most enterprise software contracts renew. Prices move faster still, as Stanford's 2025 AI Index found that GPT-3.5-level performance on the MMLU benchmark cost $20 per million tokens in November 2022 and $0.07 by October 2024. Epo

## Concepts in Practice: C++ MPI Bindings for the HPC Ecosystem - From a Standardizable Core to a Composable Interface

DevFeed: [Concepts in Practice: C++ MPI Bindings for the HPC Ecosystem - From a Standardizable Core to a Composable Interface](<https://devfeed.tech/articles/concepts-in-practice-c-mpi-bindings-for-the-hpc-ecosystem-from-a-standardizable-core-to-a-composable-interface-95147.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.09102>)

Author: Tim Niklas Uhl, Matthias Schimek, Daniel Brommer

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [Kokkos](<https://devfeed.tech/topics/kokkos.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [stl](<https://devfeed.tech/topics/stl.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [adapters](<https://devfeed.tech/tags/adapters.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [c-plus-plus-20](<https://devfeed.tech/tags/c-plus-plus-20.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hpc](<https://devfeed.tech/tags/hpc.md>), [interface](<https://devfeed.tech/tags/interface.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [performance](<https://devfeed.tech/tags/performance.md>), [stl-containers](<https://devfeed.tech/tags/stl-containers.md>)

### AI overview

The paper presents a layered design for modern C++ MPI bindings: a low-level core built on refined C++20 concepts, automatic mappings for standard C++ constructs, customization points for third-party types, and concept-based MPI procedure wrappers. The core works directly with STL containers and is designed to be extensible and suitable for standardization. On top of it, KaMPIng-v2 adds memory-safe, composable pipe-based syntax inspired by C++ ranges. Lightweight adapters let Kokkos views, Thrust device vectors, and SYCL buffers be passed directly to MPI, with adapter logic kept self-contained. The authors report a functional open-source reference implementation; the excerpt gives no performance measurements.

### Source excerpt

arXiv:2606.09102v2 Announce Type: replace Abstract: The official C++ MPI bindings were removed from the standard in 2008, leaving a gap that numerous third-party libraries have attempted to fill. However, existing wrappers typically cover only a limited subset of MPI or target specific use cases, falling short of a general-purpose solution. A recent conceptual paper proposed general design principles for modern C++ bindings based on C++20 concepts, without committing to a concrete interface. We present the first concrete realization of these principles in a layered architecture. At the foundation, we define a core layer: refined C++20 concepts formalizing the MPI standard's notion of data buffers, automatic mapping of standard C++ constructs, non-intrusive customization points for third-party types, and concept-based wrappers for MPI procedures. The result is a low-level native C++ MPI interface that works directly with STL containers, is highly extensible, and lends itself to standardization. Built on this core, we present KaMPIng-v2 -- a C++ MPI library offering the convenience and memory-safety of KaMPIng with composable, pipe-based syntax inspired by C++ ranges for efficient, boilerplate-free MPI programming. Finally, we demonstrate the core layer's broad applicability by designing lightweight adapters for GPU and performance-portability libraries, making the HPC ecosystem a first-class citizen in MPI. Kokkos views, Thrust device vectors, and SYCL buffers can be passed directly to MPI procedures, with adapter logic remaining self-contained. All contributions are backed by a fully functional open-source reference implementation, demonstrating the practical viability of the proposed design.

## How to Separate Operational Intent from the Executor

DevFeed: [How to Separate Operational Intent from the Executor](<https://devfeed.tech/articles/how-to-separate-operational-intent-from-the-executor-64624.md>)

Original publisher: [Read original article](<https://www.freecodecamp.org/news/separate-operational-intent-from-executor/>)

Author: Hugo Teijiz

Published: 2026-10-04T12:11:02Z

Content type: tutorial

Language: en

Sources: [Free Code Camp](<https://devfeed.tech/sources/freecodecamp-programming-tutorials-python-javascript-git-more.md>)

Topics: [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [platform engineering automation](<https://devfeed.tech/topics/platform-engineering-automation.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [agent](<https://devfeed.tech/tags/agent.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [automation](<https://devfeed.tech/tags/automation.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [devops](<https://devfeed.tech/tags/devops.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [sdops](<https://devfeed.tech/tags/sdops.md>), [software](<https://devfeed.tech/tags/software.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This tutorial explains how to separate an operational specification from the executors that carry it out. It demonstrates defining a stable deployment contract, collecting and normalizing evidence from different implementations, and evaluating conformance independently. The approach helps teams assess portability while exposing hidden assumptions and gaps between executors.

### Source excerpt

In my previous article, I argued that software automation needs a layer between operational intent and execution. The reason is simple: the specification should describe what success means, and the ex

## Automating Amazon Textract adapter lifecycle management across accounts

DevFeed: [Automating Amazon Textract adapter lifecycle management across accounts](<https://devfeed.tech/articles/automating-amazon-textract-adapter-lifecycle-management-across-accounts-61386.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/automating-amazon-textract-adapter-lifecycle-management-across-accounts/>)

Author: Bhavya Sruthi Sode

Published: 2026-09-28T15:49:04Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Textract](<https://devfeed.tech/topics/amazon-textract.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>)

Tags: [amazon-textract](<https://devfeed.tech/tags/amazon-textract.md>), [aws-cloudformation](<https://devfeed.tech/tags/aws-cloudformation.md>), [cloudformation](<https://devfeed.tech/tags/cloudformation.md>), [customer-solutions](<https://devfeed.tech/tags/customer-solutions.md>), [iam](<https://devfeed.tech/tags/iam.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [least-privilege](<https://devfeed.tech/tags/least-privilege.md>), [security](<https://devfeed.tech/tags/security.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [vpc](<https://devfeed.tech/tags/vpc.md>)

### AI overview

This tutorial describes production lifecycle management for Amazon Textract adapters across AWS accounts. It covers infrastructure templates, cross-account promotion, adapter ID management through Systems Manager Parameter Store, pre-classification routing, and security configurations. The described process aims to update production adapter references without application redeployment.

### Source excerpt

Learn how to operationalize Amazon Textract Custom Queries adapters for production: infrastructure as code with AWS CloudFormation and Terraform, a cross-account adapter promotion process, a pre-classification routing pattern for multiple form versions, and production security controls such as VPC endpoints, encryption, and least-privilege IAM.

## Making ServiceLoader usable: a provider factory

DevFeed: [Making ServiceLoader usable: a provider factory](<https://devfeed.tech/articles/making-serviceloader-usable-a-provider-factory-18932.md>)

Original publisher: [Read original article](<https://blog.frankel.ch/serviceloader-provider-factory/>)

Author: Stefano Fago

Published: 2026-07-12T00:00:00Z

Content type: article

Language: en

Sources: [Nicolas Fränkel](<https://devfeed.tech/sources/nicolas-frankel.md>)

Topics: [serviceloader](<https://devfeed.tech/topics/serviceloader.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [JSON Web Tokens](<https://devfeed.tech/topics/jwt.md>)

Tags: [constructor](<https://devfeed.tech/tags/constructor.md>), [decoupling](<https://devfeed.tech/tags/decoupling.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [environment](<https://devfeed.tech/tags/environment.md>), [example](<https://devfeed.tech/tags/example.md>), [factory](<https://devfeed.tech/tags/factory.md>), [java](<https://devfeed.tech/tags/java.md>), [json](<https://devfeed.tech/tags/json.md>), [jwt](<https://devfeed.tech/tags/jwt.md>), [key](<https://devfeed.tech/tags/key.md>), [limits](<https://devfeed.tech/tags/limits.md>), [load](<https://devfeed.tech/tags/load.md>), [loader](<https://devfeed.tech/tags/loader.md>), [mock](<https://devfeed.tech/tags/mock.md>), [payments](<https://devfeed.tech/tags/payments.md>), [paypal](<https://devfeed.tech/tags/paypal.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [serviceloader](<https://devfeed.tech/tags/serviceloader.md>), [spi](<https://devfeed.tech/tags/spi.md>)

### AI overview

The proposed pattern loads a small factory through ServiceLoader instead of loading the service implementation directly. The factory has the required public no-argument constructor and creates the real service, which can take configuration such as a payments provider's API key. This addresses ServiceLoader's constructor constraint. The factory also provides a place to select among implementations, since ServiceLoader itself returns discovered providers in roughly classpath order without IDs, priorities, or applicability checks. The author says Java 9's static provider method can construct an object but does not solve selection. The excerpt introduces the pattern but ends before showing how selection is implemented.

### Source excerpt

I keep coming back to java.util.ServiceLoader. I have used it to put a JSON layer behind a contract, so the core code carries no direct dependency on any particular JSON library, and I can swap the implementation without touching callers. The same shape works for JWT handling, where the concrete library might be jose4j or another JOSE implementation, and you can easily find other decoupling use-cases.

## Engineering a Vercel Chat Adapter

DevFeed: [Engineering a Vercel Chat Adapter](<https://devfeed.tech/articles/engineering-a-vercel-chat-adapter-82684.md>)

Original publisher: [Read original article](<https://resend.com/blog/engineering-a-vercel-chat-adapter>)

Author: João Melo

Published: 2026-06-22T00:00:00Z

Content type: article

Language: en

Sources: [Resend](<https://devfeed.tech/sources/resend.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [code](<https://devfeed.tech/tags/code.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Resend describes building an open source adapter that brings email into Vercel Chat SDK as a bidirectional chat channel. The article explains how it reconstructs email threads from message headers, maps SDK messages and cards into email, and uses React Email to render structured content.

### Source excerpt

How we built our open source Vercel Chat SDK adapter

## Formalising external APIs

DevFeed: [Formalising external APIs](<https://devfeed.tech/articles/formalising-external-apis-51504.md>)

Original publisher: [Read original article](<https://gleam.run/news/formalising-external-apis>)

Author: Louis Pilfold

Published: 2025-10-19T00:00:00Z

Content type: release

Language: en

Sources: [Gleam](<https://devfeed.tech/sources/gleam.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [conditionals](<https://devfeed.tech/topics/conditionals.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>), [code beautification](<https://devfeed.tech/topics/code-beautification.md>), [import](<https://devfeed.tech/topics/import.md>), [modules](<https://devfeed.tech/topics/modules.md>), [Sequences](<https://devfeed.tech/topics/sequences.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [identifier](<https://devfeed.tech/topics/identifier.md>), [Exception handling](<https://devfeed.tech/topics/exception-handling.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [beam](<https://devfeed.tech/tags/beam.md>), [data](<https://devfeed.tech/tags/data.md>), [data-types](<https://devfeed.tech/tags/data-types.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [ecosystems](<https://devfeed.tech/tags/ecosystems.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [erlang](<https://devfeed.tech/tags/erlang.md>), [external](<https://devfeed.tech/tags/external.md>), [interface](<https://devfeed.tech/tags/interface.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [performance](<https://devfeed.tech/tags/performance.md>), [wrapper](<https://devfeed.tech/tags/wrapper.md>)

### AI overview

Gleam v1.13.0 adds a documented guide for externals and a dedicated JavaScript API for constructing and inspecting Gleam data. Existing JavaScript externals will need to migrate, with tooling and team help planned. The compiler also prunes redundant bit-array checks and warns about impossible bit patterns, unused recursive arguments, and inefficient list-length emptiness checks. Build output now reports dependency changes to support auditing locked versions. Many language-server improvements add or refine code actions, including extracting functions, expanding and collapsing pattern matches, and generating functions across modules; extraction uses a placeholder name because of an LSP limitation. Other changes improve type names in generated documentation and editor actions, syntax diagnostics, and formatter behavior.

### Source excerpt

Gleam is a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes. Today Gleam v1.13.0 has been published. Let's go over all the highlights now. External API for Gleam data One of Gleam's strengths is that it is part of the BEAM and JavaScript ecosystems, enabling Gleam programs to take advantage of code written in Erlang, Elixir, JavaScript, and more. This is a large part of how Gleam was able to become a practical production-ready language so quickly, by not restricting Gleam programmers to just the comparatively young Gleam package ecosystem. A function written in one of these other languages can be imported into a Gleam module as an "external function", and then called without any additional performance overhead. @external(erlang, "moon_base", "launch_spaceship") pub fn lift_off(countdown: Int) -> Result(Spaceship, LaunchError) Here the Erlang function launch_spaceship from the module moon_base is being imported. One restriction to external functions is that they will need to return data types that Gleam can understand. Gleam's "external type" feature lets the programmer refer to types defined in other languages, but if the programmer wants to be able to directly construct and pattern match data from external functions it will need to be in a format compatible with Gleam data types. Often a programmer will write a small wrapper function in the external language to convert the data, and also to make the interface adhere to Gleam patterns and conventions. -module(moon_base). -export([launch_spaceship/1]). launch_spaceship(Countdown) -> try Spaceship = launch_control:launch_spaceship(Countdown), {ok, Spaceship} catch error:no_fuel -> {error, no_fuel}; error:bad_weather -> {error, bad_weather} end. This launch_spaceship Erlang function wraps the function from the launch_control module, converting the exception-based API into a Result type, the Erlang representation of Gleam's Ok and Error variants. One thing that a Gleam programmer ma

## August 2024 - Bookmarks

DevFeed: [August 2024 - Bookmarks](<https://devfeed.tech/articles/august-2024-bookmarks-32287.md>)

Original publisher: [Read original article](<https://domenicoluciani.com/2024/08/01/bookmarks.html>)

Published: 2024-07-31T22:00:00Z

Content type: article

Language: en

Sources: [Domenico Luciani](<https://devfeed.tech/sources/domenico-luciani.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [go](<https://devfeed.tech/tags/go.md>)

### AI overview

A collection of nine links from August 2024, including articles about the Go programming language and the adapter pattern in Go.

### Source excerpt

Bookmarks for August 2024: 9 links - Go, a reasonable good language -- kokada; The adapter pattern in Go -- Bitfield Consu..., and more.

## Design Patterns in Machine Learning Code and Systems

DevFeed: [Design Patterns in Machine Learning Code and Systems](<https://devfeed.tech/articles/design-patterns-in-machine-learning-code-and-systems-46431.md>)

Original publisher: [Read original article](<https://eugeneyan.com//writing/design-patterns/>)

Author: Eugene Yan

Published: 2022-06-12T00:00:00Z

Content type: article

Language: en

Sources: [Eugene Yan](<https://devfeed.tech/sources/eugene-yan.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [systems](<https://devfeed.tech/topics/systems.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>)

Tags: [cassandra](<https://devfeed.tech/tags/cassandra.md>), [code](<https://devfeed.tech/tags/code.md>), [data-pipelines](<https://devfeed.tech/tags/data-pipelines.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [hugging-face](<https://devfeed.tech/tags/hugging-face.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [machinelearning](<https://devfeed.tech/tags/machinelearning.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

An overview of design patterns used in machine learning code and systems, explaining how factories, adapters, and decorators structure components, communicate intent, and improve compatibility across data and software frameworks.

### Source excerpt

Understanding and spotting patterns to use code and components as intended.

## Unconfined Enums Adapter for Moshi

DevFeed: [Unconfined Enums Adapter for Moshi](<https://devfeed.tech/articles/unconfined-enums-adapter-for-moshi-25914.md>)

Original publisher: [Read original article](<https://medium.com/@xxfast/unconfined-enums-adapter-for-moshi-5d84542c8bf0?source=rss-43bae76e8f81------2>)

Author: Isuru Rajapakse

Published: 2022-05-11T12:08:49Z

Content type: article

Language: en

Sources: [Isuru Rajapakse](<https://devfeed.tech/sources/stories-by-isuru-rajapakse-on-medium.md>)

Topics: [enum](<https://devfeed.tech/topics/enum.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [interface](<https://devfeed.tech/topics/interface.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [converter](<https://devfeed.tech/tags/converter.md>), [enum](<https://devfeed.tech/tags/enum.md>), [enums](<https://devfeed.tech/tags/enums.md>), [interface](<https://devfeed.tech/tags/interface.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [moshi](<https://devfeed.tech/tags/moshi.md>), [need](<https://devfeed.tech/tags/need.md>), [retrofit](<https://devfeed.tech/tags/retrofit.md>)

### AI overview

The excerpt proposes replacing a finite Kotlin enum with an interface and an Unknown data class that retains an unrecognized API value, so Moshi can preserve values such as "Bananas" instead of throwing a JsonDataException or mapping them all to a fixed fallback. This makes the original server value available to application code, but an unrecognized value no longer has the enum's localized string-resource mapping. The excerpt cuts off before showing the complete adapter implementation.

### Source excerpt

If you wonder what an Unconfined Enum is, wonder no more because it is a thing I just made up. Enums by definition are confined, or finite. Therefore "unconfined enum" is really an oxymoron. Nevertheless, say you have this Fruit enum and want to map each value to an Android string resource. Kotlin's enum properties make this convenient enum class Fruit(@StringRes val stringRes: Int) { Apple(R.string.fruit_apple), Oranges(R.string.fruit_orange) } When we want to consume this enum from a Restful API with a Moshi converter, Moshi automatically generates the enum adapter for you, but if you want to customise the behaviour for whatever reason, you can do object FruitsAdapter { @ToJson fun toJson(type: Fruit): String = type.name @FromJson fun fromJson(name: String): Fruit = Fruit.values().first { it.name == name } } Happy days. Everything is working as expected. When things go bananascom.squareup.moshi.JsonDataException: Expected one of [Apple, Oranges] but was Bananas at path $ Good APIs don't break contracts. Not all APIs are good APIs, so some can break contracts. What do we do now? push out an update with added enum value and its string resource? Perhaps we can make use of EnumJsonAdapter's .withUnknownFallBack() enum class Fruit(@StringRes val stringRes: Int) { Apple(R.string.fruit_apple), Oranges(R.string.fruit_orange), Unknown(R.string.fruit_unknown) } Moshi.Builder() .add(KotlinJsonAdapterFactory()) .add(Fruit::class.java, EnumJsonAdapter.create(Fruit::class.java) .withUnknownFallback(Fruit.Unknown)) .build() This certainly stops the app from crashing, but what if we actually want to show the "bananas" that the API sends? you know, as a fail safe so that users wouldn't end up seeing "unknowns". Let's open up the Enums Enums are by definition finite. Enums are final by design. Enums can't be subclassed but they still can inherit interfaces. We will exploit this to create our "unconfined" enum interface Fruit { val name: String data class Unknown(override val name:

## The forgotten art of construction

DevFeed: [The forgotten art of construction](<https://devfeed.tech/articles/the-forgotten-art-of-construction-25893.md>)

Original publisher: [Read original article](<https://proandroiddev.com/the-forgotten-art-of-construction-cfedc368e67f?source=rss-1331e67af4e1------2>)

Author: Danny Preussler

Published: 2020-06-22T17:39:16Z

Content type: article

Language: en

Sources: [Danny Preussler](<https://devfeed.tech/sources/stories-by-danny-preussler-on-medium.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [class](<https://devfeed.tech/topics/class.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [android](<https://devfeed.tech/tags/android.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [clean-architecture](<https://devfeed.tech/tags/clean-architecture.md>), [clean-code](<https://devfeed.tech/tags/clean-code.md>), [code-smell](<https://devfeed.tech/tags/code-smell.md>), [code-smells](<https://devfeed.tech/tags/code-smells.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [dagger](<https://devfeed.tech/tags/dagger.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [koin](<https://devfeed.tech/tags/koin.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [spring](<https://devfeed.tech/tags/spring.md>)

### AI overview

The excerpt argues that dependency injection tools can hide "Constructor Over Injection": classes with many dependencies are harder to understand and test, and may signal a violation of the Single Responsibility Principle. It suggests keeping constructor arguments below four as a rule of thumb, while treating that as guidance rather than a hard rule. To reduce dependencies, group related items such as schedulers, hide implementation details behind focused facades or interfaces, and use use cases to expose operations that combine unrelated repositories. If remaining dependencies point to different responsibilities, split the class. Builders or parameter objects may reduce the visible argument list without reducing the underlying complexity. The article recommends checking constructors and responsibilities regularly as classes grow.

### Source excerpt

How tools made us forget how to write sane constructors https://unsplash.com/photos/qvBYnMuNJ9A In an ideal world, developers get smarter every day. The code we write this year should be better than the code we wrote 10 years ago, which in turn should be better than the code 20 years ago. Today we have better tools, more modern languages, and better practices. But as often in life, we realize we are not living in that ideal world. In nearly every codebase I see today, there are things that would shock a developer two decades ago. I am speaking of what Mark Seemann called "Constructor Over Injection". We've all learned to inject our dependencies into constructors. And ideally use a tool for that like Spring or Dagger. If you look at some random classes from your codebase, how many fields are you injecting? Three? Five? More? I'm pretty sure you easily can find classes with even more, like this one: class ProfilePresenter @Inject constructor( @MainThreadScheduler private val mainScheduler: Scheduler, @IOScheduler private val ioScheduler: Scheduler, private val profileApi: ProfileApi, private val userRepository: UserRepository, private val analytics: Analytics, private val errorReporter: ErrorReporter private val referrerTracker: ReferrerTracker, private val shareTracker: ShareTracker, private val tracksRepository: TracksRepository, private val playlistRepository: PlaylistRepository ) If you would show this constructor to a developer from 20 years ago they would probably look at you as if you would be crazy. No one would want to call this constructor and provide all these parameters. But these days we don't care. We don't have to. We have a tool that will provide us with all those parameters, right? This does not make it right though! The proof If you would use some manual injection code or a service locator like Koin, you would notice more what's going on because you would need to write code like this: ProfilePresenter(get(), get(), get(), get(), get(), get(), get(),