SShortSingh.

Programming

0
ProgrammingHacker News ·

Study Finds GPT Models Transform Rather Than Eliminate Gender Bias

A new research paper published on arXiv examines how large language models like GPT handle gender discrimination. The study introduces the concept of 'harm laundering,' suggesting these models repackage biased outputs in less obvious ways rather than removing the underlying bias. Researchers argue that safety measures in GPT models may give a false sense of neutrality while discriminatory patterns persist in transformed forms. The findings raise concerns about the effectiveness of current AI alignment and content moderation approaches in addressing systemic gender bias.

0
ProgrammingDEV Community ·

CS50P Beginner Shares Lesson Learned From 'Indoor Voice' Problem Set

A developer-advocate aspirant enrolled in Harvard's CS50P (Python) course recently documented their experience solving the first problem in Problem Set 0, titled 'Indoor Voice.' The task required converting any user input to lowercase using Python's built-in .lower() string method, regardless of how it was typed. The author admitted to initially misreading the instructions and submitting incorrect code before catching the error. In the writeup, they also introduced related Python string methods — .strip(), .upper(), and .title() — to help beginners understand basic input handling. The post is aimed at newcomers to Python who may encounter similar pitfalls in early CS50 exercises.

0
ProgrammingDEV Community ·

Why AI Projects Need a Behavior Contract Before Any Code Is Written

Software engineer Derek Wang argues that AI-driven projects require a foundational 'constitution' — a strategy charter that defines the system's identity, boundaries, and human-AI collaboration rules before any work begins. Unlike code conventions, which govern the artifact, this behavior contract shapes how the AI checks, verifies, and handles mistakes. Wang outlines ten model-agnostic rules for his own projects, covering principles such as reading before writing, making minimal edits, and replacing tools after repeated failures. He warns that without such a charter loaded upfront, an AI model is effectively improvising without guardrails, and no downstream prompting can compensate. The approach treats the constitution not as documentation but as a binding contract every participant — human or AI — must internalize at the start.

0
ProgrammingDEV Community ·

Koi Editor Uses Handwritten Lexers for Faster Syntax Highlighting and Folding

Koi Editor takes a direct approach to syntax highlighting by using small, language-specific handwritten lexers instead of declarative grammar systems or syntax trees used by editors like Sublime Text and Zed. Each lexer is purpose-built code that decides how text should be styled and folded without a generic engine in between. This design also enables syntax-aware folding, allowing code blocks to remain foldable even when indentation alone cannot determine structure. In performance benchmarks, Koi was able to apply syntax highlighting to files with millions of lines, while Sublime Text and Zed reportedly became unusable at much smaller scales. The developer attributes this efficiency to the lexers doing minimal work per token, tracking only token type, carry-forward state, and fold level.

0
ProgrammingDEV Community ·

Developer Builds ASCII-Based Python Calculator That Runs in the Terminal

Developer Dilesh Zingare has shared a tutorial on building a visual Python calculator that runs entirely in the terminal using ASCII. The calculator accepts two numbers and an operator from the user, then performs one arithmetic operation at a time, including addition, subtraction, multiplication, division, and exponentiation. The logic is handled using Python's if-elif-else conditional statements to differentiate between operations. Zingare acknowledges the tool is basic in its current form but plans to expand its functionality in future updates. The project's source code is publicly available on GitHub for anyone looking to follow along or contribute.

0
ProgrammingDEV Community ·

Developer Completes Restaurant Website Built Purely with HTML in Four-Part Series

Developer Dilesh Zingare has published the fourth and final part of his beginner frontend project series on DEV Community. The series documents the step-by-step creation of a restaurant website called 'The Bite of Soul' using only HTML. Each article in the series was accompanied by a lecture video to help readers follow along. The project source code has been made publicly available on Zingare's GitHub profile. Zingare encouraged readers to build their own versions and share the results in the comments.

0
ProgrammingDEV Community ·

CSS Positioning Demystified: A Beginner's Guide to All 5 Values

CSS positioning is a commonly misunderstood concept, but it revolves around just five core values. The default value, static, places elements in the normal document flow, while relative allows movement from the element's original position. Absolute positioning anchors an element relative to its nearest positioned parent, making it useful for badges and icons. Fixed elements remain locked in place on the screen regardless of scrolling, ideal for persistent navigation bars. Sticky combines relative and fixed behavior, keeping an element in flow until a scroll threshold is reached, which suits table headers and section titles.

0
ProgrammingDEV Community ·

AI Coding Agents Can Execute Malicious Code Just by Opening a Repository

