SShortSingh.
Back to feed

Why Checking If a Bank Is Open Today Is a Hard Software Engineering Problem

0
·1 views

A software developer has outlined the hidden complexity behind answering a simple question: whether a bank is open on any given day. Beyond weekends, the challenge involves handling public holidays, observed substitute dates, and branch-specific rules that vary by institution. Time zones add another layer of difficulty, since a user's local date may differ from the date at the bank's physical location. The developer proposes a layered architecture separating calendar logic, holiday data, institution rules, and a status engine to manage these variables cleanly. The system also advocates for richer status responses that explain why a bank is closed, rather than returning a plain open or closed value.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

AI Harnesses Give Coding Agents Consistent Rules Without Repeated Prompts

An AI harness is a structured layer of files, rules, workflows, and project context that wraps around an AI coding agent to guide how it works. Unlike one-off prompts that must be rewritten each session, a harness stores engineering conventions — such as validation patterns, authorization rules, and testing requirements — persistently in the project environment. This allows developers to issue simple task instructions while the harness automatically supplies the underlying engineering discipline. A typical harness is organized into folders covering agents, skills, rules, workflows, context, and tool adapters, each with distinct responsibilities. The approach aims to reduce inconsistency, prevent agents from skipping validation or modifying unrelated files, and make AI-assisted development more reliable across sessions.

0
ProgrammingDEV Community ·

ESP32 Microcontrollers Quietly Replace Raspberry Pis in Home Lab Setups

A home lab enthusiast has replaced nearly half their Raspberry Pi devices with ESP32 microcontrollers over the past two years, citing significant cost and power advantages. While a Raspberry Pi 4 or 5 consumes 3–5 watts at idle and costs up to $80 with accessories, an ESP32 devkit draws as little as 0.08 watts and costs under $12. The author highlights five practical use cases where the ESP32 outperforms a Pi, including serving as a Bluetooth Low Energy proxy for smart home sensors in multiple rooms. Running four ESP32s as BLE proxies via ESPHome, the combined power draw is roughly 0.6 watts, less than a single idle Pi 4, with 11 months of uninterrupted uptime. The key argument is that for always-on tasks not requiring Linux, Docker, or heavy processing, the ESP32 offers a simpler, cheaper, and more resilient alternative.

0
ProgrammingDEV Community ·

ESP32-S3 Can Detect People Locally for $12, No Cloud or WiFi Needed

A developer tutorial published on DEV Community demonstrates how to run person-detection AI entirely on an ESP32-S3 microcontroller, costing as little as $12, without sending any data to the cloud. The approach uses TinyML with a quantized MobileNetV1 or MobileNetV2 model trained on the Visual Wake Words dataset, which classifies frames as person or no-person. Running on hardware like the XIAO ESP32S3 Sense or Freenove S3 WROOM CAM, the system processes QVGA frames in 80 to 120 milliseconds using the chip's int8 hardware acceleration. Unlike cloud-based alternatives, which introduce latency, recurring costs, and privacy concerns by transmitting footage to remote servers, this method keeps all image data confined to the device's PSRAM. The tutorial argues that for simple presence detection, local inference is not only cheaper but more practical and privacy-preserving than any cloud solution.

0
ProgrammingDEV Community ·

OpenAI Releases GPT-6 Astra With Built-In Misalignment Monitoring and Tool Gating

OpenAI launched GPT-6 Astra on September 3, 2026, describing it as its most capable broadly deployed model, with agentic benchmark scores of 74.1% on DeepSWE v1.1 and 72.6% on OSWorld 2.0. Alongside the model, OpenAI deployed a misalignment monitoring layer and real-time alignment evaluations that can block responses during tool-using inference, not just log them after the fact. Astra is also the first OpenAI model to reach the Critical tier under its Preparedness Framework for cybersecurity capability, meaning it can autonomously discover and exploit security vulnerabilities across hardened systems. In internal simulations across over 54,000 Codex tasks, Astra triggered roughly half as many high-severity misalignment flags as its predecessor Sol, though all metrics are self-reported by OpenAI. The article argues that while OpenAI monitors its own inference boundary, developers deploying agents remain responsible for observability one step further down, where model outputs translate into real actions like database writes or outbound messages.