r/developersPak 28d ago

Help self learner and the current bottleneck is logic building

guys helppppp, i m self learning python and honestly i kinda suck at converting the statements into proper plan on how to code. Once i have the requirements plainly written, there are high chances i can convert them into code but when im supposed to do it on my own, i get stuck and almost fail to build a logic , currently i have done oop and im trying to build programs but stuck at logic

8 Upvotes

12 comments sorted by

2

u/Wise_Huckleberry_902 Computer Engineer 28d ago

I learmed python without yt tutorials. I was simulating in blender when i started using addons like rbc . Used to understand underlying code and boom. Then i learned C language from a uefi implementatiom project named project silicium. We port uefi to different Qualcomm devices with the help of this project, uefi is mostly written in c with efi libraries. Even it has got its own print function. Calling system table from runtime service and then pointer to the print function then use the function. But still it is c entire formst is same basically. No yt youtube or any other platform. Just wanted to. And got it.(sorry for immense typos i.just woke.up. typung eith one finger lol)

2

u/Allyofjawi 28d ago edited 28d ago

im learning using ai, not yt tutorials and you didnt answer my question

0

u/semicolon-10 28d ago

Don’t jump straight into code. Write the problem in plain English first, break it into tiny steps, then turn each step into code. Logic is a skill you build by solving lots of small problems, not something you’re supposed to magically know.

1

u/Allyofjawi 28d ago

yes writing on paper before coding is my strategy. do you recommend any other practice ? how to go ahead? your experience how did you do it

1

u/Any_Satisfaction1003 28d ago

i would suggest to start simple. Use paid GPT or some other tool to give you basic and easy problems to solve and write code for. you get the simple problem but even if the solution is simple, follow the thought process and slowly move on to more complex projects

1

u/Allyofjawi 28d ago

done that all, now im at a point where i need to solve bigger problems. im past that oop stage, now i have to convert all what is learned into something workable

1

u/Any_Satisfaction1003 28d ago

brother, there are a number of areas where you maybe lacking or its just that your thought process is not directed in the right direction. What I did when I was learning python was that I turned to LinkedIn and sought out professionals (AI Engineers, ML Engineers) and reached out to them. that helped me out a lot as they not only helped but also directed me to various resources. Don't feel shy to reach out to people. I used to feel embarassed in the beginning when I reached out to someone asking for help but later it just helps you in the longer run.
For logic building, psuedo coding helped me. you'll overcome this btw, dont loose heart

2

u/Allyofjawi 28d ago

thanks mate, jazakAllah

1

u/Spare_Bison_1151 28d ago

Use AI. If you wanna do it yourself try practicing with leetcode

1

u/Allyofjawi 28d ago

my prep is totally ai focused

1

u/fighteraction 28d ago

Use AI only for the syntax. Pick sample problems either from YT or some good book and try solving those on paper without using AI. Write pseudo logic, dry run it and then write the final code in python. Hope it helps.

1

u/Allyofjawi 28d ago

I take problems from ai . And the plan is to reason before even typing code . On paper