Perplexity Pro's AI absolutely aced my coding tests - but there's a catch (2024)

Perplexity Pro's AI absolutely aced my coding tests - but there's a catch (1)

A few weeks ago, I ran my standard suite of programming tests against the free version of the Perplexity.ai chatbot. At the end of the article, I offered to run tests against the $20/mo Pro version if enough of you were interested. I did get some requests, so that's what we're doing here.

Also: Want a free year of Perplexity Pro? Here's how to claim it

Like most other pro versions, to use Perplexity Pro, you have to create an account. You can sign in using either Google or Apple auth methods or a SAML sign-in. Alternatively, you can create an account using your email address, which is what I did.

Unfortunately, the site doesn't seem to give you any way to set a password or any form of multifactor authentication. You're sent an email with a code, and that's it. I don't mind getting an email code, but I'm really disturbed by web apps relying solely on an email code without, at least, a password. But that's what Perplexity.AI is doing.

Also: 5 reasons why I prefer Perplexity over every other AI chatbot

The other interesting aspect of Perplexity Pro is its cornucopia of AI models. As you can see in the image below, you can choose between a number of different models, based on the kind of work you have. I chose Default to see what that did with the tests. After running the tests, I asked Perplexity Pro what model it used for them, and it told me ChatGPT GPT-4.

Perplexity Pro's AI absolutely aced my coding tests - but there's a catch (2)

And with that, let's run some tests.

1. Writing a WordPress plugin

This challenge is a fairly simple programming task for anyone with a modicum of web programming experience. It presents a user interface in the administration dashboard with two fields: one is a list of names to be randomized, and the other is the output.

The only real gotcha is that the list of names can have duplicates, and rather than removing the extra names, its instructions are to make sure the duplicate names are separated from each other.

Also:How I test an AI chatbot's coding ability - and you can too

This was a real, requested function that my wife needed to use for her e-commerce website. Every month, they do a wheel spin and some people qualify for multiple entries.

Using Perplexity Pro's default model, the AI succeeded in generating a workable user interface and functional code, providing both a PHP block and a JavaScript block to control the text areas and the randomization logic.

Here are the aggregate results of this and previous tests:

  • Perplexity Pro:Interface: good, functionality: good
  • Perplexity:Interface: good, functionality: good
  • Claude 3.5 Sonnet:Interface: good, functionality: fail
  • ChatGPT using GPT-4o:Interface: good, functionality: good
  • Microsoft Copilot:Interface: adequate, functionality: fail
  • Meta AI:Interface: adequate, functionality: fail
  • Meta Code Llama:Complete failure
  • Google Gemini Advanced:Interface: good, functionality: fail
  • ChatGPT using GPT-4:Interface: good, functionality: good
  • ChatGPT using GPT-3.5:Interface: good, functionality: good

2. Rewriting a string function

For each test, I open a new session with the AI. In this test, I'm asking the AI to rewrite a block of code that had a bug. The code was designed to validate the input of dollars and cents, which should comprise a certain number of digits before the decimal point, a possible decimal point, and two digits after the decimal point.

Also: Yikes! Microsoft Copilot failed every single one of my coding tests

Unfortunately, the code I shipped only allowed integer numbers. After a couple of user reports, I decided to feed the code to the AI for a rewrite. My code uses regular expressions, which are a formulaic way of specifying a format. Regular expressions themselves are fun, but debugging them is not.

In the case of this test, Perplexity Pro did a good job. The resultant validation code properly flagged items that did not fit the format for dollars and cents, allowing up to two digits after the decimal.

Here are the aggregate results of this and previous tests:

  • Perplexity Pro:Succeeded
  • Perplexity:Succeeded
  • Claude 3.5 Sonnet:Failed
  • ChatGPT using GPT-4o:Succeeded
  • Microsoft Copilot:Failed
  • Meta AI:Failed
  • Meta Code Llama:Succeeded
  • Google Gemini Advanced:Failed
  • ChatGPT using GPT-4:Succeeded
  • ChatGPT using GPT-3.5:Succeeded

3. Finding an annoying bug

This test had me stumped for a few hours. Before it was a test, it was a bug in the code for an actual product. The problem was that whatever was going wrong wasn't related to any obvious logic or language issue.

Also:I asked ChatGPT to write a WordPress plugin I needed. It did it in less than 5 minutes

Being seriously frustrated, I decided to feed ChatGPT the code as well as the error dump and ask it for help. Fortunately, it found what I had done wrong and gave me guidance on what to fix.

