Development

29 articles
Dev.to · about 3 hours ago

MCP Model Context Protocol in TypeScript: build portable tools across Claude, GPT, and local models

The article discusses the common mistake of coupling logic to the Anthropic client when implementing the MCP Model Context Protocol in TypeScript. This makes tools non-portable across different models. To design portable tools, follow the MCP specification and keep logic separate from the SDK handler. The minimum contract defined by the spec includes a tool's name, description, input schema, and a handler function that receives validated input and returns structured content.

Dev.to · about 3 hours ago

MCP Model Context Protocol en TypeScript: diseñá tools portables entre Claude, GPT y modelos locales

El artículo critica la implementación común de MCP (Model Context Protocol) en TypeScript, donde se acopla la lógica de negocio al cliente de Anthropic, lo que hace que las herramientas no sean portables. Se enfatiza la importancia de seguir la especificación oficial de MCP, que define un protocolo agnóstico al modelo, y se proporciona un ejemplo de cómo diseñar herramientas portables siguiendo los límites del protocolo.

DevOps.com · about 4 hours ago

Still Using API Keys for Your AI Agent? Here’s When it’s Time to Upgrade 

API keys are being replaced by OAuth as the foundation for secure AI agent authentication. This upgrade is necessary for secure and scalable development. Developers should consider switching to OAuth for their AI agents. This change will improve security and future-proof their applications.

Hacker News · about 6 hours ago

Port React Compiler to Rust

The React compiler has been ported to Rust, allowing for improved performance and security. This change matters as it will enable better optimization and reduce the risk of vulnerabilities. Engineers should review the GitHub pull request for details on the implementation and potential impact on their projects.

Hacker News · about 19 hours ago

Grit: Rewriting Git in Rust with agents

Grit is a new implementation of Git in Rust, using agents to improve performance and security. This matters because it could lead to faster and more secure Git operations. Engineers should consider trying Grit as an alternative to traditional Git. However, more testing and evaluation are needed before widespread adoption.

Dev.to · 1 day ago

The Frontend UI Library Landscape Explained for Developers

The frontend UI library landscape has evolved with various libraries and frameworks offering different solutions. Tailwind provides utility classes, MUI offers pre-built React components, Radix handles complex component behavior, and Chakra UI strikes a balance between the two. Developers can choose based on their needs and preferences. For new projects, consider the trade-offs between customization, productivity, and accessibility.

Hacker News · 2 days ago

Apple Core AI Framework

Apple has released Core AI, a framework for building AI and machine learning models on Apple devices. This matters for developers who want to integrate AI into their iOS and macOS apps. To get started, visit the Apple Developer documentation for Core AI.

Dev.to · 2 days ago

Locators & Web-First Assertions (Playwright + TypeScript, Ch.3)

This article discusses the importance of using Playwright locators in a specific order of preference to ensure reliable web testing. The recommended order is: getByRole, getByLabel, getByPlaceholder, getByText, and getByTestId. This approach helps to avoid brittle tests that break when the markup changes. The article also highlights the benefits of web-first assertions, which auto-wait and re-poll until the condition is true or a timeout hits, reducing the risk of flaky tests. Engineers should prioritize using locators in this order and leverage scoping to keep locators readable as pages grow.

Dev.to · 2 days ago

Setup & Your First UI + API Tests (Playwright + TypeScript, Ch.2)

This article covers setting up UI and API tests using Playwright and TypeScript. The author installs Playwright, sets up a test runner, and configures the environment. Two small files are created to keep URLs in one place and to configure the Playwright test runner. The author then writes a simple test to verify the brand renders on the home page of the Inkwell app. This is the second chapter of a course on Playwright QA.

Dev.to · 2 days ago

Why a Test Automation Framework? (Playwright + TypeScript, Ch.1)

This article is the first chapter of a hands-on course on building a production-grade test automation framework using Playwright and TypeScript. The course covers both API and UI testing, and by the end, you'll have a structured approach to prevent test tangles. You can follow along with the code in the companion GitHub repo.

