Reddit Programming – Telegram
Reddit Programming
211 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Where do you draw the line between Python and a faster language?
https://www.reddit.com/r/programming/comments/1p730ev/where_do_you_draw_the_line_between_python_and_a/

<!-- SC_OFF -->I love Python for speed of development, readability, and libraries but I sometimes feel guilty when performance becomes a bottleneck. Curious how others decide when it’s time to switch to C++/Rust/Go instead of optimizing Python. Do you usually push Python as far as possible first, or do you switch early when performance matters? <!-- SC_ON --> submitted by /u/Creepy-Valuable-3685 (https://www.reddit.com/user/Creepy-Valuable-3685)
[link] (https://benchmarksgame-team.pages.debian.net/benchmarksgame/) [comments] (https://www.reddit.com/r/programming/comments/1p730ev/where_do_you_draw_the_line_between_python_and_a/)
Learned about vendor lock-in the hard way during my internship. does anyone talk about this at school?
https://www.reddit.com/r/programming/comments/1p7mvxw/learned_about_vendor_lockin_the_hard_way_during/

<!-- SC_OFF -->Just finished my internship at a fintech company (think of Robinhood) and learned something they definitely don't teach you in school. So I was on the data platform team and there was this whole drama while I was there. Basically the company went all-in on one of the big cloud vendors for their data stuff a couple years ago. Everything was integrated, their catalog, governance, the whole stack. Then out of nowhere the vendor raised prices like 40% with barely any notice. The engineering managers were losing their minds. The problem? All the company's metadata was trapped in the vendor's proprietary system. Like literally years of data lineage, access policies, everything. They couldn't just switch because migrating would take almost a year of engineering time. So they just had to pay lol. One of the senior engineers told me this happens all the time. He called it "the walled garden trap." Big companies like Databricks, Snowflake, AWS all want you locked into their ecosystem. Once you're in, switching costs are insane. Made me start reading about open source alternatives. Found this article that explains it way better than I can: https://medium.com/datastrato/if-youre-not-all-in-on-databricks-why-metadata-freedom-matters-35cc5b15b24e](https://medium.com/datastrato/if-youre-not-all-in-on-databricks-why-metadata-freedom-matters-35cc5b15b24e (https://medium.com/datastrato/if-youre-not-all-in-on-databricks-why-metadata-freedom-matters-35cc5b15b24e%5D(https://medium.com/datastrato/if-youre-not-all-in-on-databricks-why-metadata-freedom-matters-35cc5b15b24e) There's this Apache project called Gravitino that's basically an open source metadata layer so you're not dependent on one vendor. Kinda interesting from a systems design perspective tbh. Anyway this whole experience made me think: Do companies actually consider vendor lock-in when choosing tech stacks or do they just go with whatever's easiest? For those who've worked at startups vs big tech, is this more of a startup problem? Is open source infra actually viable for most companies or is it too much ops overhead? Anyone else learn stuff like this during internships that completely changed how you think about tech decisions? Feels like we learn algorithms and data structures but nobody talks about the actual business/infrastructure tradeoffs you deal with in industry. <!-- SC_ON --> submitted by /u/Icy-Perception0 (https://www.reddit.com/user/Icy-Perception0)
[link] (https://medium.com/datastrato/if-youre-not-all-in-on-databricks-why-metadata-freedom-matters-35cc5b15b24e) [comments] (https://www.reddit.com/r/programming/comments/1p7mvxw/learned_about_vendor_lockin_the_hard_way_during/)
I built a distributed message streaming platform from scratch that's faster than Kafka
https://www.reddit.com/r/programming/comments/1p7oqbc/i_built_a_distributed_message_streaming_platform/

<!-- SC_OFF -->I've been working on Walrus, a message streaming system (think Kafka-like) written in Rust. The focus was on making the storage layer as fast as possible. Performance highlights: 1.2 million writes/second (no fsync) 5,000 writes/second (fsync) Beats both Kafka and RocksDB in benchmarks (see graphs in README) How it's fast: The storage engine is custom-built instead of using existing libraries. On Linux, it uses io_uring for batched writes. On other platforms, it falls back to regular pread/pwrite syscalls. You can also use memory-mapped files if you prefer. Each topic is split into segments (~1M messages each). When a segment fills up, it automatically rolls over to a new one and distributes leadership to different nodes. This keeps the cluster balanced without manual configuration. Distributed setup: The cluster uses Raft for coordination, but only for metadata (which node owns which segment). The actual message data never goes through Raft, so writes stay fast. If you send a message to the wrong node, it just forwards it to the right one. You can also use the storage engine standalone as a library (walrus-rust on crates.io) if you just need fast local logging. I also wrote a TLA+ spec to verify the distributed parts work correctly (segment rollover, write safety, etc). Code: https://github.com/nubskr/walrus Would love to hear what you think, especially if you've worked on similar systems! <!-- SC_ON --> submitted by /u/Ok_Marionberry8922 (https://www.reddit.com/user/Ok_Marionberry8922)
[link] (https://github.com/nubskr/walrus) [comments] (https://www.reddit.com/r/programming/comments/1p7oqbc/i_built_a_distributed_message_streaming_platform/)
A Very Fast Date Algorithm
https://www.reddit.com/r/programming/comments/1p7x0dh/a_very_fast_date_algorithm/

<!-- SC_OFF -->The article outlines a faster way to turn a day number into a calendar date. It replaces most divisions with a few multiplications and shifts, and it simplifies the process by counting backward from a fixed year. Pseudocode and benchmarks are included to compare with older methods. It's a nice look at a common routine that still has room for refinement. <!-- SC_ON --> submitted by /u/AWildMonomAppears (https://www.reddit.com/user/AWildMonomAppears)
[link] (https://www.benjoffe.com/fast-date-64) [comments] (https://www.reddit.com/r/programming/comments/1p7x0dh/a_very_fast_date_algorithm/)
How websockets work in 10mins
https://www.reddit.com/r/programming/comments/1p8126a/how_websockets_work_in_10mins/

<!-- SC_OFF -->pretty much everything you need to know about websockets in 10 mins. (note: i love websockets. i hope you do too. and i’d love to hear about some other optimization techniques in multiplayer games that you’re familiar with.) <!-- SC_ON --> submitted by /u/FederalRace5393 (https://www.reddit.com/user/FederalRace5393)
[link] (https://www.deepintodev.com/blog/how-websockets-work) [comments] (https://www.reddit.com/r/programming/comments/1p8126a/how_websockets_work_in_10mins/)
Library Management System in Java Swing – Full Course (2025)
https://www.reddit.com/r/programming/comments/1p82aqj/library_management_system_in_java_swing_full/

<!-- SC_OFF -->📚 Complete Library Management System in Java Swing – Full Course (2025) This is a full step-by-step practical course where we build a complete Library Management System using Java Swing and MySQL.
It is perfect for beginners and intermediate students who want to learn real desktop application development. 🔧 What you will learn Java Swing UI design JDBC and MySQL integration Login and user authentication Manage Books Form Manage Students / Members CRUD operations Unique ID generation Search and report features Real project structure 🎯 Course Goal By the end of the course, you will be able to build professional desktop applications using Java Swing. Playlist Link 👉 (https://www.youtube.com/playlist?list=PLR_BEPp_tMBv2T4zT7Z0rL-zgLL6WxEmF) <!-- SC_ON --> submitted by /u/Substantial-Log-9305 (https://www.reddit.com/user/Substantial-Log-9305)
[link] (https://www.youtube.com/playlist?list=PLR_BEPp_tMBv2T4zT7Z0rL-zgLL6WxEmF) [comments] (https://www.reddit.com/r/programming/comments/1p82aqj/library_management_system_in_java_swing_full/)
How Java Virtual Threads Simplify Reactor APIs
https://www.reddit.com/r/programming/comments/1p82bl8/how_java_virtual_threads_simplify_reactor_apis/

<!-- SC_OFF -->How virtual threads saved me from becoming a meme! 😜 “I came dangerously close to becoming a walkin Java meme - until virtual threads swooped in like a caffeinated superhero and saved me from endless callback hell!” <!-- SC_ON --> submitted by /u/shift_devs (https://www.reddit.com/user/shift_devs)
[link] (https://shiftmag.dev/how-virtual-threads-saved-me-from-becoming-a-meme-7167/) [comments] (https://www.reddit.com/r/programming/comments/1p82bl8/how_java_virtual_threads_simplify_reactor_apis/)
Kafka Streams: The Complete Guide to Interactive Queries and Real-Time State Stores
https://www.reddit.com/r/programming/comments/1p83h3s/kafka_streams_the_complete_guide_to_interactive/

<!-- SC_OFF -->Hey all — I’ve been working on streaming systems lately (mostly for finance / real-time data pipelines), and one issue kept coming up: how do you efficiently query the state inside a streaming app while it’s running? So I wrote up a short guide to Kafka Streams’ interactive-query mode — how to store state via state-stores, and how to fetch current values at runtime (e.g. latest aggregates, sensor-level state, etc.). I tried to keep the write-up simple: minimal jargon, example code, and a clear walkthrough. If you’re building real-time dashboards, stateful event processing, or scalable microservices using Kafka Streams — I thought this might help. Feedback / discussion welcome. <!-- SC_ON --> submitted by /u/SmoothYogurtcloset65 (https://www.reddit.com/user/SmoothYogurtcloset65)
[link] (https://medium.com/@venkateshwagh777/kafka-streams-guide-to-interactive-queries-and-real-time-state-stores-3b97dad1936f) [comments] (https://www.reddit.com/r/programming/comments/1p83h3s/kafka_streams_the_complete_guide_to_interactive/)
Understanding the Composite Design Pattern in Go: A Practical Guide
https://www.reddit.com/r/programming/comments/1p86p7b/understanding_the_composite_design_pattern_in_go/

<!-- SC_OFF -->I recently wrote a blog post breaking down the Composite Design Pattern in a way that makes sense for Go developers. Most resources explain Composite using Java/C++ examples or get overly theoretical. This one stays practical and shows how the pattern naturally fits into real Go use cases like filesystems, ASTs, CLI commands, and UI trees. The post includes: The official definition of the Composite Pattern A simple explanation of the core idea A clean file–folder example implemented in Go When you should (and shouldn’t) use Composite Common mistakes to avoid Pros and cons Real-world parallels in Go’s ecosystem If you're working with hierarchical structures or recursive behavior, you might find it helpful. Here’s the link: https://medium.com/design-bootcamp/understanding-the-composite-design-pattern-in-go-a-practical-guide-750710e66f4c <!-- SC_ON --> submitted by /u/priyankchheda15 (https://www.reddit.com/user/priyankchheda15)
[link] (https://medium.com/design-bootcamp/understanding-the-composite-design-pattern-in-go-a-practical-guide-750710e66f4c) [comments] (https://www.reddit.com/r/programming/comments/1p86p7b/understanding_the_composite_design_pattern_in_go/)
Java Swing Flip Card UI | Fetch Data from MySQL Database (Part 2)
https://www.reddit.com/r/programming/comments/1p8cbcp/java_swing_flip_card_ui_fetch_data_from_mysql/

<!-- SC_OFF -->In this video, we continue our modern Java Swing Flip Card project.
You will learn how to connect your Java application to a MySQL database and dynamically load employee data—such as image, name, phone, email, and department—directly into the flip card. 🔹 What you will learn in Part 2:
• Connect Java Swing to MySQL
• Use Connection, PreparedStatement, and ResultSet
• Fetch employee data from the database
• Display records inside the animated flip card Watch Full Tutorials on Youtube:
Java Swing Flip Card UI | Fetch Data from MySQL Database (Part 2) | Display Data in Flip Card (https://www.youtube.com/watch?v=Dj83diwpKRg) <!-- SC_ON --> submitted by /u/Substantial-Log-9305 (https://www.reddit.com/user/Substantial-Log-9305)
[link] (https://youtu.be/Dj83diwpKRg) [comments] (https://www.reddit.com/r/programming/comments/1p8cbcp/java_swing_flip_card_ui_fetch_data_from_mysql/)
What does that look like in code ?
https://www.reddit.com/r/programming/comments/1p8dkw3/what_does_that_look_like_in_code/

<!-- SC_OFF -->a system that takes natural language denoscriptions and converts them into both pseudo-code and executable code across multiple domains <!-- SC_ON --> submitted by /u/reallylonguserthing (https://www.reddit.com/user/reallylonguserthing)
[link] (https://github.com/jegly/What-Does-That-Look-Like-in-Code) [comments] (https://www.reddit.com/r/programming/comments/1p8dkw3/what_does_that_look_like_in_code/)