The reason I'm including this in the set of tests is because the bug wasn't in language or logic, it was in knowledge of the WordPress framework. While WordPress is popular, framework knowledge is generally considered the folklore of a programming environment, something passed down from developer to developer, rather than something that would be rigorously learned by a knowledge base.

However, ChatGPT, as well as Perplexity and now Perplexity Pro, did find the problem. The error was due to a parameter calling issue buried in the framework itself. The obvious answer, which you might come up with strictly by reading the error messages generated by the code, was actually wrong.

Also: Uber One subscribers get a free year of Perplexity Pro. Here's how to claim it

To solve it, the AI had to show a deeper understanding of how all the systems work together, something with Perplexity Pro did successfully.

Here are the aggregate results of this and previous tests:

  • Perplexity:Succeeded
  • Perplexity Pro:Succeeded
  • Claude 3.5 Sonnet:Succeeded
  • ChatGPT using GPT-4o:Succeeded
  • Microsoft Copilot:Failed
  • Meta AI:Succeeded
  • Meta Code Llama:Failed
  • Google Gemini Advanced:Failed
  • ChatGPT using GPT-4:Succeeded
  • ChatGPT using GPT-3.5:Succeeded

4. Writing a script

Well, this is interesting. Perplexity Pro passed this test, but the free version of Perplexity failed when I tested it a couple of weeks ago. So, yay!

