Reddit Programming – Telegram
Reddit Programming
212 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Factory Method Design Pattern in Java by Simple Analogy
https://www.reddit.com/r/programming/comments/1n24sjf/factory_method_design_pattern_in_java_by_simple/

<!-- SC_OFF -->Imagine you are a manager, want to hire a different type of developer for each new project: a Backend Developer for an API project, a Frontend Developer for a UI project, and a Mobile Developer for an app project. You (The Client) are the main application code that needs a resource (a developer). The “Developer” Interface is the standard job denoscription outlining the skills all developers must have (e.g., code(), debug()). The Concrete Developers (BackendDev, FrontendDev) are the different products your application can use. The Recruitment Agency (The Factory) is the creator class. You tell them, “I need a developer for a backend project,” without worrying about how they find the candidate. The Agency’s Process (The Factory Method) is getDeveloper(). You, the client, don’t call new BackendDev() directly. You rely on the agency’s factory method to provide the right type of developer based on your need. Specialized agencies (subclasses) might have different hiring pools or processes, but they all provide you with a developer that matches the standard job denoscription. Here is the complete detail of Factory Design Pattern with Examples using Java 21 (https://javatechonline.com/factory-method-design-pattern-in-java-analogy/). <!-- SC_ON --> submitted by /u/erdsingh24 (https://www.reddit.com/user/erdsingh24)
[link] (https://javatechonline.com/factory-method-design-pattern-in-java-analogy/) [comments] (https://www.reddit.com/r/programming/comments/1n24sjf/factory_method_design_pattern_in_java_by_simple/)
Side project showcase
https://www.reddit.com/r/programming/comments/1n27mnh/side_project_showcase/

<!-- SC_OFF -->I’ve been working on a side project for the past 3 weeks. It’s a LeetCode-style platform, but instead of algorithm puzzles, it focuses on real-world SDE scenarios where you apply Linux and bash skills. The problems are inspired by issues developers actually face in their day-to-day work, debugging noscripts, fixing services, troubleshooting infra, etc. I’m also using it as a way to keep learning myself by creating one new problem each day. Would love to hear your thoughts and feedback! <!-- SC_ON --> submitted by /u/Disastrous_Ad1309 (https://www.reddit.com/user/Disastrous_Ad1309)
[link] (https://sttrace.com/) [comments] (https://www.reddit.com/r/programming/comments/1n27mnh/side_project_showcase/)
Part 2: API & DSL for flow-run (LLM orchestration, YAML-first)
https://www.reddit.com/r/programming/comments/1n29gfp/part_2_api_dsl_for_flowrun_llm_orchestration/

<!-- SC_OFF -->I’m doing second part of a system design for flow-run recorded in a live format <!-- SC_ON --> submitted by /u/Historical_Wing_9573 (https://www.reddit.com/user/Historical_Wing_9573)
[link] (https://youtu.be/R-ww0JP-Qao?si=3NlINK0Y0A3tlBJB) [comments] (https://www.reddit.com/r/programming/comments/1n29gfp/part_2_api_dsl_for_flowrun_llm_orchestration/)
🚀 MemCP: 300M rows in 2 minutes – Open Source compressed SQL engine
https://www.reddit.com/r/programming/comments/1n29vs2/memcp_300m_rows_in_2_minutes_open_source/

<!-- SC_OFF -->Hey folks, I’d like to share an Open Source project we’ve been working on: – an in-memory SQL engine that compresses data heavily and runs aggregations extremely fast. Here’s a benchmark from a real test: 300,000,000 rows (raw data: 33 GB JSON data performance traces) Compressed to 1.3 GB RAM SUM + GROUP BY query in ~2 minutes For comparison: MySQL would take hours/days; before optimization memcp was at ~20 minutes 👉 MemCP is Open Source – the goal is to grow a strong community around performance, features, and integrations.
👉 For companies, there’s optional commercial support (performance tuning, architecture consulting, etc.). Why might this be interesting? If you deal with huge logs, IoT sensor data, or transaction data, you know the pain of waiting for queries. MemCP provides a lightweight, compressed alternative to traditional RDBMS and heavy Big Data stacks. I’d love to hear your thoughts, ideas, and of course – contributors are very welcome!
➡️ Repo & docs: memcp.org (https://memcp.org/) Question to you:
Where do you see yourself using something like MemCP – BI, IoT, e-commerce analytics, research, …? <!-- SC_ON --> submitted by /u/Yjskura (https://www.reddit.com/user/Yjskura)
[link] (https://github.com/launix-de/memcp) [comments] (https://www.reddit.com/r/programming/comments/1n29vs2/memcp_300m_rows_in_2_minutes_open_source/)
What’s the one programming concept you wish you had learned earlier?
https://www.reddit.com/r/programming/comments/1n2amrg/whats_the_one_programming_concept_you_wish_you/

<!-- SC_OFF -->I’ve been coding for a while now, and something I’ve realized is that there are always concepts you wish you understood earlier—whether it’s clean code practices, debugging tricks, algorithms, or even version control. For me, it was understanding time complexity. Once I got a proper grip on Big O, my entire approach to problem-solving changed. Curious to know—what’s that one concept, tip, or habit in programming that you wish someone had told you about when you started? <!-- SC_ON --> submitted by /u/AsleepChildhood6085 (https://www.reddit.com/user/AsleepChildhood6085)
[link] (https://skyappzsoftware.in/) [comments] (https://www.reddit.com/r/programming/comments/1n2amrg/whats_the_one_programming_concept_you_wish_you/)
Real-World Case Study: Optimizing PostgreSQL Queries with Functional Indexes
https://www.reddit.com/r/programming/comments/1n2xlf4/realworld_case_study_optimizing_postgresql/

<!-- SC_OFF -->We at Mafiree recently published a case study on query optimization in PostgreSQL using functional indexes. It’s based on an actual production scenario where query performance was improved by rethinking indexing strategy. I’d love to hear how others here approach: Functional indexes in production environments Balancing index overhead with performance gains <!-- SC_ON --> submitted by /u/DbOpsNinja (https://www.reddit.com/user/DbOpsNinja)
[link] (https://www.mafiree.com/readBlog/optimizing-postgresql-queries-with-functional-indexes--a-real-world-case-study) [comments] (https://www.reddit.com/r/programming/comments/1n2xlf4/realworld_case_study_optimizing_postgresql/)