r/learnprogramming • • 27d ago

what should I do?

I am trying to learn programming and making game in java but something bothers me, now I am thinking should I use linux or not? or should I change my programming language? or try any other field?

what I know: basic programming (in Python, in Java)

0 Upvotes

19 comments sorted by

2

u/ackley14 27d ago

build whatever you want in what ever environment you are most comfortable in. there is no 'should do this should do that'. are some languages better than others? for certain things absolutely. for something like a game, build it in whatever language you're most capable in.

1

u/No-Jello-2665 27d ago

I understand but I keep brainwashed by youtube videos, someone says "tutorial hell", someone says don't use AI someone says use AI. someone says follow my roadmap, someone says this or that bullshit. some one says ask AI don't follow traditional method. they all are giving advice but they never told how you should learn programming. If you can please suggest me or tell me how do you learn programming

2

u/No_Cicada9229 27d ago

You should learn programming by programming. If you dont encounter a concept you will never be able to understand it. If there's something you want to work on then you need to consider projects related or work on that project. Wanna make an online game? Then you need to make sure you understand how computers communicate with each other. Want to learn back end? Then you'll need to learn how to efficiently manage data. There's so much you can learn in the realm of programming that noone can really tell you what you need to learn. You need to figure out what exactly you want to go for and pursue that

1

u/No-Jello-2665 27d ago

what if I don't know what to write? like I know how to code but I don't know how to write game loop to build a game. how I can encounter it? ask AI it gives solution instant or gives code that feels like I am useless or dependent on AI. So what is the advice here?

1

u/MyNameIsRichardCS54 27d ago

It's always a tricky transition from courses where all the pre-code work is already done to the real world where you have to do it yourself. Take it one step at a time. And remember the code doesn't have to be pretty. As long as it works, it fulfils the first rule of good software.

Taking the flappy bird example from above, Start by drawing your character on the screen. In the next iteration animate it. In the next iteration draw the obstacles on the screen, and then move them and so on. This is a development process known as the iterative waterfall, and it's my personal favourite because it produces software as good as agile without being so pernickety.

When you have written your program, write it again removing the pain points.

1

u/No-Jello-2665 27d ago

now I decided to start with godot, because I wanted to make a game not a game engine or game from scratch. I can think later when things get different like godot can't give what I want then making game engine is understandable. so my mistake was to mindset more you work hard, more you learn but it can become source of quit if you don't smart work.. So now I think this decision is understandable

2

u/MyNameIsRichardCS54 27d ago

Work in whatever language you feel fits your use case and remember, exactly the same techniques outlined in my previous post apply to working with Godot, or indeed any language.

1

u/No-Jello-2665 27d ago

yeh, I was dumb or I was the guy who gave him horse but never taught how to ride horse. lol

0

u/Itz-Ayush 27d ago

Forget about linux for now that just adds unnecessary headache.Making games in raw Java is just painful because of all the boilerplate code. Since you already know some Python just grab Godot. Its GDScript is basically Python and you will actually have fun building stuff instead of fighting your setup. Stop switching fields or tools whenever you feel stuck. Just build one tiny game like Flappy Bird from start to finish.

2

u/No-Jello-2665 27d ago edited 27d ago

your suggestion feels right to me, I thought if I could build game from scratch and I'll understand programming deeply like I can build an entire os now but it just becomes another headache. I am thinking to use godot to make my game that I want to then when I'll hit problem that I am facing with engine then I can think to make my own game engine Then It can make a sense. How you learned and build your project you always wanted

4

u/[deleted] 27d ago

[removed] — view removed comment

-2

u/No-Jello-2665 27d ago

yes but when I use tutorial I feel like "Tutorial hell", when I use AI I feel like I'll depend on AI when I use docs I can't understand what to write, it feels like they gave me 10th class book and build rocket using this book, what should I do

4

u/No-Reality6072 27d ago

Don’t use AI to generate code unless you already are very proficient: do it by hand. Use instead AI as a teacher asking questions on your programming doubt or maybe to interpretate debugging too.

-1

u/No-Jello-2665 27d ago

I got these suggestion so many times but I don't understood how to do? I feel like I'll slowly dependent on AI

3

u/No-Reality6072 27d ago

What I did was to take it slow, abandon any hurry, and take my time to learn what I need to achieve my target. Whenever you try to learn or improve one thing, you learn at least a dozen of other things during the process. You can google obviously. Just, don’t doAI do your job. You/We need to learn.