SShortSingh.
0
ProgrammingDEV Community ·

Developer Builds Fully Automated Azure CI/CD Pipeline Using Terraform and GitHub Actions

A developer at Hagital Tech Institute created a one-click CI/CD pipeline that automatically provisions an Azure virtual machine and deploys a live website on every git push. The workflow uses Terraform to build cloud infrastructure and GitHub Actions to install nginx and clone a website repository onto the new VM, requiring no manual SSH access or portal interaction. Terraform's state file is stored remotely in an Azure storage account so that GitHub Actions can track and manage infrastructure across runs. A separate destroy workflow allows the developer to tear down all Azure resources on demand, preventing unexpected cloud charges. The project demonstrates how open-source tools like Terraform and GitHub Actions can fully automate cloud deployment from a local Windows development environment.

0
ProgrammingDEV Community ·

Why Building Tech Out of Curiosity Matters More Than Having a Startup Idea

A developer reflects on how, back in Class 12, they built two unconventional projects — a desktop AI suggestion tool and a PDF n-gram counter — driven purely by curiosity rather than any business goal. The author argues that the common belief that tech projects must start with a big startup idea is misguided, and that asking 'Can I actually make this?' is a more powerful starting point. They describe how small experimental builds, such as a bot that monitors websites and delivers a personalized daily briefing, can teach meaningful technical skills regardless of whether the outcome is useful. The piece encourages developers to treat code as a personal playground, building tools like document-chatting bots, browser-history analyzers, or searchable knowledge bases just to see what is possible. According to the author, the real value of such experiments lies not in the product but in the learning that happens along the way.

0
ProgrammingDEV Community ·

Permetra: Open-Source Access Graph Tool Aims to Simplify Supabase Security

A developer is building Permetra, an open-source security tool designed to visualize access control in Supabase-based applications. As apps scale, permissions spread across users, roles, tenants, tables, and row-level security policies, making the full access picture hard to track. Permetra addresses this by generating an interactive graph, inspired by the security tool BloodHound, to help developers explore access relationships and paths visually. The tool aims to surface unexpected access routes, review tenant isolation, and clarify why a user can reach a given resource. The project is still in its first version, and the developer is actively seeking feedback from Supabase users, security engineers, and open-source contributors.

0
ProgrammingDEV Community ·

Developer Tutorial: Build a Browser-Based AI Posture Monitor Using MediaPipe and React

A developer tutorial published on DEV Community walks readers through building a real-time posture monitoring tool using MediaPipe Pose, TensorFlow.js, and React. The system uses a device's webcam via WebRTC to detect body landmarks and calculates the neck angle between the ear and shoulder to identify forward head posture. When the calculated angle falls below a set threshold, the app triggers a local browser notification to alert the user. All processing happens entirely within the browser, meaning no images or data are sent to external servers. The tutorial targets developers with basic React knowledge and aims to address the common problem of poor posture during long hours at a computer.

0
ProgrammingDEV Community ·

What Makes a Progressive Web App: HTTPS, Service Workers, and a Manifest

Progressive Web Apps (PWAs) are websites that behave like native apps, offering home screen installation, offline access, and push notifications without requiring app store distribution. They are built on three core pillars: HTTPS for security, a Service Worker that intercepts network requests and manages caching, and a Web App Manifest JSON file that defines the app's name, icons, and display settings. The Service Worker supports multiple caching strategies — including Cache First, Network First, and Stale While Revalidate — allowing apps to function even without an internet connection. A valid manifest combined with a registered Service Worker triggers the 'Add to Home Screen' install prompt in Chrome and most Android browsers. Tools like PWABuilder can help developers audit an existing site and auto-generate the required manifest, icons, and Service Worker files.

0
ProgrammingDEV Community ·

Developer builds errval to bring Go-style error handling to TypeScript

A developer who works primarily in TypeScript and Go built errval, a lightweight TypeScript library that brings Go-style explicit error returns to TypeScript projects. The library weighs just 1.86 kB minified and gzipped, has zero dependencies, and works across Node, Bun, and Deno runtimes. It uses a tuple pattern — const [err, value] — where the error is placed first to prevent developers from accidentally ignoring it. Benchmarks show errval handles failure-path requests at 226 ns per request, slower than neverthrow's 198 ns but significantly faster than plain try/catch at 2,623 ns on the failure path. The project is at version 0.1, currently maintained by a single developer, and is available via npm and GitHub.

0
ProgrammingDEV Community ·

Git's rerere Feature Can Automatically Reuse Your Past Conflict Resolutions

