SShortSingh.

Programming

0
ProgrammingDEV Community ·

How TypeSafe's Jev Delivers Ultra-Fast Classification Without Free-Text Output

TypeSafe AI's Jev model has rapidly gained traction as a high-speed classification tool, reportedly processing tasks like support ticket routing in around 90 milliseconds. Unlike standard LLM calls, Jev returns only typed values — such as a chosen category, a ranked score, or a single probability — and never generates free-form text. This design, inspired by the concept of fast, instinctive human decision-making known as System One thinking, eliminates common failure points like malformed JSON or hallucinated output categories. Because Jev runs on TypeSafe's proprietary servers with no public architecture documentation, developer analysis has largely relied on open-source alternatives like simple-jev, which replicates the same request structure on open models such as Gemma and Qwen. The core technical mechanism involves constraining which tokens the model is permitted to output, effectively forcing structured answers directly at the generation level rather than parsing prose after the fact.

0
ProgrammingDEV Community ·

NTLM, Kerberos, and LDAP Compared: Choosing the Right Auth Method for E-commerce

A technical analysis published on DEV Community examines three widely used authentication protocols — NTLM, Kerberos, and LDAP — to help startups and cybersecurity beginners select the most secure option. NTLM, developed by Microsoft, uses a six-step challenge-response mechanism with hash-based password verification but is considered outdated and limited in encryption strength. Each protocol was evaluated across key dimensions including security strengths, use-case scenarios, known vulnerabilities, and practical limitations. The guide is aimed at those building or securing e-commerce environments where protecting user identities and data integrity is critical. Microsoft has largely deprecated NTLM in favor of more robust authentication standards, though it remains in use in some legacy and intranet environments.

0
ProgrammingDEV Community ·

Why LLM Chatbots Lose Memory and How Persistent Sessions Fix It

Large language models process each API call in isolation, meaning they retain no memory of previous messages without developer intervention. A developer writing on DEV Community explains that the simplest fix is to store conversation history per session using an in-memory map, then pass the full message history with every API call. However, this approach has critical flaws: all data is lost on server restart, session isolation can break under concurrent users, and long histories consume excessive tokens. The article proposes moving to persistent storage — specifically serverless PostgreSQL via Neon — to properly isolate and retain user sessions across restarts. The tutorial walks through a Spring Boot implementation, progressing from a basic in-memory solution to a production-ready architecture.

0
ProgrammingHacker News ·

Montreal passes bylaw making it illegal to insult police and city workers

The city of Montreal has adopted a new bylaw that prohibits residents from insulting police officers and municipal employees. The regulation represents a formal legal restriction on verbal conduct directed at city staff and law enforcement. The move was approved by Montreal city council, adding insults to the list of punishable offenses under local rules. The bylaw has drawn public attention and debate over its implications for free speech and civil liberties in the city.

0
ProgrammingDEV Community ·

Key Backend Patterns to Protect Critical Business Data from Loss or Corruption

Backend systems handling payments, orders, and employee records require more than basic database storage — they must preserve history, enforce access control, and provide context when issues arise. Storing only the current state of a record leaves engineers without the audit trail needed to understand how that state was reached, making a change-history table or event-based approach far more effective. Naming business events meaningfully — such as payment_received or approval_granted — helps different services like notifications, auditing, and analytics respond appropriately to the same action. Idempotency, where the server tracks unique request identifiers to avoid duplicate processing, is essential for APIs operating over unreliable networks. Structured audit logs that record who acted, what changed, when, and on which object are also recommended as a separate layer from standard operational logs.

0
ProgrammingDEV Community ·

Build vs Buy: The Real Cost of Rolling Your Own .NET Licensing in 2026

A detailed technical guide published on DEV Community examines the true complexity and cost of building custom software licensing for .NET applications. While generating and verifying a cryptographic license key is straightforward using built-in .NET libraries, developers quickly face far harder challenges around key management, seat enforcement, and format versioning. Features like seat limits require a stateful, always-on backend service to atomically track activations, making DIY licensing effectively a separate product to build and maintain. The guide also highlights difficulties with machine fingerprinting, offline validation, and the operational burden of key rotation without breaking existing deployments. Its conclusion is that developers should only build their own licensing if needs are genuinely simple, and should consider buying a solution the moment features like trials, revocation, or customer portals are required.

0
ProgrammingDEV Community ·

