Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Would an AI let my patient drink thin water? Benchmarking LLMs on dysphagia diet safety

This is a submission for the Kaggle Benchmarking Challenge I'm a speech-language pathologist. I split my week between schools and a hospital, and a big part of the hospital work is dysphagia: people who have trouble swallowing after a stroke, with head and neck cancer, with dementia, or with a developmental disability. Concerns about swallowing safety are present in the school setting too. For these patients, the texture of food and the thickness of a drink are a safety decision. If a drink is too thin, it can go down the airway before the swallow is ready, and that can mean aspiration pneumonia. A piece of food that's too big or too firm can mean choking. So after a swallow evaluation we write a diet prescription, for example "Level 5 Minced & Moist foods, Level 2 Mildly Thick drinks." The shared language for this is the IDDSI framework (International Dysphagia Diet Standardisation Initiative, iddsi.org). It has 8 levels: drinks from 0 (Thin) to 4 (Extremely Thick), foods from 3 (Liquidised) to 7 (Regular / Easy to Chew), plus "Transitional Foods" that change texture when wet or warm. It also defines simple tests anyone can do. The Flow Test is 10 mL in a standard syringe: how much is left after 10 seconds? The Fork Pressure Test asks whether the food squashes when you press hard enough to turn your thumbnail white. Families, aides, and kitchen staff are already asking chatbots things like "can my dad have ice cream on a mildly thick diet?" I wanted to know how models handle that. I didn't care whether they could recite the level names. I wanted to know if they catch the things that actually hurt people: Things that melt. Ice cream, ice chips, and gelatin turn into thin liquid in the mouth. Hidden thin liquid. Canned fruit in syrup, cereal in milk, watery puree, juicy watermelon. Labels that lie. A carton marked "nectar-thick" can test thinner than the prescription. So can a "pureed" tray that drips through a fork. Size rules that change with age. A 3 mm mince is f

IA
Interesse
dev.to

Let the agent write the data, not the HTML

There are two ways to let an AI agent produce an invoice. You can ask it for the invoice: it writes HTML, something prints it, and a PDF comes out. Or you can hand it an invoice template someone has already reviewed and ask it only for the facts — who, what, how many, at what rate — as JSON. The first way works in a demo. The second one is the one that survives a second run. A model writes by sampling. Ask it twice for "an invoice for these two line items" and nothing ties the second answer to the first: the column order, the wording of the VAT line, whether the payment terms mention a due date, whether the legal footer is there at all. Each run is a new draft that nobody reviewed. For a birthday card that is charming. For an invoice, which in Germany has to carry a list of mandatory details, it means reviewing every single one the agent sends — at which point the agent saved nobody any work. A template turns that around. The layout, the legal lines, the arithmetic and the payment code are written once, looked at by a person, versioned and published. What varies between runs is the data, and the data is the part a model is actually good at: pulling a customer name out of an email, the quantities out of a spreadsheet, the rate out of a contract. The shape that works has four parts, and our MCP server has a tool for each: Step Tool Costs Find the template list_templates nothing Learn what it expects get_template_schema — the JSON Schema of the data, plus the sample data it was designed with nothing Check the data validate_template nothing: the API checks a stored template without rendering it; ad-hoc HTML is checked inside the MCP server Render render nothing with a test key; with a live key one unit per started five PDF pages Test keys (ff_test_…) render the same templates through the same pipeline and are never metered; their outputs are kept for 24 hours, and on the Free plan they carry a watermark. Giving the model the data to write does not make the data right. S

IADev
Interesse
dev.to

We Tested 4 AI Code Review Tools on the Same PR and The Results Were Surprising…

A case study from six rounds of testing Codzee against Greptile, CodeRabbit and CodeAnt We build an AI code review tool called Codzee. At some point we realized we couldn't answer a simple question: is it actually good? Our demos looked great, and so did every competitor's. Every landing page promises "context-aware" and "low-noise" review. None of that tells you what happens when a tool meets a real pull request with a bug it can't find by pattern matching. So we stopped reading feature lists and ran an experiment. We built pull requests with bugs planted in them, gave the same PR to our tool and three competitors, and checked what each one caught. We've now done this six times, and each round was harder than the last. This is the story of round six, the round that taught us the most, and the first one Codzee won. Because we were testing our own product, we didn't trust ourselves. We set two rules: The answer key comes first. We wrote down every planted bug before the pull request was opened, so nobody could redefine what counts as a "catch" afterward. Publish the bad news too. If our tool stumbled, it goes in the write-up. Here's the setup for round six: PR #7 in a test repository Size 192 lines across two modules Planted bugs 13 Cross-file bugs 6 Domain Guest billing: invoices, payments, tax, cancellations Tools Codzee, Greptile, CodeRabbit, CodeAnt How we scored Pulled every finding from the GitHub REST API and matched them to bugs by hand Qodo was excluded from this benchmark for billing reasons. Most AI review demos show a tool catching a bug in one function. That's easy mode, so we designed round six around something harder. The two modules were tied together by a written contract. It said things like: The invoice total is pre-tax. The balance reads a key called amount_pence. The due date is a date, not a datetime. Invoice numbers are unique for life. Six of our 13 bugs were cross-file defects: each module looks correct on its own, and the error exists only i

IADev
Interesse
dev.to

What is Jev? The AI trained to say “I'm only 60% sure.”

