SShortSingh.
0
ProgrammingDEV Community ·

Three GitHub Copilot Features That Can Genuinely Improve Developer Workflow

GitHub Copilot offers more than basic code completion, with several lesser-known features that can meaningfully boost developer productivity. The Inline Chat tool (Ctrl+I) lets developers generate code directly within VS Code without switching to a browser, helping maintain focus. The /explain command allows developers to quickly understand complex or inherited codebases by highlighting a block and requesting a plain-language breakdown. The /tests command automates unit test generation, including edge cases, by analysing a highlighted function and producing a testing suite suited to the developer's framework. Microsoft offers a free, hands-on Applied Skills pathway called 'Accelerate App Development with GitHub Copilot' for developers looking to learn structured prompting techniques and earn a verified credential.

0
ProgrammingDEV Community ·

How One Team Migrated Multiple Production Apps Using AI Without Breaking UX

A frontend team successfully migrated several production applications — some nearly a decade old — into a unified design system without disrupting the user experience users had come to rely on. The migration involved Angular codebases of varying complexity, including a finance platform with 70 admin routes and another with over 550 screens across 26 modules. Rather than starting with components, the team first extracted design tokens from existing stylesheets, assigning role-based names to visual values like colors and spacing to ensure consistency across apps. An AI agent was used to read, catalogue, and build components, while a pipeline involving token extraction, fingerprinting, clustering, and three-tier testing kept the process structured and auditable. The approach is described as framework-agnostic, meaning it can apply to any migration involving screens, components, and users with established behavioral expectations.

0
IndiaTimes of India ·

Pentagon Signs 7-Year Deals to Ramp Up THAAD and Patriot Missile Output

The US Department of Defense has entered into seven-year contracts with defense manufacturers to scale up missile production. The agreements are focused on boosting output of key subcomponents for the THAAD and PAC-3 MSE interceptor programs. The deals are intended to strengthen the broader missile defense industrial base. As a result of these contracts, higher production volumes and quicker delivery timelines are anticipated.

0
IndiaNDTV ·

Maharashtra Draft Electoral Roll Drops Over 2 Crore Voters From Previous List

Maharashtra's newly released draft electoral roll contains over 7.71 crore registered voters, a significant reduction from the previous count. The roll comprises approximately 3.95 crore male voters, 3.75 crore female voters, and 3,087 third-gender voters. State election authorities released these figures as part of the ongoing electoral roll revision process. The exclusion of over 2 crore voters from the updated draft has drawn attention to the scale of changes made to the voter list.

0
SportsESPNcricinfo ·

Nahida and Marufa Share Five Wickets as Bangladesh Dismiss Indonesia for 58

Bangladesh secured a commanding victory over Indonesia in what appears to be a women's cricket match. Spinners Nahida Akter and Marufa Akter shared five wickets between them to dismantle the Indonesian batting lineup. Their combined bowling effort restricted Indonesia to a meager total of just 58 runs. The disciplined bowling performance proved decisive in Bangladesh brushing aside their opponents with relative ease.

0
ProgrammingDEV Community ·

Why React's useSyncExternalStore Is the Hook Behind Every Major State Library

React 18's concurrent rendering model introduced a problem called 'tearing,' where a component can read different values from an external store during a single render, leading to inconsistent UI states. The useSyncExternalStore hook was introduced to solve this by ensuring every component in a render tree reads the same snapshot value, even when renders pause or resume. Major state management libraries including Zustand, Jotai, and Redux Toolkit now rely on this hook internally to guarantee consistency in concurrent mode. The hook works through three key arguments: a subscribe function, a getSnapshot function returning immutable data, and an optional getServerSnapshot for server-side rendering. Developers who understand useSyncExternalStore gain insight into why their state libraries enforce patterns like immutable updates, and can safely build custom external stores when needed.

0
IndiaNDTV ·

Benzene Tanker Chemical Leak Contained in Mumbai's Chembur

A chemical leak was detected from a tanker carrying benzene in the Chembur area of Mumbai. Authorities responded promptly to manage the hazardous situation and prevent further risk. Officials successfully completed the process of transferring the benzene from the affected tanker into an empty one. The decanting operation was carried out safely, bringing the incident under control.

0
IndiaNDTV ·

Israeli Airstrikes Kill Civilians Near Residential Building in Gaza City

