Reddit Programming
211 subscribers
1.22K photos
124K links
I will send you newest post from subreddit /r/programming
Download Telegram
json, protobuf, avro, SQL - why do we have 30 schema languages?
https://www.reddit.com/r/programming/comments/1kh18ej/json_protobuf_avro_sql_why_do_we_have_30_schema/

<!-- SC_OFF -->I was reading this blog about schema-driven development with Kafka which I thought detailed pretty well why Protobuf should be king (https://buf.build/blog/kafka-schema-driven-development#toc-we-think-that-schema-language-should-be-protobuf). Note the company behind it is a protobuf company, so they're obviously biased, but I think it makes sense. It seems like JSON schema is very popular today, but I believe it has more limitations (verbose, hard to read, no good defauts, type system doesn't match to languages well) It got me thinking - why hasn't the world standardized on a single interface definition language? (IDL) Similar - why haven't we standardized to a single schema definition language? It makes sense to have different ways to serialize the same schema - a serialized byte representation optimized for few-message passing through an RPC call is different than the serialized byte representation of a columnar big data Parquet file - but do we really need to all of these have their own syntax and different language support? In theory, you should be able to serialize the same schema definition in different ways. (I posted a version of this yesterday and it got off to a good discussion, but the mods erroneously banned it on the grounds of the "not a support forum" rule. I am not asking for support - I'm starting a discussion.) <!-- SC_ON --> submitted by /u/2minutestreaming (https://www.reddit.com/user/2minutestreaming)
[link] (https://buf.build/blog/kafka-schema-driven-development) [comments] (https://www.reddit.com/r/programming/comments/1kh18ej/json_protobuf_avro_sql_why_do_we_have_30_schema/)
Same Copy | IndieTools
https://www.reddit.com/r/programming/comments/1khcgrj/same_copy_indietools/

<!-- SC_OFF -->#Share daily Independent Developer Tools: Same Copy is an innovative tool that enables users to quickly replicate entire applications by simply entering a URL, including intricate UI details, animations, and backend logic #IndieHackers #WebDev #IndieTools #hackers <!-- SC_ON --> submitted by /u/Glittering_Will_555 (https://www.reddit.com/user/Glittering_Will_555)
[link] (https://www.indietools.work/product/b4d68925-e185-4c42-a2bc-a8d0154105c9?type=web-framework) [comments] (https://www.reddit.com/r/programming/comments/1khcgrj/same_copy_indietools/)
Same Copy | IndieTools
https://www.reddit.com/r/programming/comments/1khcjnk/same_copy_indietools/

<!-- SC_OFF -->Share daily Developer Tools: Same Copy is an innovative tool that enables users to quickly replicate entire applications by simply entering a URL, including intricate UI details, animations, and backend logic <!-- SC_ON --> submitted by /u/Glittering_Will_555 (https://www.reddit.com/user/Glittering_Will_555)
[link] (https://www.indietools.work/product/b4d68925-e185-4c42-a2bc-a8d0154105c9?type=web-framework) [comments] (https://www.reddit.com/r/programming/comments/1khcjnk/same_copy_indietools/)
Telegram Chat member track - issue
https://www.reddit.com/r/programming/comments/1khdfmz/telegram_chat_member_track_issue/

<!-- SC_OFF -->Hello everyone, i'm trying to track users that joins and leave my group on telegram. I've tried a lot, but while testing with my secondary account, i do not receive any data in my .db file... also i dont get any debug message in my interface... can anyone help me, please??? My code is
def init_db(): conn = sqlite3.connect( 'grupo_cripto_logs.db', detect_types=sqlite3.PARSE_DECLTYPES ) cursor = conn.cursor() cursor.execute(''' CREATE TABLE IF NOT EXISTS user_activity ( user_id INTEGER, username TEXT, first_name TEXT, last_name TEXT, action TEXT, -- "join" ou "leave" timestamp datetime ) ''') conn.commit() conn.close() async def track_members(update: ChatMemberUpdated, context: ContextTypes.DEFAULT_TYPE): try: print(f"\n🔔 Novo evento de membro: {update}") user = update.new_chat_member.user if update.new_chat_member else update.old_chat_member.user print(f"Usuário envolvido: ID={user.id}, Nome={user.full_name}") if update.new_chat_member and update.new_chat_member.status == 'member': action = "join" print("🟢 Ação: Entrada no grupo") elif update.old_chat_member and update.old_chat_member.status in ['left', 'kicked']: action = "leave" print("🔴 Ação: Saída do grupo") else: print("🟡 Outra mudança de status não tratada") return with sqlite3.connect('grupo_cripto_logs.db', detect_types=sqlite3.PARSE_DECLTYPES) as conn: cursor = conn.cursor() cursor.execute(''' INSERT INTO user_activity VALUES (?, ?, ?, ?, ?, ?) ''', ( user.id (http://user.id/), user.username, user.first_name, user.last_name, action, datetime.now() )) conn.commit() print(f" Dados salvos: {user.full_name} ({action})") except Exception as e: print(f"🚨 ERRO: {str(e)}") await context.bot.send_message( chat_id=chat_ids_alertas[0], text=f"Erro no tracking: {str(e)}" )
app.add_handler(ChatMemberHandler(track_members, ChatMemberHandler.CHAT_MEMBER)) <!-- SC_ON --> submitted by /u/Disastrous_End_588 (https://www.reddit.com/user/Disastrous_End_588)
[link] (http://telegram.com/) [comments] (https://www.reddit.com/r/programming/comments/1khdfmz/telegram_chat_member_track_issue/)
[Sharing] Essence-Based Interpretation (EBI) – A Practical Approach for Software Design
https://www.reddit.com/r/programming/comments/1khn49s/sharing_essencebased_interpretation_ebi_a/

<!-- SC_OFF -->Hello everyone, I've recently come across a compelling approach called "Essence-Based Interpretation (EBI)", which emphasizes starting with "why" (essence) rather than immediately jumping into "what" or "how" when dealing with software requirements. EBI encourages developers to deeply understand the core reason behind a requirement before making design decisions. This helps teams build systems that are not only robust and maintainable but also flexible in handling future changes. Here's a great article explaining EBI clearly and practically: https://mannercode.com/2024/05/04/ebi-en.html I'd love to hear your thoughts and experiences: Have you applied a similar approach in your projects? Any lessons learned from focusing (or not focusing) on the "why" behind requirements? Looking forward to your insights and discussion! <!-- SC_ON --> submitted by /u/TwoDull183 (https://www.reddit.com/user/TwoDull183)
[link] (https://mannercode.com/2024/05/04/ebi-en.html) [comments] (https://www.reddit.com/r/programming/comments/1khn49s/sharing_essencebased_interpretation_ebi_a/)
How I Passed the AWS AI Practitioner and Machine Learning Associate Exams: Tips and Resources
https://www.reddit.com/r/programming/comments/1khpyr3/how_i_passed_the_aws_ai_practitioner_and_machine/

<!-- SC_OFF -->Hi Everyone, I wanted to share my journey preparing for the AWS AI Practitioner and AWS Machine Learning Associate exams. These certifications were a big milestone for me, and along the way, I learned a lot about what works—and what doesn’t—when it comes to studying for AWS certifications. When I first started preparing, I used a mix of AWS whitepapers, AWS documentation, and the AWS Skill Builder courses. My company also has a partnership with AWS, so I was able to attend some AWS Partner sessions as part of our collaboration. While these were all helpful resources, I quickly realized that video-based materials weren’t the best fit for me. I found it frustrating to constantly pause videos to take notes, and when I needed to revisit a specific topic later, it was a nightmare trying to scrub through hours of video to find the exact point I needed. I started looking for written resources that were more structured and easier to reference. At one point, I even bought a book that I thought would help, but it turned out to be a complete rip-off. It was poorly written, clearly just some AI-generated text that wasn’t organized, and it contained incorrect information. That experience made me realize that there wasn’t a single resource out there that met my needs. During my preparation, I ended up piecing together information from all available sources. I started writing my own notes and organizing the material in a way that was easier for me to understand and review. By the time I passed both exams, I realized that the materials I had created could be helpful to others who might be facing the same challenges I did. So, after passing the exams, I decided to take it a step further. I put in extra effort to refine and expand my notes into professional study guides. My goal was to create resources that thoroughly cover all the topics required to pass the exams, ensuring nothing is left out. I wanted to provide clear explanations, practical examples, and realistic practice questions that closely mirror the actual exam. These guides are designed to be comprehensive, so candidates can rely on them to fully understand the material and feel confident in their preparation. This Reddit community has been an incredible resource for me during my certification journey, and I’ve learned so much from the discussions and advice shared here. As a way to give back, I’d like to offer a part of the first chapter of my AWS AI Practitioner study guide for free. It covers the basics of AI, ML, and Deep Learning. You can download it here: [Link to Google Drive (https://drive.google.com/drive/folders/1GxVq54kA5unC8lJsmRVXeZgILyk8xIye?usp=drive_link)]. I hope this free chapter helps anyone who’s preparing for the exam! If you find it useful and would like to support me, I’d be incredibly grateful if you considered purchasing the full book. I’ve made the ebook price as affordable as possible so it’s accessible to everyone. [AWS Certified AI Practitioner Complete Study Guide - Amazon Link (https://www.amazon.com/Certified-Practitioner-Complete-Study-Guide-ebook/dp/B0F7RWT2K2/ref=sr_1_14?dib=eyJ2IjoiMSJ9.KF_4XTJ7zY1Af3YdU3UHulWDbuuLS6rKlzbeRJ7M4UkKduP9hTfYKJpDwlyD6xHKUyIYzrP0MAOenI7scN7nt7zvXVksAkfQzYVPTdB4oHE8n4FPr4lXYNBbwHqXFGvekdzduayyhtXPt9iveg6mvLvViwGQOoPgzOAWkOR3tJ8xtReGbDgyQ0fsTYZhjgg2JMfQzoJXZ-vupecU0-fZO7p2pAex1xHW136fEDSQptQ.1185rsWu_Xw1Xd-PSIjU3H6YseCJV1On6sSTr3vY_YQ&dib_tag=se&keywords=aws+certified+ai+practitioner&qid=1746708643&sr=8-14)] [AWS Certified Machine Learning Engineer Complete Study Guide - Amazon Link (https://www.amazon.com/Certified-Machine-Learning-Engineer-Complete-ebook/dp/B0F71MRNCL/ref=sr_1_8?crid=2ASTU1QGDH9D2&dib=eyJ2IjoiMSJ9.nDG_3F1F6opqhd8Dysza5sWaSUuLXAsW7nD26nL28Q34sbf_JLyhGUrAFK_T-6kiWUDiDfTgDQmRqaypuJhzEShLrNYfgk
ZQHlK8xdu1yajy-S0YblwtkgNzHxfuAq_9UPXZok7IE7STuDAgcDGRAPfFEEKY9Nu4LOEBTIW7bquS9dPLGaoQ9d_g_E6JxPVt9NQ_9yAYt6H1-86Rtw397qZkBpXR1f8iYCvo0sBMO9I.dTc9m97IU8OLH10V0RF2nSotYp9FCU6D3F9dB20BcQE&dib_tag=se&keywords=aws+machine+learning+engineer+associate&qid=1746690073&sprefix=aws+machine%2Caps%2C246&sr=8-8)] If you have any questions about the exams, preparation strategies, or anything else, feel free to ask. I’d be happy to share more about my experience or help where I can. Thanks for reading, and I hope this post is helpful to the community! <!-- SC_ON --> submitted by /u/Secret-Marketing-397 (https://www.reddit.com/user/Secret-Marketing-397)
[link] (https://www.amazon.com/Certified-Practitioner-Complete-Study-Guide-ebook/dp/B0F7RWT2K2/ref=sr_1_14?dib=eyJ2IjoiMSJ9.KF_4XTJ7zY1Af3YdU3UHulWDbuuLS6rKlzbeRJ7M4UkKduP9hTfYKJpDwlyD6xHKUyIYzrP0MAOenI7scN7nt7zvXVksAkfQzYVPTdB4oHE8n4FPr4lXYNBbwHqXFGvekdzduayyhtXPt9iveg6mvLvViwGQOoPgzOAWkOR3tJ8xtReGbDgyQ0fsTYZhjgg2JMfQzoJXZ-vupecU0-fZO7p2pAex1xHW136fEDSQptQ.1185rsWu_Xw1Xd-PSIjU3H6YseCJV1On6sSTr3vY_YQ&dib_tag=se&keywords=aws+certified+ai+practitioner&qid=1746708643&sr=8-14) [comments] (https://www.reddit.com/r/programming/comments/1khpyr3/how_i_passed_the_aws_ai_practitioner_and_machine/)