I kept hearing the word. Jev. In group chats, in newsletters, in a Hacker News thread that hit 1,900 points and 500 comments in a day — which for that site is a small riot. Every explanation I clicked on was written for engineers. Non-autoregressive. Calibrated posteriors. Typed schemas. I understood maybe half. So I read the launch post, the docs, and all 500 comments. Underneath the jargon is a simple idea, and a slightly funny one. Every AI you've used so far writes. Jev doesn't. Jev decides. Stick with me. By the end you'll be able to explain it to a friend in one sentence, you'll know what the “can't hallucinate” claim actually means (not what it sounds like), and you'll know whether it ever touches your life. It will. You won't see it. Think about the difference between an essay and a light switch. ChatGPT, Claude, Gemini — they write essays. You ask, they produce words, one after another, and the words can be anything. A poem. A recipe. Working code. A confident lie. That flexibility is the magic and the problem. Jev is a light switch. You don't ask it to talk. You show it a situation and ask a fixed question with a fixed set of answers — is this urgent, yes or no? which of these five teams handles it? how angry is this customer, one to five? — and it flips the switch. Instantly. And next to the switch it puts a number: how sure it is. It cannot write you a sentence. That isn't a limitation they're fixing; it's the design. The people who built it gave up words on purpose, because they think most of what businesses want from AI isn't words. It's decisions. Two names, both borrowed from smart dead people, and both help. “System One” is Daniel Kahneman's. He split thinking into two modes. System 2 is slow and careful — doing your taxes. System 1 is fast and automatic — you see a face and know it's angry before you could explain why. You don't reason your way there. You just know, and you're usually right. Chatbots are being pushed towards System 2 — “think step

IA
Interesse
dev.to

Low-Latency Software Development Companies: Which Kind You Need and How to Test One on Your Own System

Originally published at ambrain.org. For a trading or ad tech system where a late answer counts as a wrong one, the right outside firm works in the same range as your deadline and can show how its speed figures were measured. The one you favour should measure your live system before it builds anything. No list of low-latency software development companies fits every buyer, because the term covers deadlines that can be a million times apart. In trading hardware it can mean tens or hundreds of nanoseconds. In an app or a web page, an answer within about a tenth of a second already feels instant to the person using it. So the first question is where your own deadline falls. The short answer: write down your deadline and the two points it is measured between, and ask each firm which of the systems it built already run in that range in production. Before anyone builds anything, pay the firm you favour to measure your live system, and keep its report whatever you decide. Read next Slow Order Execution at a Small Prop Trading Firm: Where the Time Goes and Who Can Fix It Ad Platform Can't Handle Traffic Spikes? What to Fix First and Who Can Help A Dedicated Team That Stays: How to Check a Software Partner Before You Sign, and How to Keep the Code Yours For your system, low latency is a deadline measured between two points you can name. Deadlines fall into four broad ranges: Trading hardware, in tens or hundreds of nanoseconds. STAC-T0, a benchmark developed in consultation with trading firms in the STAC Benchmark Council, times how fast a system's network hardware and software turn simulated market data into a simulated order, with no trading logic in between. STAC's overview of 5 November 2020 says the benchmark treats the system as a black box, “interacting with it solely via network packets, which it timestamps in hardware”, and that software timestamps can carry considerable error at tens or hundreds of nanoseconds. The stack under test, as STAC calls the system being m

Dev
Interesse
dev.to

How to Use Your Phone as a Second Screen for Your Laptop in 2026

A second monitor can completely change how you work on a laptop, but buying one isn't cheap, and carrying one around is a pain. Here's the good news: the phone in your pocket can become a wireless second screen for your laptop in about ten minutes, with a free app and no extra hardware. In this guide, you'll learn exactly how to use your phone as a second screen for your laptop in 2026, on both Android and iPhone. Modern phones have sharp, bright displays that are often better than cheap portable monitors. Used as an extended display, your phone is perfect for holding a chat window, a to-do list, a reference document, or music controls while you keep your main work on the laptop. The whole setup works over your Wi-Fi network, so nothing needs to be plugged in — though a cable makes it even smoother. Before you start, note one limitation: the free method below works with a Windows laptop. If you're on a Mac, scroll to the Mac section for your options. Spacedesk is a free app that turns any Android or iPhone into a wireless second monitor for a Windows PC. There's no account to create and no subscription — it's genuinely free. Install the spacedesk driver on your laptop. Download the spacedesk DRIVER from the spacedesk website and install it on your Windows PC. Open the "spacedesk DRIVER Console" to make sure it's running. Install the spacedesk app on your phone. Get it from the Google Play Store (Android) or the App Store (iPhone) and launch it. Connect both devices to the same Wi-Fi network. This is the key step — your laptop and phone must be on the same network. Tap your laptop's name in the phone app. It should appear automatically. Windows will mirror your screen to your phone by default. Switch to "Extend." On your laptop, press Windows key + P and choose Extend. Now you can drag windows from your laptop onto your phone's screen, just like a real monitor. For the smoothest result, use a USB cable instead. Connect your Android phone to the laptop with a USB cabl

Mobile
Interesse
Hacker News

Web Search API

Article URL: https://developers.cloudflare.com/changelog/post/2026-10-02-introducing-web-search-api/ Comments URL: https://news.ycombinator.com/item?id=49963171 Points: 39 # Comments: 7

