/r/programming

Photograph via snooOG

Computer Programming

/r/programming is a reddit for discussion and news about computer programming


Guidelines

  • Please keep submissions on topic and of high quality.
  • That means no image posts, no memes, no politics
  • Just because it has a computer in it doesn't make it programming. If there is no code in your link, it probably doesn't belong here.
  • Direct links to app demos (unrelated to programming) will be removed.
  • No surveys.
  • Please follow proper reddiquette.

Info


Related reddits

Specific languages

/r/programming

6,637,795 Subscribers

12

SQL injection in 2024 - The vulnerability that won't go away

5 Comments
2024/12/02
14:49 UTC

0

Can You Play Chess Using A Guitar As A Controller?

0 Comments
2024/12/02
14:09 UTC

0

Software Architecture, Design Thinking & Knowledge Flow β€’ Diana Montalion & Kris Jenkins

0 Comments
2024/12/02
08:52 UTC

104

This PR replaces is-number package with a one-liner with identical code. Author argues this tiny change saves 440GB weekly traffic. JavaScript micro-package debate

A debate occurred between the author of the is-number package (and is-odd, is-even, and 1500more) and a PR author over micro-libraries. https://github.com/micromatch/to-regex-range/pull/17

The PR proposed replacing the 'is-number' package with its inline code. While the code is <1KB, the full package with README/license is ~10KB. With 70M weekly downloads, this simple change saves 440GB of npm bandwidth weekly.

The author of 'is-number' called the PR "useless" - despite it being his own code just moved inline. Some of his other packages include 'is-odd' which depends on 'is-even' which depends on... you guessed it, 'is-number'.

The debate: Pro micro-packages: Well-tested, auto-updates, saves dev time Against: Security risks, fragile dependencies (remember left-pad?), unnecessary bloat

TL;DR: JavaScript's micro-package ecosystem might be getting out of hand. Sometimes the simplest solution is just writing the code yourself. Or standards library when?

69 Comments
2024/12/02
07:16 UTC

0

Find Minimum in Rotated Sorted Array | Dry Run + Example (c++/python/java) | By CodeWithKai πŸš€

0 Comments
2024/12/01
19:33 UTC

Back To Top