Reddit Programming – Telegram
Reddit Programming
211 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
How I resolved the golang struct field name conundrum
https://www.reddit.com/r/programming/comments/1p5t024/how_i_resolved_the_golang_struct_field_name/

<!-- SC_OFF -->I explain a few methods to retrieve a struct field name, going from a runtime to a code generation solutions.
I wonder, how do you resolve this challenge in your language of choice ? <!-- SC_ON --> submitted by /u/Turbulent_Zone157 (https://www.reddit.com/user/Turbulent_Zone157)
[link] (https://alvarolm.github.io/named) [comments] (https://www.reddit.com/r/programming/comments/1p5t024/how_i_resolved_the_golang_struct_field_name/)
Notes from building a B+Tree storage engine in .NET — design trade-offs and unexpected challenges
https://www.reddit.com/r/programming/comments/1p6blny/notes_from_building_a_btree_storage_engine_in_net/

<!-- SC_OFF -->I’ve been exploring B+Tree implementations recently and decided to build a small storage engine in .NET as a way to understand the lower-level behavior of on-disk indexing structures. I wanted to share some of the interesting technical challenges I ran into — in case others find the internals fun to think about. Some of the more interesting aspects were: • Page layout decisions
Choosing the right fixed-size page format ended up being more subtle than expected. Even small choices (header size, key encoding, how much space to reserve for split operations) had major downstream effects on fragmentation and insert performance. • Handling node splits efficiently
B+Tree splits are straightforward in memory, but on disk the cost model is very different. Ensuring minimal writes and predictable locality forced me to rethink a few “textbook” algorithms. • Concurrency vs. simplicity
I experimented with optimistic vs. coarse-grained locking. Even implementing a read-optimized path required careful handling of pointer updates during splits. • Crash-safety without a full WAL
One interesting constraint was trying to maintain reasonable crash-safety guarantees without embedding a full write-ahead log. Page write ordering and atomic metadata updates become tricky puzzles. • Benchmarking surprises
Some operations that I expected to be expensive (like sequential inserts) performed far better than random inserts, even after caching. A few caching heuristics ended up mattering much more than raw structure layout. If anyone wants to look deeper into the implementation details (purely from an educational/technical standpoint), the code is available on NuGet:
https://www.nuget.org/packages/BTreePlus
(Sharing only as reference material — not asking for feedback or promoting anything.) Always happy to discuss data-structure internals or hear how others have approached similar problems. <!-- SC_ON --> submitted by /u/Tasty_Oven_779 (https://www.reddit.com/user/Tasty_Oven_779)
[link] (https://www.nuget.org/packages/BTreePlus) [comments] (https://www.reddit.com/r/programming/comments/1p6blny/notes_from_building_a_btree_storage_engine_in_net/)
VGG19 Transfer Learning Explained for Beginners
https://www.reddit.com/r/programming/comments/1p6lhiz/vgg19_transfer_learning_explained_for_beginners/

<!-- SC_OFF -->For anyone studying transfer learning and VGG19 for image classification, this tutorial walks through a complete example using an aircraft images dataset. It explains why VGG19 is a suitable backbone for this task, how to adapt the final layers for a new set of aircraft classes, and demonstrates the full training and evaluation process step by step. written explanation with code: https://eranfeit.net/vgg19-transfer-learning-explained-for-beginners/ video explanation: https://youtu.be/exaEeDfbFuI?si=C0o88kE-UvtLEhBn This material is for educational purposes only, and thoughtful, constructive feedback is welcome. <!-- SC_ON --> submitted by /u/Feitgemel (https://www.reddit.com/user/Feitgemel)
[link] (https://eranfeit.net/vgg19-transfer-learning-explained-for-beginners/) [comments] (https://www.reddit.com/r/programming/comments/1p6lhiz/vgg19_transfer_learning_explained_for_beginners/)
Chimera - an innovative (?) db interface
https://www.reddit.com/r/programming/comments/1p6ln5j/chimera_an_innovative_db_interface/

<!-- SC_OFF -->Today I’m sharing the first architectural preview of Chimera, a project I’ve been building in my free time to both explore system architecture and sharpen my modern C++ skills. Chimera is designed to simplify interaction with heterogeneous databases by offering a single, consistent interface for PostgreSQL, MongoDB, and Oracle. It currently provides: Autogenerated DAO classes from existing DB schemas A speculative in-memory model for each table/collection Multiple synchronization modes (sync, async, real-time) It is aimed to be used in two ways: - Embedded Mode (linked directly into a CSCI) - Hosted Server Mode (exposed via REST API) The goal is to reduce boilerplate, standardize data access, and make multi-DB environments easier to manage — especially in complex, high-reliability systems. I’m sharing the first architecture diagram below ⬇️ and I’d genuinely appreciate feedback, ideas, or constructive criticism. Your insights will help me guide its next steps while continuing to grow as a C++ engineer. Thanks in advance! Ps: At the moment the name is chimera for the Three Adapters, I shall find another mythical animal if I decide to add another one 😂 <!-- SC_ON --> submitted by /u/Altruistic_Pizza_766 (https://www.reddit.com/user/Altruistic_Pizza_766)
[link] (https://www.linkedin.com/posts/marco-pecorella-20b005183_cplusplus-softwarearchitecture-backend-activity-7399115638218240000-vTrn?utm_source=share&utm_medium=member_ios&rcm=ACoAACs_0usBleIFhb1GQ4bxucSy5eHFA94T4aY) [comments] (https://www.reddit.com/r/programming/comments/1p6ln5j/chimera_an_innovative_db_interface/)
Simulating Unix v7 on PDP-11 with In-Depth Explanations
https://www.reddit.com/r/programming/comments/1p6ujl6/simulating_unix_v7_on_pdp11_with_indepth/

<!-- SC_OFF -->I hope I did a good job uncovering the technical details and the relevant history. <!-- SC_ON --> submitted by /u/baziotis (https://www.reddit.com/user/baziotis)
[link] (https://sbaziotis.com/uncat/simulating-pdp-11-with-in-depth-explanations.html) [comments] (https://www.reddit.com/r/programming/comments/1p6ujl6/simulating_unix_v7_on_pdp11_with_indepth/)
Reading Code Is a Useful (but sometimes overlooked) Skill
https://www.reddit.com/r/programming/comments/1p6w0ya/reading_code_is_a_useful_but_sometimes_overlooked/

<!-- SC_OFF -->This video goes into why becoming better at reading code can lead to becoming a better programmer overall and why it might be a skill that can be easy to overlook. <!-- SC_ON --> submitted by /u/stumblingtowards (https://www.reddit.com/user/stumblingtowards)
[link] (https://youtu.be/Apf9OuU7jdQ) [comments] (https://www.reddit.com/r/programming/comments/1p6w0ya/reading_code_is_a_useful_but_sometimes_overlooked/)