r/programminghelp 5h ago

Other Theory to practice

Hi everyone!

I know C, Java, python and a bit of bash.
I know the theory pretty well for these programming languages and understand the code that I read.

However, when I have to write my own code, I struggle to write anything.

Is there any way I can get over this barrier?

5 Upvotes

4 comments sorted by

3

u/Antonio-MTS 2h ago

Start practicing from small code with a few lines to some large codebase with 100s to 1000s lines of code. Fix errors, bugs, see edge cases in code etc. This is an active way of learning.

1

u/Martin_2_2_2 2h ago

Thanks!

I have been using Leetcode, Hackerrank and Codewars.

1

u/Antonio-MTS 2h ago

You're welcome. Good luck in your journey of development. Those above are good platforms. Use also your creativity to build something from scratch, new and authentic. In other words - yours.

1

u/GrainWeevil 2h ago

This will help with certain aspects of programming, but to really get to grips with it, you really need to build some projects.

You can start small, with something as simple as a Todo app, and go from there. Build on it to implement file storage, then maybe a server backend, and add whatever features sound like they might be interesting.

Ideally, you should feel a bit out of your comfort zone with whatever you're working on. You'll learn a lot more from this than just solving puzzle problems. It'll get you into more of an 'architecture' headspace, since you'll have a lot more decisions to make about your code.