SShortSingh.

Programming

0
ProgrammingDEV Community ·

Want to Contribute to Open Source? Join Me in Building 8DoTs

Did you know that the software we write has a real-world carbon footprint? As developers, we constantly profile our code for execution time and memory usage. But energy consumption remains largely invisible. That’s exactly what I’m trying to change with my open-source project, 8DoTs. 8DoTs (internally structured as the dol8 Python package) is a command-line profiling tool designed to make energy consumption visible during software development.

0
ProgrammingDEV Community ·

Automation Runbooks Need a Dry-Run Contract

Automation is at its best when it removes a repetitive decision. It is at its worst when nobody can tell what it was about to do. That gap usually appears in scripts called --dry-run. The command prints a few lines, a teammate scans them, and everyone assumes the real run will behave the same way. Then a deployment, cleanup task, or email test uses a different account, environment, or input than expected.

0
ProgrammingDEV Community ·

Six pieces of owner feedback, and what each one actually turned out to be

Six pieces of owner feedback, and what each one actually turned out to be Key takeaways "The request remains available even if I approve" was a handler with no else branch — a refusal produced no row change, no message, not even a console line. Showing a preview inline meant 20 cards asking for 20 base64 data URIs at once, up to 5 MB each. The fix was a three-at-a-time queue, not a smaller image. Start a timeout when the REQUEST starts, not when the component mounts, or a queued item is failed for other items' latency. An unmounted card gives its queue slot back.

0
ProgrammingDEV Community ·

React 19.3 ViewTransition: Animate State Without Losing It

You wire up a photo grid. Click a thumbnail, it should morph smoothly into a full detail view — the kind of transition Google Photos and Instagram have trained everyone to expect. You already know the browser can do this for free: the native View Transitions API wraps a DOM update in document.startViewTransition(), tags the old and new elements with a shared view-transition-name, and the browser tweens between them. You wire it up. It works beautifully — right up until the thumbnail lives inside a filtered, paginated React list, and the click also has to update selectedId state, close a search

0
ProgrammingDEV Community ·

The Jira form smart value that writes nothing and reports success

The Jira form smart value that writes nothing and reports success Key takeaways Two unrelated features are called Forms. These smart values only reach advanced forms, the ProForma lineage. Atlassian stated on JRACLOUD-98636 that Jira Software projects do not support advanced forms at all, and closed it Won't Fix. The root smart value is forms, plural. A rule written as {{form.last.key}} resolves to nothing, and the run still reports success.

0
ProgrammingDEV Community ·

How I Built and Shipped an AI Food Label Scanner to the App Store Using React Native & FastAPI

Building a mobile app powered by multimodal AI sounds straightforward on paper—until you have to deal with noisy camera inputs, low-latency API responses, and strict App Store review guidelines. Recently, I built and published SafeBite AI to the iOS App Store. The goal of the app is simple yet critical: allow users with dietary restrictions or allergies to scan food ingredient labels and instantly know if it's safe for them to consume. In this article, I want to walk through the system architecture, the technical bottlenecks I faced, and how I optimized the mobile-to-cloud AI pipeline. The pip

0
ProgrammingDEV Community ·

Stillroot: a quiet plant companion for my friend Rohan

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. I built Stillroot, a quiet plant-care companion for my friend Rohan. I picked a small, everyday scenario for his gift: a few plants on a windowsill, a weekend away, and the question, “Will someone need to check the soil while I'm gone?” The pothos, monstera, and basil in the demo are imagined plants. The readings are synthetic, and the windowsill is a creative design premise. This is a working gift prototype; the next step is to put it in Rohan's hands and replace the sample assumptions with his actual routine.

0
ProgrammingDEV Community ·

MemTable Crash-Safe Recovery

In our benchmark, recovering a 1.5 GiB MemTable after a process crash took an average of 4.989 ms with CSPP crash-safe recovery versus 5987.152 ms with default SkipList/WAL replay—about 1200× faster. Process crash: abnormal process termination, including deliberate termination with kill -9 / abort; the operating system continues running, and its file page cache (PageCache) remains intact. Hardware power loss: the server hardware suddenly loses power, the operating system stops running, and in-memory state (including PageCache) is lost. The container orchestration system Kubernetes allows a def

0
ProgrammingDEV Community ·

Managing private data from the web securely on AWS

A bookmarks service, in its classic form, is a list of links: a title, an address and a few labels. This time I needed more: MP3s and PDFs, like synthesized podcasts for studying and their handouts, to listen to and read again while keeping track of where I left off, to share with a few people and to keep away from everybody else. My bookmarks have been public since 1998, and the previous version, bookmarks-v3.0, was a static site generated by Jekyll and published on GitHub Pages: it cost nothing, and for a list of public links it was good enough. The criterion stayed the same, spending as lit

