Painel de Notícias

Tecnologia

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

Filtros
dev.to

Traefik or Caddy? Choose a Reverse Proxy by How You Deploy

Adding a service behind a reverse proxy should be routine. But the workflow changes depending on whether routes live in one proxy config or are discovered from your containers. That distinction is often more useful than trying to pick a universal winner between Traefik and Caddy. A good starting point: Caddy is often simpler when you have a small, fairly stable list of sites. Traefik is often a better fit when Docker services change frequently and you want routing to follow container metadata. With Caddy, you typically write a site block that maps a hostname to an upstream. The routing configuration is explicit and centralized: app.example.com { reverse_proxy app:3000 } Here, app:3000 is the service name and port reachable from Caddy on the shared Docker network. Caddy does not discover containers just because they are running; you provide or generate the upstream configuration. Traefik can use a Docker provider to discover containers and build routes from labels on each Compose service. A minimal example of the routing labels looks like this: services: app: image: example/app networks: - proxy labels: - "traefik.enable=true" - "traefik.http.routers.app.rule=Host(`app.example.com`)" - "traefik.http.routers.app.entrypoints=websecure" - "traefik.http.services.app.loadbalancer.server.port=3000" This assumes Traefik is configured with the Docker provider and a matching websecure entry point, and that both services can communicate on the proxy network. The labels describe routing; they are not, by themselves, a complete HTTPS certificate setup. The workflow difference is the point: with Caddy, you update the proxy configuration when the set of routes changes. With Traefik's Docker provider, route definitions can live alongside the application in Compose labels. Choose Caddy when you want a readable, site-oriented configuration and do not expect routes to change constantly. This works well for a VM, home server, or small Compose stack where someone can easily review a sho

InfraDev
Interesse
dev.to

Part 6: Building it with MuleSoft Vibes: skills, rules, workflows and hooks

Part 6 of 10 · Building an Agentic Change-Approval MVP on MuleSoft Parts 4 and 5 covered what the integration team builds: MCP tool flows with strict contracts, behind a governed gateway. This part covers how they build it. We used MuleSoft Vibes in Anypoint Code Builder, and the interesting part wasn't the code it wrote. It was how we taught it our standards so every tool came out the same way. Vibes gives you three building blocks, and each one solves a different problem: What it is When it applies What we used it for Rules Natural-language constraints Every message (global or workspace) Standards that never change Skills Instruction packs with optional files Only when a request matches the skill How to build one kind of thing Workflows Named multi-step tasks When you run them as a slash command Repeatable sequences The difference matters because of context. Rules are always loaded, so they should be short. Skills load only when relevant, so they can carry detail, templates and examples without crowding out everything else. Our workspace rules are a short list. Each one is something we never want to explain twice: Tool flows never call a System API directly. They call a Process API. Every flow has an error handler that returns a named error code. Tool names are snake_case and start with a business verb (create_, read_, request_, import_). No credentials, hostnames or client names in code. Use properties and secure properties. If a rule needs a paragraph of explanation, it probably belongs in a skill instead. Workspace skills live in .a4drules/skills/, one folder per skill, committed with the project. Each folder has a SKILL.md and can carry references/, assets/ and scripts/. Vibes loads a skill only when a request matches its description. We wrote one skill per kind of artifact. The most-used one teaches Vibes how to build an MCP tool flow: .a4drules/skills/mcp-tool-flow/ ├── SKILL.md └── references/ ├── tool-listener-template.xml ├── input-schema-template.json └─

DevIA
Interesse
dev.to

Cache Storage API

