Reddit Programming – Telegram
Reddit Programming
211 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
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/)
Axe - A Systems Programming Language with Builtin Parallelism and No GC
https://www.reddit.com/r/programming/comments/1p8fbvz/axe_a_systems_programming_language_with_builtin/

<!-- SC_OFF -->The language is now capable of compiling a substantial portion of its own source code using a single-pass C back-end. The self-hosted compiler includes a handwritten lexer and a parser, with an arena-based allocator to eliminate GC complexity. The primary goals for the project are: First-class parallel and concurrent constructs built directly into the language, strong static memory and type guarantees, and a toolchain suitable for building high-performance software. Repo: https://github.com/axelang/axe <!-- SC_ON --> submitted by /u/eternal_3294 (https://www.reddit.com/user/eternal_3294)
[link] (https://axelang.org/) [comments] (https://www.reddit.com/r/programming/comments/1p8fbvz/axe_a_systems_programming_language_with_builtin/)
JEP draft: Windows/gcc Port
https://www.reddit.com/r/programming/comments/1p8pnfr/jep_draft_windowsgcc_port/

<!-- SC_OFF -->I did post this to the Java subreddit quite some time ago, but didn't have the idea of crossposting it back then. I did find this proposal fairly interesting though, so I just thought I'd share it again to see what others would think of it. <!-- SC_ON --> submitted by /u/United_Swordfish_935 (https://www.reddit.com/user/United_Swordfish_935)
[link] (https://openjdk.org/jeps/8288293) [comments] (https://www.reddit.com/r/programming/comments/1p8pnfr/jep_draft_windowsgcc_port/)
Improving Zsh vi-mode ergonomics with inline man-page lookups (zsh-vi-man)
https://www.reddit.com/r/programming/comments/1p8t8ni/improving_zsh_vimode_ergonomics_with_inline/

<!-- SC_OFF -->I wrote a small extension called zsh-vi-man that hooks into Zsh’s line editor. When your cursor is on a command-line option, pressing Shift+K opens the relevant part of the man page. It’s similar to how Vim’s K works, but adapted for shell usage by identifying the token under the cursor and jumping to the matching section in the manual. <!-- SC_ON --> submitted by /u/imreallytuna (https://www.reddit.com/user/imreallytuna)
[link] (https://github.com/TunaCuma/zsh-vi-man) [comments] (https://www.reddit.com/r/programming/comments/1p8t8ni/improving_zsh_vimode_ergonomics_with_inline/)
Thinning layers
https://www.reddit.com/r/programming/comments/1p8xtfy/thinning_layers/

<!-- SC_OFF -->"Running containers is fun, until you have to wait for 5 hours to download all the image layers from a rate-limited server through your brittle mobile connection. Let's dive a little deeper into what is actually stored in those layers and how to make them thinner." <!-- SC_ON --> submitted by /u/swdevtest (https://www.reddit.com/user/swdevtest)
[link] (https://writethat.blog/layers.html) [comments] (https://www.reddit.com/r/programming/comments/1p8xtfy/thinning_layers/)
Google CEO Pushes ‘Vibe Coding’ — But Real Developers Know It's Not Magic
https://www.reddit.com/r/programming/comments/1p904p5/google_ceo_pushes_vibe_coding_but_real_developers/

<!-- SC_OFF -->Google CEO Sundar Pichai says AI will make coding accessible to everyone, but engineers know its limitations. <!-- SC_ON --> submitted by /u/disforwork (https://www.reddit.com/user/disforwork)
[link] (https://www.interviewquery.com/p/ai-coding-vibe-coding-explained) [comments] (https://www.reddit.com/r/programming/comments/1p904p5/google_ceo_pushes_vibe_coding_but_real_developers/)
Fixmas: Incident Response Advent Calendar
https://www.reddit.com/r/programming/comments/1p952p1/fixmas_incident_response_advent_calendar/

<!-- SC_OFF -->Hey all, my team and I put together Fixmas, a little incident response advent calendar to bring some laughs during a season that can be stressful for anyone who has been on call. <!-- SC_ON --> submitted by /u/lifeinmarz (https://www.reddit.com/user/lifeinmarz)
[link] (http://uptimelabs.io/fixmas) [comments] (https://www.reddit.com/r/programming/comments/1p952p1/fixmas_incident_response_advent_calendar/)
Shai-Hulud-malicious-packages, an continuously updated threat-intel dataset for malicious NPM packages
https://www.reddit.com/r/programming/comments/1p9i6qq/shaihuludmaliciouspackages_an_continuously/

<!-- SC_OFF -->Hi everyone, I’ve put together an automated threat-intel repo that aggregates all known malicious NPM packages into a single machine-readable JSON file. Useful for code scanners, CI pipelines, or anyone monitoring supply-chain risk. Repo: https://github.com/hemachandsai/shai-hulud-malicious-packages What it does Pulls malicious-package advisories from OSV, GitHub Security Advisories, and Amazon Inspector Normalizes everything into one consolidated malicious_npm_packages.json Automatically updates every 30 minutes Designed to be dropped directly into scanners or automation workflows Current coverage Tracking 149k+ confirmed malicious packages, including entries from the Shai-Hulud Phase-1 dataset. If you’re working in supply-chain security or doing npm-related scanning, would love feedback or suggestions. <!-- SC_ON --> submitted by /u/TheExplorer777 (https://www.reddit.com/user/TheExplorer777)
[link] (https://github.com/hemachandsai/shai-hulud-malicious-packages) [comments] (https://www.reddit.com/r/programming/comments/1p9i6qq/shaihuludmaliciouspackages_an_continuously/)
What do programmers actually do besides typing code?
https://www.reddit.com/r/programming/comments/1p9icgh/what_do_programmers_actually_do_besides_typing/

<!-- SC_OFF -->I’ve been thinking about this. When people say “programmer,” it sounds like our job is just typing code all day. But that feels way too shallow. What are we actually doing behind the scenes? How would you describe the real work of programming beyond just writing code? <!-- SC_ON --> submitted by /u/Mithun_kp (https://www.reddit.com/user/Mithun_kp)
[link] (https://medium.com/@slidingbits/what-is-programming-really-a-beginners-guide-to-thinking-like-a-programmer-12054d8187dd) [comments] (https://www.reddit.com/r/programming/comments/1p9icgh/what_do_programmers_actually_do_besides_typing/)