Git includes a built-in feature called rerere (reuse recorded resolution) that remembers how a developer resolved a merge conflict and replays that resolution if the identical conflict appears again. Once enabled via a single config setting, Git stores a preimage of each conflict and the corresponding postimage resolution under the .git/rr-cache/ directory. By default, rerere writes the saved resolution into the file but leaves it unstaged, allowing the developer to inspect the result before proceeding. An optional autoupdate setting can also stage the file automatically, though the rebase or merge operation still pauses for a manual review. Recorded resolutions can be discarded with git rerere forget, and rerere only triggers when a conflict matches byte-for-byte, so any change to either side of a conflict prompts a fresh resolution.

0
ProgrammingDEV Community ·

How to Undo a Git Commit: The Right Command Depends on Two Questions

Undoing a Git commit has multiple correct approaches, but choosing the right one requires answering two questions first: where does the change currently live, and has anyone else pulled it? For local, uncommitted changes, commands like 'git restore' or 'git restore --staged' are appropriate depending on whether the edit is in the working tree or the index. Committed but unpushed changes can be safely undone with 'git reset --soft HEAD~1', which removes the commit while preserving the staged content. Once a commit has been pushed and shared with others, rewriting history is risky, and 'git revert' is the safer choice as it adds an inverse commit rather than deleting history. Using 'git reset --hard' is the most destructive option, permanently discarding uncommitted changes with no recovery path through the reflog.

0
ProgrammingDEV Community ·

How Git Bisect Can Pinpoint a Buggy Commit in Just Four Test Runs

Git's built-in bisect tool uses binary search to identify which commit introduced a regression, requiring only a known good commit, a known bad commit, and a test that returns an exit code. In a 12-commit example repository, running 'git bisect run' with an automated test script narrowed down the culprit in just four steps without any manual intervention. The offending commit, labelled 'Perf: simplify addition loop', had stripped minus signs from numeric arguments, silently converting all negative numbers to positives. Git bisect works by checking out the midpoint of the commit range, running the test, and halving the search space based on the result — a process that scales logarithmically regardless of how many commits are involved. For reliable results, the test script must be independent of files added after the known-good commit, and endpoints must be verified, as an incorrect 'good' baseline will lead bisect to the wrong answer.

0
ProgrammingDEV Community ·

Git Worktrees Let You Handle Interruptions Without Stashing Your Work

Git has supported a feature called 'git worktree' since version 2.5, allowing developers to create a second working directory that shares the same repository database without cloning it. When interrupted mid-feature, a developer can run 'git worktree add' to check out a separate branch in a new folder, leaving the original work completely untouched. The hotfix can be made, committed, and pushed from that second directory, after which the developer returns to find their uncommitted changes exactly as they left them. Git enforces a safety rule preventing the same branch from being checked out in two worktrees simultaneously, avoiding race conditions on branch pointers. Once the hotfix is merged, the extra directory can be cleanly removed with 'git worktree remove', while the branch itself is preserved.

0
ProgrammingDEV Community ·

AI Hallucinations in High-Stakes Work Pose Greater Risk Than Capability Gaps

A recent incident involving the US military highlighted the dangers of AI-generated intelligence reports containing hallucinated information that nearly influenced a real operational decision. Unlike accuracy benchmarks, no standard metric measures an AI model's ability to recognise when its own outputs are wrong — a gap that poses serious risks in critical applications. A model that is correct 97% of the time but states errors with full confidence can be more dangerous than one that is less accurate but flags its uncertainty. In practical settings such as cross-border commerce, undetected AI errors can manifest as fabricated product specs, non-existent legal citations, or incorrect customer-facing policies. Experts argue that the more durable approach is designing systems that assume AI output may be wrong and route high-stakes, irreversible actions through independent verification or human checkpoints.

0
ProgrammingDEV Community ·

Dr. T: AI Platform Combines Clinical Triage, Diagnostics, and Blockchain Micropayments

Dr. T is a multilingual AI healthcare platform designed to support patients, caregivers, and clinicians through real-time voice-based triage, empathetic mental wellness guidance, and personalized medical communication. The system integrates clinical automation tools including pharmacogenomics-based drug interaction prediction, EHR summarization using FHIR standards, and AR-assisted skin lesion analysis for malignancy risk estimation. A built-in media production module converts peer-reviewed research and discharge plans into educational 2D and 3D videos using multimodal AI reasoning paired with verified clinical citations. The platform also incorporates a decentralized micropayment engine built on Algorand's MainNet, enabling AI agents to pay for API calls in USDC with near-instant finality and fees under one-tenth of a cent. Patient data privacy is maintained through zero-knowledge proofs and differential privacy protocols designed to meet HIPAA standards and keep users in full control of their biometric and genetic information.

← NewerPage 1419 of 5893Older →