InfraDev
Interesse
dev.to

Best Newsletter Platforms in 2026: Pricing, Hosting and SEO

Newsletter platforms split into thin email senders and full publishing systems with archives and memberships. That split decides hosting, SEO, and migration more than any editor does. This comparison covers Buttondown, EmailOctopus, beehiiv, Kit, Ghost, Substack, MailerLite, Brevo, and Sender. Prices are in USD, reflect the public pricing in October 2026, and normally rise as the mailing list grows on subscriber-based plans. Each platform section describes what the product actually does, its pricing tiers, and where the public archive lives. The closing sections cover the three archive ownership models, canonical URLs, sender authentication, and API publishing, because those decisions outlast any single vendor choice. Email-first services assume that another system owns the website and the content. Publishing-first services want the newsletter platform itself to become an important public destination. A few deliberately sit between those two models, and the architectural choice carries consequences for SEO, archives, and migration. flowchart TD A[Newsletter platforms] --> B[Email-first] A --> C[Publishing-first] A --> D[Hybrid] B --> B1[EmailOctopus] B --> B2[Brevo] B --> B3[Sender] B --> B4[MailerLite] C --> C1[Substack] C --> C2[beehiiv] C --> C3[Ghost] D --> D1[Buttondown] D --> D2[Kit] Platform Free plan Paid entry point Public archive External canonical support API Main model Buttondown 100 subscribers From $9/mo Yes Yes Yes Hybrid EmailOctopus 2,500 subscribers, 10,000 emails/mo $10/mo, or $9/mo annual Individual web copies No documented per-issue override Yes Email-first beehiiv 2,500 subscribers, unlimited sends From $43/mo annual Yes Limited for external-site workflows Yes Publishing-first Kit 10,000 subscribers, unlimited broadcasts From $33/mo annual Yes Limited Yes Hybrid Ghost(Pro) No permanent free hosted plan From $18/mo annual Yes Yes Yes Publishing-first Substack Unlimited free publishing 10% of paid revenue Yes Limited Limited Publishing-first Mail

Geral
Interesse
dev.to

My mailer printed "campaign sent". It had sent to nobody.

I make small tools that catch AI agents reporting success while quietly doing nothing. That is the entire product line. One of them is literally called trust issues. Last week I shipped a mailer that printed campaign sent to list twice, five days apart, having delivered to zero people. I have a small list — 47 people who followed my writing elsewhere and agreed to hear from me here. I wrote them an email. The workflow ran. It said this: campaign 2 sent to list *** Green tick. Job done. Four days later I sent a second one. Same message, same green tick. Then nobody replied to either. Not one person. I spent an evening concluding that my writing was bad, that the list was dead, that three weeks of work had landed on nobody who cared. Eventually I did the obvious thing and looked at the numbers instead of my feelings. LISTS 0 subscribers Your first list CAMPAIGNS (newest first) "I measured where my AI coding tokens actually go. 0.2%." status sent sent 2026-08-07T09:24:06+05:30 delivered 0 of 0 opens 0 clicks 0 "Moving my writing home — and what I've been building" status sent sent 2026-08-03T19:40:50+05:30 delivered 0 of 0 opens 0 clicks 0 Zero subscribers. Meanwhile 48 contacts sat in the account, imported correctly, never attached to the list the campaigns were addressed to. Both emails went out to an empty room. Nobody ignored my emails. Nobody received them. Five days of silence I had taken personally was a config error. Contacts not attached to a list is a boring mistake. Ten minutes to fix. The interesting part is that my code told me it had worked. It called the create-campaign endpoint. It called send. Both returned 200. So it printed success — because from the code's point of view, everything it did had succeeded. It had verified the call. It had verified nothing about the effect. That distinction is the whole of my product line, written on my own site, and I still shipped past it. An agent that says "I fixed the tests" has usually verified that it edited a fi

Dev
Interesse
dev.to

How to Fix the 8 Most Common JSON Errors

SyntaxError: Unexpected token } in JSON at position 212 is one of the least helpful error messages a developer sees. It tells you that the JSON is broken, but not why, and the position is a character offset you have to count to. The good news: almost every JSON error comes from the same short list of mistakes. This guide covers the eight you will hit most often, what the error looks like in JavaScript and Python, and how to fix each one. Quickest fix: paste your JSON into the JSON Validator. It names the mistake in plain English, shows the exact line and column, and highlights the broken line. JSON looks like a JavaScript object literal, but it is a much smaller language. The specification (RFC 8259) allows only: objects {} with double-quoted string keys, arrays [], strings in double quotes, numbers, true, false and null. That's it. No comments, no trailing commas, no single quotes, no undefined. Being strict is what makes JSON portable — every language parses it the same way — but it means small habits from JavaScript or Python break it. { "name": "Jane", "role": "admin", } JavaScript, TypeScript and Python all allow a comma after the last item. JSON does not. JavaScript: Expected double-quoted property name in JSON at position 41 (line 4 column 1) in current Chrome and Node.js; older engines say Unexpected token } in JSON Python: json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes Fix: remove the comma after the last property or array item. { 'name': 'Jane' } Strings and keys must use double quotes ("). Single quotes are the most common mistake when JSON is typed by hand or copied from Python's print() of a dict. Fix: replace ' with ". If you are producing JSON from Python, use json.dumps(data) instead of str(data) — str() prints Python syntax, not JSON. { name: "Jane", age: 31 } Valid JavaScript, invalid JSON. Every key must be a double-quoted string. Fix: wrap each key in double quotes: { "name": "Jane", "age": 31 }. { "name": "Jane"

