- The AI Puppy
- Posts
- Code without the learning curve š»
Code without the learning curve š»
Whether youāre a coding pro or a total tech novice, here are AI tools that do the coding heavy lifting for you šŖ
Hey AI Puppies,
Of the many things there is to love about AI (and of the many misconceptions there are about it, too), weāre especially obsessed with how user-friendly AI can be, regardless of your skill with other technology.
Donāt know how to build a website? Have no idea how to switch HDMIs on your TV? Canāt code to save your life?
AI doesnāt care.
If you know how to do a Google search, you can use AI.

you using AI better than Outlook
Weāre kicking off this newsletter with a motivational speech because this week, weāre exploring AI tactics for something a bit more advanced: Code.
Never seen a line of code in your life? Donāt panic ā youāre about to meet your co-pilot.
Already know your way around a line of code and back? Keep reading ā youāre about to lighten the workload.
Letās get into:
ā Generating code from scratch (including beginner-friendly html)
ā Speeding up the code-writing process
ā Replacing coding bugs with actionable solutions
Writing Code With AI
Letās start with some basic coding definitions:
šA code is a set of guidelines that create a software application
āļøCode is written in a specific programming language such as C++, Java, Python, and SQL
š»Computers then read the written coding lines to execute the directions
šSo, in extremely basic terms, writing code is the art of writing a very, very specific instruction manual in a language computers can understand
Like every other task thatās compatible with AI, coding has a lot of repetition and a lot of fundamental rules. Theyāre so compatible, coding is considered one of the fields most likely to be transformed by AI.
Ready to get in on the fun and write your first line of code? Letās start with some low-hanging fruit: HTML, the type of code thatās used to build websites.
šAs usual, the first step is to head to your ChatGPT account. Weāre keeping things simple today, so stick to your normal chat area for now.
šThen, tell ChatGPT what you coding language you want to use (in this case, HTML5, the latest form of HTML), and what you want it to do.
We enteredā¦.
āWrite me an html5 page about how to train a puppyā
And gotā¦

You can also ask it for specific help! For example, we plugged inā¦
āwrite me an html5 prompt for centering text in the middle of the page and putting in a bold fontā
And gotā¦

We say this every week, but yes, Puppies, it really is that simple š¶
When you eventually reach higher levels of coding with languages like Python, you can follow the same steps.
For example, we enteredā¦.
āCan you write a simple Python code welcoming a user to a page and asking them to share their emailā
And gotā¦

We say this every week, but yes, Puppies, it really is that simple š¶
Now, before we get carried away, we do want to caveat that in order to write dynamic, powerful, and compelling code, you do need to pair AIās writing ability with a solid understanding of what full-fledged coding really looks like.
Beginners who are determined to get to that level (and we fully believe you can) should experiment with OpenAI Codex alongside their studying.
OpenAI Codex still turns natural language into code, but it can do a lot more than ChatGPT. So while anyone can use it, code knowledge or not, youāll still need to know what to do with the scripts once you have them!
Hereās an example, courtesy of Harish Garg:

OpenAI Codex does require an application to get access to the beta, so if you want a less-exclusive alternative, take a look at Polycoder. It was developed by researchers at Carnegie Mellon University and claims to write C code faster than Codex š
Happy learning, Puppies!
Streamlining Coding
Feeling confident with your coding? What if we told you you could still get the satisfaction of writing code for a fraction of the time investment ā
Already, AI tools have been developed that sit alongside you as you write code to provide predictive suggestions based on the lines youāve written so far.
Think of it as a co-author ā you write your lines as usual, but have someone else do the repetitive typing for you.
Many of these types of tools are already in use across the software industry, but letās review two that are gaining traction:
š Codota is a website that generates code completion suggestions based on the userās unique coding habits. It also features a search engine to help you find snippets and examples:

Codota example, courtesy of Bug Days]
šTabnine is a very similar solution, but has a bit more of a teamwork focus. It gives completion suggestions based on both an individualās and an organizationās preferences:
Time is a precious resource ā code completion AI is here to maximize yours!
Fixing Bugs
Say you love writing end-to-end code manually, but canāt solve a lingering issue.
Meet Snyk powered by DeepCode, a website that uses AI and machine learning to review and analyze written code and suggest improvements.
It claims to go above and beyond other static analysis tools, advertising that āOnly 10% of the sampled defects/rules from existing static analysis tools overlap with the large range of defects and suggestions DeepCode can detect.ā
Hereās what the interface looks like:

Since its launch in 2020, itās grown into a team-oriented tool for speeding up coding across entire organizations š
If youād prefer to keep things simple or solo for now, thereās always good olā ChatGPT.
Your Next Assignment
If youāre the type of AI user who doesnāt want to peer behind the veil, you can go ahead and skip this weekās assignment ā coding is an acquired taste š
But if youāre on a mission to learn, improve, or master codingā¦
Beginners, ask ChatGPT to write some Python for you.
Intermediate coders, test out code completion.
Serious coders, see if DeepCode, ChatGPT, or Open AI Codex catches something you didnāt š
Donāt forget to share your experience and tag us! Weāre live on Facebook, Twitter, Instagram, LinkedIn, YouTube, and TikTok š²

Stay cool out there, Puppies! Weāll be back next week with another take on AI tactics.
Cheers,
The AI Puppy