Hello,
I don't know if I am only like this or maybe some people has same problem. Always when I get a project I don't know how to design it well. I mean I just try to make UML design, but always it doesn't show the final result. In the end project has so many changes which aren't in the design, so my drawn UML gets useless to people who gonna use it.
Imo it does so because I get stuck on many obstacles which I haven't predicted in the design. Also all this leads to unreadable/unmaintainable code for people who gonna use it, because after I get unpredicted situation I start writing code step-by-step(instant solutions), so the inner code and mostly functions aren't structured well. In example in the beginning of the function I define some variables, after that I call/do stuff and after that I am doing it again in the same function. So the design and readability isn't friendly at all. I can refactor it in the end, but the time of the project always ends, so I need to release it and code is shitty there.
What could you suggest me? Read more literature related to design patterns? Investigate more on framework/libraries I am working on? Or everything will come in time? Thanks for all help!
P.S. - This is my first job. And I only have 6 months of experience. I want so much to get better so my designs which I make at the start of the project would be more precise and with less obstacles.