Dev
Interesse
dev.to

Two failures stayed "unrepaired" after the fix had already shipped

A small automation pipeline in this project publishes its own blog posts and keeps a ledger of every run. On 2026-09-07, that ledger still listed two failures from the two days before as unrepaired, even though the pull requests that fixed their root cause had already merged. The gap was not a missing fix. It was a missing confirmation that the fix actually worked. The two open rows were ap-20260905-actions-33959414641 and ap-20260906-actions. The second of them failed at 2026-09-05T23:22:58Z, cut off after 251 turns (num_turns=251 in the run's own failure record). Its failure record names two causes: a sitemap-splitting change that fell outside the pipeline's allowed scope, and a bookkeeping step that ran before a value commitment had been declared rather than after. Both were already fixed in merged pull requests by the time anyone looked at the ledger again, one of them landing roughly an hour after the failure itself. A fix merging an hour after the failure it addresses sounds like the story should end there. The ledger disagreed, and kept disagreeing for two more days. Both causes were the kind that only show up once you watch a full run end to end: a generator step had started writing new sitemap files that the publishing policy did not yet permit, and a value-commitment record was being written before the decision it was supposed to log had actually been finalized, not after. Neither mistake was visible from the outside; both only became legible once someone read the run's own transcript. scripts/autopilot-selfheal.mjs defines "repaired" as exactly one thing: the failing run's ID appears in another run's repair_of array. Nothing else counts, and the script's own comments say why: the pipeline's primary route has a documented history of returning success on days when a required secret was simply missing, so treating "a later run succeeded" as proof of recovery would mean a broken path could look green indefinitely. A merged diff changes the code. It does not,

DevInfra
Interesse
dev.to

Privacy by Design: 10 Principles Developers Should Follow

Privacy by Design: 10 Principles Developers Should Follow Privacy is often treated as a feature that can be added near the end of a software project. That approach can create problems. If an application collects too much information, stores sensitive data unnecessarily or gives too many systems access to user information, fixing those problems later can be difficult. A better approach is Privacy by Design. Privacy by Design means considering privacy throughout the development process instead of treating it as an afterthought. Here are 10 principles developers can apply when building modern applications. Collect Only What You Need One of the simplest privacy principles is data minimization. Before collecting information, ask: "Do we actually need this data?" If an application doesn't need a particular piece of information, there may be no reason to collect it. Less unnecessary data can mean less data that needs to be protected. Define Data Retention Collecting data is only one part of the problem. Developers should also decide how long information needs to be stored. For example, ask: • Why is this information being stored? A clear retention policy can reduce unnecessary long-term storage. Use Strong Authentication User accounts are often the entry point to sensitive information. Applications should implement appropriate authentication mechanisms and protect credentials properly. Depending on the product, this could include: • Strong passwords Authentication should be designed with security in mind from the beginning. Implement Authorization Correctly Authentication tells the system who the user is. Authorization determines what that user can access. These are different concepts. For example, a user might be authenticated but still have no permission to access another user's private conversation. Sensitive operations should always be validated on the server. Encrypt Sensitive Information Encryption can help protect sensitive information from unauthorized access. Deve

Segurança
Interesse
dev.to

MERN + TypeScript Code Cheat Sheet — Part 2 (BullMQ, Puppeteer, SQL, Testing, React, Git/Docker/curl)

MERN Cheat Sheet — Part 2 (verify) = not in my repos and I'm not 100% sure of the API. Versions: see Part 1 (backend: bullmq ^6.3.11, ioredis ^6.0.0, vitest ^4.1.11, supertest ^7.1.4, mongodb-memory-server ^10.2.3; frontend: react ^19.2.8, vite ^8.3.0, react-router-dom ^7.18.4, @tanstack/react-query ^5.104.1, react-hook-form ^7.89.0, @hookform/resolvers ^5.9.1, axios ^1.20.0, tailwindcss ^4.3.3, vitest ^5.0.3). Puppeteer and MySQL are in neither repo. BullMQ + Redis Puppeteer PDF SQL (MySQL) Testing React + Vite + TypeScript Git, Docker and curl src/ config/redis.ts queues/pdf.queue.ts # Queue instances (used by the API) jobs/pdf.job.ts # job payload types + the processor function workers/pdf.worker.ts # Worker wiring workers/index.ts # separate process: starts all workers Gotcha: my repo currently keeps queue + worker together in src/queues/pdf/; the API process should only import queues, never workers. import { Redis } from "ioredis"; import { env } from "./env.js"; export const connection = new Redis({ host: env.REDIS_HOST, port: env.REDIS_PORT, maxRetriesPerRequest: null, // required for BullMQ Workers }); Gotcha: my repo has maxRetriesPerRequest: 0 — BullMQ warns/errors for Workers; null = retry forever. import { Queue } from "bullmq"; import { connection } from "../config/redis.js"; export interface PdfJobData { reportId: string; userId: string } export const pdfQueue = new Queue ("export-pdf", { connection, defaultJobOptions: { removeOnComplete: true }, }); Gotcha: the queue name is the contract — Queue and Worker must use the exact same string. await pdfQueue.add( "render", { reportId, userId }, { jobId: `pdf-${reportId}`, // same id => no duplicate job attempts: 3, backoff: { type: "exponential", delay: 2000 }, removeOnComplete: { age: 3600 }, // keep 1h so status stays queryable removeOnFail: { age: 24 * 3600 }, }, ); Gotcha: while a job with that jobId still exists, add is silently ignored — with removeOnComplete: true the id is freed immediately, so stat

Dev
Interesse
dev.to

MERN + TypeScript Code Cheat Sheet — Part 1 (Setup, Express, Mongoose, Aggregation, Auth)

MERN Cheat Sheet — Part 1 Snippets come from express-mongo-auth-starter and react-vite-auth-starter, cleaned up. (verify) = not in my repos and I'm not 100% sure of the API. Snippets are TypeScript unless noted. Backend Version Frontend Version node >=20 react / react-dom ^19.2.8 express ^5.1.0 vite ^8.3.0 mongoose ^8.18.1 typescript ~6.0.2 zod ^4.1.5 zod ^4.6.5 jsonwebtoken ^9.0.2 axios ^1.20.0 bcryptjs ^3.0.2 @tanstack/react-query ^5.104.1 bullmq ^6.3.11 react-router-dom ^7.18.4 ioredis ^6.0.0 react-hook-form ^7.89.0 express-rate-limit ^8.1.0 @hookform/resolvers ^5.9.1 pino / pino-http ^9.9.4 / ^10.5.0 tailwindcss + @tailwindcss/vite ^4.3.3 typescript ^5.9.2 vitest ^5.0.3 tsx ^4.20.5 @testing-library/react ^16.3.3 vitest ^4.1.11 jsdom ^29.1.1 supertest ^7.1.4 mongodb-memory-server ^10.2.3 Not in either package.json (latest stable assumed, (verify)): helmet, cors, puppeteer, mysql2, a MySQL server. utils/helpers.ts: id regex ends with \$ → never matches. Use /^[\da-f]{24}$/i. review.service.ts: locationId should be location; $ratings should be $rating; lte needs $lte; facet key ratingg must be ratings; list filters use owner/title, which Review doesn't have. review.schemas.ts reply is { owner, text } but the model's reply is { owner, reply }. config/redis.ts: maxRetriesPerRequest: 0 → BullMQ workers need null. config/env.ts: REDIS_PORT has .min(6379) — probably meant a plain port range. Setup Express patterns Mongoose Aggregation + indexing Auth npm i express mongoose zod dotenv pino pino-http express-rate-limit jsonwebtoken bcryptjs cookie npm i -D typescript tsx vitest supertest mongodb-memory-server @types/node @types/express @types/jsonwebtoken @types/supertest Gotcha: "type": "module" + NodeNext means relative imports need the .js extension. { "type": "module", "engines": { "node": ">=20" }, "scripts": { "dev": "tsx watch src/server.ts", "build": "tsc", "start": "node dist/server.js", "typecheck": "tsc --noEmit", "test": "vitest run" } } Gotcha: tsx only runs

Dev
Interesse
dev.to

How to Build a Secure Real-Time Chat System: Key Engineering Concepts

How to Build a Secure Real-Time Chat System: Key Engineering Concepts A chat application may look simple from the user's perspective. You type a message, press send, and the other person receives it almost instantly. Behind that simple experience is a combination of real-time networking, authentication, databases, security controls, notifications and message delivery systems. For developers interested in building messaging applications, understanding these components is extremely useful. Let's break down the major parts of a modern chat system. The Basic Architecture A simplified chat architecture can look like this: User A The actual production architecture can be much more complex, but this model helps explain the basic flow. The frontend handles the user interface. The backend handles authentication, authorization, message processing and business logic. The database stores information that needs to persist. The real-time communication layer helps deliver messages without requiring the user to constantly refresh the application. Why WebSockets Are Useful Traditional HTTP requests follow a request-response model. The client sends a request and the server responds. That works well for many applications, but chat applications need a more interactive communication model. WebSockets allow a persistent connection between the client and server. This makes it possible for the server to send information to a connected client when an event occurs. A simplified flow could be: Client connects This can provide a responsive real-time experience. Authentication Comes First Before allowing users to send or receive private messages, the system needs to know who they are. Authentication can use different approaches, including: • Email and password The exact approach depends on the application's requirements. Whatever method is selected, credentials must be handled securely. Authorization Is Equally Important A common mistake is assuming that authentication is enough. It isn't. Imag

Dev
Interesse
dev.to

🤔 Am I missing something? My Python test passed, but the API payload is weird

Hey everyone! I’m still relatively new to backend development and Python, so please correct me if I'm misunderstanding how this should work. response = requests.get("https://example.com") if response.ok: The script successfully printed 🟢 Test passed! because the network returned a clean 200 OK status code. { "status": "success", Just a note: The code, the bug scenario, and all the beginner questions here are 100% my own actual experience. I just used an AI tool to clean up my bad grammar, fix the layout, and make my thoughts easier to read before posting.

Dev
Interesse
dev.to

Building a Privacy-First Messaging App: Architecture and Security Considerations

Building a Privacy-First Messaging App: Architecture and Security Considerations Building a messaging application looks simple from the outside. A user opens an app, selects a contact, types a message and presses send. But behind that simple interface is a complex system involving authentication, real-time communication, databases, file storage, notifications, security and privacy. If you're building a messaging application, privacy should be considered at the architecture stage rather than added later. Let's look at some of the important considerations. Start With a Clear Threat Model Before choosing technologies, define what you're trying to protect. For a messaging application, potential threats could include: • Unauthorized account access A threat model helps developers understand which security controls are actually necessary. Authentication Authentication is the first major security layer. Users need a secure way to prove their identity. Depending on the application, authentication might involve: • Email and password Passwords should never be stored in plaintext. Applications should use appropriate password hashing mechanisms and secure credential-management practices. Authorization Authentication answers: "Who are you?" Authorization answers: "What are you allowed to do?" For example, a messaging API should verify that a user actually has permission to access a particular conversation. Never rely only on the frontend for authorization. Every sensitive operation should be validated on the server. Real-Time Communication Messaging applications need efficient communication between clients and servers. Common technologies include: • WebSockets WebSockets are commonly used when an application needs real-time bidirectional communication. A simplified architecture could look like: Client In production systems, this architecture can become much more distributed. Encryption Encryption is one of the most important parts of private communication. A messaging system may

SegurançaDevMobile
Interesse
dev.to

The best CLAUDE.md rules are hiding in your chat history.

Quick question. What's the one sentence you've typed to your AI more than any other? Not the one you think you type. The one you actually type. I didn't know mine either. So I went back through three months of my own Claude Code history and counted. It was "keep it simple." 42 times, across 38 different sessions. And that rule was written nowhere my AI could read it. Every correction you type and don't write down dies with the session. If you use Claude Code, Cursor or Codex every day, you have your own "keep it simple." This post is about finding it, writing it down, and checking whether it stuck. At the end there's a one-minute way to see your own top line. This is a real run on my real history, 143 Claude Code sessions between July and September: toldya · 143 sessions (2 Jul – 25 Sept) · 6379 of your messages · 528 corrections You keep telling your AI: 1. 42× keep it simple (38 sessions) 2. 29× dont complex this (18 sessions) 3. 15× dont assume (15 sessions) 4. 13× i dont want later on (12 sessions) 5. 9× dont think too much (9 sessions) And 71 times you told it to try or check again: its first go missed. Numbers one and two are the same complaint, one with my typo. Together that's 71 times I told my AI to stop overbuilding. The last line is a different 71: "try again" and "check again", which isn't a rule, just an honest measure of how often the first attempt missed. This isn't a complaint about Claude. It's genuinely good at what I use it for. It's that every one of those corrections was a rule I never wrote down. A coding agent doesn't remember yesterday. Each session starts from zero. What you corrected on Tuesday afternoon is gone by Wednesday morning. The one thing it reliably reads at the start of every session is a small text file in your project called CLAUDE.md. Other tools use AGENTS.md, same idea. Think of it as a sticky note on the monitor for a brilliant new colleague with amnesia. They wake up every day with no memory of you. The note is the only t

IADev
Interesse
dev.to

My fellow nerds — I need your help 🔥

I'm Jeff, and I'm building a kids' battle game called Fire Babys. Right now it's a concept with a big heart: a fun, chaotic, Fall Guys-style game where little fire babies battle it out. Our flagship mode is called SPLASH — two teams, two pools, grab your rivals and dunk them. Last team standing wins. But here's the twist: it's secretly a fire-awareness teacher. Fire classes, extinguishers, what to do when a fire is nearby — baked right into the gameplay. And every dollar this game makes is going to REAL fire awareness programs with actual US fire departments, going into schools and teaching kids face to face. I'm looking for: Playtesters — play the early concept and tell me what's fun and what's broken Nerds with opinions — devs, artists, game-design brains, I want your takes Believers — if this mission hits you, spread the word This is day one. Come build it with me. Play the concept: https://firebabys.io/3d.html?mode=splash the future is BLAZING FOR FIRE BABYS 🔥

Games
Interesse
dev.to

I Posted in Hacker News' “Who Wants to Be Hired?” Thread. This Is What Happened.

It's been a while since I wrote something here. Actually, a very long while. My last post was published in 2019. A lot of things happened since then, both professionally and personally, and I guess I never really found the right moment to come back and write something. The truth is that I'm not a particularly good writer, and I'm probably even worse at being a blogger. I always have something I could write about, but whenever I start thinking about preparing a proper post, I somehow end up doing something else instead. Usually coding some CLI tool for myself. Or experimenting. Or breaking something. Or fixing something I probably shouldn't have broken in the first place. I've been playing with Linux, different programming languages, developer tooling, open source, and more recently, I somehow ended up with a small Kubernetes cluster at home. But that's another post. Maybe. So why am I writing now? Well, because there is a story worth telling. A couple of years ago, I decided to make a transition from creative work into a much more technical career. The transition was probably easier for me than it could have been because, thankfully, I was a nerd long before I started working professionally in creative roles. Computers had always been there. I had been tinkering with them for years, and I already had a technical background, so moving into software development wasn't exactly starting from zero. The professional transition itself is a story for another time. For now, the important part is that I've been working in software for several years, mostly as a contractor and freelancer, and that's where this story starts. But at some point I started thinking about what I wanted to do next, and one thing became increasingly clear. I want open source to be part of my career. This is important to me. I've been tinkering with computers since I was a kid, and open source has always been somewhere in the background of that journey. While I've done some contributions before, over t

Geral
Interesse
Phoronix

Mold 3.0 High Speed Linker Released Following Rust Rewrite

The Mold high speed linker alternative to the likes of GNU Gold/LD and LLVM LLD recently has been going through a rewrite from C++ to Rust as well as having high ambitions of eventually becoming the default linker on Linux systems. Today marks the release of Mold 3.0 for this Rust-based high performance linker...

DevInfraLinux
Interesse
dev.to

What Happens When Security Becomes Part of the Data Model

Security is often introduced into software as a layer. There is an application. There is a database. There is an API. Then, somewhere around all of them, there is authentication, authorization, encryption, validation, logging, permissions, and a collection of rules that determine who can do what. This mental model is useful. But it has a limitation. It makes security feel like something added to the system rather than something the system actually knows about. A different approach begins with a simple idea: What if security were part of the data model itself? Instead of treating security as a collection of checks surrounding the data, we can represent important security properties directly within the structures that describe the data. A record does not simply belong to a user. It can explicitly belong to an organization. A document does not simply exist. It can carry an access classification. A resource does not merely have an ID. It can have an owner, a visibility level, a policy reference, or a set of relationships that determine who may interact with it. At that point, security stops being only a gate around the database. It becomes part of the architecture's vocabulary. And that changes how we design systems. Consider a simple application with users and documents. A conventional database might contain: users ----- id name email documents --------- id title content user_id created_at The relationship is straightforward. A document belongs to a user. Now imagine the application receives: GET /documents/42 The backend might retrieve document 42, inspect the authenticated user, and then determine whether that user is allowed to see it. Conceptually: request ↓ authenticate user ↓ find document ↓ check permission ↓ return document This works. But notice where the security rule lives. The database knows that the document belongs to a user. The application knows that only certain users should access it. The security rule exists primarily in application logic. Now imagin

SegurançaDev
Interesse
dev.to

Nobody with a crawler token asked for my llms.txt - what I saw in 15 days of nginx logs

I run a digital health startup as CEO (and a personal site, arsentev.ai, about practical AI). I put /llms.txt and /llms-full.txt on my site, and I wanted to see who actually reads them. The two files are a plain-text summary of the site for language models. They were first served on 9 September 2026. I kept the complete nginx access logs of one origin server for 28 August - 11 September 2026. It is 15 days and 345,808 parsed requests. A request was a crawler if the User-Agent contained one of 22 tokens published by search and AI operators (GPTBot, ClaudeBot, PerplexityBot and similar). 46,155 requests carried such tokens, and 20 distinct tokens appeared. None of them requested /llms.txt or /llms-full.txt. I also checked every path ending in llms.txt, including /.well-known/llms.txt. No crawler token there either. Then I looked only at 9-11 September, after the files were first served. In these days crawler tokens made 15,906 requests. Of them 698 were for /robots.txt (11 tokens) and 282 for /sitemap.xml. So the crawlers were on the site, they just didn't ask for my files. All 67 requests for the context files came from clients without a crawler token. 53 of them were command-line HTTP clients (curl and the like). About a third of crawler-token requests bypassed the CDN. None of those came from the operators' published IP ranges, so I think much of that traffic is imitation. The robots.txt and sitemap numbers don't rest on it. One more thing I noticed. Nothing in any standard tells a crawler that llms.txt exists. A sitemap is different, because robots.txt can point to it. First I published different numbers: 331,758 / 44,005 / 577. They came from a log that was cut at about 12:09 UTC on the last day. I ran everything again on the complete log and corrected the report. The numbers above are from the complete log. This is one origin. Three hostnames are pooled in one log (host wasn't logged). After deployment I have only about two days of exposure. User agents are self

