SFML community forums

General => General discussions => Topic started by: dmitry_t on March 23, 2018, 07:51:08 am

Title: Common mistakes
Post by: dmitry_t on March 23, 2018, 07:51:08 am
As far as I can see there is a set of common mistakes done when writing SFML based applications.
Is there a page describing the most common of them? If there is no, it is probably a good idea to gather explanations in a single place. Then it'll be possible to simply reply with a reference to a corresponding section.

These are the most common AFAICS:

- static SFML object initialization
- referring to a destroyed object
- not handling events
- drawing once out of the main loop
etc.

Let's list more in comments.
Title: Re: Common mistakes
Post by: eXpl0it3r on March 23, 2018, 01:24:12 pm
We have a big FAQ (https://www.sfml-dev.org/faq.php) with space to extend it (https://github.com/SFML/SFML-Website/issues/103). Unfortunately most people running into these common issues, won't be checking the FAQ the same way they aren't checking the 100 forum posts describing the same problem. But if we have more of the problems described in the FAQ we'd have a link to post for those people, instead of repeating the same answers.