Why Robots Should Learn To Write Code

One might tend to think that, more sooner than later, robots will replace the human coders. And that's nothing we have to worry about. It happened the same with hand-washing, and the World we know still rounds and cycles.

This thinking of mine, the replacement, above all other circumstances and behavioural factors I won't explain here to not amuse you, is due to the existence of entities that we name patterns.

An example of a pattern is:

define('REGEX_EMAIL', '/^[^\W][a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*\@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,6}$/'); 

define('REGEX_DOMAIN', '/^(([a-zA-Z0-9-]+)\.?)([a-zA-Z0-9-]+)\.(([a-zA-Z]{2,6})|([a-zA-Z]{2,3}\.[a-zA-Z]{2}))$/'); 

 
Make a test on yourself with a simple PHP script.  And imagine that script, the pattern, that snippet, is written a long, long time ago. By this, yours truly, Here. We call 'em  snippets in those early days. It was precisely written when coding was like the fine art of surfacing the web.

Follow the test and now, ten or plus years later, with our actual knowledge, guess yourself who has to type the pattern, the robot or the human.  Is there really the need for a human to re-type this pattern?

I am still enhancing the posts of this -- your --  blog with hand-written code, but robots make most of the task. Be not afraid of robots to learn.
Newer Post Older Post Home