0
ProgrammingDEV Community ·

Open-source license compliance for developers: MIT, Apache 2.0, GPL and beyond

Most developers have read the words "MIT License" at least a hundred times and couldn't explain what they actually permit or require. That's fine until the day someone in Legal asks you to audit the licenses in a product you're about to ship, or until you open-source your work and discover it's tangled up with a copyleft library. Open-source licenses are legal contracts. They grant you rights to use, modify and redistribute code — but with conditions. Understanding those conditions matters in three situations: when you're using open-source code commercially, when you're distributing software t

0
ProgrammingDEV Community ·

Quantencomputing verständlich erklärt — Episode 12

Stand der Technik: Was vom Quantenhype übrig bleibtQuantencomputing verständlich erklärt — Episode 12Quantencomputing befindet sich an einem ungewöhnlichen Punkt seiner Entwicklung. Die grundlegende Funktionsfähigkeit muss nicht mehr bewiesen werden. Reale Quantenprozessoren können Qubits kontrollieren, verschränken und durch programmierbare Gatterfolgen verändern. Solche Systeme stehen in Forschungslaboren und können zum Teil über die Cloud genutzt werden. Noch nicht bewiesen ist etwas anderes: Dass sich ausreichend große und zuverlässige Quantencomputer bauen lassen, die bei praktisch releva

0
ProgrammingDEV Community ·

Quantencomputing verständlich erklärt — Episode 11

Kann ein Quantencomputer das Internet entschlüsseln?Quantencomputing verständlich erklärt — Episode 11Über Quantencomputer wird häufig behauptet: Ein ausreichend großer Quantencomputer kann die Verschlüsselung des gesamten Internets brechen.Diese Aussage ist zu pauschal. Ein Quantencomputer kann weder jede Verschlüsselung brechen noch einfach sämtliche Schlüssel gleichzeitig ausprobieren. Trotzdem gibt es ein echtes Problem. Um es zu verstehen, müssen wir uns zunächst ansehen, worauf ein Teil der heutigen Verschlüsselung beruht. Von HTTPS zu zwei PrimzahlenWenn wir eine Website über https:// a

0
ProgrammingDEV Community ·

How to Test Windows Apps with a Different Date and Time

The fastest way of different date/time testing is changing the system clock, done :-), but if we don't want to change the system time, we can use Chrono Mock, CLI/GUI, open source app for time/date manipulation in apps: Download From GitHub, if you like the tool, please give it a star :-) After launching the app, we need to chose the application that will be affected, we can just drag & drop the app: Then we can just click the "Start" button, but... By design the date is set to 2038, so we need to set own custom date/time, and in "Date and time" section, same with "Speed and options": Back up

0
ProgrammingDEV Community ·

I Was Overwhelmed, So I Turned My GitHub Profile Into a Roguelike Dungeon

It was a late afternoon. I came in tired and a bit down, with a long list of tasks and a pile of issues waiting for me. I didn't know where to start, so I did what a lot of us do when we're stuck: I opened DEV and started scrolling. Then I found this post by George Kobaidze: I Turned My GitHub Profile Into a Cyberpunk Console With a City Built From My Contributions Bypassing GitHub's strict sandbox via SVGs Giorgi Kobaidze Oct 1 #showdev #python #github #design 124 reactions comments He turned his GitHub profile into a cyberpunk console, with a city built from his contributions. I was hooked s

0
ProgrammingDEV Community ·

From Hours to Seconds: How AI Is Changing the Way We Work ⚡

Have you ever worked on a task for hours and suddenly thought: As developers, we spend a lot of time writing code, debugging errors, searching documentation, analyzing data, writing SQL queries, creating documentation, and doing many other repetitive tasks. But today, AI is changing the way we approach this work. Not by simply doing everything for us — but by helping us move from “How do I start?” to “How can I improve this?” much faster. ⏳ The Traditional Way Imagine you are given a task: “Analyze this dataset and find the important patterns.” Without AI, you might: Understand the dataset Dep

0
ProgrammingDEV Community ·

Why Children Should Learn to Explain Their Code Out Loud

A child finishes a coding project, presses run, and everything works. That looks like success. Then someone asks, “Can you explain what this part does?” Suddenly, the answer becomes much harder. This gap matters. A student may be able to complete a project without fully understanding the logic behind it, especially when following tutorials, copying examples, or working from guided instructions.

← NewerPage 687 of 3154Older →