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

Implement Github OAuth login with Next.js and FastAPI
https://www.reddit.com/r/programming/comments/1qybdsk/implement_github_oauth_login_with_nextjs_and/

<!-- SC_OFF -->I wrote a practical walkthrough on Github OAuth login with FastAPI and Next.js. It focuses on clean domain separation, HttpOnly cookies, ease of deployment and why handling cookies in Next.js APIs/server actions simplifies OAuth a lot. Includes diagrams and real code. https://nemanjamitic.com/blog/2026-02-07-github-login-fastapi-nextjs Interested to hear what others think or if you've taken a different approach. <!-- SC_ON --> submitted by /u/Ok_Animator_1770 (https://www.reddit.com/user/Ok_Animator_1770)
[link] (https://nemanjamitic.com/blog/2026-02-07-github-login-fastapi-nextjs) [comments] (https://www.reddit.com/r/programming/comments/1qybdsk/implement_github_oauth_login_with_nextjs_and/)

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

Reddit Programming

Tactical tornado is the new default
https://www.reddit.com/r/programming/comments/1qxnbum/tactical_tornado_is_the_new_default/

submitted by /u/typesanitizer (https://www.reddit.com/user/typesanitizer)
[link] (https://olano.dev/blog/tactical-tornado) [comments] (https://www.reddit.com/r/programming/comments/1qxnbum/tactical_tornado_is_the_new_default/)

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

Reddit Programming

Resurrecting Crimsonland -- decompiling and preserving a cult 2003 classic game
https://www.reddit.com/r/programming/comments/1qxkb98/resurrecting_crimsonland_decompiling_and/

submitted by /u/r_retrohacking_mod2 (https://www.reddit.com/user/r_retrohacking_mod2)
[link] (https://banteg.xyz/posts/crimsonland/) [comments] (https://www.reddit.com/r/programming/comments/1qxkb98/resurrecting_crimsonland_decompiling_and/)

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

Reddit Programming

Redis/Valkey Replication Internals: The Architecture Behind Zero-Copy Command Propagation
https://www.reddit.com/r/programming/comments/1qxgw0p/redisvalkey_replication_internals_the/

submitted by /u/mariuz (https://www.reddit.com/user/mariuz)
[link] (https://frostzt.com/blog/redis-valkey-replication-internals) [comments] (https://www.reddit.com/r/programming/comments/1qxgw0p/redisvalkey_replication_internals_the/)

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

Reddit Programming

Mathieu Ropert: Learning Graphics Programming with C++
https://www.reddit.com/r/programming/comments/1qxeyn3/mathieu_ropert_learning_graphics_programming_with/

submitted by /u/_a4z (https://www.reddit.com/user/_a4z)
[link] (https://youtu.be/vL87j4wup1U) [comments] (https://www.reddit.com/r/programming/comments/1qxeyn3/mathieu_ropert_learning_graphics_programming_with/)

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

Reddit Programming

How OpenTelemetry Baggage Enables Global Context for Distributed Systems
https://www.reddit.com/r/programming/comments/1qxcqmc/how_opentelemetry_baggage_enables_global_context/

<!-- SC_OFF -->Hi folks, I had recently done a write-up on OpenTelemetry baggage, the lesser-known OpenTelemetry signal that helps manage metadata across microservices in a distributed system. This is helpful for sending feature flags, parameter IDs, etc. without having to add support for them in each service along the way. For example, if your first service adds a use_beta_feature flag, you don't have to add logic to parse and re-attach this flag to each API call in the service. Instead, it will be propagated across all downstream services via auto-instrumentation, and whichever service needs it can parse, modify and/or use the value. I'd love to discuss and understand your experience with OTel baggage or other aspects you found that maybe weren't as well-discussed as some of the others. Any suggestions or feedback would be much appreciated, thanks for your time! <!-- SC_ON --> submitted by /u/silksong_when (https://www.reddit.com/user/silksong_when)
[link] (https://signoz.io/blog/otel-baggage/) [comments] (https://www.reddit.com/r/programming/comments/1qxcqmc/how_opentelemetry_baggage_enables_global_context/)

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

Reddit Programming

Why Cassandra DB Is Highly Scalable and Extremely Fast
https://www.reddit.com/r/programming/comments/1qxbxgg/why_cassandra_db_is_highly_scalable_and_extremely/

submitted by /u/Sushant098123 (https://www.reddit.com/user/Sushant098123)
[link] (https://sushantdhiman.dev/inside-cassandra-the-internals-that/) [comments] (https://www.reddit.com/r/programming/comments/1qxbxgg/why_cassandra_db_is_highly_scalable_and_extremely/)

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

Reddit Programming

[FOSS - localhost] Introducing StatiBaker (part of ITIR suite) -- Ultimate Memory Prosthetic -- Keep track of what you're doing (ideal for agentic/openclaw/moltbook)
https://www.reddit.com/r/programming/comments/1qxa21t/foss_localhost_introducing_statibaker_part_of/

submitted by /u/TotalEmotional9530 (https://www.reddit.com/user/TotalEmotional9530)
[link] (https://github.com/chboishabba/ITIR-suite) [comments] (https://www.reddit.com/r/programming/comments/1qxa21t/foss_localhost_introducing_statibaker_part_of/)

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

Reddit Programming

We are QA Engineers now
https://www.reddit.com/r/programming/comments/1qwx9a0/we_are_qa_engineers_now/

submitted by /u/SerCeMan (https://www.reddit.com/user/SerCeMan)
[link] (https://serce.me/posts/2026-02-05-we-are-qa-engineers-now) [comments] (https://www.reddit.com/r/programming/comments/1qwx9a0/we_are_qa_engineers_now/)

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

Reddit Programming

Segment Anything Tutorial: Fast Auto Masks in Python
https://www.reddit.com/r/programming/comments/1qwu2e8/segment_anything_tutorial_fast_auto_masks_in/

<!-- SC_OFF -->For anyone studying Segment Anything (SAM) and automated mask generation in Python, this tutorial walks through loading the SAM ViT-H checkpoint, running SamAutomaticMaskGenerator to produce masks from a single image, and visualizing the results side-by-side.
It also shows how to convert SAM’s output into Supervision detections, annotate masks on the original image, then sort masks by area (largest to smallest) and plot the full mask grid for analysis. Medium version (for readers who prefer Medium): https://medium.com/image-segmentation-tutorials/segment-anything-tutorial-fast-auto-masks-in-python-c3f61555737e Written explanation with code: https://eranfeit.net/segment-anything-tutorial-fast-auto-masks-in-python/
Video explanation: https://youtu.be/vmDs2d0CTFk?si=nvS4eJv5YfXbV5K7 This content is shared for educational purposes only, and constructive feedback or discussion is welcome. Eran Feit <!-- SC_ON --> submitted by /u/Feitgemel (https://www.reddit.com/user/Feitgemel)
[link] (https://youtu.be/vmDs2d0CTFk?si=nvS4eJv5YfXbV5K7) [comments] (https://www.reddit.com/r/programming/comments/1qwu2e8/segment_anything_tutorial_fast_auto_masks_in/)

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

Reddit Programming

Introducing the GitButler CLI
https://www.reddit.com/r/programming/comments/1qwpm3w/introducing_the_gitbutler_cli/

submitted by /u/aspleenic (https://www.reddit.com/user/aspleenic)
[link] (https://blog.gitbutler.com/but-cli) [comments] (https://www.reddit.com/r/programming/comments/1qwpm3w/introducing_the_gitbutler_cli/)

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

Reddit Programming

Don't rent the cloud, own instead
https://www.reddit.com/r/programming/comments/1qwp73g/dont_rent_the_cloud_own_instead/

submitted by /u/yusufaytas (https://www.reddit.com/user/yusufaytas)
[link] (https://blog.comma.ai/datacenter/) [comments] (https://www.reddit.com/r/programming/comments/1qwp73g/dont_rent_the_cloud_own_instead/)

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

Reddit Programming

Epic reverse-engineering + programming a bugfix. What do you think?
https://www.reddit.com/r/programming/comments/1qwo7k1/epic_reverseengineering_programming_a_bugfix_what/

<!-- SC_OFF -->I stumbled upon a bugix for GTA online I found a few years ago. For me, this is the work of a genius, it touches all parts: inspection hypothesis reverse engineering programming the bugfix under the hypothesis binary patching testing the bug What do you think? <!-- SC_ON --> submitted by /u/germandiago (https://www.reddit.com/user/germandiago)
[link] (https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/) [comments] (https://www.reddit.com/r/programming/comments/1qwo7k1/epic_reverseengineering_programming_a_bugfix_what/)

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

Reddit Programming

QRT: A screen-to-camera data transfer protocol, using QR codes (proof of concept)
https://www.reddit.com/r/programming/comments/1qwl9fh/qrt_a_screentocamera_data_transfer_protocol_using/

<!-- SC_OFF -->This project explores data transfer using a screen-to-camera approach. The idea is simple: encode information into a sequence of QR codes, display them as a video on a screen, and then use a camera to capture and decode the video frames to retrieve the original data. <!-- SC_ON --> submitted by /u/smyrgeorge (https://www.reddit.com/user/smyrgeorge)
[link] (https://github.com/smyrgeorge/qrt) [comments] (https://www.reddit.com/r/programming/comments/1qwl9fh/qrt_a_screentocamera_data_transfer_protocol_using/)

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

Reddit Programming

Optimistic vs Pessimistic Locking: concurrency control, conflicts, lost updates, retries and blocking
https://www.reddit.com/r/programming/comments/1qwkuh4/optimistic_vs_pessimistic_locking_concurrency/

<!-- SC_OFF -->In many applications and systems, we must deal with concurrent, often conflicting and possibly lost, updates. This is exactly what the Concurrency Control problem is all about. Ignoring it means many bugs, confused users and lost money. It is definitely better to avoid all of these things! Therefore, the first solution to our concurrency problems is, well, optimistic. We assume that our update will not conflict with another one; if it does, an exception is thrown and handling it is left to the user/client. It is up to them to decide whether to retry or abandon the operation altogether. How can such conflicts be detected? There must be a way to determine whether a record was modified at the same time we were working on it. For that, we add a simple numeric version column and use it like: UPDATE campaign SET budget = 1000, version = version + 1 WHERE id = 1 AND version = 1; Each time a campaign entity is modified, its version is incremented as well; furthermore, version value - as known at the beginning of a transaction, fetched before the update statement - is added to the where clause. Most database drivers for most languages support returning the number of affected rows from Data Manipulation Language (DML) statements like UPDATE; in our case, we expect to get exactly one affected row. If that is not true, it means that the version was incremented by another query running in parallel - there could be a conflict! In this instance, we simply throw some kind of OptimisticLockException. As a result: there are no conflicting updates - if the entity was modified in the meantime, as informed by unexpectedly changed version value, operation is aborted user/client decides what to do with the aborted operation - they might refresh the page, see changes in the data and decide that it is fine now and does not need to be modified; or they might modify it regardless, in the same or different way, but the point is: not a single update is lost Consequently, the second solution to our concurrency problems is, well, pessimistic. We assume upfront that conflict will occur and lock the modified record for required time. For this strategy, there is no need to modify the schema in any way. To use it, we simply, pessimistically, lock the row under modification for the transaction duration. An example of clicks triggering budget modifications: -- click1 is first -- BEGIN; SELECT * FROM budget WHERE id = 1 FOR UPDATE; UPDATE budget SET available_amount = 50 WHERE id = 1; COMMIT; -- click2 in parallel, but second -- BEGIN; -- transaction locks here until the end of click1 transaction -- SELECT * FROM budget WHERE id = 1 FOR UPDATE; -- transaction resumes here after click1 transaction commits/rollbacks, -- -- with always up-to-date budget -- UPDATE budget -- value properly set to 0, as we always get up-to-date budget -- SET available_amount = 0 WHERE id = 1; COMMIT; As a result: there is only one update executing at any given time - if another process tries to change the same entity, it is blocked; this process must then wait until the first one ends and releases the lock we always get up-to-date data - every process locks the entity first (tries to) and only then modifies it client/user is not aware of parallel, potentially conflicting, updates - every process first acquires the lock on entity, but there is no straightforward way of knowing that a conflicting update has happened in the meantime; we simply wait for our turn Interestingly, it is also possible to emulate some of the optimistic locking functionality with pessimistic locks - using NOWAIT and SKIP LOCKED SQL clauses :) <!-- SC_ON --> submitted by /u/BinaryIgor (https://www.reddit.com/user/BinaryIgor)

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

Reddit Programming

Handling the "Intent-Reality Gap" in an Exchange: The Flip Protocol and Resource Stealing logic
https://www.reddit.com/r/programming/comments/1qy8lym/handling_the_intentreality_gap_in_an_exchange_the/

<!-- SC_OFF -->Hi everyone, In distributed exchange systems, consistency is a nightmare because of the time gap between order placement and matching settlement. A user might intend to "Open a Position," but by the time it settles, the position state has changed, turning that trade into a "Close" or even a "Reverse Open." I’ve been working on an open-source project, Open Exchange Core, and I wanted to share my implementation of the Flip Protocol to solve this. The Problem: How do you ensure 100% asset consistency when an order's nature (Open/Close) flips at the moment of settlement? Standard locking isn't enough for microsecond-level engines. How I approached this: 2D Execution Matrix: Mapping "Buy/Sell" vs. "Long/Short" to handle four distinct settlement possibilities. Settlement Compensation Flow: Automatically reversing margin/position freezing when a state reversal is detected (e.g., Open settlement turns into a Close). Resource Stealing Mechanism: Atomic logic to "steal" positions already frozen by other pending orders when an immediate settlement requires them. Atomic Logic: Why pre-freezing must be combined with the initial order judgment to prevent isolation issues. I’ve documented the logic and provided a walkthrough of the compensation flows here: Video Analysis:https://www.youtube.com/watch?v=9Q0PC63rT1Q
GitHub Project:https://github.com/vincentf13/open.vincentf13 I'm curious to hear how others handle atomic position flipping in high-concurrency environments. Do you rely on a single-threaded sequencer or complex compensation flows in your distributed transactions? Feedback on the logic is highly appreciated! <!-- SC_ON --> submitted by /u/No-Investigator1240 (https://www.reddit.com/user/No-Investigator1240)
[link] (https://www.youtube.com/watch?v=9Q0PC63rT1Q) [comments] (https://www.reddit.com/r/programming/comments/1qy8lym/handling_the_intentreality_gap_in_an_exchange_the/)

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

Reddit Programming

Writing a high performance Clinical Data Repository in Rust
https://www.reddit.com/r/programming/comments/1qxmum5/writing_a_high_performance_clinical_data/

submitted by /u/parlir (https://www.reddit.com/user/parlir)
[link] (https://haste.health/blog/writing-rust) [comments] (https://www.reddit.com/r/programming/comments/1qxmum5/writing_a_high_performance_clinical_data/)

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

Reddit Programming

Stories From 25 Years of Software Development
https://www.reddit.com/r/programming/comments/1qxinqt/stories_from_25_years_of_software_development/

submitted by /u/fpcoder (https://www.reddit.com/user/fpcoder)
[link] (https://susam.net/twenty-five-years-of-computing.html) [comments] (https://www.reddit.com/r/programming/comments/1qxinqt/stories_from_25_years_of_software_development/)

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

Reddit Programming

Token Smuggling:How Non-Standard Encoding Bypass AI Security
https://www.reddit.com/r/programming/comments/1qxggj4/token_smugglinghow_nonstandard_encoding_bypass_ai/

submitted by /u/JadeLuxe (https://www.reddit.com/user/JadeLuxe)
[link] (https://instatunnel.my/blog/token-smuggling-bypassing-filters-with-non-standard-encodings) [comments] (https://www.reddit.com/r/programming/comments/1qxggj4/token_smugglinghow_nonstandard_encoding_bypass_ai/)

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

Reddit Programming

Systems Thinking
https://www.reddit.com/r/programming/comments/1qxd98n/systems_thinking/

submitted by /u/10ForwardShift (https://www.reddit.com/user/10ForwardShift)
[link] (https://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html) [comments] (https://www.reddit.com/r/programming/comments/1qxd98n/systems_thinking/)

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

Reddit Programming

I'm tired of trying to make vibe coding work for me
https://www.reddit.com/r/programming/comments/1qxckux/im_tired_of_trying_to_make_vibe_coding_work_for_me/

<!-- SC_OFF -->The Primeagen reaches the conclusion that vibe coding is not for him because ultimately he cares about the quality of his work. What do you guys think? Have you had similar thoughts? Or have you learnt to let go completely and let the vibes take over? <!-- SC_ON --> submitted by /u/Gil_berth (https://www.reddit.com/user/Gil_berth)
[link] (https://youtu.be/ly-GM3aYgfQ?si=QRuDvEuzlfIRENfX) [comments] (https://www.reddit.com/r/programming/comments/1qxckux/im_tired_of_trying_to_make_vibe_coding_work_for_me/)

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

Reddit Programming

HarfBuzz at 20!
https://www.reddit.com/r/programming/comments/1qxbukp/harfbuzz_at_20/

<!-- SC_OFF -->A wave of manic energy in December had me put together a long deck called "HarfBuzz at 20! " , celebrating 20 years of HarfBuzz. 🎂 I designed the deck to be presented at the #WebEnginesHackfest (https://typo.social/tags/WebEnginesHackfest) later this year. Then reality hit that I cannot present this deck in any sane amount of time. Inspired by all the great presentations coming out of #FOSDEM (https://typo.social/tags/FOSDEM), I decided that instead of tossing the deck out, I just put it out here to be read by the curious. I will present a highly condensed version at the hackfest in June. Let me know what you think. 🙏 <!-- SC_ON --> submitted by /u/behdadgram (https://www.reddit.com/user/behdadgram)
[link] (https://docs.google.com/presentation/d/1o9Exz1c-Lr-dJjA8dcBn_Vl_Y37cupmFzmclMjBE_Bc/view) [comments] (https://www.reddit.com/r/programming/comments/1qxbukp/harfbuzz_at_20/)

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

Reddit Programming

Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world.
https://www.reddit.com/r/programming/comments/1qwzyu4/anthropic_built_a_c_compiler_using_a_team_of/

<!-- SC_OFF -->A very interesting experiment, it can apparently compile a specific version of the Linux kernel, from the article : "Over nearly 2,000 Claude Code sessions and $20,000 in API costs, the agent team produced a 100,000-line compiler that can build Linux 6.9 on x86, ARM, and RISC-V." but at the same time some people have had problems compiling a simple hello world program: https://github.com/anthropics/claudes-c-compiler/issues/1 Edit: Some people could compile the hello world program in the end: "Works if you supply the correct include path(s)" Though other pointed out that: "Which you arguably shouldn't even have to do lmao" Edit: I'll add the limitations of this compiler from the blog post, it apparently can't compile the Linux kernel without help from gcc: "The compiler, however, is not without limitations. These include: It lacks the 16-bit x86 compiler that is necessary to boot Linux out of real mode. For this, it calls out to GCC (the x86_32 and x86_64 compilers are its own). It does not have its own assembler and linker; these are the very last bits that Claude started automating and are still somewhat buggy. The demo video was produced with a GCC assembler and linker. The compiler successfully builds many projects, but not all. It's not yet a drop-in replacement for a real compiler. The generated code is not very efficient. Even with all optimizations enabled, it outputs less efficient code than GCC with all optimizations disabled. The Rust code quality is reasonable, but is nowhere near the quality of what an expert Rust programmer might produce." <!-- SC_ON --> submitted by /u/Gil_berth (https://www.reddit.com/user/Gil_berth)
[link] (https://www.anthropic.com/engineering/building-c-compiler) [comments] (https://www.reddit.com/r/programming/comments/1qwzyu4/anthropic_built_a_c_compiler_using_a_team_of/)

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

Reddit Programming

Cursed Interview Question Answers
https://www.reddit.com/r/programming/comments/1qwvox0/cursed_interview_question_answers/

<!-- SC_OFF -->I'm thinking... We should band together and create the ultimate "technically correct" answers to interview questions. The more cursed it is, the better. For example, I did is even checks with numbers, palindrome checks and fizz buzz using bit-shifting. <!-- SC_ON --> submitted by /u/JescoInc (https://www.reddit.com/user/JescoInc)
[link] (https://github.com/RPDevJesco/cursed_interview_answers) [comments] (https://www.reddit.com/r/programming/comments/1qwvox0/cursed_interview_question_answers/)

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

Reddit Programming

Sudo's maintainer needs resources to keep utility updated
https://www.reddit.com/r/programming/comments/1qwsvh9/sudos_maintainer_needs_resources_to_keep_utility/

<!-- SC_OFF -->"Without some form of assistance, it is untenable," Miller said. <!-- SC_ON --> submitted by /u/CackleRooster (https://www.reddit.com/user/CackleRooster)
[link] (https://www.theregister.com/2026/02/03/sudo_maintainer_asks_for_help/) [comments] (https://www.reddit.com/r/programming/comments/1qwsvh9/sudos_maintainer_needs_resources_to_keep_utility/)

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

Reddit Programming

Postman: From API Client to “Everything App”
https://www.reddit.com/r/programming/comments/1qwpi5i/postman_from_api_client_to_everything_app/

<!-- SC_OFF -->Postman just announced (https://blog.postman.com/new-capabilities-march-2026/) its March 2026 updates, and it’s a massive change and deviation from its original purpose as an API testing and documentation tool. I think this is a good example of Vendor lockin (for its users) and feature creep for Postman itself. https://codingismycraft.blog/index.php/2026/02/05/postman-from-api-client-to-everything-app/ <!-- SC_ON --> submitted by /u/Greedy_Principle5345 (https://www.reddit.com/user/Greedy_Principle5345)
[link] (https://codingismycraft.blog/index.php/2026/02/05/postman-from-api-client-to-everything-app/) [comments] (https://www.reddit.com/r/programming/comments/1qwpi5i/postman_from_api_client_to_everything_app/)

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

Reddit Programming

Why AI-Generated Code Will Hurt Both Customers and Companies
https://www.reddit.com/r/programming/comments/1qwo8ld/why_aigenerated_code_will_hurt_both_customers_and/

submitted by /u/drakedemon (https://www.reddit.com/user/drakedemon)
[link] (https://beastx.ro/why-ai-generated-code-will-hurt-both-customers-and-companies) [comments] (https://www.reddit.com/r/programming/comments/1qwo8ld/why_aigenerated_code_will_hurt_both_customers_and/)

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

Reddit Programming

State of Flutter 2026
https://www.reddit.com/r/programming/comments/1qwnfm6/state_of_flutter_2026/

submitted by /u/dev_newsletter (https://www.reddit.com/user/dev_newsletter)
[link] (https://devnewsletter.com/p/state-of-flutter-2026/) [comments] (https://www.reddit.com/r/programming/comments/1qwnfm6/state_of_flutter_2026/)

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

Reddit Programming

[link] (https://binaryigor.com/optimistic-vs-pessimistic-locking.html) [comments] (https://www.reddit.com/r/programming/comments/1qwkuh4/optimistic_vs_pessimistic_locking_concurrency/)

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

Reddit Programming

3 Principles of Good Incentives
https://www.reddit.com/r/programming/comments/1qwjrts/3_principles_of_good_incentives/

submitted by /u/dmp0x7c5 (https://www.reddit.com/user/dmp0x7c5)
[link] (https://l.perspectiveship.com/re-3pogi) [comments] (https://www.reddit.com/r/programming/comments/1qwjrts/3_principles_of_good_incentives/)

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