SShortSingh.

Programming

0
ProgrammingDEV Community ·

Building a Dynamic Strategy Pattern in C# with Customer Tiers and Plugin Architecture

The Strategy Pattern is a staple of object-oriented design. It lets you encapsulate a family of algorithms and make them interchangeable at runtime. However, traditional implementations often suffer from heavy interface hierarchies and rigid factory logic. In modern C#, language features like switch expressions, primary constructors, collection expressions, and collectible AssemblyLoadContext allow us to build clean, extensible strategy pipelines with zero unnecessary boilerplate. In this article, we'll walk through building a flexible shipping rate calculator that supports: Multiple Carrier S

0
ProgrammingDEV Community ·

A listing id that ignores the query string, and the trailing slash that would have made every room new

Notifio is a desktop app that watches rental search result pages and tells you the moment a new listing appears on one. The whole product is a diff. It reads a search page, compares what is on it with what was on it last time, and the difference is the alert. Which means the only interesting question in the codebase is what counts as "the same listing". Get that wrong in one direction and the user gets an email about a room they already replied to.

0
ProgrammingDEV Community ·

I Poisoned One Test Per Problem. The Best Models Noticed, Then Made It Pass Anyway.

This is a submission for the Kaggle Benchmarking Challenge I work freelance, writing and grading tasks for AI coding agents. After enough of those reviews you pick up a reflex: when every test is green, you go looking for the if statement that shouldn't be there. This benchmark is that reflex, turned into numbers. When a model writes code, is it solving the problem described in the spec, or the three examples sitting under it? I wrote 12 small Python functions: days in a month, IPv4 validation, version comparison, interval merging, a Luhn checksum, rounding, and a few others.

0
ProgrammingDEV Community ·

Wiring Core ML's Neural Engine to a Quantized On-Device Embedding Model for Real-Time Semantic Search

--- title: "On-Device Semantic Search with Core ML ANE: Quantized Embeddings, HNSW Indexing, and the Memory Ceiling That Actually Matters" published: true description: "Deploy a quantized MiniLM-L6 INT8 model on iPhone via Core ML, force ANE scheduling, profile token throughput with Instruments, and keep your HNSW index under the on-device memory ceiling." tags: [ios, swift, mobile, architecture] canonical_url: https://mvpfactory.co/blog/on-device-semantic-search-core-ml-ane-quantized-embeddings --- By the end of this tutorial, you will have a fully on-device semantic search pipeline: a quanti

0
ProgrammingDEV Community ·

Inside J3D Eye: Building a Real-Time Global Camera Intelligence & OSINT Dashboard

