DEV Community

Discussion on: 'let' it be (remix.run)

Collapse
 
ryanflorence profile image
Ryan Florence

We use let because it's three letters and sounds nice when you say it out loud. That's it.

Try it, say this out loud: let user = await getUser()

Now say this out loud: const user = await getUser().

Not only is "const" exercising every end of your mouth but it's all over the keyboard too.

🤣

But anyway, we're updating the docs to use const because this is not a hill we want to die on, or even want to fight on. In fact, we didn't even want to visit this hill 😂. We let this go so long ago, we had no idea the const war was still raging in lint configs around the world ⚔️

Collapse
 
ctrlshiftbryan profile image
ctrlshiftbryan

This is great! So excited for remix and so far the team has already fixed the two "friction points" I noticed as a new developer/user. The second point being adding the documentation search.