DEV Community

Discussion on: Moving away from ReactJs and VueJs on front-end using Clean Architecture

tiptronic profile image
Andy Fuchs

I solve this by using a larger display ;) and I doubt 2-space indentatioin lets you see 'more code on each line' in ~99% of all cases. While 4-space indentation let's you much better see where functions/declarations start/end and what belongs together (no matter how long lines are).

Thread Thread
mfpopa profile image

Yeah, in most cases lines are short enough that it does not matter. But my point is still that indentation is a matter of preference or what you get used to. For me it's much easier to read 2-space indentation because it's what I'm used to. I find that it's easier to traverse the code because it feels closer together.