The Cache Storage API: Your Website's Secret Weapon for Blazing Speeds and Offline Awesomeness! Ever felt that frustrating lag when a webpage loads, especially on a flaky internet connection? We've all been there. It's like trying to have a conversation with someone who keeps pausing every few words. For web developers, this lag is a mortal enemy. But what if I told you there's a superhero lurking in your browser, ready to swoop in and save the day? Enter the Cache Storage API, a powerful, yet often overlooked, part of the browser's arsenal. Think of it as your website's personal, super-speedy storage locker, specifically designed to keep frequently accessed assets readily available. This means faster load times, a smoother user experience, and even the magic of offline access. Pretty cool, right? In this deep dive, we're going to pull back the curtain on the Cache Storage API. We'll explore what it is, why you should care, how it works, and even get our hands dirty with some code. So, grab a virtual cup of coffee, and let's get caching! Alright, let's break it down. The Cache Storage API is an interface that allows you to programmatically access and manage the browser's cache. Unlike the older, more limited Application Cache (which we'll briefly touch upon later), the Cache Storage API is more flexible, powerful, and better integrated with modern web technologies like Service Workers. Essentially, it lets you store and retrieve network requests and their corresponding responses. Imagine a web page needing an image, a CSS file, and a JavaScript file. Instead of asking the server for them every single time, the browser can check its cache. If it finds them there, bam! they're served instantly, bypassing the network entirely. This is the magic of caching. While the Cache Storage API is relatively straightforward to use, there are a couple of prerequisites that will make your journey much smoother: Basic understanding of HTTP and Network Requests: Knowing how your brow

Dev
Interesse
dev.to

I forked a live AI agent three ways, and every copy came up with its web server already running

The expensive part of working with a coding agent is rarely the last step. It is all the steps before it: the exploring, the false starts, the files it wrote and rewrote until the thing finally worked. Once an agent has got somewhere good, the state it is in is worth more than any individual output, and the uncomfortable truth is that you usually cannot get back to it. Run the same prompt again and you get something else. DigitalOcean's Managed Agents runs each session in its own microVM and lets you checkpoint that whole machine, fork it, and roll it back. I wanted to see what that looks like in practice, with something visual enough that the result is obvious from a screenshot. So I had an agent build a small web app, then branched it three ways and pointed a browser at every branch. The agent was OpenCode running DeepSeek v4 Pro, and the brief was a status dashboard for a fictional coffee roastery: four metric cards and a table of recent batches, in a single HTML file with no external resources. It took 91.6 seconds and 29,084 tokens. I started a plain python3 -m http.server inside the sandbox and reached it with the runtime's port forwarding: $ doctl harness-runtime port-forward 18101:8080 Forwarding 127.0.0.1:18101 -> port 8080 in session 01a10b67-... Ready. Press Ctrl-C to stop. That binds to localhost on my machine and nothing else. The help text is explicit that nothing inside the sandbox is exposed publicly, which is the right default for a box with an AI agent and a shell in it. Every screenshot in this post is a real browser, Chromium driven by Playwright, loading a page served from inside a microVM through one of those tunnels. With the dashboard working, I checkpointed the session and forked it three times from that checkpoint: checkpoint create: 25.23s cp_33dcd0324ab9 fork x3 : 15.29s The part I keep coming back to is what was already true when the three forks woke up. I had not started anything in them. I checked each one before giving it any instruct

IAInfraDev
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

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

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

My Docker Container Keeps Exiting. Here's the Checklist I Use

You ran docker run, the container appeared for a second, and then it was gone. Or you ran docker ps and nothing was there. This happens to almost everyone who starts with Docker. The good news is that the cause is almost always one of a few things, and you can find it in about two minutes with the same steps every time. docker ps -a docker ps only shows running containers. docker ps -a shows stopped ones too. Look at the STATUS column. If it says Exited (1) or another non-zero number, the program inside crashed. If it says Exited (0), the program finished normally, which often means it wasn't meant to exit at all. docker logs This shows what the program printed before it stopped. The last few lines usually name the problem: a missing file, a wrong password, or a missing environment variable. docker inspect This shows the command the container actually ran, its environment variables, and its mounts. Many problems come from a setting that didn't reach the container the way you expected. Change one thing in your command or Dockerfile, remove the old container, and run it again: docker rm docker run -d --name myapp -p 8000:8000 my-python-app Changing one thing at a time makes it obvious which change fixed it. Symptom Likely cause What to try Exits immediately The main program finished or crashed Check the logs, and make sure the program runs in the foreground "Port already in use" Another program uses the same port Use a different host port, like -p 8081:8000 Data disappears Data was written inside the container Mount a volume with -v Can't reach another container by name Both are on the default network Create a network with docker network create and attach both Code changes don't show up Old image or old container Rebuild with docker build, then run a new container When the disk fills up, it's tempting to run: docker system prune -a This removes every unused image, not only the broken ones. Run docker system df first to see what's using space, and read the prompt befor

