変数名1文字?おい、それやめろ。

When you're programming with an engineer and they start using single characters as variables
We don’t do that here

出典:sherrydays(DEV「Meme Monday」)

原文と和訳

When you're programming with an engineer and they start using single characters as variables
エンジニアと一緒にプログラミングしていて、 彼が変数名を1文字で書き始めようとしたとき
We don’t do that here
ここではそういうことはしない(するな!)

解説

変数名をx、y、zなどの一文字だけにするとコードが読みづらくて保守が大変になるから、ちゃんと意味のある変数名をつけようね

このミームへの反応

That’s what js compilers do code snipped from website prod build:

→ JSコンパイラで本番環境にビルドすると、難読化するために逆に1文字変数とかになるよね

That’s why source maps exist.

→ そのためにソース・マップが存在する。