Never commit code thatβs been commented out π«
Iβve never understood the reasoning behind committing code thatβs been commented out. π€
I assume itβs to keep old versions of the code around just in case the new code doesnβt work, but thatβs just bizarre. β οΈ
Keeping track of old versions is the reason we use a version control system in the first placeβοΈ
Why was the code commented outβ
Does it workβ
Should it workβ
Has it ever workedβ
Is it something we should strive towards or run away fromβ
Code thatβs been commented out is worse than useless, because every time itβs read, it raises questions like these without providing any answers. β
It only serves to confuse and distract from the code in use. π€―
https://t.me/pgimg/134
γ°γ°γ°γ°γ°γ°
#Tips #Git
@ProgrammingTip
Iβve never understood the reasoning behind committing code thatβs been commented out. π€
I assume itβs to keep old versions of the code around just in case the new code doesnβt work, but thatβs just bizarre. β οΈ
Keeping track of old versions is the reason we use a version control system in the first placeβοΈ
Why was the code commented outβ
Does it workβ
Should it workβ
Has it ever workedβ
Is it something we should strive towards or run away fromβ
Code thatβs been commented out is worse than useless, because every time itβs read, it raises questions like these without providing any answers. β
It only serves to confuse and distract from the code in use. π€―
https://t.me/pgimg/134
γ°γ°γ°γ°γ°γ°
#Tips #Git
@ProgrammingTip
Telegram
Programming Tips Resources