How Public-Key Signing Enables Offline Software Licensing in .NET Apps

A technical guide outlines how .NET developers can implement software licensing using asymmetric cryptography, where a private key on the server signs license payloads and a public key embedded in the app verifies them offline. The approach uses a small JSON license payload containing fields such as licensee, product tier, seat count, and expiry, all protected by an RSA signature. Developers can use the Keyright.NET SDK to initialize a single client at startup, which validates the license without making a network call, making it suitable for air-gapped or enterprise environments. The guide notes that while offline validation is fast and functional, it can be patched out by a determined attacker, and online activation should be layered on top when seat enforcement or key revocation is required.

0
ProgrammingDEV Community ·

Self-hosted Pi-hole and Tailscale setup fails silently after Tailscale's 180-day key expiry

A developer running Pi-hole and Tailscale on a free Oracle Cloud VM in São Paulo lost DNS resolution across all devices after six months of smooth operation. The outage was traced to Tailscale's default 180-day node key expiry, which silently dropped the VM from the mesh network. Because the setup relied on a single DNS resolver — the now-unreachable VM — no fallback was available, blacking out name resolution on both a Windows 11 PC and a Galaxy S23 simultaneously. Internet connectivity itself remained intact, as confirmed by successful pings to public IPs, which helped isolate the failure to the DNS layer. The author has since documented the recovery process and flagged the key expiry behaviour as a critical detail for anyone running headless Tailscale nodes.

0
ProgrammingDEV Community ·

CSS Position Property: A Clear Guide to Static, Relative, Absolute, Fixed and Sticky

The CSS position property determines how elements are placed on a webpage, and it offers five distinct values each with different behavior. Static is the default, keeping elements in the normal document flow with no ability to offset them using top or left properties. Relative maintains an element's place in the flow but allows it to be shifted from its original position, while absolute removes it from the flow entirely and places it relative to its nearest positioned ancestor. Fixed anchors an element to the browser viewport so it remains visible during scrolling, making it ideal for floating buttons or persistent toolbars. Sticky combines normal and fixed behavior, acting as a regular element until a scroll threshold is reached, at which point it locks in place — commonly used for navigation bars.

0
ProgrammingHacker News ·

Tenuo AI introduces Jev framework for typed decisions and scoped authority

Tenuo AI has published a blog post introducing Jev, a framework designed around typed decisions and scoped authority in software systems. The concept focuses on structuring how decisions are made and authority is delegated within applications. The post explores practical implementations of these principles to improve system design and accountability. It was shared on Hacker News, where it received minimal engagement with four points and no comments at the time of reporting.

0
ProgrammingDEV Community ·

Why Hands-On Building Beats Theory Alone for Aspiring Developers

A perspective piece from WebPrims argues that practical, project-based learning is more effective for beginner developers than relying solely on tutorials and theory. The article contends that building real projects forces learners to encounter and solve unexpected errors, developing genuine problem-solving skills rather than just memorizing syntax. It also addresses the growing role of AI coding tools, cautioning that developers must still understand the code AI generates in order to verify, debug, and improve it. The piece encourages beginners to start building from day one, using completed projects as portfolio evidence of their capabilities. WebPrims promotes a 'Learn by Doing' philosophy centered on iterative building, breaking, debugging, and improving.

0
ProgrammingDEV Community ·

Developer Builds Monster Maker Drawing Prompt Tool as AI-Assisted Fork of Daily Doodle

A hobbyist developer behind Disco Doodle, a free no-signup drawing prompt site under the Plaid Labs brand, has launched Monster Maker, a new generator forked from the existing Daily Doodle tool. Instead of animals and occupations, Monster Maker prompts users with monster-themed categories such as eyeballs, horns, skin texture, arm style, and a mood dial ranging from silly to scary. The developer used an AI assistant to handle most of the technical fork work, after pasting in the original source file since the AI had no prior memory of the codebase. Custom logic was written for the sentence builder, as monster descriptions required different grammar than the original tool's output. The project also involved iterative design decisions around backgrounds and later additions including a share feature and an AI-recorded tutorial video.

0
ProgrammingDEV Community ·

Developer Rebuilt Express in C++ to Understand It, Achieved 4.8x Speed Gain

