|
|
|
|
|
by springogeek
2297 days ago
|
|
Programming in C requires you to take proper responsibility for what you write, but also allows for great power in return. I've been working on a reasonably large (and cross platform) project in C (https://domeengine.com) for a couple years now, and I find that C generally requires a certain kind of discipline. When you interact with an API, you need to read the docs, figure out their specific preconditions, and requirements on handling frees, establishing what you own and what you don't. It also helps to make sure that if you allocate something, you clean up after in a clear and well defined way. You should also get very familiar with debuggers (LLDB/GDB) and other dev tools, to help when you have made a mistake. In the modern era, you have a couple of options for getting it to run on Windows. C89 using Visual Studio, The MSYS2/MinGW2 gcc toolchain, or a gcc toolchain using the WSL. I use the MSYS2 tools for DOME because it requires the fewest platform-specific modifications to my code, but this varies by usecase. |
|