Reddit Programming
211 subscribers
1.22K photos
124K links
I will send you newest post from subreddit /r/programming
Download Telegram
C and C++ preprocessor for modern memory safety
https://www.reddit.com/r/programming/comments/1oaqwov/c_and_c_preprocessor_for_modern_memory_safety/

<!-- SC_OFF -->Cdefer A Next-Generation Memory-Safe Preprocessor for C & C++. Bringing modern memory safety and zero-configuration builds to classic C & C++. <!-- SC_ON --> submitted by /u/krishnatorque (https://www.reddit.com/user/krishnatorque)
[link] (https://github.com/krishnaTORQUE/cdefer) [comments] (https://www.reddit.com/r/programming/comments/1oaqwov/c_and_c_preprocessor_for_modern_memory_safety/)
LoC Is a Dumb Metric for Functions
https://www.reddit.com/r/programming/comments/1oaxrdz/loc_is_a_dumb_metric_for_functions/

<!-- SC_OFF -->Hey everyone! It irks me when discussions of function cleanliness are driven by "Lines of Code" as a standard, so I wrote the only guide you'll ever need on when to decompose functions into smaller functions. <!-- SC_ON --> submitted by /u/The_Axolot (https://www.reddit.com/user/The_Axolot)
[link] (https://theaxolot.wordpress.com/2025/10/18/loc-is-a-dumb-metric-for-functions/) [comments] (https://www.reddit.com/r/programming/comments/1oaxrdz/loc_is_a_dumb_metric_for_functions/)
Building a Distributed Log Query Engine with Real-Time Processing
https://www.reddit.com/r/programming/comments/1ob9jlr/building_a_distributed_log_query_engine_with/

<!-- SC_OFF --> Distributed Log Query API: RESTful service with advanced filtering, aggregation, and real-time search capabilities Event-Driven Processing Pipeline: Kafka-based system processing 10K+ logs/second with guaranteed delivery Intelligent Caching Layer: Redis-powered query optimization reducing response times from 2s to 50ms Production Monitoring Stack: Complete observability with Prometheus metrics, Grafana dashboards, and distributed tracing <!-- SC_ON --> submitted by /u/Extra_Ear_10 (https://www.reddit.com/user/Extra_Ear_10)
[link] (https://sdcourse.substack.com/p/day-6-building-a-distributed-log) [comments] (https://www.reddit.com/r/programming/comments/1ob9jlr/building_a_distributed_log_query_engine_with/)
[Article] Gemini-Powered Stock Analysis: Parsing Financial News for Automated Trading Decisions
https://www.reddit.com/r/programming/comments/1obcp2f/article_geminipowered_stock_analysis_parsing/

<!-- SC_OFF -->I carved out a small part of a larger trading project I'm building and wrote a short article on it. Essentially, I'm using Go to scrape articles from Italian finance RSS feeds. The core part is feeding the text to Gemini (LLM) with a specific prompt to get back a structured JSON analysis: stock ticker + action (buy/sell/hold) + a brief reason. The article gets into the weeds of: The exact multilingual prompt needed to get a consistent JSON output from Gemini (low temperature, strict format). Correctly identifying specific Italian market tickers (like STLAM). The Go architecture using concurrency to manage the streams and analysis requests. It's a working component for an automated setup. Any thoughts or feedback on the approach are welcome! Link to the article:https://pgaleone.eu/golang/vertexai/trading/2025/10/20/gemini-powered-stock-analysis-news-feeds/ <!-- SC_ON --> submitted by /u/pgaleone (https://www.reddit.com/user/pgaleone)
[link] (https://pgaleone.eu/golang/vertexai/trading/2025/10/20/gemini-powered-stock-analysis-news-feeds/) [comments] (https://www.reddit.com/r/programming/comments/1obcp2f/article_geminipowered_stock_analysis_parsing/)
GitHub's Climate Action Plan for Developers
https://www.reddit.com/r/programming/comments/1obdyye/githubs_climate_action_plan_for_developers/

<!-- SC_OFF -->Take tangible steps as a developer to green your code and green the planet. Explore over 60,000 green software and climate-focused repositories on GitHub. We've curated tools and projects to help you kick-start your climate action journey and contribute to achieving net zero carbon emissions. <!-- SC_ON --> submitted by /u/augspurger (https://www.reddit.com/user/augspurger)
[link] (https://github.com/social-impact/focus-areas/environmental-sustainability/climate-action-plan-for-developers) [comments] (https://www.reddit.com/r/programming/comments/1obdyye/githubs_climate_action_plan_for_developers/)