reddit_programming | Technologies

Telegram-канал reddit_programming - Reddit Programming

214

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

Subscribe to a channel

Reddit Programming

Rate Limiting in .NET with Redis
https://www.reddit.com/r/programming/comments/1lf8qwd/rate_limiting_in_net_with_redis/

<!-- SC_OFF -->Hey everyone I just published a guide on Rate Limiting in .NET with Redis, and I hope it’ll be valuable for anyone working with APIs, microservices, or distributed systems and looking to implement rate limiting in a distributed environment. In this post, I cover: - Why rate limiting is critical for modern APIs
- The limitations of the built-in .NET RateLimiter in distributed environments
- How to implement Fixed Window, Sliding Window (with and without Lua), and Token Bucket algorithms using Redis
- Sample code, Docker setup, Redis tips, and gotchas like clock skew and fail-open vs. fail-closed strategies If you’re looking to implement rate limiting for your .NET APIs — especially in load-balanced or multi-instance setups — this guide should save you a ton of time. Check it out here:
https://hamedsalameh.com/implementing-rate-limiting-in-net-with-redis-easily/ <!-- SC_ON --> submitted by /u/DotDeveloper (https://www.reddit.com/user/DotDeveloper)
[link] (https://hamedsalameh.com/implementing-rate-limiting-in-net-with-redis-easily/) [comments] (https://www.reddit.com/r/programming/comments/1lf8qwd/rate_limiting_in_net_with_redis/)

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

Reddit Programming

the six-month recap: closing talk on AI at Web Directions, Melbourne, June 2025
https://www.reddit.com/r/programming/comments/1lf7p04/the_sixmonth_recap_closing_talk_on_ai_at_web/

submitted by /u/geoffreyhuntley (https://www.reddit.com/user/geoffreyhuntley)
[link] (https://ghuntley.com/six-month-recap/) [comments] (https://www.reddit.com/r/programming/comments/1lf7p04/the_sixmonth_recap_closing_talk_on_ai_at_web/)

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

Reddit Programming

Real-time analytics with an all-in-one system: Are we there yet?
https://www.reddit.com/r/programming/comments/1lf6a3k/realtime_analytics_with_an_allinone_system_are_we/

submitted by /u/j1897OS (https://www.reddit.com/user/j1897OS)
[link] (https://questdb.com/blog/realtime-analytics-using-tsdb/) [comments] (https://www.reddit.com/r/programming/comments/1lf6a3k/realtime_analytics_with_an_allinone_system_are_we/)

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

Reddit Programming

UI Component Testing Revisited: Modern Implementation with Visual Verification
https://www.reddit.com/r/programming/comments/1lepscg/ui_component_testing_revisited_modern/

submitted by /u/defnotthrown (https://www.reddit.com/user/defnotthrown)
[link] (https://paulhammant.com/2025/06/17/ui-component-testing-revisited/) [comments] (https://www.reddit.com/r/programming/comments/1lepscg/ui_component_testing_revisited_modern/)

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

Reddit Programming

JSON module scripts are now Baseline Newly available
https://www.reddit.com/r/programming/comments/1lem1s3/json_module_scripts_are_now_baseline_newly/

submitted by /u/feross (https://www.reddit.com/user/feross)
[link] (https://web.dev/blog/json-imports-baseline-newly-available?hl=en) [comments] (https://www.reddit.com/r/programming/comments/1lem1s3/json_module_scripts_are_now_baseline_newly/)

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

Reddit Programming

Node.js Interview Q&A: Day 11
https://www.reddit.com/r/programming/comments/1leit9l/nodejs_interview_qa_day_11/

submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/node-js-interview-q-a-day-11-af1fb3153220) [comments] (https://www.reddit.com/r/programming/comments/1leit9l/nodejs_interview_qa_day_11/)

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

Reddit Programming

Exploring JavaScript (ES2025 Edition)
https://www.reddit.com/r/programming/comments/1lehwel/exploring_javascript_es2025_edition/

submitted by /u/mariuz (https://www.reddit.com/user/mariuz)
[link] (https://exploringjs.com/js/downloads/exploring-js-book-changelog.html) [comments] (https://www.reddit.com/r/programming/comments/1lehwel/exploring_javascript_es2025_edition/)

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

Reddit Programming

A* Path Finding
https://www.reddit.com/r/programming/comments/1legxlh/a_path_finding/

submitted by /u/symbolicard (https://www.reddit.com/user/symbolicard)
[link] (https://www.redblobgames.com/pathfinding/a-star/introduction.html) [comments] (https://www.reddit.com/r/programming/comments/1legxlh/a_path_finding/)

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

Reddit Programming

Advanced Rust Programming Techniques • Florian Gilcher
https://www.reddit.com/r/programming/comments/1lefknc/advanced_rust_programming_techniques_florian/

submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/QQzAWxYKPSE) [comments] (https://www.reddit.com/r/programming/comments/1lefknc/advanced_rust_programming_techniques_florian/)

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

Reddit Programming

Benchmark: snapDOM may be a serious alternative to html2canvas
https://www.reddit.com/r/programming/comments/1leaam8/benchmark_snapdom_may_be_a_serious_alternative_to/

submitted by /u/tinchox5 (https://www.reddit.com/user/tinchox5)
[link] (https://zumerlab.github.io/snapdom/#benchmark) [comments] (https://www.reddit.com/r/programming/comments/1leaam8/benchmark_snapdom_may_be_a_serious_alternative_to/)

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

Reddit Programming

Data Oriented Design, Region-Based Memory Management, and Security
https://www.reddit.com/r/programming/comments/1le9yyi/data_oriented_design_regionbased_memory/

<!-- SC_OFF -->Hello, the attached devlog covers a concept I have seen quite a bit from (game) developers enthusiastic about data-oriented design, which is region-based memory management. An example of this pattern is a program allocating a very large memory region on the heap and then placing data in the region using normal integers, effectively using them as offsets to refer to the location of data within the large region. While it certainly seems fair that such techniques have the potential to make programs more cache-efficient and space-efficient, and even reduce bugs when done right, I am curious to hear some opinions on whether this pattern could be considered a potential cybersecurity hazard. On the one hand, DOD seems to offer a lot of benefits as a programming paradigm, but I wonder whether there is merit to saying that the extremes of hand-rolled memory management could start to be problematic in the sense that you lose out on both the hardware-level and kernel-level security features that are designed for regular pointers. For applications that are more concerned with security and ease of development than aggressively minimizing instruction count (which one could argue is a sizable portion - if not a majority - of commercial software), do you think that a traditional syscall-based memory management approach, or even a garbage-collected approach, is justifiable in the sense that they better leverage hardware pointer protections and allow architectural choices that make it easier for developers to work in narrower scopes (as in not needing to understand the whole architecture to develop a component of it)? As a final point of discussion, I certainly think it's fair to say there are certain performance-critical components of applications (such as rendering) where these kinds of extreme performance measures are justifiable or necessary. So, where do you fall on the spectrum from "these kinds of patterns are never acceptable" to "there is never a good reason not to use such patterns," and how do you decide whether it is worth it to design for performance at a potential cost of security and maintainability? <!-- SC_ON --> submitted by /u/nerd8622 (https://www.reddit.com/user/nerd8622)
[link] (https://guide.handmadehero.org/code/day341/) [comments] (https://www.reddit.com/r/programming/comments/1le9yyi/data_oriented_design_regionbased_memory/)

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

Reddit Programming

I wrote a compiler
https://www.reddit.com/r/programming/comments/1le4t7a/i_wrote_a_compiler/

submitted by /u/azhenley (https://www.reddit.com/user/azhenley)
[link] (https://blog.singleton.io/posts/2021-01-31-i-wrote-a-compiler/) [comments] (https://www.reddit.com/r/programming/comments/1le4t7a/i_wrote_a_compiler/)

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

Reddit Programming

Lessons from changing tech stacks in real production apps.
https://www.reddit.com/r/programming/comments/1ldu45x/lessons_from_changing_tech_stacks_in_real/

<!-- SC_OFF -->I'm curious to hear from developers who have gone through this: What were the actual reasons that made your team switch technologies, frameworks, languages, or tools in a production app? Was it due to performance issues? Maintenance pain? Team experience? Scaling challenges? Ecosystem problems? Also, if you didn’t switch when you probably should have, what held you back? Would love to hear some war stories or insights to understand what really drives these decisions. <!-- SC_ON --> submitted by /u/Personal-Work4649 (https://www.reddit.com/user/Personal-Work4649)
[link] (https://medium.com/sharenowtech/front-end-architecture-making-rebuild-from-scratch-not-so-painful-7b2232dc1666) [comments] (https://www.reddit.com/r/programming/comments/1ldu45x/lessons_from_changing_tech_stacks_in_real/)

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

Reddit Programming

Why JPEG Became the Web's Favorite Image Format
https://www.reddit.com/r/programming/comments/1ldqjia/why_jpeg_became_the_webs_favorite_image_format/

submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://spectrum.ieee.org/jpeg-image-format-history) [comments] (https://www.reddit.com/r/programming/comments/1ldqjia/why_jpeg_became_the_webs_favorite_image_format/)

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

Reddit Programming

Do two triangles intersect?
https://www.reddit.com/r/programming/comments/1ldodul/do_two_triangles_intersect/

submitted by /u/innochenti (https://www.reddit.com/user/innochenti)
[link] (https://alexsyniakov.com/2025/06/16/do-two-triangles-intersect/) [comments] (https://www.reddit.com/r/programming/comments/1ldodul/do_two_triangles_intersect/)

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

Reddit Programming

The Story of a Prisoner Who Became a Software Engineer
https://www.reddit.com/r/programming/comments/1lf8o2p/the_story_of_a_prisoner_who_became_a_software/

<!-- SC_OFF -->Interesting to see that he said, “I’m very grateful that LLMs are something that I did not have available to me for a large portion of my time learning.” <!-- SC_ON --> submitted by /u/Soul_Predator (https://www.reddit.com/user/Soul_Predator)
[link] (https://analyticsindiamag.com/ai-features/the-story-of-a-prisoner-who-became-a-software-engineer/) [comments] (https://www.reddit.com/r/programming/comments/1lf8o2p/the_story_of_a_prisoner_who_became_a_software/)

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

Reddit Programming

The joy of (type) sets in Go
https://www.reddit.com/r/programming/comments/1lf6ndh/the_joy_of_type_sets_in_go/

<!-- SC_OFF -->The point of generic programming (https://bitfieldconsulting.com/posts/generics) is to be able to write code that operates on more than one concrete data type. That way, we don’t have to repeat the same code over and over, once for each kind of data that we need it to handle. But being free and easy about your data types can go too far: type parameters (https://bitfieldconsulting.com/posts/type-parameters) that accept literally any kind of data aren’t that useful. We need constraints (https://bitfieldconsulting.com/posts/constraints) to reduce the set of types that a function can deal with. When the type set is infinite (as it is with [T any], for example), then there’s almost nothing we can do with those values, because we’re infinitely ignorant about them. So, how can we write more flexible constraints, whose type sets are broad enough to be useful, but narrow enough to be usable? <!-- SC_ON --> submitted by /u/EightLines_03 (https://www.reddit.com/user/EightLines_03)
[link] (https://bitfieldconsulting.com/posts/type-sets) [comments] (https://www.reddit.com/r/programming/comments/1lf6ndh/the_joy_of_type_sets_in_go/)

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

Reddit Programming

Osprey Programming Language
https://www.reddit.com/r/programming/comments/1letj43/osprey_programming_language/

<!-- SC_OFF -->Osprey is a modern functional programming oriented language designed for elegance, safety, and performance. But, more importantly, this is the first programming language and compiler that encourages you to contribute with AI assistance. Much of the compiler code was written with help from AI. Compilers are no longer relegated to the select few who have the time and privilege to spend years studying compiler design. Check out the playground and jump on the GitHub discussion threads <!-- SC_ON --> submitted by /u/emanresu_2017 (https://www.reddit.com/user/emanresu_2017)
[link] (https://www.ospreylang.dev/) [comments] (https://www.reddit.com/r/programming/comments/1letj43/osprey_programming_language/)

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

Reddit Programming

Building with purpose 6.2: Retrieving the user from Clerk
https://www.reddit.com/r/programming/comments/1lemkdh/building_with_purpose_62_retrieving_the_user_from/

submitted by /u/jordiolle11 (https://www.reddit.com/user/jordiolle11)
[link] (https://www.jordi-olle.com/blog/building-with-purpose-62-retrieving-the-user-from-clerk) [comments] (https://www.reddit.com/r/programming/comments/1lemkdh/building_with_purpose_62_retrieving_the_user_from/)

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

Reddit Programming

💥 Tech Talks Weekly #64: all new Software Engineering conference talk recordings published in the past 7 days
https://www.reddit.com/r/programming/comments/1lejunu/tech_talks_weekly_64_all_new_software_engineering/

submitted by /u/TechTalksWeekly (https://www.reddit.com/user/TechTalksWeekly)
[link] (https://www.techtalksweekly.io/p/tech-talks-weekly-64) [comments] (https://www.reddit.com/r/programming/comments/1lejunu/tech_talks_weekly_64_all_new_software_engineering/)

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

Reddit Programming

CRA to Next.js: Unlock 5x Performance & Perfect SE
https://www.reddit.com/r/programming/comments/1leigvo/cra_to_nextjs_unlock_5x_performance_perfect_se/

<!-- SC_OFF -->Hey everyone, With Create React App now deprecated, I know a lot of us are looking at how to migrate existing projects. I just finished moving a decent-sized app over to the Next.js App Router and wanted to share what I learned. The biggest "aha!" moments for me were: Moving all data fetching from useEffect hooks into async Server Components. This completely eliminated my client-side request waterfalls. Replacing react-router-dom with the new file-based routing and next/navigation hooks. Using middleware for auth instead of client-side logic. It's so much cleaner. I compiled all my notes, code snippets, and a pre-migration checklist into a full guide to make the process easier for others. Hope it helps you out! Link:https://beyondit.blog/blogs/CRA-to-Next-js-Unlock-5x-Performance-Perfect-SEO <!-- SC_ON --> submitted by /u/WillingnessFun7051 (https://www.reddit.com/user/WillingnessFun7051)
[link] (https://beyondit.blog/blogs/CRA-to-Next-js-Unlock-5x-Performance-Perfect-SEO) [comments] (https://www.reddit.com/r/programming/comments/1leigvo/cra_to_nextjs_unlock_5x_performance_perfect_se/)

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

Reddit Programming

Ace Your Next JavaScript Interview: `this`, `new`, Prototypes, Classes (Part 3) ✨
https://www.reddit.com/r/programming/comments/1leh78y/ace_your_next_javascript_interview_this_new/

submitted by /u/pepincho (https://www.reddit.com/user/pepincho)
[link] (https://thetshaped.dev/p/ace-your-next-javascript-interview-this-new-keywords-prototypes-classes) [comments] (https://www.reddit.com/r/programming/comments/1leh78y/ace_your_next_javascript_interview_this_new/)

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

Reddit Programming

Coding a RSS Article Aggregator; Episode 2 MVP, Article Module, Cron Jobs
https://www.reddit.com/r/programming/comments/1leglyk/coding_a_rss_article_aggregator_episode_2_mvp/

submitted by /u/ambyAgubuzo (https://www.reddit.com/user/ambyAgubuzo)
[link] (https://youtube.com/watch?v=8BLbkDYH_OU&amp;si=sU4T4o3c08LjEJNL) [comments] (https://www.reddit.com/r/programming/comments/1leglyk/coding_a_rss_article_aggregator_episode_2_mvp/)

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

Reddit Programming

Voiden: The Offline API Devtool
https://www.reddit.com/r/programming/comments/1lefans/voiden_the_offline_api_devtool/

<!-- SC_OFF -->So, somewhere along the way, API tooling has lost the plot. One tool for specs. Another for tests. A third one for docs. Then, a parade of SDKs, mocks, CI scripts, and shiny portals nobody really asked for. All served up by platforms that charge you a fortune while flying in celebrities to play "developer advocate" at their overblown conferences. And the ones who don't do all of that just end up differing from it in color palettes, and the way they paywall core features. Hence Voiden. A tool that came out of the frustration of its creators in need of something better.
Unifying the API work without heavy-handed platforms controlling our process.
With Voiden, you can define, test, and document APIs like a developer, not a SaaS user.
No accounts. No lock-in. No telemetry. Just Markdown, Git, hotkeys, and your damn specs. TL;DR
- Keep specs, tests, and docs in plain Markdown, not across half a dozen tools you must keep in sync.
- Version with Git, not proprietary clouds.
- Extend with plugins, not paywalls.
- No syncing.
- No "collaboration" tax. And yes, Voiden looks different than your ordinary API client.
That is the point. It's a unique approach to building APIs. Your workflow, your rules. Your Voiden file can be as simple as a couple of hotkeys. Or it can be as complex as you want it to be. Import (multiple) reusable block(s) from across your project and document everything you need. Oh, and your messy old Postman and OAS YAML files are all importable and generate executable, documentable files within the app. <!-- SC_ON --> submitted by /u/kiselitza (https://www.reddit.com/user/kiselitza)
[link] (https://voiden.md/) [comments] (https://www.reddit.com/r/programming/comments/1lefans/voiden_the_offline_api_devtool/)

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

Reddit Programming

Linking programming, set theory, and number theory...
https://www.reddit.com/r/programming/comments/1le9z0b/linking_programming_set_theory_and_number_theory/

<!-- SC_OFF -->This is my SoME4 submission that I think takes a novel approach towards Boolean operations, multisets, and prime factors. It turns out being good at programming can really help with this specific concept in number theory. I'd appreciate any feedback that I can use to improve in future videos. The last time I posted here, people gave lots of useful tips. <!-- SC_ON --> submitted by /u/pihedron (https://www.reddit.com/user/pihedron)
[link] (https://youtu.be/9HZDiLsJ4-Y) [comments] (https://www.reddit.com/r/programming/comments/1le9z0b/linking_programming_set_theory_and_number_theory/)

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

Reddit Programming

"Yes, A.I. still sucks at coding in some cases — For now…"Article in AI Advances, 17-Jun-2025
https://www.reddit.com/r/programming/comments/1le980t/yes_ai_still_sucks_at_coding_in_some_cases_for/

<!-- SC_OFF -->Summary: Testing the limits of LLMs in code gerenation for Raspberry Pi Pico PIO assembly, as well as an example of how we design modern CPUs microcodes. If you work in these fields, your job is still pretty much secured against AI for many years... <!-- SC_ON --> submitted by /u/xgeorgio_gr (https://www.reddit.com/user/xgeorgio_gr)
[link] (https://ai.gopubby.com/yes-a-i-still-sucks-at-coding-in-some-cases-for-now-828a0fc17ada) [comments] (https://www.reddit.com/r/programming/comments/1le980t/yes_ai_still_sucks_at_coding_in_some_cases_for/)

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

Reddit Programming

Double-Entry Ledgers: The Missing Primitive in Modern Software
https://www.reddit.com/r/programming/comments/1lduuw1/doubleentry_ledgers_the_missing_primitive_in/

submitted by /u/pgr0ss (https://www.reddit.com/user/pgr0ss)
[link] (https://pgrs.net/2025/06/17/double-entry-ledgers-missing-primitive-in-modern-software/) [comments] (https://www.reddit.com/r/programming/comments/1lduuw1/doubleentry_ledgers_the_missing_primitive_in/)

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

Reddit Programming

Mochi v0.8.0: Compile to C, C#, Dart, Elixir, Erlang, F#, Ruby, Rust, Scala and Swift
https://www.reddit.com/r/programming/comments/1ldrsau/mochi_v080_compile_to_c_c_dart_elixir_erlang_f/

<!-- SC_OFF -->We’ve just released Mochi v0.8.0 - a small, statically typed language designed for clarity, simplicity, and portability. In this release, we added support for compiling to ten more languages: C, C#, Dart, Elixir, Erlang, F#, Ruby, Rust, Scala, and Swift. It’s still early and currently supports basic control flow and expressions, but we’re actively working on expanding support for memory management and FFI across all targets. Our approach is simple: one small Mochi program at a time. We make sure the compiled code runs correctly in each target language, then iterate and expand from there. This release includes over 100 commits and 500+ file changes, laying the groundwork for future FFI and memory management support. Try it out and let us know what you think. We’d love your feedback! <!-- SC_ON --> submitted by /u/Adept-Country4317 (https://www.reddit.com/user/Adept-Country4317)
[link] (https://github.com/mochilang/mochi/releases/tag/v0.8.0) [comments] (https://www.reddit.com/r/programming/comments/1ldrsau/mochi_v080_compile_to_c_c_dart_elixir_erlang_f/)

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

Reddit Programming

The Guy Who Wrote a Compiler Without a Compiler: Corrado Böhm
https://www.reddit.com/r/programming/comments/1ldoomp/the_guy_who_wrote_a_compiler_without_a_compiler/

<!-- SC_OFF -->Corrado Böhm was just a postgrad student in 1951 when he pulled off something that still feels unbelievable. He wrote a full compiler by hand without using a compiler and without even having access to a proper computer. At that time, computers weren’t easily available, especially not to students. Böhm had no machine to run or test anything, so he did everything on paper. He came up with his own language, built a model of a machine, and wrote a compiler for that language. The compiler was written in the same language it was supposed to compile, something we now call a self-hosting compiler. The language he designed was very minimal. It only had assignment operations, no control structures, and no functions. Variables could only store non-negative integers. To perform jumps, he used a special symbol π, and for input and output, he used the symbol ?. Even though the language was simple, it was enough to write working programs. One example from his work shows how to load an 11-element array from input using just basic assignments, jumps, and conditions. The logic may look strange today, but it worked, and it followed a clear structure that made sense for the time.
You can check out that 11-element array program on wikipedia (https://en.wikipedia.org/wiki/B%C3%B6hm%27s_language) The entire compiler was just 114 lines of code. Böhm also designed a parsing method with linear complexity, which made the compilation process smooth for the kind of expressions his language supported. The structure of the code was clean and split logically between different types of expressions, all documented in his thesis. Concepts like self-hosting, efficient parsing, and clean code structure all appeared in this early work. Donald Knuth, a legendary computer scientist known for writing The Art of Computer Programming, also mentioned Böhm’s contribution while discussing the early development of programming languages. If this added any value to you, I’ve also written this as a blog post on my site. Same content, just for my own record. If not, please ignore. <!-- SC_ON --> submitted by /u/Karthik-Writes-Tech (https://www.reddit.com/user/Karthik-Writes-Tech)
[link] (https://karthikwritestech.com/the-guy-who-wrote-a-compiler-without-a-compiler-corrado-bohm/) [comments] (https://www.reddit.com/r/programming/comments/1ldoomp/the_guy_who_wrote_a_compiler_without_a_compiler/)

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

Reddit Programming

Angular Interview Q&A: Day 17
https://www.reddit.com/r/programming/comments/1ldo5h8/angular_interview_qa_day_17/

submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/angular-interview-q-a-day-17-16ffacbf177c) [comments] (https://www.reddit.com/r/programming/comments/1ldo5h8/angular_interview_qa_day_17/)

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