logoalt Hacker News

dghlsakjgtoday at 6:54 PM1 replyview on HN

A formal programmic language beats an informal language anytime. Why on earth would you write a comment in an ambiguous informal language when you could translate it to code?


Replies

bryanrasmussentoday at 7:31 PM

programmer looks at formal programmic language which has so beaten the informal language that one cannot tell the reason why this stupid bit of code exists in the silly form it does is to prevent an edge condition in a particular browser while still working fine for other browsers.

Luckily genius programmer who understands formal programmic language and does not need weak comments to clarify why the world is not perfect, fixes the stupid looking code to be beautiful, opening company up to some really super neat, seemingly random bugs in one browser that nobody will understand for several months.

tldr: one important reason comments exist is to clarify why code you might expect to look another way looks the way it does, of course if the only reason it looks the way it does is this is the way the AI wrote it I guess I agree the comment is unnecessary.