mrhands

Sexy game(s) maker

  • he/him

I do UI programming for AAA games and I have opinions about adult games


Discord
mrhands31

At my day job, we use Typescript for our UI and do most of the game logic in C++. It can be difficult to switch between these languages mentally, so I encourage the team to write C++ in Visual Studio and Typescript in VS Code. The convention for C++ is that we put the opening brace for statements on the next line, Allman style. But when writing Typescript, we put the opening brace on the current line, K&R style. Unfortunately, while Typescript has very robust linting tools that automatically correct the braces, C++ does not, so I'm forever cursed to open every code review with this comment:

Please put your opening braces on the next line when writing C++.


You must log in to comment.

in reply to @mrhands's post:

Well, for one, I desperately wish clang-format worked as well for C++ as ESLint + @typescript-eslint does for Typescript! Secondly, this is a AAA game project with millions of lines of C++ code written over almost two decades. Introducing linting would be a considerable challenge at this point. 🙃