Al-Shifa Hospital in Gaza City confirmed receiving two bodies on Monday morning following an Israeli airstrike. The strike targeted the entrance of a residential building located near the municipal park in Gaza City. The hospital's announcement highlights the continued impact of Israeli military operations on civilian areas. The incident adds to the ongoing toll on civilian life amid the conflict in Gaza.

0
IndiaTimes of India ·

PNB Saharanpur vault scam: Rs 7.4 crore real cash swapped with fake notes

Real currency worth Rs 7.4 crore was found replaced with counterfeit notes inside a Punjab National Bank vault in Saharanpur, Uttar Pradesh. The fraud came to light recently, shocking banking and law enforcement authorities. An FIR has been registered against bank employees as well as private individuals suspected to be involved in the scheme. A Special Investigation Team has been constituted to conduct a thorough probe into the case.

0
ProgrammingDEV Community ·

Sessions vs JWTs: The Real Trade-offs Every Developer Should Understand

When building web applications, developers must choose between two authentication approaches: sessions, where the server stores user state and issues a reference cookie, and JWTs, where a signed token carrying user claims is held entirely by the client. Sessions allow instant revocation — banning a user or invalidating a session requires only deleting a server-side record — while JWTs cannot be invalidated before expiry without additional infrastructure. A key misconception about JWTs is that they are encrypted; in reality, the payload is only base64-encoded and readable by anyone, meaning sensitive data should never be stored inside a token. JWTs offer a scalability advantage in distributed systems since each server can verify tokens locally without querying a shared store, which is why they became popular in microservices architectures. The core trade-off is architectural: sessions keep truth on the server with a client-held pointer, while JWTs push truth to the client with the server retaining only the ability to verify the signature.

0
IndiaTimes of India ·

India name 26-man squad for friendlies against Brazil, Uruguay and Panama

India head coach Khalid Jamil has announced a 26-member squad for an upcoming series of international friendly matches. The Blue Tigers are set to face Panama, Brazil, and Uruguay in what promises to be a challenging set of fixtures. The matches represent a significant test for the Indian side against higher-ranked opposition. The series will serve as a key opportunity for the coaching staff to assess the squad's capabilities and depth.

0
ProgrammingDEV Community ·

Tinbase Tool Runs Full Supabase Stack Locally in 100 MB Without Docker

A developer has shared how switching from the official Docker-based Supabase local setup to a tool called Tinbase dramatically reduced resource usage on an M1 MacBook Air. The standard Supabase local environment requires twelve Docker containers, consumes around 1.6 GB of RAM, and takes roughly 45 seconds to boot. Tinbase is a single 58 MB executable that bundles Postgres 17 alongside auth, realtime, edge functions, and storage, booting in about 2.5 seconds and using under 100 MB of RAM at steady state. The tool exposes the same HTTP and Postgres endpoints as hosted Supabase, meaning the only required code change is updating the connection URL. The developer noted a few limitations, including a different admin UI and the absence of some newer Supabase-hosted features such as vector search integration.

0
IndiaNDTV ·

Nepal Principal Evacuates 900 Students to Safety as Floods Hit School

A school principal in Nepal successfully evacuated around 900 students when floods suddenly threatened their school. Of the institution's 1,643 enrolled students, approximately 900 were present that morning, mostly older students between the ages of 11 and 18. The principal, identified as Dawadi, had only seconds to make a critical decision on how to respond to the rapidly developing situation. His swift action ensured the safety of all students who were on the premises at the time.

0
IndiaNDTV ·

Gujarat Court Sentences 5 Men to Life in 2024 Minor Gang Rape Case

A Gujarat court has sentenced five convicts to life imprisonment in connection with a gang rape case involving a minor that occurred in 2024. The verdict marks the conclusion of legal proceedings against all five accused in the case. In addition to the prison terms, the court also ordered financial compensation for the survivor. The minor victim was awarded 10 lakh rupees to support her recovery and long-term rehabilitation. The ruling underscores the court's intent to deliver justice while also addressing the survivor's ongoing needs.

0
IndiaNDTV ·

Nine Naga MLAs Urge Centre to Act Against Kuki-Zo Leaders in Manipur

Nine Naga MLAs from Manipur have written to Union Home Minister Amit Shah demanding federal action against Kuki-Zo leaders. The legislators described the current situation in the state as 'critical and volatile.' They called for urgent and decisive intervention from the central government. The MLAs stressed that restoring peace and normalcy in Manipur requires immediate federal involvement.

← NewerPage 687 of 4109Older →