Skip to content

Commit

Permalink
Latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zackproser committed Feb 5, 2024
1 parent d63fb03 commit 9e31fc7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/app/blog/codeium-vs-chatgpt/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import codeiumChat from '@/images/codeium-chat.webp'
import chatGPTDALLE from '@/images/codeium-vs-chatgpt-dalle-3.webp'
import codeiumExample from '@/images/codeium-example.webp'
import modsExample from '@/images/mods-example.gif'
import projectBasedLearning from '@/images/project-based-learning.webp'

import ConsultingCTA from '@/components/ConsultingCTA'

Expand Down Expand Up @@ -52,7 +53,7 @@ and how you can use them to level up your development or technical workflow.
## Codeium vs ChatGPT - capabilities at a glance


| | Code generation | Image generation | Chat capabilities | Code completion | General purpose chat | Runs in IDEs | Free to use
| | Code generation | Image generation | Chat capabilities | Code completion | General purpose chat | Runs in IDEs | Free
|---|---|---|---|---|---|---|---|
| **Codeium** ||||||||
| **ChatGPT** |||||| ✴️ ||
Expand All @@ -66,22 +67,22 @@ Let's break down each of these attributes in turn to better understand how these

### Code generation

Both Codeium and ChatGPT are capable of advanced code generation, meaning that developers can ask it write code in most any programming language and get back something pretty reasonable
Both Codeium and ChatGPT are capable of advanced code generation, meaning that developers can ask the tool to write code in most any programming language and get back something pretty reasonable
most of the time.

For example, in the browser interface of ChatGPT 4, you could ask for a Javascript class that represents a user for a new backend system you're writing and get something
decent back, especially if you provide notes and refinements along the way.

For example, <Link target="_blank" href="https://chat.openai.com/share/b321419b-8b5c-47c8-bff9-e7a6b8e0d989">here's an actual conversation with ChatGPT 4 where I do just that</Link>.

Unless you're using a third party wrapper like a command like tool or IDE plugin that calls the OpenAI API, it's slightly awkward to do this in ChatGPT's browser chat window -
Unless you're using a third party wrapper like a command line interface (CLI) or IDE plugin that calls the OpenAI API, it's slightly awkward to do this in ChatGPT's browser chat window -
because you're going to end up doing a lot of copying from the browser and judiciously pasting into your code editor.

Even with this limitation, I've still found using ChatGPT 4 to discuss technical scenarios as I work to be a massive accelerator.

### Runs in IDEs

Codeium's advantage here is that it is designed to tightly integrate with the code editors that developers already use, such as VSCode and Neovim.
Codeium's advantage here is that it tightly integrates with the code editors that developers already use, such as VSCode and Neovim.

Think of Codeium as a code assistant that is hanging out in the background of whatever file you happen to be editing at the moment. It can read all of the text and code in the file to build up context.

Expand Down Expand Up @@ -113,8 +114,8 @@ My favorite of these is called <Link href="https://github.com/charmbracelet/mods

<Image src={modsExample} alt="Mods is charmbracelet's awesome command line wrapper around OpenAI" />

This makes the full power of OpenAI's latest models, as well as many powerful local-only and open-source models, directly
into your terminal where developers tend to live.
This makes the full power of OpenAI's latest models, as well as many powerful local-only and open-source models, available
in your terminal where developers tend to live.

I can have it read a file and suggest code improvements:

Expand All @@ -136,9 +137,9 @@ There are many community plugins for VSCode and Neovim that wrap the OpenAI in a

When you consider that it's possible to bring ChatGPT4 into your code editors and terminal with a little extra work, one of the key advantages that Codeium retains is its price.

I'm currently happy to pay $20 per month for ChatGPT Plus because I'm getting value out of it daily for various development tasks and for talking through problems. But Codeium is
I'm currently happy to pay $20 per month for ChatGPT Plus because I'm getting value out of it daily for various development tasks and for talking through problems.

absolutely free for individual developers, which is not to be overlooked, because the quality of its output is also very high.
But Codeium is absolutely free for individual developers, which is not to be overlooked, because the quality of its output is also very high.

## What advantage does ChatGPT have over Codeium?

Expand All @@ -147,24 +148,23 @@ they want, such as:

> "A bright and active school where several young hackers are sitting around working on computers while the instructor explains code on the whiteboard. Pixel art style."
## How developers use Codeium
<Image src={projectBasedLearning} alt="Project-based learning image generated by ChatGPT and DALLE" />

Codeium is installed in developer's integrated development environments (IDEs) such as VSCode or Neovim, and
as they write code, documentation and fix bugs, Codeium is aware of the context of the files being edited and can suggest autocompletions that developers can either accept,
reject or cycle through.
Having an on-demand image generator that responds to feedback, has a wide array of artistic styles at its disposal and can more or less follow directions (it's definitely not perfect)
is a pretty incredible time-saver and assistant when you publish as much on the web as I do.

As I initially wrote in my [Codeium review in 2023](/blog/codeium-review), I've found Codeium's overall quality of suggestions to be higher than GitHub's Copilot. Codeium is one
of my favorite tools and I have it installed on all of my development machines because:

* It's free for individual developers
* It works across every possible file type I edit, from YAML to Go, JavaScript, Dockerfiles, shell scripts, etc
* Its suggestions are of superlative quality, across the various auto-completion tools I've tried
## What about general purpose chat?

ChatGPT is OpenAI's groundbreaking model that is available via a browser interface and API, and a slew of
developer command line tools and helpers that wrap and call the API.
Up until recently, ChatGPT had the upper hand here. It's still one of the most powerful models available at the time of this writing, and it is not constrained to technical conversations.

The overall capabilities list is beginning to blend together a bit, because Codeium now has free chat functionality - and from some initial testing, it does quite well with the kinds of
coding asisstant tasks I would normally delegate to ChatGPT:
In fact, one of my favorite ways to use it is as a tutor on some new topic I'm ramping up on - I can ask it complex questions to check my understanding and ask for feedback on the mental
models I'm building. Anything from pop culture to outer space, philosophy and the meaning of life are up for grabs - and you can have a pretty satisfying and generally informative discussion
with ChatGPT on these and many more topics.

Tools like Codeium and GitHub's CoPilot used to be focused on the intelligent auto-completion functionality for coders, but all of these "AI-assisted developer tools" have been scrambling to add
their own chat functionality recently.

Codeium now has free chat functionality - and from some initial testing, it does quite well with the kinds of coding asisstant tasks I would normally delegate to ChatGPT:

<Image src={codeiumChat} alt="Codeium's free chat interface" />

Expand Down

0 comments on commit 9e31fc7

Please sign in to comment.