News for hackers. Stuff that matters.
Re:I Didn't Get Hired to Google by jasode on Wednesday January 11, 2017 @10:05AM (#13374359)
>I do wonder what the parallel equivalent of headline clickbait in code is.

A common example would be business logic code polluting the "View" of MVC.

code reviewer: "Why are you retrieving the sales tax jurisdiction from the database and computing sales tax in the gui form?"

programmer: "Well, the form has the TOTAL amount displayed to the customer so it made sense to me to put that db-dependent code there."

code reviewer: "No, that's what the "Model" code is for. That's the "M" in "MVC".

programmer: "Oh, the model source code is where I update the GUI progress bar because that's where the state variable that keeps track rows processed is stored. "

There are no comments on this comment yet.