In computer programming, duplicate code is a sequence of source code that occurs more than once, either within a program or across different programs owned or maintained by the same entity. Duplicate code is generally considered undesirable for a number of reasons.
It's safe to say that duplicate code makes your code awfully hard to maintain. It makes your codebase unnecessary large and adds extra technical debt. On top of that, writing duplicate code is a waste of time that could have been better spent.
Duplication is bad, but… It isn't a question of whether you'll remember: it's a question of when you'll forget.” Which makes perfect sense. It's time well spent when you try to make your code streamlined and readable. You'll end up with a cleaner, easier-to-maintain, and more extensible code base as a result.
I think, Wikipedia has got this one very right:
A programming language is an artificial language designed to express computations
that can be performed by a machine, particularly a computer.
The first sentence is enough to describe what it is:
This is what a programming language is in its most general definition.
Your definition lacks this generality (for example your sentences fit rather good for command oriented languages, but not for e.g. logical programming).
Programming language is way to express commands and orders to specific actors.
Programming language consists of a notation and a set of rules, either expressed or implied, such that any actor that executes a program will not violate the rules.
I disagree that programming language has
Its a way softwares (computer programs) interact with each other. And its an interface to humans interact with computers.
The definition i like :)
Programming language is special vocabulary for instructing computer: a unique vocabulary and set of rules for writing computer programs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With