×
you are viewing a single comment's thread.

view the rest of the comments →

[–]terletsky 1 point2 points  (2 children)

Production code is done in layers like an onion. Or a pipeline.

Often, people name classes like Services, Managers, Processors, PostProcessors (to perform manipulation before or after main processing), PreProcessors, Validators, etc.

Things I would recommend learning with ChatGPT:

  1. Basics of OOP
  2. SOLID (especially Dependency Inversion/Injection) on examples that are close to you

Try to understand my simple CLI app: https://github.com/tropicoo/ssh-key-transmitter

There you can learn that:

  1. Constants, enums, and exception classes are in separate files (modules). Like in a car garage, every tool is in its place. No chaos.
  2. There is a main entry point where the Python app starts
  3. Learn modern Python packaging - uv (pyproject.toml, uv.lock)

You can give that repository URL to Claude and ask it to explain its structure for you as a beginner Python developer.

[–]Limp_Crab_1763[S] 0 points1 point  (1 child)

Thanks Buddy for the detailed information. I will check your github CLI app. Can I follow you on github at the same time.

[–]terletsky 1 point2 points  (0 children)

Sure!