Reddit Programming
201 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
Learn Observer Pattern the Easy Way | Java Design Patterns
https://www.reddit.com/r/programming/comments/1ro52s1/learn_observer_pattern_the_easy_way_java_design/

<!-- SC_OFF -->Documenting my journey learning design patterns. Today: Observer Pattern Simple explanation + example. Would love feedback from devs here. <!-- SC_ON --> submitted by /u/Big-Conflict-2600 (https://www.reddit.com/user/Big-Conflict-2600)
[link] (https://youtu.be/SxTmZ5QLTEc) [comments] (https://www.reddit.com/r/programming/comments/1ro52s1/learn_observer_pattern_the_easy_way_java_design/)
Building a strict RFC 8259 JSON parser: what most parsers silently accept and why it matters for deterministic systems
https://www.reddit.com/r/programming/comments/1rp0zl4/building_a_strict_rfc_8259_json_parser_what_most/

<!-- SC_OFF -->Most JSON parsers make deliberate compatibility choices: lone surrogates get replaced, duplicate keys get silently resolved, and non-zero numbers that underflow to IEEE 754 zero are accepted without error. These are reasonable defaults for application code. They become correctness failures when the parsed JSON feeds a system that hashes, signs, or compares by raw bytes. If two parsers handle the same malformed input differently, the downstream bytes diverge, the hash diverges, and the signature fails. This article walks through building a strict RFC 8259 parser in Go that rejects what lenient parsers silently accept. It covers UTF-8 validation in two passes (bulk upfront, then incremental for semantic constraints like noncharacter rejection and surrogate detection on decoded code points), surrogate pair handling where lone surrogates are rejected per RFC 7493 while valid pairs are decoded and reassembled, duplicate key detection after escape decoding (because "\u0061" and "a" are the same key), number grammar enforcement in four layers (leading zeros, missing fraction digits, lexical negative zero, and overflow/underflow detection), and seven independent resource bounds for denial-of-service protection on untrusted input. The parser exists because canonicalization requires a one-to-one mapping between accepted input and canonical output. Silent leniency breaks that mapping. The article includes the actual implementation code for each section. <!-- SC_ON --> submitted by /u/UsrnameNotFound-404 (https://www.reddit.com/user/UsrnameNotFound-404)
[link] (https://lattice-substrate.github.io/blog/2026/02/26/strict-rfc8259-json-parser/) [comments] (https://www.reddit.com/r/programming/comments/1rp0zl4/building_a_strict_rfc_8259_json_parser_what_most/)
The hidden cost of 'lightweight' frameworks: Our journey from Tauri to native Rust
https://www.reddit.com/r/programming/comments/1rp80sx/the_hidden_cost_of_lightweight_frameworks_our/

<!-- SC_OFF -->My experience working with WebKit, and why we are almost ditching it at Hopp <!-- SC_ON --> submitted by /u/konsalexee (https://www.reddit.com/user/konsalexee)
[link] (https://gethopp.app/blog/hate-webkit) [comments] (https://www.reddit.com/r/programming/comments/1rp80sx/the_hidden_cost_of_lightweight_frameworks_our/)
New open-source multi-agent framework in Go — interesting alternative to Python-based AI tooling
https://www.reddit.com/r/programming/comments/1rpp76t/new_opensource_multiagent_framework_in_go/

<!-- SC_OFF -->Came across this new open-source project in Go, implementing a multi-agent orchestration framework (similar spirit to some Python AI agent libraries, but Go-native). Notable aspects: agents + team coordination chain-of-thought style workflows clean Go modular structure built-in examples + docs optional dashboard GitHub: github.com/Ecook14/gocrewwai Nice to see something exploring the AI tooling space outside the usual Python ecosystem. <!-- SC_ON --> submitted by /u/Top-Question2614 (https://www.reddit.com/user/Top-Question2614)
[link] (http://github.com/Ecook14/gocrewwai) [comments] (https://www.reddit.com/r/programming/comments/1rpp76t/new_opensource_multiagent_framework_in_go/)