Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

More in Tech

var in JavaScript

var is one of the ways to create a variable in JavaScript. A variable is a place to store a value, like a name or a number. var is mostly seen in old JavaScript code, written before 2015.

  • "var" is a common variable declaration method in JavaScript.
  • Variables created with "var" can be modified and re-declared.
  • "var" variables are hoisted to the top of their containing function.

i18n without gettext: JSON translations with dot keys

Quieres que tu app hable español e inglés. Buscas cómo, y el ecosistema te empuja a gettext o Babel: ficheros .po , un paso de compilación a .mo , herramientas de extracción. Potente, sí.

  • dotkey-i18n is a Python-only i18n solution with no dependencies
  • JSON format for translations, easy to edit by anyone
  • Key notation with point, e.g. t(login.submit) navigates JSON

Protobuf has LSP support

Article URL: https://buf.build/blog/protobuf-lsp Comments URL: https://news.ycombinator.com/item?id=49322573 Points: 165 # Comments: 117

React Native Architecture: 8 Folder Structures for Scalable Apps

A team-lead's breakdown of 8 real React Native project architectures — what each one actually solves, where the "Domain-Driven" and "Micro-Frontend" labels get misused, and how to pick one without…

  • Flat structure suitable for prototypes and MVPs, but becomes unmanageable with growing files
  • Feature-based structure common in production apps, organizes code by product area
  • Domain-based structure aligns with business capabilities, mirrors org chart for large-scale products

More from Sunday 16 August →