DEV Community

Discussion on: Types: When I use, when I don't.

r_mirabelli profile image
Russell Mirabelli

Types, if available, every time.

That one-page program, short snippet, or script? It's going to bloat and one day become a full-fledged text editor or something equally ridiculous. That's why I don't like using shortcuts even for short programs.

cheshireswift profile image

I strongly disagree. A lot of my personal projects are, for example, written as single HTML pages, with inline styles and javascript, and rarely extend beyond ~300 lines total.

Adding a build just isn't a worthwhile upfront cost when I can just write code and have it run with zero setup.

Assuming it'll bloat or expand is something I save for professional projects. In both cases my experience backs up that decision.