String Concatenation - Root of all Evil
After college, I spent three years in software security acting as a pen-tester. It was my job to identify security vulnerabilities in the company's software via exploitation. During that time, string concatenation was the root cause of the vast majority of my findings. For that reason, it is my general philosophy that:
If you're concatenating strings, you're doing it wrong.
What?
To make my point easier to grok, let's start with a simple example:
>>> person.first_name + " " + person.last_name
'Bob Smith'
We've joined a person's first and last name with a space. The concatenated value can be thought of as a space delimited string. In of itself, this is …continue.