# DeepMind's AlphaCode Won't Steal Your Job Either

> TL;DR: Wait until machine learning solutions solve real business problems.

[Alphabet's DeepMind](https://deepmind.com/about), [Microsoft's Github](https://copilot.github.com/), and [OpenAI](https://openai.com/blog/gpt-3-apps/) are leading the Artificial Intelligence coding segment.

With different approaches, they try to solve coding challenges.

They use [transformer-based](https://en.wikipedia.org/wiki/Transformer_(machine_learning_model) language models to generate code.

> AlphaCode [achieved](https://deepmind.com/blog/article/Competitive-programming-with-AlphaCode) an estimated rank within the top 54% of participants in programming competitions by solving new problems that require a combination of critical thinking, logic, algorithms, coding, and natural language understanding.

Deep Mind's product was trained and competed against humans at [Codeforces](https://codeforces.com/) contests.

With overfitting claims, it outperformed several people at those contests.

[Results](https://github.com/deepmind/code_contests) are available online.

A careful look at the datasets shows basic algorithmic solutions with output code full of [code smells](https://maximilianocontieri.com/how-to-find-the-stinky-parts-of-your-code) many human counterparts make.

Variables with [bad names](https://maximilianocontieri.com/what-exactly-is-a-name-part-ii-rehab), [Lots of ifs](https://maximilianocontieri.com/code-smell-36-switchcaseelseifelseif-statements), [too long methods](https://maximilianocontieri.com/code-smell-03-functions-are-too-long), [global functions](https://maximilianocontieri.com/code-smell-17-global-functions) are some examples of these smells many code reviewers would not approve.

![ugly algorithmic solution](https://cdn.hashnode.com/res/hashnode/image/upload/v1644093951880/Gw3rvI_uH.png)

The three current solutions (AlphaCode, [GitHub Copilot](https://maximilianocontieri.com/why-github-copilot-is-not-a-threat-to-your-job), [GPT3](https://maximilianocontieri.com/ive-recently-learned-about-gpt3-this-is-my-journey)) focus on competitive programming, an area where performance is the ultimate goal and readability is not important. 

# The final frontier

Model [domain entities](https://maximilianocontieri.com/the-one-and-only-software-design-principle) and business behavior instead of boring and repetitive algorithms full of code smells.

Try to understand the entities and the behaviour on your simulation software.

# References

%[https://maximilianocontieri.com/why-github-copilot-is-not-a-threat-to-your-job]

%[https://maximilianocontieri.com/ive-recently-learned-about-gpt3-this-is-my-journey]

# What should you do?

Stop competing against smarter machines than you.

[Learn](https://maximilianocontieri.com/what-is-wrong-with-software) and [model](https://maximilianocontieri.com/the-one-and-only-software-design-principle) rich domains.

You will [keep your job](https://maximilianocontieri.com/most-programmers-are-losing-our-jobs-very-soon) for a few more years...