Security researchers have identified a class of attacks where malicious repositories can compromise AI coding agents without developers ever manually running any code. When an agent opens a project to understand its context, it may read configuration files, Git history, and agent-specific instruction files that attackers can weaponize. A documented attack method called GitSpawn exploits Git's core.fsmonitor setting, causing attacker-controlled code to execute when agents perform routine operations like 'git status' or 'git diff'. Researchers found several popular coding agents affected, including Claude Code, OpenAI Codex, Cursor, and Goose, among others. Beyond code execution, repositories can also embed prompt injection instructions designed to manipulate an agent's behavior, such as exfiltrating environment variables, expanding the attack surface well beyond traditional code-based threats.

0
ProgrammingDEV Community ·

Developer Shares Beginner CSS Basics While Building Restaurant Website Project

Developer Dilesh Zingare published the third installment of his beginner frontend project series on DEV Community, documenting his progress building a restaurant website called 'The Bite of Soul.' In this part, he introduces CSS styling within HTML files using the style tag rather than a separate stylesheet. He explains core concepts such as CSS selectors, curly bracket syntax, and common styling attributes like background-image, padding, font-family, and text-align. Zingare also notes practical considerations around file paths when using external CSS files. The project's source code is available on his GitHub profile for reference.

0
ProgrammingDEV Community ·

Developer Builds Full-Stack E-Commerce Platform with Scalable Modular Architecture

A software developer has shared details about building a full-stack e-commerce platform designed to handle product management, user accounts, payments, orders, and real-time inventory. The platform was built using a modern tech stack including React.js, Next.js, TypeScript, Node.js with NestJS, PostgreSQL, and Redis for caching, all deployed on AWS via Docker and CI/CD pipelines. A modular architecture was adopted to allow new features to be added without disrupting existing services, with key components including a cart service, order processing, payment integration, and a notification system. Challenges such as slow product search and concurrent stock depletion were addressed through database indexing, transaction-based inventory updates, and stock validation before checkout. The developer plans to extend the platform with AI-powered product recommendations, smart inventory forecasting, and a chat-based shopping assistant in future iterations.

0
ProgrammingDEV Community ·

Six undocumented WKWebView behaviors that can break your iOS/macOS browser build

A developer who spent months building a full-featured browser on Apple's WKWebView has documented six critical behaviors not covered in official documentation. Among the key findings: the long-recommended WKProcessPool for sharing processes was deprecated in macOS 12 and now has no effect, with WKWebsiteDataStore being the actual controller of process sharing. The article also warns that calling WKWebsiteDataStore(forIdentifier:) with the same UUID returns different objects each time, silently breaking process sharing unless instances are cached and reused. Deleting a data store via remove(forIdentifier:) throws an error if any reference to that store remains alive, requiring developers to release all references before retrying deletion. The findings apply primarily to macOS but are largely relevant to iOS development as well.

0
ProgrammingDEV Community ·

Plane Emerges as Top Open-Source Jira Alternative for Small and Mid-Sized Teams in 2026

Plane, an open-source project management tool licensed under AGPL-3.0, has been assessed as the strongest alternative to Jira and Linear for most small and mid-sized teams in 2026. The platform offers core project management features including sprints, roadmaps, triage, and AI-assisted docs, all within a modern interface. Its self-hosted Community Edition is free with unlimited users, while cloud plans start at a 12-user free tier and paid options from $6 per seat per month. With over 58,500 GitHub stars, Plane also provides one-click importers from Jira, Linear, Asana, and ClickUp, lowering the barrier to switching. Jira remains the recommended choice for teams embedded in the Atlassian ecosystem, and Linear for product engineering teams prioritising speed over data ownership.

0
ProgrammingDEV Community ·

How to Switch Programming Languages Faster Using What You Already Know

Developers switching to a new programming language often already possess the core concepts needed, such as variables, loops, functions, and data structures. The key shift is to ask how a new language expresses familiar ideas rather than treating it as an entirely new subject to memorize. Creating a simple concept-to-syntax translation map between the old and new language can accelerate the learning process significantly. Certain deeper differences, such as static typing, memory management, or concurrency models, do require slower, more deliberate study. Rebuilding a familiar project in the new language is recommended as one of the most practical ways to reduce cognitive load during the transition.

0
ProgrammingDEV Community ·

Developer Documents Building a Restaurant Website from Scratch Using HTML

Developer Dilesh Zingare has published the second part of his beginner-focused frontend project series on DEV Community, walking readers through building a restaurant webpage called 'The Bite of Soul' using only HTML. The article covers foundational HTML concepts including heading tags, div elements, attributes, and character encoding via meta charset. Zingare shares the raw source code on GitHub and provides a preview of the finished webpage design, including functional clickable buttons. The series is aimed at beginners and is accompanied by video lectures to support learners at each stage. The next installment is expected to continue building out the webpage, with additional tutorial videos to follow.

0
ProgrammingDEV Community ·

