SShortSingh.
Back to feed

Hacker Laws: GitHub Project Compiles Laws and Principles Used in Software Engineering

0
·4 views

A GitHub repository titled Hacker Laws, maintained by developer dwmkerr, collects well-known laws and heuristics from software and computing. The project is shared on Hacker News, where it has gathered a modest five points and no comments so far. The source material provides only the repository link and discussion metadata, so the specific laws it covers cannot be confirmed from this item alone. The page is presented as a community reference for developers interested in engineering principles.

Read the full story at Hacker News

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 ·

Xueqiu Stock Quote Access: Expired Cookies Return Silent Empty Data

A developer explains how to pull China stock quotes from Xueqiu (Snowball) using Python. The platform's quote endpoint needs an xq_a_token cookie that the homepage sets, and without it the request fails with a 400 error. When that cookie expires, the site returns HTTP 200 with an empty array instead of an error, which can quietly pass monitoring checks. The author recommends raising an exception on empty quote data so broken sessions are not stored as missing symbols. Batch requests are also covered, with the author chunking symbols at 20 per call to limit the impact of a single bad ticker.

0
ProgrammingDEV Community ·

Direct Uploads and Background Thumbnails for Private Logistics Images

The recommended approach has the browser upload original logistics images straight to a tenant-scoped private storage key, while a background Node.js worker generates the thumbnail. The Next.js API route handles authorization and job recording rather than proxying or resizing the file bytes. Tenant isolation is enforced by deriving all object keys from the authenticated tenant, so browser-supplied filenames cannot override the boundary. The main tradeoff is latency, since queued thumbnails are not immediately available, so synchronous generation is suggested only for small images with strict size limits. Upload completion is treated as a claim to verify against stored metadata rather than proof of validity.

0
ProgrammingDEV Community ·

Free Browser Music Tools Compile Rust Harmony Engines to WebAssembly

A developer group has compiled its shared Rust harmony, voicing, rhythm, and MIDI export libraries to WebAssembly for eight free browser music tools. The tools require no login and run entirely locally in the browser, avoiding server uploads and account requirements. They cover guitar chord finding and generation, chord progressions, drum beats, basslines, a fretboard display, a tap tempo counter, and a scale finder. Each generator can export MIDI files or SVG chord diagrams directly on the client side. Tasks such as stem separation, sheet-music scanning, and audio-to-MIDI transcription remain on the company's desktop Community Editions.

0
ProgrammingDEV Community ·

Why bonuses are taxed at a flat 22% federal withholding rate

A worker expected to keep more of a $1,000 bonus but received about $780 after withholding. The explanation is that bonuses, called supplemental wages, are often withheld at a flat 22% federal rate rather than through the regular withholding tables. This withholding is only a deposit against the actual tax owed, which is calculated at the taxpayer's marginal rate when filing, so the difference may be refunded or may require an additional payment. Social Security and Medicare still apply to bonuses as they do to regular pay. Budgeting for roughly 70 to 75% of a bonus as take-home pay is a practical way to avoid surprises.