How Bad of an Idea is C++ Backend - Learning Full Stack Web Design

Posted by willbennnn@reddit | learnprogramming | View on Reddit | 9 comments

Let me preface by saying before I started this project I had zero knowledge of web dev. I am a data engineering undergrad who has taken an entry level programming class (one in python, one in C++) and a DSA class (C++).

My rowing organization was in need of a management tool better than the super messy google sheet we’ve been using (similar to crew lab if you’ve heard of that), so I decided to take on the project for myself as a learning experience.

My front end stack is TS/Vite/React, but (for the sake of learning, and because it’s the language I am most familiar with) I chose to use C++ with the Drogon framework for the backend. Now that I am deep in the weeds with the backend and feel like I actually understand a good bit, I am starting to get really annoyed by how tedious it is to code new handlers, especially due to their repetitive nature and my refusal to copy and paste from ChatGPT so I actually “learn”.

I know that I probably should’ve used one of the suggested backend frameworks for a project of the scale I’m working on (node, rails, django, etc.), but I feel like I’m too deep to turn back now. My backend build contains like 15 different headers/cpp files and close to 2000 lines of code at this point, I’m not really sure what I should do.

Very open to suggestions and opinions