InfraDev
Interesse
dev.to

OKF vs RAG: Why RAG Alone is Failing Enterprise AI Agents (And What's Next)

If you've deployed Retrieval-Augmented Generation (RAG) into production, you’ve likely encountered its dirty secret: RAG is probabilistic. It splits your documentation into arbitrary chunks, embeds them into high-dimensional vectors, and hopes that cosine similarity pulls back the exact truth. When it works, it feels like magic. When it fails, your agent cites outdated policies, pulls fragmented code snippets without context, and hallucinates business metrics. Enter OKF (Open Knowledge Format) — a new paradigm gaining massive traction across AI engineering teams. Is OKF here to kill RAG, or are we looking at the foundation of the modern enterprise AI stack? Let’s break down the architecture, trade-offs, and how to combine them. ┌─────────────────────────────────────────────────────────────┐ │ RAG (Vector Search) │ │ Raw Docs ──▶ Chunker ──▶ Embeddings ──▶ Vector DB ──▶ LLM │ │ [Probabilistic • Unstructured • Fragmented Chunks] │ └─────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────┐ │ OKF (Open Knowledge Format) │ │ Curated Markdown + YAML ──▶ Knowledge Graph ──▶ LLM Cache │ │ [Deterministic • Structured • Authoritative Ground Truth] │ └─────────────────────────────────────────────────────────────┘ Retrieval-Augmented Generation (RAG) indexes unstructured text (PDFs, Notion pages, Zendesk tickets) by chopping text into 500-token chunks and storing their embeddings in vector databases like Pinecone, Qdrant, or pgvector. The Chunk Boundary Problem: Splitting text breaks structural context. If an API contract spans 3 chunks, vector search often retrieves chunk #1 and chunk #3, omitting critical constraints in chunk #2. Semantic Ambiguity: Vector search matches semantic similarity, not logical authority. If you ask "What is our refund policy for Q3?", RAG might retrieve a deprecated 2023 policy because its semantic embedding is 98% identical to the new policy. No Traversable Relationships: Chunks a

IADev
Interesse
dev.to

TOBER FEST

What I Built I built SecondMind — a local-first second brain that runs on your own laptop. The idea came from building something useful for a friend who often has to repeatedly remember and search through personal notes, study plans, preferences, and project context. Instead of relying on a cloud AI service that sends everything to a remote server, SecondMind stores memories locally and uses a local open-weight model to understand conversations and retrieve relevant information when needed. You can talk to it normally, and it can remember useful information, recall relevant memories later, and forget information when asked. For example: "I'm studying DSA and I'm currently focusing on dynamic programming." Later: "What am I studying right now?" SecondMind can retrieve the relevant memory and use it to answer. The goal isn't to build another generic chatbot. It's to build a small personal memory layer that belongs to the person using it. https://github.com/RathnamS089/secondmind The project is built around a simple architecture: Browser ↓ Django ↓ SecondMind Agent ├── Memory Tools │ ├── Remember │ ├── Recall │ └── Forget │ ├── Retrieval │ └── Cosine Similarity │ └── Ollama ├── Qwen 2.5 1.5B └── nomic-embed-text SecondMind is built with Django, SQLite, NumPy and Ollama. For the language model, I used the open-weight Qwen 2.5 1.5B model through Ollama. For memory retrieval, I use nomic-embed-text to convert both the user's query and stored memories into embedding vectors. When a user asks something that might require memory: User query ↓ Embedding ↓ Compare with stored memory embeddings ↓ Cosine similarity ↓ Rank memories ↓ Relevant memories ↓ Qwen ↓ Response The memory system also has three tools: Remember — stores a memory and its embedding locally. Recall — searches stored memories using semantic similarity. Forget — removes a stored memory. The agent can decide when to use these tools, while the UI also provides direct access to them through a Tools menu. Everything

IADev
Interesse
dev.to

SAMJHGO

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built SAMJHO, a privacy-first, local AI document-understanding MVP designed to simplify confusing notices, policies, and forms into clear, actionable insights for everyday users. Core Components Built Local AI Engine (ai.py + Gemma 3 1B): Powered entirely offline via Ollama to generate structured JSON data—including summaries, required actions, deadlines, and costs—without relying on external proprietary APIs. Evidence Validator (evidence.py): Powers the PROVE IT feature, cross-referencing AI-generated claims directly against original document quotes to guarantee reliability and prevent hallucinations. Streamlit Interface: A simple, user-friendly UI featuring transparent processing steps, bilingual support (English and Hindi), and verifiable source inspection. By combining local open-weight models with strict evidence validation, SAMJHO bridges the gap between complex paperwork and real-world understanding while keeping all data completely offline. https://drive.google.com/file/d/1euuxA1SqSctYp01NZTVP9wyLy_nPUnxK/view?usp=drive_link https://github.com/ViV1-siNgh/Samjho.git I built SAMJHO using a strict local-first, modular architecture to ensure complete privacy and reliability. First, I created a robust document parser (parser.py) using PyMuPDF to extract text page-by-page, integrating Tesseract OCR for scanned PDFs. Next, I connected the local open-weight model Gemma 3 1B via Ollama (ai.py) to process the text offline, instructing it to return clean, structured JSON without hallucinating missing details. To guarantee accuracy, I built an evidence validator (evidence.py) that powers a "PROVE IT" feature, cross-referencing AI claims against exact document quotes. Finally, I unified the pipeline into a simple Streamlit interface offering bilingual support. Open innovation matters because complex, real-world problems—like making bureaucratic paperwork accessible to everyday people—canno

IADev
Interesse
dev.to

My URL-to-Markdown extractor returned a cookie banner as the article body — text density has no taste

Most of my document converters take a file you already have. The URL-to-Markdown one is different: it fetches the page itself and has to decide what the "main content" even is before converting anything. That decision taught me my most humbling lesson so far. My first extraction heuristic was pure text density: score every candidate block by how much text it contains, pick the winner, convert it. It worked beautifully on blogs, docs and news pages. Then I ran a batch of real-world URLs through it, and one news site came back as a 600-word GDPR consent dialog — not the article. The actual story was ~300 words in a narrow column; the consent banner was boilerplate with more prose than the article itself. Text density has no taste. It cannot tell an article from a wall of legal boilerplate, because both are just "big blobs of text". Two signals fixed it. First, link density: nav headers, footers and cookie banners are stuffed with anchors, while real article text is mostly prose. Penalizing blocks where anchor text exceeds roughly 30% of total text killed most of the false wins. Second, semantic anchors: when a single or element exists, that beats any heuristic score. I also keep a small denylist of id/class substrings — consent, cookie, banner, paywall — that disqualify candidates outright. There is a third lesson hiding underneath: single-page apps. A plain HTTP fetch of a client-rendered page returns a near-empty div, and no scoring can rescue text the server never sent. For pages whose static HTML is mostly script tags, I now return an explicit "no extractable content" flag instead of an empty Markdown doc, so callers know to retry with a rendering step. Agents building RAG pipelines over arbitrary web pages need exactly this judgment made for them, so I ended up packaging the fetch-and-clean step as a small API: https://x402.freeq.one/tools/markdown.html — but the heuristic details above are the transferable part. The same scoring tricks apply to any HTML you clea

Dev
Interesse
dev.to

Webflow vs Framer: which one I would actually pick for a client site?

I get asked this a lot, usually by designers who've just been handed their first "can you also build it?" project. So here's my honest take, minus the marketing-page bullet points. Framer is fast. Like, annoyingly fast. If you design in Figma, Framer feels familiar right away. Stacks work like auto-layout, you drag things around, and you've got a live site the same afternoon. For a landing page or a portfolio, I genuinely don't think anything beats it right now. The animations are also way easier to get right than in Webflow. Where it starts to hurt is the CMS. Simple blog? Fine. But once a client wants filtering, references between collections, or a few hundred items with logic attached, you end up fighting it. Webflow makes you think like a developer, and that's the point. The first week in Webflow is rough. Classes, combo classes, divs inside divs, wondering why your grid broke. But that structure is exactly why it holds up on bigger sites. When I've built anything content-heavy (directories, resource hubs, sites the client's team edits every week), Webflow is the one I trust not to fall apart six months later. The catch is cost. Once you add things like localization or bump up CMS limits, the bill climbs quicker than most small clients expect. Worth checking before you quote. So which one? My rule of thumb: Marketing site, startup launch page, portfolio, anything where looks and speed matter most → Framer Big CMS, lots of pages, a client team editing content, something that has to scale → Webflow I put together a full pricing breakdown (including renewal costs and the plan limits nobody mentions upfront) here if you want the numbers: Webflow vs Framer Curious what others are using. Has anyone switched from one to the other mid-project?

Dev
Interesse
dev.to

I didn’t know what my agents knew

My agents run on a Mac mini and keep an LLM wiki: markdown pages they write and read so they remember things between conversations. I had no good way to look at it. That's the whole reason I built Dexio. Part of it was curiosity. Part of it was a need to check that the wiki was accurate, because my agents make decisions from it. Better context, better decisions. I built an LLM wiki visualizer during a trip to Guatemala. When I got back, I loaded the wiki my agents had been maintaining for six months without my eyes on it. I was shocked. There was no page on me. No page on any of my businesses. No pages on any of my clients. Six months in, and the wiki had huge gaps where the most important context should have been. The first thing I did was fill them. I asked my chief of staff agent to search my email and our transcripts and write the missing pages. Since then, my agents work with a better understanding of who I am and what we do. I also told them to write to the wiki as they go. Now they tell me whenever they create a page or update one. I wish I had looked at my wiki sooner. I'm glad I started. Next I want one knowledge base for everything: me, my businesses, and my personal finances. Dexio is open source: github.com/dexio-wiki/dexio. If you'd rather not run your own infrastructure, use the hosted version at dexio.wiki. Originally published at forrestzhang.com.

IA
Interesse
dev.to

I built my parents a recipe app to help with their protein goals

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. 🔗 Source code: https://github.com/shangkaul/recipe-protein Demo video: below Protein Pantry is a private, local-first recipe finder I built for my parents. They describe what is already in the kitchen, choose their own protein target, and get meals ranked by pantry fit. When a recipe needs help, a local Gemma model running on their own laptop proposes a small, grounded change. The rule that shaped the whole project: the AI never supplies a number. Gemma chooses which pantry ingredients to change and why. Python calculates every gram and every nutrient value from verified records. If a proposal cannot be validated, the original recipe is still there. There is no account, no health profile, no cloud model, and no per-request cost. In the video: browse-first opening, a pantry search with the verified-nutrition filter, confirming a serving count on a Recipe1M recipe, and a local Gemma adaptation that takes the recipe from 11.4 g to 29.9 g of protein per serving against a 30 g target. The browse-first opening starts with appetising choices, not a form wall. I built this for my parents. The problem was never "find the mathematically highest-protein meal." It was deciding what to cook without opening dozens of recipe pages, translating ingredient names, or sending dietary details to a cloud service. That pushed every product decision: familiar meals before configuration; readable controls and large touch targets, because it is used in a kitchen on a phone; pantry fit ahead of nutrition optimisation; Indian-first ranking without dropping global options; automatic exclusion of red meat and red-meat-derived ingredients; the user sets their own target; the app never prescribes one. Gemma is not decoration here. Running an open-weight model on their own hardware is what makes the private workflow possible at all: pantry text, exclusions, and targets never leave the device; deterministic search st

IADev
Interesse
dev.to

Specification: Agentic Docs-as-Code Architecture Pipeline

Overview This specification establishes an automated, agent-driven software architecture documentation ecosystem. The framework integrates strict structural standards, controlled natural language rules, and autonomous AI maintenance patterns into a unified, version-controlled pipeline. System Decomposition: All documentation follows the hierarchical arc42 architecture template, ensuring complete coverage from business goals down to deployment views and quality requirements. Visualizations: The C4 model (Context, Containers, Component, Code) is embedded directly into source files using Mermaid.js or Structurizr DSL to maintain living visual artifacts alongside text. Controlled Vocabulary: All documentation must adhere to ASD-STE100 (Simplified Technical English) principles. Clarity Constraints: Sentences remain concise, active voice is strictly enforced, and synonyms are eliminated to ensure absolute zero ambiguity for both human readers and machine interpreters. Living Codebase Model: Documentation is treated as a compiled artifact maintained primarily by AI coding agents rather than manual wiki updates. Repository Governance: A root-level configuration file (AGENTS.md or CLAUDE.md) acts as the compiler rulebook, dictating formatting, terminology, and structural constraints to any interacting AI agent. Storage: Plain-text documentation sources (AsciiDoc or Markdown) reside in a version-controlled repository structured according to arc42 layouts. Execution: Architectural changes trigger targeted agentic instructions. Agents read repository guardrails, update affected multi-file documentation blocks, log corresponding Architecture Decision Records (ADRs), and refresh C4 diagrams in a single pass. Publishing: CI/CD automation compiles the source files into a static architecture portal on every commit.

DevIA
Interesse
dev.to

Speed up WordPress with ChatGPT by measuring the page first

WPPilot wrote this. Ask ChatGPT how to raise WordPress speed and you get a familiar list. Turn on a page cache. Cut the image size. Lazy load whatever sits below the fold. Serve WebP. Watch Core Web Vitals. None of that is a measurement. The model cannot see your server, so it cannot tell you whether the last request was served from cache or built by PHP, and it cannot see the width and height attributes on the images in the HTML. Do the smaller job. Connect the site, look at what is actually installed, time two URLs, change one setting, time them again, and put the settings back if the page got worse. If you want a PageSpeed number, open PageSpeed in a browser. Do not let the chat invent it. WPPilot is how ChatGPT, Claude, or Cursor run that loop on a site you administer. The writes that change WordPress speed are Pro. Free can look, and it can edit one image. It cannot tune the cache. You need three things in place. If any one of them is missing, the model will still answer, and the answer will be the generic list above. WordPress has to be running WPPilot, and the AI client has to be connected to that site. "Connected" is not a mood. It means the client can call the site and get a result back from an ability, not a paragraph from memory. The easiest test is to ask which site it is attached to and to ask it to run a read before it gives advice. If it starts recommending plugins you did not ask about, it is not looking at the site yet. The client can be ChatGPT, Claude, or Cursor. The steps are the same. What changes is where the calls come from. On ChatGPT the site must be public HTTPS. Those calls come from OpenAI's servers, so localhost will not answer, and a password-protected staging site will not answer either. Developer mode is documented for Plus, Pro, Business, Enterprise, and Education on the ChatGPT site. A workspace policy can disable it. If the app does not show up in the picker, fix that before you touch a cache setting. You will otherwise spend an ho

IADev
Interesse
dev.to

Protocol Upgrade Compatibility Review: Sky Lending

Protocol Upgrade Compatibility Review: Sky Lending Target Protocol: Sky Lending (TVL: $5883.8M) Protocol Upgrade Compatibility Review – Sky Lending TVL: ≈ $5.88 B (Ethereum + L2s) Date of Review: 4 Oct 2026 Prepared by: [Your Name], Senior DeFi Security Researcher & Smart‑Contract Auditor Sky Lending is a high‑value, cross‑chain lending platform that aggregates liquidity across Ethereum L1 and several L2 roll‑ups (Optimism, Arbitrum, zkSync). The protocol’s core contracts are upgradeable via a Transparent Proxy (EIP‑1967) pattern controlled by a multi‑sig DAO (4‑of‑7). The purpose of this review was to assess upgrade compatibility – i.e., whether future contract upgrades can be performed safely without breaking existing state, exposing new attack surfaces, or violating the protocol’s economic guarantees. Area Verdict Critical Issues Overall Impact Proxy & Storage Layout ✅ Acceptable, but 2 high‑severity incompatibilities detected 1️⃣ Storage slot collision in InterestRateModelV2; 2️⃣ Un‑initialized storage gap in RewardsDistributor High – could corrupt user balances or reward accruals on upgrade Governance & Timelock ✅ Robust, but 1 medium‑severity governance bypass 3️⃣ “EmergencyPause” function callable by any address with PROPOSER_ROLE due to missing onlyGovernor guard Medium – could be abused to freeze the protocol during an upgrade Cross‑Chain Bridge Integration ✅ Well‑abstracted, but 1 low‑severity replay‑attack vector 4️⃣ Missing chainId check in BridgeExecutor when processing L2→L1 messages after upgrade Low – limited to bridge relayers Upgrade Authorization Logic ✅ Multi‑sig DAO, but 1 medium‑severity “upgrade‑to‑self” risk 5️⃣ Proxy admin can be set to a contract that itself is upgradeable, enabling a “self‑destruct‑upgrade” path Medium – could lead to loss of upgrade control Testing & Formal Verification ✅ Good coverage, but 1 medium‑severity gap 6️⃣ No invariant test for “totalSupply == sum(userDeposits + accruedInterest)” after upgrade Medium – could hid

SegurançaDev
Interesse
dev.to

Why I built a spaced-repetition app for coding drills

I used to read a solution, nod, and move on. A week later I could not write the same thing from scratch. Understanding something while it is on the screen and being able to produce it yourself are different skills, and only the second one helps in an interview or on a real project. That is why I built Daily Coding, a free web app of short drills for JavaScript/TypeScript, SQL and page building. Each drill is small enough to finish in a minute or two. You answer it, and if you get it right it comes back later. If you get it wrong, it comes back sooner. Repetition is the whole idea: the same basics, seen again until you stop having to think about them. When you answer wrong, you do not just see the correct answer. You get a hint first, so you can have another go. If you are still stuck, you get a step-by-step explanation of how to reach the answer. Here is the kind of problem I mean: const result = [1, 2, 3] .map(n => n * 2) .filter(n => n > 2); console.log(result); What does this print? The answer is [4, 6]. A wrong answer here is usually [2, 3] or [6], which comes from mixing up the order of the two steps. The hint would say "check which method runs first". The explanation walks through it: map doubles every item, giving [2, 4, 6]. filter keeps items greater than 2, so 2 is dropped. The result is [4, 6]. Nothing here is advanced. That is the point. These are the basics people say they know, and then hesitate over when typing them without help. It is a test version, so I would like to hear what is wrong with it: Are the drills the right size, or too easy or too fiddly? Do the explanations actually help, or do they just restate the answer? Which basics are missing that you would want to practise? If you have been coding for years, do the drills feel honest, or are any of them misleading? You can try it here: https://daily-coding-drills.netlify.app It is free and has no ads. Tell me what you think in the comments.

Dev
Interesse
freeCodeCamp

Learn Modern Kotlin

We just published a comprehensive, free Kotlin course on the freeCodeCamp.org YouTube channel. Whether you're targeting Android development, scalable backend services, or cross-platform applications,

DevMobile
Interesse
Phoronix

Mesa's Zink Now Offers VA-API Video Acceleration Atop Vulkan Video

Merged today to Mesa 26.3 is initial video acceleration support for the generic Zink Gallium3D driver built atop the Vulkan APIs. What this implementation allows is exposing Video Acceleration API (VA-API) implemented atop the Vulkan Video interfaces...

LinuxDev
Interesse