Skip to content

Comment on Ask HN: Examples of Unusual Code Formatting Styles?parent

Comments

Code has evolved towards smaller indentation: 2 spaces instead of 4. We might see 1.

However, we have more async stuff than ever before. Heavy nesting is frequent.

And then you have the weird new imperative UI stuff like Flutter/Jetpack Compose where a simple layout is brackets in brackets in brackets in brackets.

Rainbow brackets are a thing though - one of the most popular plugins in many IDEs is something that highlights different colour brackets.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.