r/learnprogramming • • 3d ago

Debugging Advice on how to approach projects

i actually want to completely hand code a complete internship app.

I mean everything by hand , I will only use AI for research and stuff like that ,

I want to do it in python , use PostgreSQL for the database and use the SQLAlchemy library to convert the python variables and classes into database queries,

For the frontend , I would like to use javascript, css and html ,

So , i humbly ask for guidance tips and how i should approach it , I have coded with python , made a few mini programs that i use for basic stuff such as cgpa calculation , solved a few leetcode problems,

I have learned Object orientated programming as well but I have never taken on such a huge project so anyone sort of tips or advice or what problems I might face or what I should learn throughly before i jump into this will be appreciated

Thank you .

6 Upvotes

14 comments sorted by

3

u/RyanLMcc 3d ago

Breaking it down into smaller milestones is key. Start by designing your database schema on paper before writing SQLAlchemy models, build out the core API endpoints first using Flask or FastAPI, and test each endpoint with Postman or curl before touching the frontend HTML/JS.

2

u/Noobbobcat355 3d ago

Okay okay , Thank you . I haven't yet learned javascript or css , But I want to learn them as I build the app itself , I have just started learning how to operate PostgreSQL and SQLAlchemy library.

1

u/AlbertoBigglesworth 3d ago

This is basically the exact same advice I’d give you.

I personally like using the interactive interpreter to test functions in python. I would start by getting your communication working with Postgres. Also recommend using pandas for working with your database data.

1

u/Low-Tackle1868 3d ago

What does your app do, by internship app is that its functional goal?

Or do you mean a complete app to present to try and get an internship?

Use GitHub, make sure you know debugging. Python for backend is good, JS for frontend is popular (that's what I use) although for db most simple apps would use one or the other start with SQL first. Unless there is a reason you need PostGres.

2

u/Noobbobcat355 3d ago

Basically what it does , We create our own private profiles , It fetches job listings accross various companies, I can apply to that company through the app , we can check replies from each companies through email , I would also like to implement features such as being able to add companies that we want to apply to , like there are a list of general companies and also companies that are added by me for my own so i am notified whenever possible, And a few other features.

1

u/[deleted] 3d ago

[removed] — view removed comment

1

u/AutoModerator 3d ago

Your post/comment was removed since we do not approve of going private.

There is zero benefit in going private as you lose the opportunity for getting peer reviews. Also we have had plenty of people return after going private (despite being warned) complaining about how they were ghosted after some time or being tricked into buying rubbish that didn't work and even if it did they didn't need.

Our Rule #11 demands that any and all communication happens in the open, public subreddit.

This is for the benefit of more against the benefit of one.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/a-taylor-35 1d ago

Start with a manual tracker: add one company/job, save an application status, and display it back. That proves your Python/SQL flow before job listings or email checks enter the picture; add those features one at a time.

1

u/AdhesivenessFew8441 1d ago

Good plan, and doing it by hand is the best way to really learn. One thing to know before you start: fetching job listings from company sites is the hardest and least reliable part (every site is different, many block scrapers, and some forbid it in their terms). So build the app first with listings you add by hand or from one public jobs API, and leave automatic fetching for the end. An order that works: 1) draw the tables on paper (users, companies, jobs, applications) and how they relate; 2) SQLAlchemy models plus a few scripts that insert and query data, no web yet; 3) a small API with FastAPI or Flask, tested with curl; 4) a simple HTML and JS page that calls that API, which is where you learn JS; 5) only then login, email checking and notifications. Use Git from day one with small commits, and keep a short README with what works and what is next. A small version that works beats a big version that is half done.

1

u/UhLittleLessDum 3d ago

Honestly man, I learned this the hard way: Your biggest struggle, and ironically the thing you need to master most int the age of AI is not syntax, or even API's, but architecture.

Figure out a clean file structure ahead of time. This will probably grow to be more complicated than you expect, so find a documentation setup and file structure that works for what you expect the app to grow into and then some.

0

u/LonelyCaterpillar6 3d ago

Good choice of stack for learning — Python + SQLAlchemy + Postgres will teach you real backend skills. A few things that will save you a lot of pain on a first big project:

  1. Build in vertical slices, not layer by layer. Don't build the entire database, then the entire backend, then the entire frontend. Instead, pick ONE feature — say, user registration — and build it all the way through: form → backend route → database → confirmation page. You always have something working, and you learn how the pieces connect instead of debugging three layers at once at the end.
  2. Design the data model on paper first. Sketch your tables (users, internships, applications) and how they relate before writing code — changing a schema halfway through is where most of the rework comes from. And use Alembic migrations from day one so schema changes don't wipe your test data.
  3. "Hand code everything" is a great learning goal, but don't hand-roll auth and security. Password hashing, sessions and input validation are the parts where DIY bugs actually hurt — use established libraries for those (passlib/bcrypt for passwords, and your framework's session handling). Everything else, build by hand and learn from it.
  4. Deploy early, even when it's ugly. Getting the app running on a free tier (Render, Railway) forces you to solve environment variables, database hosting and config while the project is still small — those are much harder to bolt on at the end. And since you haven't learned JS/CSS yet, keep the frontend simple at first (plain HTML forms + a little CSS), and add JavaScript gradually for things like form validation and fetching data — don't try to learn a JS framework at the same time.
  5. Cut scope ruthlessly. Core first: profiles, internship listings, applications. Notifications, admin panels and fancy search can wait. The number one killer of first big projects is trying to build everything before the core works.

1

u/Noobbobcat355 3d ago

Thank you . This is immensely helpful.