A post on ye olde Kitsublog



Always Put Your Import Statements At The Start Of Your File.

Published: Wed May 31 2023

Edited: Wed Dec 13 2023

A year of working in NodeJS has more or less tossed my good C#/Java import habits out the window, and I spent 2 hours regretting my life choices because of it. Don't do what I did. Put all of your imports at the top. Why? Because...

A very incorrect import structuring.

What a gibberish error, right? Stuff about type literals or how expected ( but got yout. Pft.

The godly habit of import structuring.

That's it. That's all. It's happy now. The compiler gods are happy now. Ugh.