logoalt Hacker News

lpapeztoday at 9:19 AM1 replyview on HN

What is "good code"?

If you ask your boss, it will most likely be whatever spaghetti code which ensures the contract gets signed on time.

The boss doesn't care if the developer needs 10000 libraries for the submit button.


Replies

fslothtoday at 9:53 AM

"The boss" is not who says what is good enough. Ultimately it's the customer. In many industries it seems good enough is not very good.

Then there are industries where the customer complains if code is slow. They will actually hire expensive consultants to analyze and benchmark the code. And while the consultants likely are not more talented than inhouse staff, now you have both sides very interested at looking at the problem from engineering perspective.

In this case "good" includes performance.