Reddit Programming
205 subscribers
1.22K photos
123K links
I will send you newest post from subreddit /r/programming
Download Telegram
Making PDF generation easier with reusable templates
https://www.reddit.com/r/programming/comments/1m5ei57/making_pdf_generation_easier_with_reusable/

<!-- SC_OFF -->Hi everyone, I’ve been working on a REST API that converts HTML to PDF, and along the way, I encountered some interesting challenges I’d love to share and discuss with you. Some of the main issues: Handling dynamic data in templates without rebuilding full HTML each time. Managing reusable PDF layouts efficiently for things like invoices, certificates, reports, etc. Providing a simple yet flexible API interface for developers. Offering an interactive playground for testing API requests without writing code. To address these, I implemented a Templates feature where users can design PDF layouts once and then generate PDFs by sending just a template ID and JSON data payload. This approach reduces overhead and complexity for client apps. If anyone has experience with HTML to PDF conversion and document generation, I’d be really interested in hearing your thoughts or any tips on improving performance and usability. Thanks for reading, and have a great day! <!-- SC_ON --> submitted by /u/ManufacturerShort437 (https://www.reddit.com/user/ManufacturerShort437)
[link] (https://pdfbolt.com/docs/admin-dashboard/templates) [comments] (https://www.reddit.com/r/programming/comments/1m5ei57/making_pdf_generation_easier_with_reusable/)
What’s a linear programming language like? Coding a “Mini Grep” in Par
https://www.reddit.com/r/programming/comments/1m5ngjz/whats_a_linear_programming_language_like_coding_a/

<!-- SC_OFF -->I uploaded this workshop, coding a "mini grep" in my programming language Par. (https://github.com/faiface/par-lang) I spent the whole of yesterday editing the live-stream to make it suitable for a video, and I think it ended up quite watchable. Par (https://github.com/faiface/par-lang) is a novel programming language based on classical linear logic. It involves terms like session types, and duality. A lot of programming paradigms naturally arise in its simple, but very orthogonal semantics: - Functional programming - A unique take on object oriented programming - An implicit concurrency If you're struggling to find a video to watch with your dinner, this might be a good option. <!-- SC_ON --> submitted by /u/faiface (https://www.reddit.com/user/faiface)
[link] (https://youtu.be/nU7Lt6k3lNQ?si=opLYoYw0oQ87GhfR) [comments] (https://www.reddit.com/r/programming/comments/1m5ngjz/whats_a_linear_programming_language_like_coding_a/)
GitHub is "Pausing Command Palette Deprecation"
https://www.reddit.com/r/programming/comments/1m5r4z1/github_is_pausing_command_palette_deprecation/

<!-- SC_OFF -->Thanks to everyone's feedback GitHub is now pausing the command palette deprecation! Update: Pausing Command Palette Deprecation We’re pausing the planned deprecation of Command Palette. Your feedback highlighted how integral this feature is to many developers’ workflows. And the specific examples you shared helped us better understand its value beyond what our usage metrics captured. While we continue exploring improvements to navigation and evaluating our overall approach, the Command Palette will remain available. We appreciate everyone who took the time to share their perspectives. Your input was instrumental in our decision to step back and reassess our plans. <!-- SC_ON --> submitted by /u/Planet9_ (https://www.reddit.com/user/Planet9_)
[link] (https://github.com/orgs/community/discussions/166528#discussioncomment-13836741) [comments] (https://www.reddit.com/r/programming/comments/1m5r4z1/github_is_pausing_command_palette_deprecation/)