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

Mastering CRUD Operations with Knex.js and PostgreSQL
https://www.reddit.com/r/programming/comments/1la77oe/mastering_crud_operations_with_knexjs_and/

<!-- SC_OFF -->Knex.js is a powerful, open-source SQL query builder for Node.js that simplifies database interactions by allowing developers to write database queries using JavaScript. In this article, we'll explore how to perform CRUD (Create, Read, Update, Delete) and various other operations using Knex.js with a PostgreSQL database. <!-- SC_ON --> submitted by /u/ram-foss (https://www.reddit.com/user/ram-foss)
[link] (https://www.blackslate.io/articles/mastering-crud-operations-with-knex-js-and-postgresql) [comments] (https://www.reddit.com/r/programming/comments/1la77oe/mastering_crud_operations_with_knexjs_and/)

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

Reddit Programming

Everything You Always Wanted To Know About Mathematics | CMU Guide
https://www.reddit.com/r/programming/comments/1la5lmu/everything_you_always_wanted_to_know_about/

<!-- SC_OFF -->Everything You Always Wanted To Know About Mathematics | CMU Guide (https://macro.com/app/pdf/d98af547-f280-438a-8d01-5daaf2be8b80) <!-- SC_ON --> submitted by /u/LeveredRecap (https://www.reddit.com/user/LeveredRecap)
[link] (https://macro.com/app/pdf/d98af547-f280-438a-8d01-5daaf2be8b80) [comments] (https://www.reddit.com/r/programming/comments/1la5lmu/everything_you_always_wanted_to_know_about/)

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

Reddit Programming

Bypassing GitHub Actions policies in the dumbest way possible
https://www.reddit.com/r/programming/comments/1l9vlrd/bypassing_github_actions_policies_in_the_dumbest/

submitted by /u/intelw1zard (https://www.reddit.com/user/intelw1zard)
[link] (https://blog.yossarian.net/2025/06/11/github-actions-policies-dumb-bypass) [comments] (https://www.reddit.com/r/programming/comments/1l9vlrd/bypassing_github_actions_policies_in_the_dumbest/)

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

Reddit Programming

Solving LinkedIn Queens with SMT
https://www.reddit.com/r/programming/comments/1l9qn7c/solving_linkedin_queens_with_smt/

submitted by /u/azhenley (https://www.reddit.com/user/azhenley)
[link] (https://buttondown.com/hillelwayne/archive/solving-linkedin-queens-with-smt/) [comments] (https://www.reddit.com/r/programming/comments/1l9qn7c/solving_linkedin_queens_with_smt/)

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

Reddit Programming

Type-based vs Value-based Reflection
https://www.reddit.com/r/programming/comments/1l9qmtx/typebased_vs_valuebased_reflection/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://brevzin.github.io/c++/2025/06/09/reflection-ts/) [comments] (https://www.reddit.com/r/programming/comments/1l9qmtx/typebased_vs_valuebased_reflection/)

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

Reddit Programming

Quantum Computation Lecture Notes (2022)
https://www.reddit.com/r/programming/comments/1l9qisv/quantum_computation_lecture_notes_2022/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://math.mit.edu/~shor/435-LN/) [comments] (https://www.reddit.com/r/programming/comments/1l9qisv/quantum_computation_lecture_notes_2022/)

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

Reddit Programming

Execute code snippets in isolated containers.
https://www.reddit.com/r/programming/comments/1l9ptba/execute_code_snippets_in_isolated_containers/

<!-- SC_OFF -->I wanted to share a project I've been working on called Taylored Snippets Web. It's an Angular-based web application that lets you create, manage, and run code snippets in a worksheet-style interface. The main goal was to create a secure and isolated environment for code execution for each user. Key Features Isolated Execution: The application has two distinct modes that can be launched using Docker Compose profiles: Multitenant Mode: This is the core feature. It uses a Node.js orchestrator service to spin up a dedicated, isolated Docker container for each user session. This ensures that one user's code can't interfere with another's. Singletenant Mode: A simpler mode for local development that uses a single, shared runner instance for all users. Broad Language Support: The runner can execute code in a wide variety of languages using shebangs, including python3, node, bash, java, ruby, php, and more. Snippet Management: Users can add both text snippets (for annotations) and compute snippets (for executable code) to a worksheet. These can be reordered on the page via drag-and-drop. Live Output: Standard output and errors from code execution are displayed directly in the UI. Tech Stack Frontend: Built with modern Angular using standalone components, zoneless change detection, and Angular Material for the UI. Backend: A Node.js/Express Orchestrator that uses dockerode to manage the lifecycle of runner containers. A Node.js Runner that executes code snippets and communicates results. Communication: Real-time communication between the frontend and the runner is handled with Socket.IO. Deployment: The entire stack is defined in a docker-compose.yml file, making it easy to launch with either the multitenant or singletenant profile. I've put a lot of work into the architecture and would love to hear your thoughts or answer any questions about the implementation. The repo has all the source code, including the CI workflow and Docker setup. <!-- SC_ON --> submitted by /u/sasizza (https://www.reddit.com/user/sasizza)
[link] (https://github.com/tailot/taylored-snippets-web) [comments] (https://www.reddit.com/r/programming/comments/1l9ptba/execute_code_snippets_in_isolated_containers/)

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

Reddit Programming

Converting a session replay to mp4, and fast
https://www.reddit.com/r/programming/comments/1l9lw4w/converting_a_session_replay_to_mp4_and_fast/

submitted by /u/RobKnight_ (https://www.reddit.com/user/RobKnight_)
[link] (https://www.rob.directory/blog/session-replay-to-mp4-and-fast) [comments] (https://www.reddit.com/r/programming/comments/1l9lw4w/converting_a_session_replay_to_mp4_and_fast/)

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

Reddit Programming

Consistency Patterns in 3 diagrams and 165 words
https://www.reddit.com/r/programming/comments/1l9k88v/consistency_patterns_in_3_diagrams_and_165_words/

submitted by /u/stmoreau (https://www.reddit.com/user/stmoreau)
[link] (https://www.systemdesignbutsimple.com/p/consistency-patterns-in-3-diagrams-and-165-words) [comments] (https://www.reddit.com/r/programming/comments/1l9k88v/consistency_patterns_in_3_diagrams_and_165_words/)

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

Reddit Programming

How JavaScript Was Written Back In the Day
https://www.reddit.com/r/programming/comments/1l9j3ba/how_javascript_was_written_back_in_the_day/

submitted by /u/Practical-Ideal6236 (https://www.reddit.com/user/Practical-Ideal6236)
[link] (https://www.trevorlasn.com/blog/revisiting-legacy-javascript) [comments] (https://www.reddit.com/r/programming/comments/1l9j3ba/how_javascript_was_written_back_in_the_day/)

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

Reddit Programming

The Roc programming language with Richard Feldman, creator of Roc (Changelog Interviews #645)
https://www.reddit.com/r/programming/comments/1l9h191/the_roc_programming_language_with_richard_feldman/

<!-- SC_OFF -->Jerod chats with Richard Feldman about Roc – his fast, friendly, functional language inspired by Richard’s love of Elm. Roc takes many of Elm’s ideas beyond the frontend and introduces some great ideas of its own. Get ready to learn about static dispatch, platforms vs applications, opportunistic mutation, purity inference, and a whole lot more. <!-- SC_ON --> submitted by /u/bosyluke (https://www.reddit.com/user/bosyluke)
[link] (https://changelog.fm/645) [comments] (https://www.reddit.com/r/programming/comments/1l9h191/the_roc_programming_language_with_richard_feldman/)

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

Reddit Programming

Writing a Verified Postfix Expression Calculator in Ada/SPARK
https://www.reddit.com/r/programming/comments/1l9gjyp/writing_a_verified_postfix_expression_calculator/

submitted by /u/Fabien_C (https://www.reddit.com/user/Fabien_C)
[link] (https://pyjarrett.github.io/2025/06/10/postfix-calculator.html) [comments] (https://www.reddit.com/r/programming/comments/1l9gjyp/writing_a_verified_postfix_expression_calculator/)

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

Reddit Programming

Celebrating GitHub's 1 billionth repo
https://www.reddit.com/r/programming/comments/1l9eb7b/celebrating_githubs_1_billionth_repo/

<!-- SC_OFF -->💩 <!-- SC_ON --> submitted by /u/dpdoggie (https://www.reddit.com/user/dpdoggie)
[link] (https://github.com/AasishPokhrel/repository/issues/1) [comments] (https://www.reddit.com/r/programming/comments/1l9eb7b/celebrating_githubs_1_billionth_repo/)

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

Reddit Programming

Secret to 100% Type-Safe TypeScript - tRPC eliminated our API type hell
https://www.reddit.com/r/programming/comments/1l9dcsc/secret_to_100_typesafe_typescript_trpc_eliminated/

<!-- SC_OFF -->After years of fighting with the disconnect between my frontend and backend types, I finally discovered tRPC, and it's been a complete game-changer for me. Before tRPC, I tried everything: Manual type synchronization (tedious and error-prone) REST with OpenAPI/Swagger (clunky build steps and generated code) GraphQL with code generation (powerful but complex for our needs) With tRPC, I've eliminated 100% of our API type errors. No more runtime surprises, no more manual type duplication, just seamless end-to-end type safety. The developer experience is incredible - full autocomplete, instant feedback when backend types change, and virtually no runtime overhead. I wrote about how technical frustrations like API type hell contribute to developer burnout in my article The tRPC Secret to 100% Type-Safe TypeScript : Stop API Type Hell (https://beyondit.blog/blogs/The-tRPC-Secret-to-100-Type-Safe-TypeScript). Has anyone else here made the switch to tRPC? What's been your experience? For those who haven't tried it yet, what's your current approach to the TypeScript API type problem? <!-- SC_ON --> submitted by /u/WillingnessFun7051 (https://www.reddit.com/user/WillingnessFun7051)
[link] (https://beyondit.blog/blogs/The-tRPC-Secret-to-100-Type-Safe-TypeScript) [comments] (https://www.reddit.com/r/programming/comments/1l9dcsc/secret_to_100_typesafe_typescript_trpc_eliminated/)

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

Reddit Programming

Supercharge your Python library using AST parsing
https://www.reddit.com/r/programming/comments/1l9bjrt/supercharge_your_python_library_using_ast_parsing/

submitted by /u/ByteMe95 (https://www.reddit.com/user/ByteMe95)
[link] (https://www.youtube.com/watch?v=A0vR3l1X-CU) [comments] (https://www.reddit.com/r/programming/comments/1l9bjrt/supercharge_your_python_library_using_ast_parsing/)

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

Reddit Programming

When Google Sneezes, the Whole World Catches a Cold | Forge Code
https://www.reddit.com/r/programming/comments/1la5u5j/when_google_sneezes_the_whole_world_catches_a/

<!-- SC_OFF -->Today's Google Cloud IAM outage cascaded through major platforms including Cloudflare, Anthropic, Spotify, Discord, and Replit, highlighting key reliability issues. Here's what happened, how it affected popular services, and key takeaways for developers aiming for more resilient architecture. TL;DR: Google Cloud outage took down Cloudflare, Anthropic (Claude APIs), Spotify, Discord, and many others. Key lesson: don't put all your eggs in one basket, graceful fallback patterns matter! <!-- SC_ON --> submitted by /u/West-Chocolate2977 (https://www.reddit.com/user/West-Chocolate2977)
[link] (https://forgecode.dev/blog/gcp-cloudflare-anthropic-outage/) [comments] (https://www.reddit.com/r/programming/comments/1la5u5j/when_google_sneezes_the_whole_world_catches_a/)

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

Reddit Programming

I Don't Want to Pay a Subscription To Program
https://www.reddit.com/r/programming/comments/1l9w900/i_dont_want_to_pay_a_subscription_to_program/

submitted by /u/rianhunter (https://www.reddit.com/user/rianhunter)
[link] (https://thelig.ht/subscription-hell/) [comments] (https://www.reddit.com/r/programming/comments/1l9w900/i_dont_want_to_pay_a_subscription_to_program/)

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

Reddit Programming

Patterns for Modeling Overlapping Variant Data in Rust
https://www.reddit.com/r/programming/comments/1l9qnep/patterns_for_modeling_overlapping_variant_data_in/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://mcmah309.github.io/posts/patterns-for-modeling-overlapping-variant-data-in-rust) [comments] (https://www.reddit.com/r/programming/comments/1l9qnep/patterns_for_modeling_overlapping_variant_data_in/)

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

Reddit Programming

ELF Linking and Symbol Resolution
https://www.reddit.com/r/programming/comments/1l9qn3d/elf_linking_and_symbol_resolution/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://noratrieb.dev/blog/posts/elf-linkage/) [comments] (https://www.reddit.com/r/programming/comments/1l9qn3d/elf_linking_and_symbol_resolution/)

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

Reddit Programming

The Python Language Summit 2025
https://www.reddit.com/r/programming/comments/1l9qlod/the_python_language_summit_2025/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://pyfound.blogspot.com/2025/06/python-language-summit-2025.html) [comments] (https://www.reddit.com/r/programming/comments/1l9qlod/the_python_language_summit_2025/)

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

Reddit Programming

Node.js Interview Q&A: Day 10
https://www.reddit.com/r/programming/comments/1l9qcz5/nodejs_interview_qa_day_10/

submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/node-js-interview-q-a-day-10-88fe56e14c31) [comments] (https://www.reddit.com/r/programming/comments/1l9qcz5/nodejs_interview_qa_day_10/)

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

Reddit Programming

How Apple streamed the F1 movie trailer with haptic special effects
https://www.reddit.com/r/programming/comments/1l9myyi/how_apple_streamed_the_f1_movie_trailer_with/

submitted by /u/GeneticGenesis (https://www.reddit.com/user/GeneticGenesis)
[link] (https://www.mux.com/blog/how-apple-made-the-f1-movie-trailer-literally-shake-things-up) [comments] (https://www.reddit.com/r/programming/comments/1l9myyi/how_apple_streamed_the_f1_movie_trailer_with/)

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

Reddit Programming

Simplicity: Sustainable, Humane & Effective Software Development • Pragmatic Dave Thomas & Sarah Taraporewalla
https://www.reddit.com/r/programming/comments/1l9l1tr/simplicity_sustainable_humane_effective_software/

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

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

Reddit Programming

System Design Basics - ACID and Transactions
https://www.reddit.com/r/programming/comments/1l9jqlc/system_design_basics_acid_and_transactions/

submitted by /u/javinpaul (https://www.reddit.com/user/javinpaul)
[link] (https://javarevisited.substack.com/p/system-design-basics-acid-and-transactions) [comments] (https://www.reddit.com/r/programming/comments/1l9jqlc/system_design_basics_acid_and_transactions/)

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

Reddit Programming

Introducing hdwallet.js (1.0.0-beta.0) - A complete Hierarchical Deterministic (HD) Wallet generator for 200+ cryptocurrencies, built with TypeScript.
https://www.reddit.com/r/programming/comments/1l9iu4v/introducing_hdwalletjs_100beta0_a_complete/

<!-- SC_OFF -->It allows the handling of multiple coins, multiple accounts, external and internal chains per account, and millions of addresses per chain. <!-- SC_ON --> submitted by /u/meherett (https://www.reddit.com/user/meherett)
[link] (https://github.com/hdwallet-io/hdwallet.js) [comments] (https://www.reddit.com/r/programming/comments/1l9iu4v/introducing_hdwalletjs_100beta0_a_complete/)

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

Reddit Programming

How I Use Claude Code
https://www.reddit.com/r/programming/comments/1l9gsge/how_i_use_claude_code/

submitted by /u/thewritingwallah (https://www.reddit.com/user/thewritingwallah)
[link] (https://spiess.dev/blog/how-i-use-claude-code) [comments] (https://www.reddit.com/r/programming/comments/1l9gsge/how_i_use_claude_code/)

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

Reddit Programming

The Illusion of Thinking
https://www.reddit.com/r/programming/comments/1l9ei01/the_illusion_of_thinking/

submitted by /u/30FootGimmePutt (https://www.reddit.com/user/30FootGimmePutt)
[link] (https://machinelearning.apple.com/research/illusion-of-thinking) [comments] (https://www.reddit.com/r/programming/comments/1l9ei01/the_illusion_of_thinking/)

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

Reddit Programming

A subtle data race in Go
https://www.reddit.com/r/programming/comments/1l9ducl/a_subtle_data_race_in_go/

submitted by /u/broken_broken_ (https://www.reddit.com/user/broken_broken_)
[link] (https://gaultier.github.io/blog/a_subtle_data_race_in_go.html) [comments] (https://www.reddit.com/r/programming/comments/1l9ducl/a_subtle_data_race_in_go/)

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

Reddit Programming

Zig-style generics are not well-suited for most languages
https://www.reddit.com/r/programming/comments/1l9bnod/zigstyle_generics_are_not_wellsuited_for_most/

submitted by /u/stackoverflooooooow (https://www.reddit.com/user/stackoverflooooooow)
[link] (https://typesanitizer.com/blog/zig-generics.html) [comments] (https://www.reddit.com/r/programming/comments/1l9bnod/zigstyle_generics_are_not_wellsuited_for_most/)

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

Reddit Programming

Local Variables as Accidental Breadcrumbs (for Faster Debugging)
https://www.reddit.com/r/programming/comments/1l914f7/local_variables_as_accidental_breadcrumbs_for/

submitted by /u/klaasvanschelven (https://www.reddit.com/user/klaasvanschelven)
[link] (https://www.bugsink.com/blog/local-variables-as-accidental-breadcrumbs/) [comments] (https://www.reddit.com/r/programming/comments/1l914f7/local_variables_as_accidental_breadcrumbs_for/)

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