Reddit Programming
210 subscribers
1.22K photos
124K links
I will send you newest post from subreddit /r/programming
Download Telegram
just nuked 120+ unused npm deps from a huge Nx monorepo
https://www.reddit.com/r/programming/comments/1nsymn6/just_nuked_120_unused_npm_deps_from_a_huge_nx/

<!-- SC_OFF -->just nuked 120+ unused npm deps from a huge Nx monorepo using Knip. shaved a whole minute off yarn install. wrote up the whole process, including how to avoid false positives. if you got npm bloat, this is for you <!-- SC_ON --> submitted by /u/Beautiful_Spot5404 (https://www.reddit.com/user/Beautiful_Spot5404)
[link] (https://johnjames.blog/posts/cleaning-house-in-nx-monorepo-how-i-removed-120-unused-deps-safely) [comments] (https://www.reddit.com/r/programming/comments/1nsymn6/just_nuked_120_unused_npm_deps_from_a_huge_nx/)
The easiest way to keep code and docs synced
https://www.reddit.com/r/programming/comments/1nsysen/the_easiest_way_to_keep_code_and_docs_synced/

<!-- SC_OFF -->One problem about coding and documentation is keeping your docs up-to-date, no developers likes documentation. Or even worse, knowing which and what parts out of thousands of docs to update. We are launching Drift AI soon. With every push to your main branch, we retrieve relevant documents, highlight and suggest edits to outdated parts, and tag the right engineer to approve the edits. No new platforms, we directly integrate with Confluence and everything is done in Confluence. You can grab your early access spot if you find this useful for you or your team. <!-- SC_ON --> submitted by /u/khalidd877 (https://www.reddit.com/user/khalidd877)
[link] (https://driftai.framer.website/) [comments] (https://www.reddit.com/r/programming/comments/1nsysen/the_easiest_way_to_keep_code_and_docs_synced/)
[JS/TS] For those who made a reactive library before, how to deal with reconciliation on array ordering.
https://www.reddit.com/r/programming/comments/1nszt1m/jsts_for_those_who_made_a_reactive_library_before/

<!-- SC_OFF -->I'm doing a small reactive library ( no VDOM, direct manipulation and quite "mechanical" as it will be used for a generator later but still ergonomic enough to write by hand ) for fun and learning purpose, to learn how a reactive library works and also later how a compiler and generator works. So the first step I'm tackling is the actual reactive library, for now I got to a point where I think it works well and has hierarchy and cleanups when it is supposed to, and I made 2 small helpers for control ( when and each ) but, as of now the each does not care about ordering and I'm not sure how would it be able to change the order tbh, at least not right now. So for anyone that did one, how did you do it? EDIT: I changed so any control part is now tied with the dom and are less generic, I made each work in a way that nodes can be reused and using the dom to reorder with a list. Obs: there is a bug where if you try to add another item to the array that has the same key it does not get added because it thinks the component already exist. <!-- SC_ON --> submitted by /u/Gustavo_Fenilli (https://www.reddit.com/user/Gustavo_Fenilli)
[link] (https://github.com/fenilli/nero/blob/main/lib/runtime/control.ts) [comments] (https://www.reddit.com/r/programming/comments/1nszt1m/jsts_for_those_who_made_a_reactive_library_before/)
a good quality code?
https://www.reddit.com/r/programming/comments/1ntbea5/a_good_quality_code/

<!-- SC_OFF -->this is my first "algorithm" so any advice would be really useful, thank you <!-- SC_ON --> submitted by /u/Muhammed_FpI (https://www.reddit.com/user/Muhammed_FpI)
[link] (https://github.com/Naikhm/3EquationsSolver) [comments] (https://www.reddit.com/r/programming/comments/1ntbea5/a_good_quality_code/)
GTranslate - Translations at the speed of tought
https://www.reddit.com/r/programming/comments/1ntc2f4/gtranslate_translations_at_the_speed_of_tought/

<!-- SC_OFF -->GTranslate - Translate at the speed of tought An open-source, modern and convenience cross-platform application for translations at the speed of thought. Built with Rust Tokio Features Translate text to and from any language Secure auto-updater System Tray & Auto start on boot Available to Windows (MSI) MacOS Linux (beta, due to some Tauri limits) Install (https://gtranslate.app/) Source code (https://github.com/z3ntl3/gtranslate-app) <!-- SC_ON --> submitted by /u/Budget-Bicycle4121 (https://www.reddit.com/user/Budget-Bicycle4121)
[link] (https://gtranslate.app/) [comments] (https://www.reddit.com/r/programming/comments/1ntc2f4/gtranslate_translations_at_the_speed_of_tought/)
This is actually a really good free workshop
https://www.reddit.com/r/programming/comments/1ntcenk/this_is_actually_a_really_good_free_workshop/

<!-- SC_OFF -->Free 80-minute online workshop called 'How to Understand the Value of Your Code' It covers: Frameworks to measure feature impact How to avoid drowning in meaningless metrics Practical tactics you can apply right away It’s interactive, led by an industry expert, and completely free. Good if you’ve ever had to explain why your team’s work matters to stakeholders. <!-- SC_ON --> submitted by /u/HDev- (https://www.reddit.com/user/HDev-)
[link] (https://leaddev.com/event/how-to-understand-the-value-of-your-code) [comments] (https://www.reddit.com/r/programming/comments/1ntcenk/this_is_actually_a_really_good_free_workshop/)
What I Learned Building a Web-Native Programming Language
https://www.reddit.com/r/programming/comments/1ntkzfj/what_i_learned_building_a_webnative_programming/

<!-- SC_OFF -->Over the past few months, I set myself a challenge: could I design a programming language where web development is “built-in” at the syntax level? Instead of using a general-purpose language (Python, JS, etc.) plus a framework, I wanted something where HTML and CSS are first-class citizens. The experiment eventually became an alpha project I call Veyra, but the real value for me has been in the technical lessons learned along the way. 1. Writing a Lexer and Parser From Scratch I started with the basics: a lexer to tokenize the source code and a parser to build an AST. Lesson: error handling is harder than tokenization itself. A clear error message from the parser is worth more than fancy syntax features. I experimented with recursive descent parsing since the grammar is simple. 2. Making HTML and CSS Part of the Language Instead of embedding HTML as strings, I tried this kind of syntax: Copy code Veyra html { h1("Hello, world!") p("This is web-native syntax.") } The compiler converts these blocks into DOM-like structures under the hood. Lesson: Treating HTML as a first-class construct feels elegant, but it complicates the grammar. Balancing simplicity vs. expressiveness is tricky. 3. Designing a Package Manager I built a lightweight package tool (veyra-pm). Lesson: even a basic package manager quickly runs into dependency resolution issues. I had to decide early whether to reinvent or piggyback on Python’s ecosystem. 4. The Interpreter and Runtime The interpreter executes the AST directly. Lesson: performance is “good enough” for toy programs, but without optimization passes, it won’t scale. Designing a runtime that is both minimal and extensible is its own challenge. 5. Balancing Vision vs. Reality Vision: a “modern, web-native” language that reduces boilerplate. Reality: getting even a toy interpreter to run reliably takes weeks of debugging. The hardest part was not coding but deciding what not to include. Open Questions I’d love feedback from others who’ve tried building languages or runtimes: If you were designing a web-first language, how would you structure the syntax? Is it better to stay standalone or embrace interop with existing ecosystems (e.g., Python packages)? Where’s the sweet spot between “toy” and “usable” for new languages? If You’re Curious I’ve shared the code on GitHub (MIT licensed) and a PyPI package for experimentation: GitHub: https://github.com/nishal21/veyra PyPI: https://pypi.org/project/veyra/ It’s still very alpha (v0.1.1), but I’m continuing to iterate. TL;DR: Writing your own language is 20% syntax and 80% design tradeoffs. For me, the experiment has been a great way to learn about parsing, runtime design, and the challenges of building anything “web-native” from scratch. <!-- SC_ON --> submitted by /u/Radiant-Ad-9540 (https://www.reddit.com/user/Radiant-Ad-9540)
[link] (https://github.com/nishal21/veyra) [comments] (https://www.reddit.com/r/programming/comments/1ntkzfj/what_i_learned_building_a_webnative_programming/)
Release Orchestration: A Practical Guide for 2025
https://www.reddit.com/r/programming/comments/1ntmq69/release_orchestration_a_practical_guide_for_2025/

<!-- SC_OFF -->Hello everyone, I've been working on a brief series of articles about orchestration techniques for releases. I figured I'd post it here in case it helps anyone. The goal of the series is to provide a useful summary of various methods and strategies for planning releases in contemporary development settings. If you have any thoughts or experiences with release orchestration, please share them with us! <!-- SC_ON --> submitted by /u/LevelRelationship732 (https://www.reddit.com/user/LevelRelationship732)
[link] (https://www.dorokhovich.com/blog/release-orchestration?utm=reddit) [comments] (https://www.reddit.com/r/programming/comments/1ntmq69/release_orchestration_a_practical_guide_for_2025/)
Understanding New Turing Machine Results with Simple Programs and Fast Visualizations
https://www.reddit.com/r/programming/comments/1ntn8gy/understanding_new_turing_machine_results_with/

<!-- SC_OFF -->A new talk explains Busy Beaver results, shows how to compute 10↑↑15 in a short program, and shares techniques for efficiently visualizing Turing machines. <!-- SC_ON --> submitted by /u/carlk22 (https://www.reddit.com/user/carlk22)
[link] (https://www.youtube.com/watch?v=ec-ucXJ4x-0) [comments] (https://www.reddit.com/r/programming/comments/1ntn8gy/understanding_new_turing_machine_results_with/)
Built a File-to-File Streaming Pipeline with Kafka Connect
https://www.reddit.com/r/programming/comments/1nto2zd/built_a_filetofile_streaming_pipeline_with_kafka/

<!-- SC_OFF -->Hi everyone,
Thanks to the overwhelming response to my previous Kafka basics post, I decided to explore more advanced concepts, starting with Kafka Connect. I hope you find this blog insightful and enjoyable! If you’re new to Kafka, I encourage you to read this post and share your feedback, I’d love to hear your thoughts. Thank you! 😊 <!-- SC_ON --> submitted by /u/Dhairya-chauhan (https://www.reddit.com/user/Dhairya-chauhan)
[link] (https://open.substack.com/pub/memoizethebackend/p/kafka-connect-in-action-streaming?r=2n87ha&utm_campaign=post&utm_medium=web&showWelcomeOnShare=false) [comments] (https://www.reddit.com/r/programming/comments/1nto2zd/built_a_filetofile_streaming_pipeline_with_kafka/)
Editable pdf with disk access
https://www.reddit.com/r/programming/comments/1ntzd7l/editable_pdf_with_disk_access/

<!-- SC_OFF -->Is it possible to create a PDF with editable fields that can also access files on disk, such as images, graphics, etc.? Or do the two contradict each other due to the PDF's secure format? My closest solution is to create a fillable form and then create the PDF, as the idea is to optimize the format and only change the desired fields. But I don't know if there's a more consistent approach, or if this is possible... <!-- SC_ON --> submitted by /u/MinimumGap9692 (https://www.reddit.com/user/MinimumGap9692)
[link] (https://www.reddit.com/r/programming/submit/?type=LINK) [comments] (https://www.reddit.com/r/programming/comments/1ntzd7l/editable_pdf_with_disk_access/)