Dev.to · 2 days ago

The NetSapiens inter-domain calling quirk that keeps showing up

A NetSapiens inter-domain calling quirk causes incorrect caller IDs to display when calls are transferred or held between domains. This affects multi-tenant reseller deployments, leading to cosmetic issues like incorrect call history and voicemail attribution. To work around this, configure SIP header rewriting, verify call history fields, or check for client-side caching issues. A deeper fix requires a platform-side update, depending on the NetSapiens version.

Hacker News · 2 days ago

The Cypherpunk Library

The Cypherpunk Library is a collection of cryptographic and privacy-focused resources. It matters for developers who want to learn about secure coding practices. The library includes books, articles, and code examples. It's a valuable resource for those interested in cryptography and privacy.

Hacker News · 3 days ago

The Smallest Brain You Can Build: A Perceptron in Python

A developer created a simple Perceptron in Python, explaining the concept from scratch. This article provides a basic understanding of neural networks and their applications. It's a good resource for beginners looking to learn about machine learning. The code is available on GitHub.

Hacker News · 3 days ago

A Matter Wi-Fi Light Bulb in Rust on the Raspberry Pi Pico 2 W

A developer created a Wi-Fi enabled light bulb using Rust on the Raspberry Pi Pico 2 W. This project showcases the capabilities of the Raspberry Pi Pico 2 W and Rust programming language. The code is available on GitHub for reference and potential use. This matters for embedded systems developers looking for examples of Wi-Fi enabled projects. Check out the GitHub repository for more information.

Dev.to · 3 days ago

How I Used Python to Analyse 40,000 Human Gut Cells and Uncover What Makes Crohn's Disease Different from Colitis

A computational biologist used Python to analyze 40,000 human gut cells from 18 patients with Crohn's disease, ulcerative colitis, or healthy controls. The goal was to understand the biological differences between Crohn's and ulcerative colitis. Single-cell RNA sequencing was used to read the activity of every gene in every cell, but batch effects from different lab processing made the data messy. To overcome this, the biologist used Python to correct for batch effects and identify the key differences between the two diseases.

Dev.to · 3 days ago

How to Measure AI ROI: A 2026 Framework for Proving Return on AI Spend

The article discusses the challenges of measuring AI ROI, with 95% of organizations reporting no measurable return. To overcome this, teams should focus on cost per outcome, not total spend. This can be achieved by implementing FinOps and optimizing AI token and GPU costs. By doing so, teams can reduce costs and improve AI ROI. To measure ROI effectively, teams should hold the unit of value constant and act on the data.

Dev.to · 4 days ago

I built an all-in-one Social Media Toolkit API — 8 tools in one endpoint set

A developer created an all-in-one social media toolkit API with 8 tools, including username availability, hashtag generation, and engagement rate calculation. The API is now live on RapidAPI with a free tier. Engineers can use this API to simplify their social media-related projects. To get started, use the provided endpoints and follow the example usage. The API is built using Node.js, Express, and Upstash Redis, and is designed to be fast, scalable, and easy to use.

Dev.to · 4 days ago

#javascript #apnacollege #webdev #beginners

The author learned about JavaScript functions, including how to declare and invoke them, pass parameters and arguments, and use the return keyword. This is a fundamental concept in programming that allows for reusable code. The author practiced solving functional challenges and is moving on to modern JavaScript syntax, including arrow functions and array callback methods. This is a key milestone in mastering the MERN stack.

Dev.to · 4 days ago

FastAPI vs Flask vs Django: which one for an AI backend in 2026

FastAPI is the top choice for AI backends in 2026 due to its built-in support for async I/O, structured validation, and streaming responses. It's built on ASGI and generates OpenAPI docs automatically. Consider using FastAPI for its native handling of async requests and concurrent load. Refactor existing projects to use FastAPI for optimal performance. Replace Flask or Django with FastAPI for AI backend development.

AWS Blog · 5 days ago

