SFML community forums

Help => General => Topic started by: Power on March 16, 2020, 11:37:14 am

Title: How to be more efficient and faster in coding?
Post by: Power on March 16, 2020, 11:37:14 am
Hello,
Since the coronavirus outbreak, and even before, i tried to spend some time to try to make my first game, and  it made me realize that i had to relearn all of SFML through tutorials since i am pretty new to SFML and the only free courses i took on SFML were not enough to cover everything.

But i find myself very slooww, what i thought finishing in one night, i found myself doing it in many days.

I tried to ask myself the question, how to get things done and be efficient in coding and code learning? i tried to see my patterns and see what "distracted" me.

I am curious about your experiences and your solutions. How do you learn a new langage fast? How do you code and focus and get things done fast with no distractions? What's your best and more efficient methods.

Thanks,
P~
Title: Re: How to be more efficient and faster in coding?
Post by: eXpl0it3r on March 25, 2020, 08:20:36 am
From my point of view you only get "faster" once you've collected experience in the given area.
I can write you a basic SFML example with state machine in 30min - 1h, but I can only do that, because I've done it at least a dozen times by now.
As soon as I then try to do any movement code, I keep slowing, because I don't remember a good/clean way to do movement code, even though I've done a bunch of times as well, but apparently not enough often.

So it really seems like a mix of deeply understanding a given concept and having it done over and over again. :)

That you end up spending multiple days on something you thought was easily done in a couple of hours, is quite normal, if you've never done it before. Things seem easy on the outside, but there are usually a lot of detail that you need to understand and implement. That's why it's also hard to estimate how long it takes to implement something.