Reddit Programming
206 subscribers
1.22K photos
122K links
I will send you newest post from subreddit /r/programming
Download Telegram
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/)
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/)
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/)
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/)
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/)