Try the new console experience in Amazon Bedrock, optimized for Anthropic- and OpenAI-compatible APIs

Amazon Bedrock now offers a new console experience optimized for Anthropic- and OpenAI-compatible APIs, allowing users to compare AI models, organize projects, and access live documentation with auto-prefilled code snippets. This update improves workflows and productivity. Users can try the new experience to streamline their AI development process. It's recommended to explore the new features and adjust workflows accordingly.

Dev.to · 5 days ago

Claude vs GPT-4: Which AI API Is Better for Developers? (2026)

Developers face a choice between Claude and GPT-4 for their applications. This comparison highlights key differences in models, pricing, and features. Claude excels in code generation, long doc analysis, and prompt caching, while GPT-4 offers fine-tuning capabilities. Consider Claude for production apps and GPT-4 for tasks requiring fine-tuning. Evaluate pricing and context windows when making a decision.

Hacker News · 5 days ago

There's no escaping it: an exploration of ANSI codes

The article discusses ANSI escape codes, which are used to add color and formatting to terminal output. They are widely used in development environments. Understanding ANSI codes can help developers create more visually appealing and user-friendly interfaces. It's essential for developers to be familiar with ANSI codes to create effective terminal-based applications. Developers can use online tools or libraries to work with ANSI codes.

Dark Reading · 6 days ago

Rust-Written IronWorm Hits NPM Supply Chain

A new campaign called IronWorm, written in Rust, has been discovered targeting developers to steal credentials and spread across the software supply chain via NPM. This poses a significant threat to developers and organizations relying on NPM packages. Immediate action is required to review and secure dependencies. Developers should update their packages and monitor for suspicious activity.

CSS-Tricks · 6 days ago

Another Stab at the Perfect CSS Pie Chart… Sans JavaScript!

Author Antoine Villepreux created a semantic and flexible CSS Pie Chart without using JavaScript. This matters for developers who want to create visualizations without relying on JavaScript. To learn more, check out the original article on CSS-Tricks. This approach can be useful for simple data visualizations.

Dev.to · 6 days ago

Python’s Private Variables Aren't Private: An AppSec Reality Check

Python's private variables aren't truly private due to the honor system and name mangling, which can be bypassed. To enforce data integrity, use true immutability, server-side zero-trust, and automate checks. This is a critical AppSec reality check for developers.

DevOps.com · 7 days ago

Why the Trust Layer Is the Next Thing Developers Will Commodify

Enterprises are diverting resources to implement AI features, straining their engineering roadmaps. This mismatch can lead to inefficiencies and a lack of focus on core business functions. Developers are being pulled away from core tasks to implement non-essential AI features. This trend is expected to continue, with the trust layer being the next area to be commodified. As a result, developers should prepare for increased demand on their resources.

Hacker News · 7 days ago

Gooey: A GPU-accelerated UI framework for Zig

Gooey is a new UI framework for Zig that leverages GPU acceleration. This could improve performance and efficiency in graphical applications. Developers can explore the framework on GitHub. It's worth considering for projects requiring high-performance graphics. No immediate action is required.

Dev.to · 7 days ago

Stop shipping a 1990s C library to compute planets. Xalen is the pure-Rust, Apache-2.0 replacement for Swiss Ephemeris.

Swiss Ephemeris, a 1990s C library for computing planets, has been replaced by Xalen, a pure-Rust, Apache-2.0 alternative. Xalen offers improved performance, thread-safety, and a permissive license, making it a better choice for production use. To migrate, simply replace 'swisseph' with 'xalen.swe' in your code. This switch eliminates the need to ship binary data files and resolve license issues.

Hacker News · 7 days ago

Bun Has Been Converted to Rust. Now What?

Bun, a JavaScript runtime, has been converted to Rust for performance improvements. This change is significant for developers who use Bun, as it may lead to better performance and reliability. Developers should monitor the project's progress and consider updating to the new Rust version. The conversion is expected to bring significant performance gains, making it a worthwhile update for many users.

FeedLens — Signal over noise Last 7 days