But let's dive into this a bit. The challenge here is that I ask the AI to write a script that intersects three environments: the Chrome DOM (document object model), AppleScript (Apple's native scripting language), and Keyboard Maestro (a very cool Mac automation tool that's fairly obscure, but to me, mission-critical).

Most of the AIs failed because they didn't have any information on Keyboard Maestro in their knowledge bases and, as such, didn't give the necessary code for the script to do what I wanted.

Also:How to use ChatGPT to write code: What it can and can't do for you

Only Gemini Advanced and ChatGPT using GPT-4 and GPT-4o passed this test until now. In answering the question, Perplexity Pro provided a Pro Search view. As you can see, the Pro Search view did a search for "Keyboard Maestro AppleScript Google Chrome tabs." It also usedthe main Keyboard Maestro forumas a source, which is the best source for getting Keyboard Maestro coding help.

Perplexity Pro's AI absolutely aced my coding tests - but there's a catch (3)

The result was a success.

Here are the aggregate results of this and previous tests:

  • Perplexity Pro:Succeeded
  • Perplexity:Failed
  • Claude 3.5 Sonnet:Failed
  • ChatGPT using GPT-4o:Succeeded but with reservations
  • Microsoft Copilot:Failed
  • Meta AI:Failed
  • Meta Code Llama:Failed
  • Google Gemini Advanced:Succeeded
  • ChatGPT using GPT-4:Succeeded
  • ChatGPT using GPT-3.5:Failed

Overall results

Here are the overall results of the four tests:

  • Perplexity Pro:4 out of 4 succeeded
  • Perplexity:3 out of 4 succeeded
  • Claude 3.5 Sonnet:1 out of 4 succeeded
  • ChatGPT using GPT-4o:4 out of 4 succeededbut with a caveat
  • Microsoft Copilot:0 out of 4 succeeded
  • Meta AI:1 out of 4 succeeded
  • Meta Code Llama:1 out of 4 succeeded
  • Google Gemini Advanced:1 out of 4 succeeded
  • ChatGPT using GPT-4:4 out of 4 succeeded
  • ChatGPT using GPT-3.5:3 out of 4 succeeded

As you can see, Perplexity Pro joins only ChatGPT with GPT-4 and GPT-4o as having a perfect score of 4 out of 4 succeeded. After running my tests, I checked with Perplexity Pro's AI and it informed me it used GPT-4 to analyze and respond to my tests.

Given that GPT-4/4o is the only AI that nailed all four of my tests before, this makes sense. So far, I haven't found any other model that can fully and correctly pass all four programming tests.

Also: How to run dozens of AI models on your Mac or PC - no third-party cloud needed

If you choose Perplexity Pro, I can fairly confidently state that it should be able to do a good job of helping you program.

Have you tried coding with Perplexity, Copilot, Meta AI, Gemini, or ChatGPT? What has your experience been? Let us know in the comments below.

You can follow my day-to-day project updates on social media. Be sure to subscribe to my weekly update newsletter, and follow me on Twitter/X at @DavidGewirtz, on Facebook at Facebook.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, and on YouTube at YouTube.com/DavidGewirtzTV.

Featured

  • Everything announced at Made by Google 2024
  • You can upgrade your old PC to Windows 11 - even if Microsoft says it's 'incompatible'. Here's how
  • The best smart rings you can buy: Expert tested
  • I'm a diehard Pixel user, but I'm considering a change for two reasons (and I'm not alone)
Perplexity Pro's AI absolutely aced my coding tests - but there's a catch (2024)

FAQs

Is perplexity good for coding? ›

Is Perplexity Pro worth the subscription fee? That may depend on what you use it for, but it should do a good job of helping you program.

Can perplexity run code? ›

Code interpretation

Pro Search is a powerful tool for developers and programmers. It can debug code, run simulations, and provide detailed explanations for complex programming concepts. Whether you're tackling a tricky bug or optimizing your code, Pro Search has you covered.

Is Perplexity AI free? ›

Quick Searches are free, and you don't even have to create an account to start one. Perplexity Pro costs $20/month and allows you to use more powerful AI models and conduct hundreds of Pro Searches per day.

How does perplexity AI work? ›

It leverages sophisticated algorithms to understand and respond to complex questions, delivering concise and contextual answers. Core features include real-time information retrieval, citation tracking, and integration with various data sources.

Can I trust Perplexity AI? ›

While Perplexity AI is a powerful tool, it's essential to be aware of potential safety concerns. One significant consideration is the accuracy of the information it provides. Although the AI strives to deliver precise answers, there is always a risk of encountering incorrect or misleading information.

Is 60% good for coding? ›

Yes, a 60 keyboard is versatile and suitable for programming and gaming. The lack of extra keys doesn't hinder functionality, and many programmers and gamers prefer the compact design for its efficiency and minimalistic style.

Is perplexity AI better than ChatGPT? ›

If you're looking for a conversational AI chatbot to replace or augment traditional searches, Perplexity AI is hard to beat. On the other hand, if you want a general-purpose AI assistant, ChatGPT is the best bot around.

What is copilot mode in perplexity AI? ›

Perplexity's Copilot feature provides a guided Al search experience, allowing you to explore topics in depth and learn new things.

Is Perplexity AI detectable? ›

Perplexity and burstiness are some of the most important differentiators between human and AI-generated text. More predictable and monotonous sentences are often a tell-tale sign that AI was involved in the content creation process. Much like AI text generators, AI detection tools revolve around NLP and ML.

What are the limitations of Perplexity AI? ›

Common Limitations of Perplexity AI
  • Accuracy Issues: While it aims to reduce perplexity, it can still produce inaccurate or nonsensical outputs in certain contexts.
  • High Computational Costs: The advanced algorithms and large datasets required for Perplexity AI can lead to significant computational expenses.
Jun 25, 2024

What do you get with Perplexity Pro? ›

Perplexity Pro is the most powerful way to search the internet with unlimited Pro Search, upgraded AI models, unlimited file upload, image generation, and API credits. Start for free, no credit card needed.

What is the controversy with Perplexity AI? ›

The announcement follows an onslaught of controversy in June, when Forbes said it found a plagiarized version of its paywalled original reporting within Perplexity AI's Pages tool, with no reference to the media outlet besides a small “F” logo at the bottom of the page.

Does Perplexity sell my data? ›

Is my personal data shared with third parties? Perplexity AI does not sell, trade, or share your personal information with third parties, except as outlined in our policy.

Which coding platform is best for coding? ›

1. LeetCode. LeetCode is one of the most popular coding platforms, known for its extensive collection of coding challenges and problems that cover a wide range of topics, including algorithms, data structures, databases, and more. It is widely used by developers to prepare for technical interviews at top tech companies ...

Is perplexity a good AI engine? ›

Perplexity stands out among AI-powered search engines for getting quick and personalized answers to your queries and further helping with content generation and summarization. Even the free version of the Perplexity AI app can enrich the knowledge discovery process—especially as a standalone conversational AI chatbot.

What program do most coders use? ›

Some examples of the best programming software
  1. Sublime Text. Sublime Text is a popular text editor that can handle markup, code, and prose. ...
  2. Visual Studio. Microsoft Visual Studio is the best coding software for creating websites, web services, and mobile applications. ...
  3. Xcode. ...
  4. IntelliJ IDEA. ...
  5. AWS Cloud9.

What is the best system for coding? ›

Linux, macOS, and Windows are highly preferred operating systems for web developers. Although, Windows has an additional advantage as it allows to work simultaneously with Windows and Linux. Using these two Operating Systems allows web developers to use the necessary apps including Node JS, Ubuntu, and GIT.

References

Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5540

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.