A developer at FYCLabs who struggled to understand Express's middleware chaining decided to rebuild the framework from scratch in C++ rather than simply reading its source code. The project, called PlusWeb, revealed that Express uses a linear route-matching scan, meaning routing performance degrades as more routes are registered. By implementing a segment-based trie instead, PlusWeb maintained roughly 90,000 requests per second regardless of route count, while Express dropped to 355 rps with 10,000 routes. On a realistic five-route application, PlusWeb outperformed Express 5 by about 4.8 times. The developer also learned through a side project building a JavaScript interpreter that Node.js itself wraps libuv, leading them to eventually adopt the library rather than maintain their own event loop.

0
ProgrammingDEV Community ·

Study finds web blocks bots far more than it blocks countries

A developer tested geo-blocking by sending HTTPS requests to the 500 most popular domains from eight servers across eight countries, plus a home connection in Sofia as a control. Out of 345 domains that responded, only 29 showed any geographic difference in status codes or final hostnames, amounting to just 8.4% variation across regions. Most of those differences were routine country-specific subdomains from companies like Yahoo, CNN, and Kaspersky, rather than genuine access restrictions. Crucially, around 27% of sites refused requests at a near-identical rate across all continents, pointing to datacenter IP detection rather than geography. Fourteen sites, including Reddit, Patreon, and Dell, served content to the home broadband connection while blocking all eight datacenter addresses, revealing that the web filters more by client type than by location.

0
ProgrammingHacker News ·

Seattle Bans Surveillance-Based Dynamic Pricing for Grocery Sales

The Seattle City Council has voted to prohibit surveillance pricing in the sale of groceries. Surveillance pricing refers to the practice of using personal data and tracking technologies to charge individual shoppers different prices based on their behavior or characteristics. The ban aims to protect consumers from algorithmically driven price discrimination at grocery retailers. Consumer Reports, which has advocated against such pricing practices, highlighted the council's decision as a significant win for shoppers. Seattle becomes one of the first cities in the United States to formally restrict this form of data-driven retail pricing.

0
ProgrammingDEV Community ·

VoIPCall: Open-Source Kotlin Dialer Brings PSTN Calls to Android via Vobiz

Developer Nuvyntra Labs has released VoIPCall, an open-source native Android dialer built in Kotlin and Jetpack Compose that routes PSTN calls through the Vobiz VoIP platform. The app uses SIP over a secure WebSocket for signaling and WebRTC for audio, supporting Android 12 and later devices. Each device registers a single Vobiz SIP endpoint, with the caller ID tied to a Vobiz number in E.164 format, while authentication credentials are kept in a separate Node.js backend rather than compiled into the APK. Inbound calls can wake the app even when the process has been terminated, using Firebase Cloud Messaging to push notifications to the handset. The project, available on GitHub, serves as a proof-of-concept native client filling a gap left by Vobiz's existing Flutter sample and Java REST SDK, neither of which provided a full Kotlin dialer with WebRTC audio.

0
ProgrammingDEV Community ·

How a Home Network Tool Correctly Reported 'Online' Despite Poor Cell Signal

A developer built a personal tool to monitor whether a phone has an active, validated network connection, and it consistently returned an 'ONLINE' status even while the cell signal was rated 'POOR'. The tool is designed so that signal quality and device idle time are recorded as separate annotations and are explicitly prevented from influencing the core connectivity verdict. This separation is intentional: the green-light verdict answers only whether a valid network route exists, not how strong the radio signal is. During testing, the developer observed the radio signal drift between POOR and WEAK readings across multiple runs, all while the connectivity status correctly remained ONLINE. The case illustrates a deliberate software design principle where distinct measurements answer distinct questions and cannot silently override one another.

0
ProgrammingDEV Community ·

Developer Tests AI-Powered IDE That Auto-Manages Repos and Implements Feature Requests

A developer building a custom IDE for several months is stress-testing a feature that uses AI to simulate a software team, automatically triaging issues and generating pull requests. The system assigns tasks to specialized AI agents, with a lead agent reviewing code before a PR is submitted. As a public experiment, the developer plans to let users submit tagged comments on a DEV Community post, triggering the AI to create actual PRs and reply with links. To avoid flooding Forem's main repository, generated PRs will be directed to the developer's personal fork for human review before any upstream merge. The long-term goal is to commercialize the tool through a platform called Dwarven Stronghold, offering paid feature requests with a quote-and-refund model.

← NewerPage 988 of 3190Older →