Hey everyone! 👋 When expanding JED AI (https://jedcorp.ink) beyond automated vulnerability scans and terminal orchestration, we wanted to tackle a different kind of challenge: real-time global telemetry and visual intelligence. Enter J3D Eye: our global camera intelligence and OSINT dashboard designed to aggregate live multi-source video feeds, satellite overlays, and perimeter feeds into a unified command center. Here is a breakdown of how we built it and why real-time geospatial intelligence visualization matters for modern security operations. J3D Eye acts as an immersive surveillance and

0
ProgrammingDEV Community ·

Claude Parallel Tool Use: My Agent Loop Crashed on 388 of 1,200 Runs

My codebase Q&A agent ran 1,200 times in its first week. 388 of those runs died with the same HTTP 400. The other 812 worked fine, which is the worst possible ratio: too low to look like a broken deploy, too high to ignore. The cause was one line I'd copied from my own earlier prototype: next(b for b in resp.content if b.type == "tool_use"). It grabs the first tool call.

0
ProgrammingDEV Community ·

How LLM Evaluation Produces Comparable Numbers: Inside the LFORLA Reverse Engineering Benchmark

TL;DR LLM evaluation only becomes useful when every model faces the same prompts, the same fixed judge, per-axis rubrics, and a public verbatim trail. The LFORLA Reverse Engineering benchmark does exactly that: it restores C source from stripped binaries, scores with deterministic token similarity against server-only references, and publishes what each model actually answered. Here is how the numbers are made, what the current leaderboard shows, and how to read it without fooling yourself. The benchmark is called Reverse Engineering (Binary to Source). The task is blunt: given a stripped binar

0
ProgrammingDEV Community ·

The Day Your AI Goes Rogue

The biggest enterprise AI risk in the next decade may not be a malicious AI. It will be a capable one pursuing the goal it was given — with too much access and nothing to stop it. For three years the enterprise conversation about AI safety has been about the answer. Is the output accurate. Is it biased.

0
ProgrammingDEV Community ·

PostgreSQL Row-Level Security: Multi-Tenancy Without Leaking Tenant Data

Building a multi-tenant SaaS application is fraught with danger. In a traditional shared-database architecture, every single SQL query must remember to append a tenant filter: SELECT * FROM invoices WHERE tenant_id = 'acme_corp'; If a developer writes just one query and forgets WHERE tenant_id = :id: SELECT * FROM invoices WHERE id = :invoice_id; -- BUG! Tenant Acme Corp can suddenly view Tenant Globex's financial invoices! This is one of the most common and catastrophic data leak vulnerabilities in SaaS platforms. Instead of relying on fragile application-level WHERE clauses, PostgreSQL provi

0
ProgrammingDEV Community ·

Ghost CMS Mass Disclosure — 6 CVEs Including CVSS 8.1 Staff Session Bypass

A Ghost staff user with valid credentials can log into any other staff account using only the target's password — bypassing 2FA entirely. CVE-2026-103283 (CVSS 8.1) leads a cluster of six vulnerabilities in Ghost CMS disclosed October 1. Here's the full picture: CVE-2026-103283 (8.1) — Staff session bypass. Any authenticated staff user can impersonate any other staff member with just their password. 2FA does not protect against this.

0
ProgrammingDEV Community ·

Why Data Reconciliation Matters in AWS Glue: Finding Missing Records with Anti Joins

A pipeline can be green and still have a data problem. This is one of the things I learned while working with data pipelines. A Glue job can complete successfully, files can be written to S3, and there may be no obvious error in the logs. But that doesn't necessarily mean that every record made it from the source to the target. That's where data reconciliation comes in.

0
ProgrammingDEV Community ·

Tool traces are not an AI agent audit trail

An LLM observability log can show the prompt, the tool name, and the latency. Useful for debugging. Not enough for an auditor. When someone asks "what did this agent do, and why was it allowed?", you need an authorization envelope at the enforcement boundary: Agent identity plus the human principal or delegation chain Tool + resource + action Policy ID/version and allow/deny with a reason HITL approval when the policy required one Correlation IDs that join the decision to the side effect Logging only after the tool runs misses the control point. Prefer the PDP or MCP gateway that decides befor

0
ProgrammingDEV Community ·

Building Agent-Ready VFX Workflows for Web Game Teams

Visual effects are an awkward part of an AI-assisted development workflow. A coding agent can modify TypeScript, update tests, and refactor a component because the inputs and outputs are visible in the repository. VFX work often looks different: editor state, binary assets, renderer-specific settings, and visual decisions that cannot be judged from a diff alone. So simply giving an agent access to a particle editor is not enough. For agent ready VFX tools to be genuinely useful, the workflow needs four things: source files an agent can inspect and edit; deterministic validation before anything

0
ProgrammingDEV Community ·

Day 2: The model I want is the one that's boring everywhere

Kaggle Benchmarking Challenge. Previously: Day 0, the benchmark · Day 1, most of my bugs looked like model behaviour The benchmark asks one question twice: can the model do the job, and does it know when it can't? There are 200 invented items in four everyday shapes: route, classify, judge and ground. In each shape, one item in five can only be answered with ESCALATE. Every model gets two numbers that are never merged: a task score, and a false-confidence rate (how often it answered anyway when the right reply was ESCALATE).

0
ProgrammingDEV Community ·

health-export-mcp v1.5.0: encrypted Apple Health exports and rebuilt-day provenance

health-export-mcp v1.5.0 shipped encrypted exports and rebuilt-day provenance. Encrypted exports. The MetricBridge iOS app can encrypt each destination with a passphrase. The server gets the same passphrase through HEALTH_EXPORT_PASSPHRASE (or a file), and decrypts in memory on your machine. A tampered or wrong-passphrase file returns a named reason instead of pretending there is no data.

← NewerPage 722 of 3158Older →