As far as texting in general is concerned, my opinion is based on the fact that it is based on electronic instead of mechanical technology. Smartphone technology presently exists which can determine whether a cellphone is in motion. It's called GPS.
In my opinion, cellphone manufacturers should make GPS standard on all their products (if they do not already). Cellphone GPS should be integration with texting functionality. Then, each cellphone could be 'encoded' to shut down its texting capability while its owner is driving.
It would also eliminate texting while riding as well. But, in reality, that would be a small sacrifice for cellphone owners to accept as a consequence of helping prevent needless injury or death due to texting while driving.
Of course, this is exactly the kind of idea which tests humanity's willingness to part with something which is not essential to their everyday lives. It is also one which might negatively impact corporate greed. Admittedly, those are two huge hurdles to overcome when comtemplating whether the personal safety of others warrants such minor changes.