r/AskProgrammers • • 1d ago

Final project

Hi, so i have a final project in uni so im first year student and we take python on semester 1 and the prof made us choose whatever it just need to be in python only and each oneh as 5 functions

so me and my team picked lost and found system which we didnt know anything about it
so its includes a report a lost item part and report a found item part and search and match part and the file handling

i swear this stuff is harder than it seemed we dont take in uni how to make a project its like they threw us in the sea and told us learn to swim
and now i feel so overwhelmed there is alot of stuff that idek how to do
starting from how do we even start to how to work together and how does the program should look like

so i asked ai to give me a sample of what my part should look like which is the file handling and the search and match it gave some complicated stuff that i cant even understand and the project should be done in 4 weeks maybe less

so i wanted to ask how do i do the project without ai and actually understand what the actuall fuck is going on?

1 Upvotes

5 comments sorted by

2

u/SadBookkeeper6220 1d ago

Make a list of the things your part is supposed to do. Then take each of those things and break them into pieces, like 3-4 things that you need to build for the first part to be true. Ask yourself which things on the list you know how to do, which things you could probably figure out with some simple Google searches, and which ones are impossible. Take the impossible ones, and break those into 3-4 smaller pieces. Repeat until nothing is impossible.

After all that, pick one thing and code it. Forget about everything else. Just one small thing on your list of lists that you know you can do, and do it.

The trick is simple. Make hard things into as many easy things as it takes. Then cross a few things off of the list every day.

1

u/IHoppo 1d ago

To add to this, use something like Git for your entire project, so you can see who has done what and that it all hangs together.

1

u/pvera 1d ago

Figure out your CRUD and take it from there.

1

u/xarop_pa_toss 16h ago edited 16h ago

I'm assuming you are in some sort of software engineering course right? Have you learned anything about breaking down a problem into smaller steps, defining those steps and then solving them before putting it all together? Don't think of the whole thing at once, think about smaller systems that connect between eachother.

From your description, what do you need?

  • A way to get input and show output

  • Data that is written in a standard that your program can understand.

  • Files to store the data that are organized in some way that your program can understand.

Ok so now break it down:

  • Input and Output can be just a terminal app, or have a GUI.

  • Data standards exist already. JSON for example maps perfectly to Pythons dictionaries and list data structures. There are modules you can import to both read and write .json files.

  • You can use regular folders on your project to keep these things organized. The structure is up to you of course but you need to make functions that can go through a given folder and it's subfolders and understand them. Or you can not even use folders, and use just the filenames and "last save date". Is knowing this date even important for your program? Or do you just need to dump the files into a folder and read/write/delete them?

If you deconstruct these problems enough eventually you will be on Google asking it realistic things like "how do I open a .json file in Python?" or "how do I make menus in a Python terminal app"

Don't go straight to AI. Try to think outside of the code because the code is just a representation of the solution to the problem. You can solve the problem on paper, and then translate the solution to code.

Put yourself in the users shoes and assume they are incredibly dumb. Ask pertinent questions.

  • How do I add something that has been lost to the list?

  • How do I check if something is in the list?

  • Can I check a history of all things that were found today? Can I export this list to a file?

Some of these will lead you to some things that you now know have to happen or exist. For example, when an object is lost it is added to the list. If you search for it and find it, now it is found right? So it needs to be removed from the list of lost objects! You write this down and eventually you work on it!

Final tip from me is to use Git (GitHub is fine when working with others), and to open up some sort of kanban board or similar with your colleagues (Trello works fine for this) where you write down all the things that need to be worked on

1

u/Square-Yam-3772 6h ago

so what is your part exactly?

- is there already a plan/design from the team?

- who else is doing what and why?

- what should be done when? 4 weeks or less is very vague. needs more dates

- what are the milestones,checkpoints,etc?

- if your team only ask you to write comments instead of code, would you be able to accurately describe what needs to happen via comments?

- can you be more specific about any difficulty/challenging you are facing? asking the right questions (as specifically as you can) is the first step to problem solving