You are viewing a single comment's thread from:

RE: Learning Programming #2.2 Learning Java: Exceptions

in #programming5 years ago

Oh man... it has been waaaaaaayyyy too long since I tried my hand at programming. I remember endless nights at university trying to figure out bugs in my code... I hated it so much... even more so as I was a Physics student, and I had friends who were CompSci, and they had elegant code... and I had horrible spaghetti crap that didn't work!

I should sit down and try and relearn this stuff when I have more time!

I have featured you and this post for a Curation Contest here:

https://steemit.com/curation/@bengy/payitforward-week61entry-n5bdjcemi2

You can join the fun here:

https://steemit.com/payitforward/@pifc/week-61-pay-it-forward-curation-contest

Sort:  

trying to figure out bugs in my code

Yes that always takes some time… And in the end you find out that only one letter(one time a 'K' instead of a 'k' took me a whole weekend) was wrong. :(

But if you don't let others (like the CompSci's in your case) discourage you and get more practice(I suggest games for that one), debugging won't be needed as often and gets easier.

horrible spaghetti crap

It isn't important how your code looks like, as long as you understand it.

I should sit down and try and relearn this stuff when I have more time!

You really should. Especially as a physicist it can be very useful to get more comfortable with programming.

I will give a go... By games, do mean programming themed games or actually programming a game? I once did an absolutely horrific Tetris...

What do you mean by "themed game or actual game"?

It actually doesn't really matter what you program, but it matters that you program(You could also create a program that numerically solves the schrödinger equation if you want).
I just suggest games, because you can have a lot of fun programming and testing them, and fun is beneficial in learning.

The best way is taking a simple game, that is easy to play and follows simple rules. Yes Tetris is a good example, although I'm not sure if the collision detection and turning of those weird shapes isn't a bit hard to begin with.
I'd also recommend something like snake or that chrome-browser-dino-game.
Here you should not decide based on what others (like me) tell you, but on what you would like to play.
You can also try to reach for higher goals. With the right degree of simplification(like reducing 3d to 2d graphics or make far less objects/obstacles or simplify an AI to a simple mathematical function or making only square boxes in tetris) you could program a small version of every game there is, even as a beginner.
→ So just take on of your favourite computer games from your childhood and go ahead and program a (heavily) reduced version of it.

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.032
BTC 59236.59
ETH 2995.05
USDT 1.00
SBD 3.73