IA
Interesse
dev.to

SafeBite AI: Allergy-Aware Meal Planner Powered by Mastra & Gemini

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Live Demo: https://safebite-agent.onrender.com/ Hacktoberfest Submissions: Best Use of Mastra | Best Use of Render Code: Github Repo https://github.com/AdahJerrie/safebite-agent.git Inspiration Planning daily meals while managing food allergies or strict dietary restrictions is a constant source of stress for my friend who is very selective because of allergies. Standard recipe generators often output unsafe suggestions or fail to spot hidden allergen risks (such as dairy derivatives in pre-packaged items or peanut cross-contamination). I created SafeBite AI to solve this problem with true agentic reliability. Powered by Mastra AI and Google Gemini, SafeBite doesn't simply prompt a static LLM—it runs an autonomous agent that screens pantry ingredients through real-time tool checks before generating a verified recipe. Users select active dietary restrictions (e.g., Peanuts, Dairy) and specify available pantry ingredients along with a maximum prep time limit. Check out the demo: https://safebite-agent.onrender.com/ The Mastra agent validates ingredients against all listed restrictions and generates a structured, step-by-step recipe ("Quick Garlic Chicken & Wilted Spinach Rice Bowl"). Dynamic Restriction & Pantry Inputs: Allows users to toggle active allergens (Peanuts, Tree Nuts, Dairy, Eggs, Soy, Gluten, Shellfish, Fish) and input exact pantry items. Autonomous Ingredient Screening: The safeBiteAgent leverages Mastra's tool-calling engine to execute allergenCheckerTool, inspecting every ingredient before finalizing the recipe. Execution Telemetry: Displays live agent status badges and execution telemetry on the interface so users can confirm active safety validation. Clear Markdown Recipes: Outputs comprehensive cooking instructions complete with prep time breakdowns, safe ingredient lists, and safety disclaimers. Agent Framework: Mastra AI (@mastra/core) for agent instructions, tool bin

