When you read someone else's code and they have a weird style

#programming #developers #cplusplus

@alok99 I'm the one with the weird style
@gracicot tell me whatcha got! CoreGuidelines, K&R, Linux Kernel, LLVM? PascalCase, camelCase, snake_case? Spaces or tabs? Spaces between method and parentheses? There's so much room for weird!
@alok99 it's really hard to put a whole style in 500 characters, but I can put the most outrageous. Aesthetically, no formatters handle it. East const, operators on newline, tabs done right as no matter their sizes the code looks good. Spaces to align lines after operators. Always auto, like `auto const a = int{stuff()};`. I dislike virtual functions but I use lambdas a lot, and reflect on lambda parameters for... Things. Also I strictly use keywords like `or` and `and` instead of || and &&.
@alok99 and snake case in C++ because that's the standard and consistent with most libraries.
@gracicot I like it! What do you mean operators on newline? Like <<?
@alok99 I tried to instruct clang-format to do this, but clang format insists on either aligning the braces or aligning the content within a brace, or it tries to indent with tabs which is wrong. Yes, << included but I rarely use iostreams nowadays