SShortSingh.
0
ProgrammingDEV Community ·

Developer shares personal takeaways from applying Object Calisthenics in production code

A software developer has published a concluding reflection on Object Calisthenics, a set of nine programming exercises designed to reinforce good object-oriented design principles. The author describes how they gradually internalized the rules by practicing through coding katas before applying them to real production code. According to the developer, the exercises consistently promote more readable, understandable, and maintainable code by reinforcing encapsulation and the single responsibility principle. The author recommends the Kata-Log-Rocks website as a resource for developers looking to practice these techniques alongside TDD and code smell detection. The post closes with a note that the rules should be applied with common sense rather than rigidly, and signals that upcoming articles will focus on Test-Driven Development.

0
IndiaTimes of India ·

Father Spends $800K on Land to Build Tiny-Home Community for Disabled Adults

Dave Curro is developing Forest Grove, a purpose-built community for adults with special needs, inspired by his son Bret. The project will feature 20 tiny homes alongside a community center offering essential support services. Curro personally invested $800,000 to secure the land for the initiative. A recent fundraising festival drew strong community backing for the project. Forest Grove aims to address a significant gap in affordable, suitable housing for disabled adults.

0
IndiaTimes of India ·

142-Year-Old Seed Experiment Yields Viable Plants, Set to Continue Till 2100

A seed dormancy experiment launched by botanist William James Beal in 1879 continues to yield remarkable results over a century later. In 2021, researchers unearthed seeds from the experiment and found them still viable after 142 years. DNA analysis also revealed the presence of a previously undetected hybrid moth mullein among the samples, adding an unexpected dimension to the study. The findings are expected to inform land restoration practices and support efforts to manage invasive plant species. The long-running experiment is designed to continue until 2100, underscoring science's capacity for multigenerational inquiry.

0
IndiaNDTV ·

Drunk Man Kills Wife in UP After She Refused to Skip Dance Class to Cook

A 41-year-old man named Krishna Lal Yadav allegedly killed his wife Yamini Krishna Lal Yadav in a fit of rage. The incident was triggered after Yamini refused to cook, as she wanted to attend a dance class. The accused was reportedly drunk at the time of the attack. The couple had two young children together. Authorities have identified both the victim and the accused in connection with the case.

0
IndiaTimes of India ·

Raina warns IPL impact player rule tilts game too far in batters' favour

Former Indian cricketer Suresh Raina has raised concerns about the IPL's impact player rule, claiming it disproportionately advantages batters and drives up scores. He argued that the rule leaves bowlers with little room to compete on equal terms. Raina also advised Indian cricketers to avoid participating in overseas T20 leagues, stating that the IPL has grown into a world-class competition in its own right. He further observed that the standard of foreign T20 leagues has visibly declined in recent years compared to their earlier quality.

0
ProgrammingDEV Community ·

How to Connect OneHop AI Gateway to Cline in VS Code for Unified Model Access

OneHop AI Gateway offers a unified, OpenAI-compatible API interface that allows developers to manage multiple AI models through a single endpoint. By installing the Cline extension in Visual Studio Code, users can configure it to route requests through OneHop instead of managing separate API keys for each provider. The setup requires creating an API key in the OneHop dashboard and entering the base URL, key, and model ID under Cline's OpenAI Compatible provider settings. Once configured, developers can verify the connection by running simple coding tasks directly within VS Code. The guide emphasizes keeping API keys secure and checking OneHop's account for currently supported model identifiers.

0
ProgrammingDEV Community ·

OpenViking Offers Filesystem-Style Context Layer for AI Agents, Rivaling RAG Stacks

OpenViking, an open-source context database for AI agents, has gained over 7,700 GitHub stars in a single month, signaling strong developer interest. Unlike conventional RAG pipelines that combine multiple separate components, OpenViking provides a unified, filesystem-like structure for managing agent memory, knowledge retrieval, and reusable skills. This design aims to reduce the complexity and latency introduced by the many integration layers typical RAG stacks require. However, the tool is more opinionated than a standard vector database and is best suited for agents that need to coordinate memory, knowledge, and skills through a single context model. Developers with already well-tuned vector pipelines focused purely on document similarity search may find little benefit in adopting it.

0
ProgrammingDEV Community ·

How to Fix 502 Errors on a Fully Provisioned Apigee X Evaluation Org

Developers running Apigee X evaluation orgs may encounter persistent 502 errors even when the console and APIs report all components as active and healthy. The root cause often lies not in Apigee's control plane but in the load-balancer forwarding instances, which can silently fail without affecting Apigee's own status reporting. One common trigger is a missing service account on the instance template, preventing the VMs from authenticating with Cloud Storage to fetch their startup scripts. A second issue involves a missing or empty ENDPOINT metadata value, which the forwarding VMs rely on to route traffic via iptables DNAT rules to the actual Apigee runtime. Both problems can be resolved by recreating the instance template with the correct service account and metadata, then performing a rolling replacement on the managed instance group.

0
ProgrammingDEV Community ·

Engineer Spent 48 Hours Deleting Logs Before Discovering an Inode Exhaustion Bug

A software engineer spent nearly 48 hours troubleshooting a persistent 'No space left on device' error on a Python worker, only to find the root cause had nothing to do with available disk space. The system's inode table — which tracks file metadata and names rather than raw storage — had been fully exhausted by thousands of small JSON sidecar files, cache directories, and swap files. Standard disk-space checks using df -h repeatedly showed free gigabytes, masking the real problem and sending the investigation in the wrong direction for most of the two-day period. A cleanup script the engineer wrote actually worsened the situation by copying files before deleting them, consuming even more inodes in the process. The issue was only identified around hour 20 when the engineer ran df -i, a separate command that reports inode usage rather than block usage.

0
IndiaNDTV ·

Anti-Corruption Agency Raids DMK Leader KN Nehru's Properties in Tamil Nadu

The Directorate of Vigilance and Anti-Corruption (DVAC) conducted raids across 19 locations linked to DMK leader and minister KN Nehru. The searches were carried out over allegations of tender manipulation and corruption. This marks the third such raid on premises connected to Nehru since the TVK government came to power. The operation reflects ongoing anti-corruption scrutiny targeting officials within the state's political establishment.

0
IndiaTimes of India ·

UN Designates November 27 as International Day for Elimination of Child Marriage

The United Nations has officially declared November 27 as the International Day for the Elimination of Child Marriage. The designation marks a formal global commitment to raising awareness about and ending the practice of child marriage worldwide. Child marriage remains a serious human rights concern, affecting millions of children, particularly girls, across various regions. The UN observance aims to mobilize international efforts and attention toward eradicating this practice.

0
ProgrammingDEV Community ·

Local Text-to-SQL Setup Uses DuckDB and Ollama to Keep Sensitive Data On-Device

Developers building natural language-to-SQL features typically send raw schema and table data to cloud APIs like OpenAI, raising compliance concerns under regulations such as HIPAA and GDPR. A locally run alternative separates schema context from data compute, supplying only table metadata to a local large language model to generate SQL queries. The generated queries are then executed entirely within DuckDB's in-memory engine, ensuring raw data rows never leave the user's hardware. An Abstract Syntax Tree validation layer screens every query before execution, blocking anything other than read-only SELECT statements. This architecture has been implemented in a tool called VeilAnalytics, which is available as a live demo online.

← NewerPage 797 of 4477Older →