reddit_programming | Technologies

Telegram-канал reddit_programming - Reddit Programming

212

I will send you newest post from subreddit /r/programming

Subscribe to a channel

Reddit Programming

120,000 Lines of Rust: Inside the Nosdesk Backend
https://www.reddit.com/r/programming/comments/1u0w9bc/120000_lines_of_rust_inside_the_nosdesk_backend/

submitted by /u/BlondieCoder (https://www.reddit.com/user/BlondieCoder)
[link] (https://kyle.au/blog/nosdesk-backend-rust) [comments] (https://www.reddit.com/r/programming/comments/1u0w9bc/120000_lines_of_rust_inside_the_nosdesk_backend/)

Читать полностью…

Reddit Programming

I analyzed 26 major open source repositories. Every one had at least one bus-factor-1 module
https://www.reddit.com/r/programming/comments/1u0va69/i_analyzed_26_major_open_source_repositories/

<!-- SC_OFF -->I built a CLI called git-archaeologist to analyze ownership concentration, bus factor, coupling, and change history from git repositories. To validate it, I benchmarked 26 major open source projects including Kubernetes, React, VS Code, TensorFlow, PostgreSQL, Spring Boot, and Node.js. The report includes methodology, limitations, repository snapshots, raw JSON outputs, and benchmark data. Happy to hear where the methodology is wrong or what could be improved. <!-- SC_ON --> submitted by /u/Some_Scientist5385 (https://www.reddit.com/user/Some_Scientist5385)
[link] (https://sushantverma7969.github.io/git-archaeologist/) [comments] (https://www.reddit.com/r/programming/comments/1u0va69/i_analyzed_26_major_open_source_repositories/)

Читать полностью…

Reddit Programming

Poor Man's Time Machine: Lazy Evaluation in JavaScript and Haskell
https://www.reddit.com/r/programming/comments/1u09npb/poor_mans_time_machine_lazy_evaluation_in/

submitted by /u/sayyadirfanali (https://www.reddit.com/user/sayyadirfanali)
[link] (https://irfanali.org/blog/repmin) [comments] (https://www.reddit.com/r/programming/comments/1u09npb/poor_mans_time_machine_lazy_evaluation_in/)

Читать полностью…

Reddit Programming

VS Code Adds 2-Hour Extension Auto-Update Delay to Limit Supply Chain Attacks
https://www.reddit.com/r/programming/comments/1u089ai/vs_code_adds_2hour_extension_autoupdate_delay_to/

submitted by /u/CircumspectCapybara (https://www.reddit.com/user/CircumspectCapybara)
[link] (https://thehackernews.com/2026/06/vs-code-adds-2-hour-extension-auto.html) [comments] (https://www.reddit.com/r/programming/comments/1u089ai/vs_code_adds_2hour_extension_autoupdate_delay_to/)

Читать полностью…

Reddit Programming

System Dynamics Course | Chapter 16: Discrete-Time and Sampled-Data System Dynamics
https://www.reddit.com/r/programming/comments/1u06nad/system_dynamics_course_chapter_16_discretetime/

<!-- SC_OFF -->Used 5 different programming language for this course. GitHub repository link: https://github.com/mohammadijoo/Control_and_Robotics_Tutorials <!-- SC_ON --> submitted by /u/abolfazl1363 (https://www.reddit.com/user/abolfazl1363)
[link] (https://youtu.be/yQ0oKvK3Db8) [comments] (https://www.reddit.com/r/programming/comments/1u06nad/system_dynamics_course_chapter_16_discretetime/)

Читать полностью…

Reddit Programming

Native Elm (the real kind this time) · cekrem.github.io
https://www.reddit.com/r/programming/comments/1u04bdc/native_elm_the_real_kind_this_time_cekremgithubio/

submitted by /u/cekrem (https://www.reddit.com/user/cekrem)
[link] (https://cekrem.github.io/posts/native-elm/) [comments] (https://www.reddit.com/r/programming/comments/1u04bdc/native_elm_the_real_kind_this_time_cekremgithubio/)

Читать полностью…

Reddit Programming

Opening a cloned repo is no longer safe
https://www.reddit.com/r/programming/comments/1u00xhc/opening_a_cloned_repo_is_no_longer_safe/

<!-- SC_OFF -->Solid breakdown of the Miasma worm — one commit, same dropper wired into 7 config files across VS Code, Claude Code, Gemini, Cursor, npm, Composer, and Bundler. No malicious dep needed, just clone + open. Nobody reviews these files in PRs. https://safedep.io/config-files-that-run-code/ Anyone actually treating dotfile diffs as code? <!-- SC_ON --> submitted by /u/No_Plan_3442 (https://www.reddit.com/user/No_Plan_3442)
[link] (https://safedep.io/config-files-that-run-code/) [comments] (https://www.reddit.com/r/programming/comments/1u00xhc/opening_a_cloned_repo_is_no_longer_safe/)

Читать полностью…

Reddit Programming

https://www.reddit.com/r/programming/comments/1tzxrpz/building_a_spaced_repetition_system_that_adapts/

<!-- SC_OFF -->I built a flashcard app for interview prep and wanted to share some of the more interesting technical problems I ran into. The app has 1500+ questions across DSA and System Design, and the core challenge was: how do you order cards intelligently without it feeling robotic? Problem 1: Slot Assignment for Spaced Repetition Standard SR (like Anki) just shows the most overdue card next. That works for vocabulary but feels terrible for algorithms because you get 3 Hard questions in a row and want to quit. My approach: generate a target difficulty pattern (Easy, Medium, Easy, Medium, Hard, repeat) based on a 40/40/20 distribution, then assign due cards to matching-difficulty slots. Most-overdue cards get placed first within their tier. Unseen cards fill remaining slots. This means a Hard card that's overdue still lands in a Hard slot, not position 1. You get difficulty variety while still seeing overdue cards at the right time. fun assignSlots(pool: List, dueCards: List): List { val pattern = generatePattern(size = pool.size, distribution = "40/40/20") val dueByDifficulty = dueCards.groupBy { it.difficulty } val result = Array(pattern.size) { null } // Place due cards in matching slots, most overdue first for ((difficulty, cards) in dueByDifficulty) { val sorted = cards.sortedBy { it.nextReviewDate } val availableSlots = pattern.indices.filter { pattern[it] == difficulty && result[it] == null } sorted.zip(availableSlots).forEach { (card, slot) -> result[slot] = findQuestion(card, pool) } } // Fill remaining with unseen // ... } Problem 2: Re-ranking after every swipe without jank After each swipe, the deck needs to re-rank. But the top visible card (position 0) is already animating into view, so you can't move it. Solution: lock position 0, re-rank positions 1+, then check for constraint violations across the boundary (e.g., if locked card is Hard and new position 1 is also Hard, swap position 1 with the first non-Hard card deeper in the deck). This runs on every swipe so it needs to be fast. For 1000 cards, the greedy scoring + constraint check takes Problem 3: Encrypting 1500 questions without startup lag The question bank is AES-256-CBC encrypted in the APK (prevents trivial extraction). Decryption of 1.2MB happens on first load. On older devices this took 400ms, which blocked the UI. Moved it to Dispatchers.IO with a loading skeleton. The key is split across 4 byte arrays in the code to make static analysis harder (not bulletproof, but raises the bar above strings on the APK). Problem 4: Two-deck mode switching with shared progress The app has DSA and System Design as separate decks. Both share the same Room database for progress (same ProgressEntity table, IDs just have different prefixes). When switching modes, the current deck state is cached in memory so you can come back to where you left off. The tricky bit: daily goal and streak count swipes from both decks combined, but the ranker operates independently per deck. Problem 5: Animated sketches synced with code Each question can have a multi-step visual (array state changes, graph traversals). Steps are defined as data (JSON with cell states, highlights, pointers) and rendered by a custom Compose canvas. Code lines are highlighted in sync with each step via a codeLines map per step. The renderer handles 6 visualization types (array, tree, linked list, matrix, graph, string) with a single composable that dispatches by type. Stack: Kotlin, Jetpack Compose (Material 3), Room, Firebase, custom spaced repetition + ranking engine. App: https://play.google.com/store/apps/details?id=com.pixelcraftlabs.algoscroll If anyone's interested in the ranking algorithm details or the sketch rendering system, happy to go deeper. <!-- SC_ON --> submitted by /u/No-Position-7728 (https://www.reddit.com/user/No-Position-7728)

Читать полностью…

Reddit Programming

Stop Using Conventional Commits
https://www.reddit.com/r/programming/comments/1tydqbt/stop_using_conventional_commits/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://sumnerevans.com/posts/software-engineering/stop-using-conventional-commits/) [comments] (https://www.reddit.com/r/programming/comments/1tydqbt/stop_using_conventional_commits/)

Читать полностью…

Reddit Programming

The perils of UUID primary keys in SQLite
https://www.reddit.com/r/programming/comments/1tyalr6/the_perils_of_uuid_primary_keys_in_sqlite/

submitted by /u/andersmurphy (https://www.reddit.com/user/andersmurphy)
[link] (https://andersmurphy.com/2026/06/05/the-perils-of-uuid-primary-keys-in-sqlite.html) [comments] (https://www.reddit.com/r/programming/comments/1tyalr6/the_perils_of_uuid_primary_keys_in_sqlite/)

Читать полностью…

Reddit Programming

A faster bump allocator for rust
https://www.reddit.com/r/programming/comments/1txe9b5/a_faster_bump_allocator_for_rust/

submitted by /u/Successful_Bowl2564 (https://www.reddit.com/user/Successful_Bowl2564)
[link] (https://owen.cafe/posts/stumpalo/) [comments] (https://www.reddit.com/r/programming/comments/1txe9b5/a_faster_bump_allocator_for_rust/)

Читать полностью…

Reddit Programming

Stealing from Biologists to Compile Haskell Faster
https://www.reddit.com/r/programming/comments/1twnahx/stealing_from_biologists_to_compile_haskell_faster/

submitted by /u/mooreds (https://www.reddit.com/user/mooreds)
[link] (https://www.iankduncan.com/engineering/2026-05-30-stealing-from-biologists-to-compile-haskell-faster/) [comments] (https://www.reddit.com/r/programming/comments/1twnahx/stealing_from_biologists_to_compile_haskell_faster/)

Читать полностью…

Reddit Programming

Scala Was an Experiment That Changed Programming - Martin Odersky | The Marco Show
https://www.reddit.com/r/programming/comments/1twl8ip/scala_was_an_experiment_that_changed_programming/

submitted by /u/makingthematrix (https://www.reddit.com/user/makingthematrix)
[link] (https://youtu.be/Xn_YpUtXWT4) [comments] (https://www.reddit.com/r/programming/comments/1twl8ip/scala_was_an_experiment_that_changed_programming/)

Читать полностью…

Reddit Programming

The Schema Proliferation Problem in Kafka and Flink Pipelines: How to Solve It
https://www.reddit.com/r/programming/comments/1twizqa/the_schema_proliferation_problem_in_kafka_and/

submitted by /u/nilukush (https://www.reddit.com/user/nilukush)
[link] (https://www.infoq.com/articles/schema-proliferation-problem/?forceSponsorshipId=9e025991-2977-45e6-8636-c740236b5bfc) [comments] (https://www.reddit.com/r/programming/comments/1twizqa/the_schema_proliferation_problem_in_kafka_and/)

Читать полностью…

Reddit Programming

Finding Hermite Normal Form and Solving Linear Diophantines Using LLL
https://www.reddit.com/r/programming/comments/1twglxs/finding_hermite_normal_form_and_solving_linear/

submitted by /u/DataBaeBee (https://www.reddit.com/user/DataBaeBee)
[link] (https://leetarxiv.substack.com/p/lll-applied-to-extended-gcd-hermite) [comments] (https://www.reddit.com/r/programming/comments/1twglxs/finding_hermite_normal_form_and_solving_linear/)

Читать полностью…

Reddit Programming

Cache Stampede Prevention: Distributed Locking, Pub/Sub, and Request Coalescing
https://www.reddit.com/r/programming/comments/1u0vb76/cache_stampede_prevention_distributed_locking/

submitted by /u/Local_Ad_6109 (https://www.reddit.com/user/Local_Ad_6109)
[link] (https://engineeringatscale.substack.com/p/cache-stampede-distributed-locking) [comments] (https://www.reddit.com/r/programming/comments/1u0vb76/cache_stampede_prevention_distributed_locking/)

Читать полностью…

Reddit Programming

Why Compiler Engineers Rarely Use Strassen's Algorithm for Fast Matrix Multiplications
https://www.reddit.com/r/programming/comments/1u09rah/why_compiler_engineers_rarely_use_strassens/

submitted by /u/DataBaeBee (https://www.reddit.com/user/DataBaeBee)
[link] (https://leetarxiv.substack.com/p/why-compilers-rarely-use-strassens-algorithm) [comments] (https://www.reddit.com/r/programming/comments/1u09rah/why_compiler_engineers_rarely_use_strassens/)

Читать полностью…

Reddit Programming

Lies We Tell Ourselves About Email Addresses
https://www.reddit.com/r/programming/comments/1u098uy/lies_we_tell_ourselves_about_email_addresses/

submitted by /u/theghostofm (https://www.reddit.com/user/theghostofm)
[link] (https://gitpush--force.com/commits/2026/06/lies-we-tell-ourselves-about-email/) [comments] (https://www.reddit.com/r/programming/comments/1u098uy/lies_we_tell_ourselves_about_email_addresses/)

Читать полностью…

Reddit Programming

In Defense of YAML :: Posit Open Source
https://www.reddit.com/r/programming/comments/1u072zj/in_defense_of_yaml_posit_open_source/

submitted by /u/Successful_Bowl2564 (https://www.reddit.com/user/Successful_Bowl2564)
[link] (https://opensource.posit.co/blog/2026-05-21_in-defense-of-yaml/) [comments] (https://www.reddit.com/r/programming/comments/1u072zj/in_defense_of_yaml_posit_open_source/)

Читать полностью…

Reddit Programming

Hot path optimization. When float division beats integer division
https://www.reddit.com/r/programming/comments/1u06itn/hot_path_optimization_when_float_division_beats/

<!-- SC_OFF -->I've started a series of short blog posts about hot path optimizations. This first one covers a counterintuitive optimization: replacing integer division (IDIVQ) with floating-point division (DIVSD). <!-- SC_ON --> submitted by /u/watman12 (https://www.reddit.com/user/watman12)
[link] (https://blog.andr2i.com/posts/2026-06-08-optimization-catalog-when-float-division-beats-integer-division) [comments] (https://www.reddit.com/r/programming/comments/1u06itn/hot_path_optimization_when_float_division_beats/)

Читать полностью…

Reddit Programming

The Day I Decided Never to Learn Python
https://www.reddit.com/r/programming/comments/1u013qa/the_day_i_decided_never_to_learn_python/

submitted by /u/Active-Fuel-49 (https://www.reddit.com/user/Active-Fuel-49)
[link] (realmerlyn/the-day-i-decided-never-to-learn-python-2c59d1a1edc5" rel="nofollow">https://medium.com/@realmerlyn/the-day-i-decided-never-to-learn-python-2c59d1a1edc5) [comments] (https://www.reddit.com/r/programming/comments/1u013qa/the_day_i_decided_never_to_learn_python/)

Читать полностью…

Reddit Programming

[link] (https://play.google.com/store/apps/details?id=com.pixelcraftlabs.algoscroll) [comments] (https://www.reddit.com/r/programming/comments/1tzxrpz/building_a_spaced_repetition_system_that_adapts/)

Читать полностью…

Reddit Programming

Tab Vacuum - click once to remove every duplicate Chrome tab and auto-group the rest by website
https://www.reddit.com/r/programming/comments/1tzx350/tab_vacuum_click_once_to_remove_every_duplicate/

<!-- SC_OFF -->I had 4 Chrome windows with ~80 tabs each, mostly duplicates of the same Stack Overflow page. Tried OneTab (saves to a list - not what I wanted) and Workona (cloud sync, overkill). So I wrote ~50 lines of vanilla JS. Click the toolbar icon → every duplicate tab across every window is removed (matched by URL) → survivors merge into one window → remaining tabs auto-group by hostname (collapsed). Two permissions: tabs, tabGroups. No background activity, no server, no analytics. Whole source is in the README so you can audit it before installing. Chrome Web Store: https://chromewebstore.google.com/detail/tab-vacuum/apdjhdjcejehjiomcolfgfgjhaedoieb GitHub: https://github.com/mayhsundar/tab-vacuum
Please give your comments <!-- SC_ON --> submitted by /u/mayhsundar (https://www.reddit.com/user/mayhsundar)
[link] (https://chromewebstore.google.com/detail/tab-vacuum/apdjhdjcejehjiomcolfgfgjhaedoieb) [comments] (https://www.reddit.com/r/programming/comments/1tzx350/tab_vacuum_click_once_to_remove_every_duplicate/)

Читать полностью…

Reddit Programming

The cover of C++: The Programming Language raises questions not answered by the cover
https://www.reddit.com/r/programming/comments/1tybuv7/the_cover_of_c_the_programming_language_raises/

submitted by /u/lelanthran (https://www.reddit.com/user/lelanthran)
[link] (https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180) [comments] (https://www.reddit.com/r/programming/comments/1tybuv7/the_cover_of_c_the_programming_language_raises/)

Читать полностью…

Reddit Programming

My Software North Star
https://www.reddit.com/r/programming/comments/1txelfr/my_software_north_star/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://kristoff.it/blog/north-star/) [comments] (https://www.reddit.com/r/programming/comments/1txelfr/my_software_north_star/)

Читать полностью…

Reddit Programming

Porting our Django backend to Rust improved the infra usage by 90%
https://www.reddit.com/r/programming/comments/1twww78/porting_our_django_backend_to_rust_improved_the/

submitted by /u/syrusakbary (https://www.reddit.com/user/syrusakbary)
[link] (https://wasmer.io/posts/ported-wasmer-backend-django-to-rust) [comments] (https://www.reddit.com/r/programming/comments/1twww78/porting_our_django_backend_to_rust_improved_the/)

Читать полностью…

Reddit Programming

Single responsibility, the distorted principle
https://www.reddit.com/r/programming/comments/1twlx1p/single_responsibility_the_distorted_principle/

<!-- SC_OFF -->Have you ever discussed the Single Responsibility Principle with your coworkers? Take a look at this article, where I explore why this principle might be a problem. What do you think? <!-- SC_ON --> submitted by /u/Illustrious-Topic-50 (https://www.reddit.com/user/Illustrious-Topic-50)
[link] (https://www.truehenrique.com/en/2021/10/27/single-responsibility-the-distorted-principle/) [comments] (https://www.reddit.com/r/programming/comments/1twlx1p/single_responsibility_the_distorted_principle/)

Читать полностью…

Reddit Programming

Tiny Static Site Generator with custom template engine
https://www.reddit.com/r/programming/comments/1twkr3z/tiny_static_site_generator_with_custom_template/

<!-- SC_OFF -->page URL : - https://mukul0x9.pages.dev/blog/tiny-ssg/ I wanted to understand how template engines and markdown parsers work internally. The project explores: compiling templates into Python functions using exec() block + inline markdown parsing simple AST construction stack-based inline parsing for nested formatting rendering the AST into HTML <!-- SC_ON --> submitted by /u/mukulx99 (https://www.reddit.com/user/mukulx99)
[link] (https://mukul0x9.github.io/blog/tiny-ssg/) [comments] (https://www.reddit.com/r/programming/comments/1twkr3z/tiny_static_site_generator_with_custom_template/)

Читать полностью…

Reddit Programming

Pandas as a reason to learn Python, even if you’re not doing data science
https://www.reddit.com/r/programming/comments/1twhl2t/pandas_as_a_reason_to_learn_python_even_if_youre/

<!-- SC_OFF -->I wrote a short article about why Pandas is worth learning from a general programming perspective, not just a data science one. A lot of everyday programming work involves tabular data - CSV files, reports, logs, exports, billing data, sales data, inventory data, operational spreadsheets, analytics extracts, etc. You can process that kind of data with loops and dictionaries, SQL, shell tools, or spreadsheets. But Pandas gives Python a very compact and expressive way to do filtering, grouping, aggregation, joins, and reshaping in code. The article uses a small sales/purchases CSV example and compares the Pandas approach with plain Python and spreadsheet-style thinking. I’m curious how other programmers think about this: is Pandas one of the libraries that makes Python worth learning, even for people whose main work is not data science? Or would you usually reach for SQL, spreadsheets, shell tools, or something else? <!-- SC_ON --> submitted by /u/Horror-Willingness74 (https://www.reddit.com/user/Horror-Willingness74)
[link] (https://blog.geekuni.com/2026/06/why-learn-pandas.html) [comments] (https://www.reddit.com/r/programming/comments/1twhl2t/pandas_as_a_reason_to_learn_python_even_if_youre/)

Читать полностью…

Reddit Programming

Elixir v1.20 released: now a gradually typed language
https://www.reddit.com/r/programming/comments/1twg7mu/elixir_v120_released_now_a_gradually_typed/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/) [comments] (https://www.reddit.com/r/programming/comments/1twg7mu/elixir_v120_released_now_a_gradually_typed/)

Читать полностью…
Subscribe to a channel