Answer the question
In order to leave comments, you need to log in
How critical is duplication of code in several lines?
Let's say I have a piece of code (semantic duplication, that is, they implement the same thing in meaning)
$query = (new QueryChain())->select('*')
->from($this->store())
->where([$pk => ":$pk"])
->limit(1)
->build(); //Естественно этот кусок индивидуален для каждого запроса
$statement->bindValue($pk, $key); //И это тоже индивидуально!
$statement = $this->connection->prepare($query);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question