Developer releases open-source local AI proxy daemon with zero telemetry or cloud dependency

A developer has open-sourced the Garza Global Graviton (GGG) Sovereign Edge Daemon, a self-contained background tool designed to give users full control over their local AI data. The daemon runs as an OpenAI-compatible loopback proxy at a local address, meaning all prompts, history, and context remain entirely on the user's own hardware. It includes HMAC-SHA256 cryptographic response branding and a metadata pacer to maintain data integrity under what the developer calls a Sovereign Math Framework. GGG is compatible with popular AI tools such as VS Code's Continue extension, Open WebUI, LM Studio, and Jan, and requires no accounts or cloud connections. The project is publicly available on GitHub, and the developer is inviting community feedback and contributions.

0
ProgrammingDEV Community ·

Recent School Grad Builds Python Restaurant Bot as First Coding Project

Dilesh Zingare, a recent 12th-grade graduate, has shared his first Python project and first written article on DEV Community. The project, called 'Soul the Restro Waiter,' is a command-line restaurant simulation that handles menu display, order taking, quantity input, and bill generation. Zingare discovered the platform through online research and decided to document his early coding journey as a step toward becoming a Developer Advocate. He acknowledged his beginner status and openly invited feedback from readers to help him improve. The project marks the start of his self-taught programming path despite a disappointing exam result that initially shook his confidence.

0
ProgrammingDEV Community ·

Oracle PL/SQL Exception Handling: Types, Rules, and Code Examples Explained

Oracle PL/SQL exceptions are runtime error conditions that interrupt normal block execution and transfer control to a designated EXCEPTION section for handling. PL/SQL classifies exceptions into three types: predefined Oracle server errors (such as NO_DATA_FOUND and ZERO_DIVIDE), non-predefined server errors that require manual declaration and binding via PRAGMA EXCEPTION_INIT, and user-defined exceptions raised explicitly by developers for custom business logic. Only one exception handler executes per block run, and the WHEN OTHERS clause, if used, must always appear last in the EXCEPTION section. Non-predefined exceptions are linked to specific ORA- error codes at compile time using the PRAGMA compiler directive in the DECLARE section. Understanding these categories and their declaration requirements helps developers write more robust and maintainable PL/SQL code.

0
ProgrammingDEV Community ·

How to Write Structured Prompts for MiniMax H3 AI Video Generation

A practical guide published on DEV Community outlines a structured approach to writing prompts for MiniMax H3, an AI video generation model. The guide argues that effective prompts should function like production specifications, covering subject, action, camera movement, lighting, timing, and audio in separate, purposeful sentences. A key recommendation is to describe motion as a timeline, breaking a clip into timestamped segments to convey what happens between frames rather than just the final image. The guide also advises separating subject motion from camera motion to avoid conflicting instructions, and using precise cinematographic terms such as 'slow dolly-in' instead of vague phrases like 'cinematic camera movement'. These techniques are presented as ways to make AI video prompts easier to debug, reuse, and control across use cases like product reveals, fashion shots, and vehicle videos.

0
ProgrammingDEV Community ·

How to Debug R8 Release-Only Android Crashes Without Disabling Optimization

Android developers often encounter crashes that appear only in release builds when R8 minification is enabled, while debug builds run without issues. These failures typically stem from runtime dependencies — such as reflection, JNI, or dynamic class loading — that static analysis tools like R8 cannot fully trace. Rather than disabling R8 or applying blanket keep rules, developers should first retrace obfuscated stack traces using R8's mapping.txt file to identify exactly which class or method is missing at runtime. The key question to ask after retracing is what runtime mechanism expected a particular class, method, or field to remain accessible — not just which class crashed. Inspecting the merged R8 configuration from build outputs, rather than only proguard-rules.pro, helps pinpoint whether a problematic rule originated from the app, Android tooling, or a third-party dependency.

0
ProgrammingDEV Community ·

UK Finance Teams Lose Days Monthly to Workflow Gaps, Not Spreadsheets

Recent fintech research highlights that UK businesses lose several days each month to manual finance administration, but the core problem lies in fragmented workflows rather than spreadsheet use. Finance processes involve chains of handoffs, approvals, and exception handling that no single tool adequately addresses, meaning replacing spreadsheets with dashboards often just relocates the same inefficiencies. Automation rate alone is a misleading metric, since even systems that auto-process 98% of transactions can still feel manual if the remaining edge cases create queues and delays. Engineers building financial products are advised to prioritise exception handling from the outset, ensuring every material decision is traceable by source, rule, reviewer, and repeatability. A layered architecture separating observed facts, proposed interpretations, and accepted decisions is recommended to enable auditability and continuous model improvement without distorting historical records.

← NewerPage 1131 of 3220Older →