DEV Community

P-DR0ZD
P-DR0ZD

Posted on • Edited on

1

Open Source Lab 4

In lab 4 of the open source course, we worked with git remote and added JSON support for our SSG. For the JSON support, we want to be able to write commands and include a JSON file that has a list of commands and our SSG to read and run the command with the list provided.

What I did

Issue

Pull Request

For this lab, I worked on Tong's SSG created with CPP. Because I've worked with this code previously it was easily navigatable and most of the code was easy to add. The difficulty I had was adding JSON to CPP. CPP has no native JSON reading so I can't just read the file like a JSON file unless I make a custom class or use a library. A custom class in CPP dedicated to reading JSON would probably be the size of another project so I decided that I want to use an already open source library. I did some research and found a couple of the most used ones and asked Tong if there was one he preferred because at the end of the day it was his code so his decision was the most important one. He said he liked nlohmann/json because it had the most forks. I looked into how to implement it inside of his code and saw I only needed to include the HPP file inside of the code.

What was done to my SSG

Issue

Pull Request

Once Tong implemented JSON inside of my Python SSG I used a git remote to test his repo. I Tested and looked over the code and felt the changes done to mine were done well so I pushed it to my main.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more