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

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

Animal Crossing for the GameCube has been decompiled
https://www.reddit.com/r/programming/comments/1ldnfxb/animal_crossing_for_the_gamecube_has_been/

submitted by /u/r_retrohacking_mod2 (https://www.reddit.com/user/r_retrohacking_mod2)
[link] (https://gbatemp.net/threads/animal-crossing-for-the-gamecube-has-been-decompiled.672373/) [comments] (https://www.reddit.com/r/programming/comments/1ldnfxb/animal_crossing_for_the_gamecube_has_been/)

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

Reddit Programming

MCP Security Flaws: What Developers Need to Know
https://www.reddit.com/r/programming/comments/1ldignq/mcp_security_flaws_what_developers_need_to_know/

<!-- SC_OFF -->Disclosure: I work at CyberArk and was involved in this research. Just finished analyzing the Model Context Protocol security model and found some nasty vulnerabilities that could bite developers using AI coding tools. Quick Context: MCP is what lets your AI tools (Claude Desktop, Cursor, etc.) connect to external services and local files. Think of it as an API standard for AI apps. The Problems: Malicious Tool Registration: Bad actors can create "helpful" tools that actually steal your code/secrets Server Chaining Exploits: Legitimate-looking servers can proxy requests to malicious ones Hidden Prompt Injection: Servers can embed invisible instructions that trick the AI into doing bad things Weak Auth: Most MCP servers don't properly validate who's calling them Developer Impact: If you're using AI coding assistants with MCP: Your local codebase could be exfiltrated API keys in environment variables are at risk Custom MCP integrations might be backdoored Quick Fixes: # Only use verified MCP servers # Check the official registry first # Review MCP server code before installing # Don't store secrets in env vars if using MCP # Use approval-required MCP clients Real Talk: This is what happens when we rush to integrate AI everywhere without thinking about security. The same composability that makes MCP powerful also makes it dangerous. Worth reading if you're building or using MCP integrations: <!-- SC_ON --> submitted by /u/ES_CY (https://www.reddit.com/user/ES_CY)
[link] (https://www.cyberark.com/resources/threat-research-blog/is-your-ai-safe-threat-analysis-of-mcp-model-context-protocol) [comments] (https://www.reddit.com/r/programming/comments/1ldignq/mcp_security_flaws_what_developers_need_to_know/)

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

Reddit Programming

Simplify month-end calculations in your database! with Django 🚀
https://www.reddit.com/r/programming/comments/1ldgrxu/simplify_monthend_calculations_in_your_database/

<!-- SC_OFF -->Hello dev community! 👋 I've just launched django-lastdayofmonth, a simple yet powerful ORM function for Django, designed to effortlessly calculate the last day of any month directly within your database queries. It seamlessly supports SQLite, PostgreSQL, MySQL/MariaDB, and Oracle! 🔥 Extensively tested from Django 3.2 up to 5.2 🐍 Compatible with Python versions 3.8 to 3.12 💻 Quick setup: simply run pip install django-lastdayofmonth Check it out and star the repo if you like it! 🌟 GitHub: [django-lastdayofmonth]() Also, please support my proposal to integrate this directly into Django by liking this issue: [django/new-features issue #38]() Your feedback is highly appreciated! <!-- SC_ON --> submitted by /u/AdAshamed5374 (https://www.reddit.com/user/AdAshamed5374)
[link] (https://github.com/nobilebeniamino/django-lastdayofmonth) [comments] (https://www.reddit.com/r/programming/comments/1ldgrxu/simplify_monthend_calculations_in_your_database/)

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

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/)

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

Reddit Programming

The Humble Programmer (1972)
https://www.reddit.com/r/programming/comments/1ldiwbk/the_humble_programmer_1972/

submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340.html) [comments] (https://www.reddit.com/r/programming/comments/1ldiwbk/the_humble_programmer_1972/)

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

Reddit Programming

Diving into Graphics Programming through Terrain Generation
https://www.reddit.com/r/programming/comments/1ldi9x0/diving_into_graphics_programming_through_terrain/

<!-- SC_OFF -->This was a fun project using C++, OpenGL, and ImGui! GitHub repo: https://github.com/archfella/3D-Procedural-Terrain-Mesh-Generator YouTube: https://www.youtube.com/watch?v=ZySew4Pxg3c <!-- SC_ON --> submitted by /u/raduleee (https://www.reddit.com/user/raduleee)
[link] (https://www.youtube.com/watch?v=ZySew4Pxg3c) [comments] (https://www.reddit.com/r/programming/comments/1ldi9x0/diving_into_graphics_programming_through_terrain/)

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

Reddit Programming

NodePass is an open-source intranet penetration tool that now supports a graphical interface, providing real-time tunnel monitoring, traffic statistics, and endpoint management for a more intuitive and efficient operation.
https://www.reddit.com/r/programming/comments/1ldeyw6/nodepass_is_an_opensource_intranet_penetration/

submitted by /u/wcjiang (https://www.reddit.com/user/wcjiang)
[link] (https://github.com/yosebyte/nodepass) [comments] (https://www.reddit.com/r/programming/comments/1ldeyw6/nodepass_is_an_opensource_intranet_penetration/)

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