IADev
Interesse
dev.to

Jev vs small LLMs: does a model that decides beat one that writes?

Key findings Jev tied two small LLMs on accuracy, beat them on probability quality and speed but failed completely at weekday arithmetic. Accuracy is a tie. On 150 CLINC questions Jev scored 0.980, gpt-oss-20b 0.963 and gpt-oss-120b 0.923. All three 95% intervals (the range a score could plausibly land in on a different batch of questions) overlap, so this sample cannot rank them. Jev's probabilities are better. Its Brier score (how far the probabilities it gave were from the truth, lower is better) is 0.037 against 0.071 for the 20b, about half the error. Its NLL (a penalty that punishes confident wrong answers really hard, also lower is better) is 0.064 against 0.237. Jev is 7-8x faster. Median latency is 0.40 s against 2.76 s and 3.24 s even when using Groq's services whose whole schtick is faster inference. The whole Jev experiment cost about one cent ($0.0104). Jev fails on weekday questions. It scored 0.13 where random guessing scores 0.14. The 120b got every blind-spot question right, the 20b 0.89, Jev 0.61. The 120b's CLINC numbers are partly a harness artifact. 15 of its 300 replies failed to parse (couldn't be read as the JSON it was asked for) and were scored as random guesses. Fix this before publishing. Jev made huge waves in the ai community, but what exactly is it? Any normal LLM is generative in nature and would answer the same question with a sentence, which your code then has to read and parse and whatnot. Jev's answer is already a typed value your code can use. TypeSafe AI, its creator, calls this class System One models. Jev was released on 15 September 2026. On OpenRouter(that's how I got access to this model) it is typesafe/jev-1.13, priced at $0.042 per million input tokens with free output(It's literally so cheap that it's free because there's a set limit to how much it can output/choose). While I was reading about this model, a thought came to my mind: can a specialist that only decides beat small general-purpose LLMs at deciding? For this I

IA
Interesse
dev.to

We can download our data. But can we actually use it?

I recently caught myself asking an AI a question it could not really answer: “What changed in my life over the last six months?” The useful answer was scattered across my calendar, notes, photos, health apps, messages, purchases and location history. The model could help me think, but only after I collected the context and handed it over. At that point, the privacy question became much bigger than “Which AI should I use?” It became: Where does my personal history live, who controls it, and can I do anything useful with it? Downloading is not the same as having control In the EU, we have meaningful rights over personal data. Under the GDPR, people can request access to personal data held about them. There is also a right to data portability in certain situations: when data is processed automatically on the basis of consent or a contract, a person can ask for data they provided in a structured, machine-readable format and, when technically feasible, have it sent to another provider. That is slightly more precise than saying every app used in Europe must always provide a perfect “Download everything” button. The exact right depends on the data and how it is processed. Still, the principle is important: personal data should not be a one-way contribution to a company’s database. But anyone who has downloaded an archive knows the next problem. You often receive a ZIP containing folders, JSON files, CSV tables and images with unfamiliar names. Technically, the data is yours. Practically, it may be very difficult to understand, combine or reuse. So is that real control, or only compliance? Our digital lives are split into pieces One service knows our appointments. Another knows our exercise. Another has years of photos. Our notes contain decisions and half-formed ideas. Our messages hold relationships and memories. Each service sees one small part of a person. The person is the only place where all those parts meet. This becomes especially obvious when we use AI. People inc

Segurança
Interesse
dev.to

A Command That Matched Zero Files Still Exits 0: How to Catch Silent CI Failures

A Command That Matched Zero Files Still Exits 0: How to Catch Silent CI Failures Every engineer has felt the cold dread of pushing a critical fix, watching the CI pipeline turn gloriously green, and then discovering in production that the deployment script didn't touch a single file because a glob pattern quietly evaluated to nothing. The pipeline passed. The logs looked clean. But your code was never updated. Why does this happen? In standard shell scripting and CI environments like GitHub Actions, commands like grep, find, or custom glob expansions frequently exit with status 0 even when they match zero files or process zero items. To a build system, "no errors encountered while running the binary" is indistinguishable from "successfully processed your target files." In this article, we examine why silent zero-match failures are a silent killer of CI reliability, and how you can bulletproof your automation pipelines using strict assertion wrappers and open-source verification tools. Let's look at a typical cleanup or linting step in a CI pipeline: find src/ -name "*.legacy.js" -delete If src/ contains no files matching *.legacy.js, what does find return? 0. To the shell, find executed successfully: it searched the directory, encountered no permission errors or syntax issues, and completed its execution. It has no concept of your intent that matching files ought to exist. Now scale this to a deployment workflow: sed -i 's/OLD_VERSION/NEW_VERSION/g' dist/**/*.bundle.js If your build step changed the output directory structure or filename extensions, dist/**/*.bundle.js might expand to a literal string or match nothing. sed might fail or do nothing, but depending on how the shell handles globbing (especially with nullglob disabled), the command might either fail or silently succeed with zero modifications. If your CI script uses set -e, it only catches non-zero exit codes. A zero exit code gives your pipeline a false sense of security. During large-scale refactors, p

DevInfra
Interesse