I've been learning C++ for about 300 days, but I'm hitting a serious wall with SFML 3.0. I've been struggling to understand things like 'window.pollEvent()' and 'std::optional', and it's really frustrating. It feels like I'm just stuck on a library that doesn't even help me fully grasp C++. I thought about learning HTML as a 'secondary' language since I've seen videos showing how HTML can work with C++, but I'm not sure if that's a good idea. Is it wise to start learning another language like HTML when I'm not making progress with C++?
5 Answers
It really depends on your goals. If you're focused on game development, you may want to stick with C++ and explore advanced game frameworks like Unreal Engine instead of SFML, which can be restrictive. If your goal is just to learn programming generally, try working on simple projects without SFML for now. HTML is more about web design and doesn't really fit into game dev, but it's worth learning if you're interested in websites!
If you're aiming for front-end web development, diving into HTML is definitely a good idea. C++ isn't typically used for front-end stuff. Just keep in mind that HTML is a markup language, so it's pretty easy to pick up!
You might find that learning libraries and different languages is necessary in programming. If SFML and C++ are causing you frustration, consider switching gears to something like C# with MonoGame or Lua, which could give you a different but refreshing perspective.
I say go for it! Learning multiple languages can really enhance your understanding of programming concepts. Each new language gives you unique insights that can help you with the ones you already know. Just be sure to solidify your base skills in C++ first!
Honestly, if you've got C++ down, HTML might feel a bit dull. Consider jumping into a modern web framework, like React or Angular, that will blend front and back-end development instead of just learning HTML. You'll likely pick up HTML along the way!

Have you heard of CGI? It can tie HTML with back-end programming like C++!