r/AskProgrammers • u/heseeshisvictory504 • 3d ago
I’m so bad at programming I’m beginning to think I’m mentally challenged
I have a data structures and algorithms exam tomorrow and I legitimately cannot code for shit. Conceptually yes I understand what works how and where but you could not get me to solve a leetcode question on stacks and queues even if you held me on gunpoint and i’m beginning to think this is a cognitive issue.
5
Upvotes
4
u/RetroGrid_io 3d ago
Then you don't understand it. The problem is that you think you do. So forget what you think you know, and take a look at how it actually works. Play with it, test it, until it starts making sense to you and you feel good about it.
Then, you actually do understand it.
3
u/Poddster 3d ago
Have you actually tried creating any programs? No leet code things, but realistically programs?
3
u/ern0plus4 3d ago
Write a Guess The Number game first.
2
u/Dramatic-Hold-9369 3d ago
practice, lots. And I mean lots.
2
u/dialate Sr SE 15 YOE 3d ago
When I did it I knew there was a good job for me at the end of it. There isn't much motivation to that end these days
1
u/Silver_Interaction20 3d ago
If you do understand the concept behind data structures then you’re already on the right path. Since your main problem is transcribing that into coding, and that’s what I had done, is practice and practice. Sure at first it’d be hard and feel like you’re not making progress but that’s coding. The first programs you do are always the worst ones but with practice you’ll get better.
Leetcode is great for practicing, and also, you can get some textbooks and try implementing what you’re reading. There are also really good tutorials online on YouTube.
1
u/Hellaintsht 3d ago
If you've genuinely tried everything ok your own, then you need some help from outside like a mentor or a teacher teaching you personally. Because if you're really stuck that bad then it is worth trying this. In my case I was in same place as you once, and I made a friend of mine my mentor and also paid for online classes and that worked for me. But depends on you, nowadays AI also can be your mentor and guide step by step literally.
1
u/nian2326076 2d ago
You're having trouble translating concepts into code. A practical next step is to build small projects that utilize the data structures you're learning, like creating a simple to-do list or a basic game. This can help solidify your understanding. For job discovery and matching opportunities in the tech field, you can use LandOffer to find relevant roles.
1
u/nacnud_uk 2d ago
If you can sit and wait in the house for a parcel all day, you can program.
Maybe "conceptually yes", is a bit of a lie here?
Maybe that's your blocker. Programming is only about the concepts. The syntax of the "doing" is just random crap. You can learn that like you can learn any other language.
echo "Go for it"
printf("Go for it\n")
Make a distinction between syntax and concepts and you'll be okay.
For data, it helps some folks to play with a deck of cards. Make it real for you. Until you really do get the concepts.
Oh, but I should say, make programs too. Not just puzzles. Stuff you really want to type and run.
1
u/GuruPentameter 1d ago
your approach could be the problem.
maybe try old school, eg. a book:
Computational Thinking: A beginner's guide to problem-solving and programming
0
u/Particular-Winner136 2d ago
you won't need that in the future anyway buddy 😄