Urgent.News

What's breaking now, across thousands of outlets.

Tech

Stop Hardcoding Your Timeouts

In the realm of modern development, hardcoded timeouts have become a frustrating issue. Developers commonly embed these time limits into their tools, without considering the diverse range of internet speeds and system capabilities that users may possess. One such developer lamented the lack of configurability in tools built using Vercel Labs' "skills" package, with the Go-To collection "awesome-copilot" boasting over 30,000 stars on GitHub. However, the repository is prohibitively large, causing the installer to fail during installation.

Attempts to find a solution, such as adding a timeout flag or environment variable, prove futile. Workarounds like cloning the repository and installing from a local copy or creating a custom Docker image with extended build times are suggested, but these solutions introduce additional complexities and inconveniences. Moreover, a popular AI-assisted debugging tool, Docker Gordon, also suffers from an unchangeable two-minute build limit, rendering it ineffective for certain complex scenarios.

The crux of the matter lies in the assumption of fast connections and powerful machines by developers, who then ship these tools to the wider world without providing any means to adjust the timeout settings. This approach fails to respect the diverse environments in which developers work, and fails to acknowledge the existence of users with slower connections and less powerful hardware.

The author argues that timeouts are necessary, but they should be configurable to cater to the varying needs of the global developer community, which spans across different continents and connection types. By incorporating configuration options, developers can make their tools accessible and usable for everyone, instead of creating solutions that cater only to their specific experiences.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at alfy.blog →

More in Tech

Web host Squarespace lays off 19% of its employees

The website builder said that the job losses are part of a broader restructuring of its organization.

  • Squarespace cuts 19% of workforce, affecting 300 employees
  • Layoffs aim to streamline operations and enhance agility
  • Company investing heavily in AI tools like Blueprint and Forma

More from Monday 2 November →