Jump to content
AllAi Connect

Recommended Posts

Posted

Estimated Read Time: 8 minutes.


Hello everyone 🙋‍♂️

 

In this post, I would like to answer the most common question that we get from many people:

“AllAi Code is for whom? Is it for Juniors, is it for Intermediates, or is it for Seniors?”

 

Short answer; AllAi Code is for everyone.

A bit longer answer; All AllAi Code features are friendly and easy to use. Yes, some of the features may be confusing for those with less experience. However, you can also use it as a tutor and learn a lot from it. And, while it’s true that some experienced people may need to get used to certain features(old habits die hard…), AllAi Code won’t fundamentally change the way you work - it will only serve you to improve it.

  • E.g; IronMan and Jarvis

Long answer; I will keep you for a few minutes. Please sit back and enjoy your reading.

 

Part-1: I might be a Technical Enablement Manager now, but I was a Developer before that

Yes, I`m working as a Technical Enablement Manager right now, but before switching paths in my career(developer to product manager), I was a mid-level Full-Stack Developer.

When AllAi Code first came out, I was very excited to be in a company that invests in cool AI stuff. Before anyone else in the market, we have a chance to experiment with new things. So, as you can understand I wanted to take more roles in AllAi Code and that`s how my journey started.

I found it challenging to work with AllAi Code because there was no training or content available to help me understand how to use it effectively. As a result, I spent a considerable amount of time creating training materials to help others leverage AllAi Code more efficiently.

 

Part-2: The conflict

Alright, we have AllAi Code which is an AI tool that auto-completes code, generates code based on my plain English instructions, does code explanations, and many more things. You can look at the AllAi Documentation > User Guides to see the features that AllAi Code has.

 
AllAi Code has great power to achieve great results. But, like Spiderman`s uncle once said:

“With great power comes great responsibility“, -Uncle Ben

 

This applies the same to AllAi Code, there is great potential but you must learn how to unlock this skill. Otherwise, it’s a waste and will not work properly. User guides will help you unlock this new skill, and in this post, I will try to solve the conflict that we hear from people. Which is:

Low-experienced people say, “AllAi Code should be used by highly experienced people.”

High-experienced people say. “AllAi Code should be used by low experienced people.“

Funny, right? Both sides think it should be for the other side but they are both wrong. It’s absolutely for everyone but of course, some may use some features more 🙂

Let’s get into details together and prove it’s for everyone.

 

Part-3: Let’s say you have low experience(aka. junior)…

You may not have much experience with Salesforce, JavaScript, or coding in general. When we are new, the most important thing is to keep learning. You can think of AllAi Code as your mentor in this manner. It will help you in many ways. Let me share a few examples that I see as great value for low-experienced people.

Example-1: Regex to validate @osf.digital email addresses:

I don`t know you, but for me, working with Regex is a bummer. I forget about the syntax and the rules till I have to work with Regex again. And, perhaps, as a low experienced person in the industry, it might be your first time working on Regex.

What we gonna do is simple. First, we will use the Code Generation (with Interactive Chat) feature to tell AllAi Code what we need in plain English.

image.thumb.png.e5753b24b411ece2e11ca5d5163d91e4.png

 

We could also use the Code Generation feature to tell AllAi Code what we need in the file that we are working.

image.png.cbeeeee6b43170f53d6aba422c23cf45.png

Then, AllAi Code will work its magic and return a suggestion in gray text(you can accept the suggestion by pressing Tab on your keyboard):

image.png.3549719e7e2f33b12a0a50c8ec6db666.png

 

Alright, we have the result. If you like, you can check your Regex easily on websites like regex101.com. However, I would like to show you another feature of AllAi Code which is a great alternative to double-check yourself.

I will use the Code Explanation feature. Here, I`m selecting the whole code, then Right Click and Select “Explain Code“. And, here is the explanation!

image.thumb.png.207c1eb9b84e8f78ffc86993e5b2f693.png

 

 

Maybe, you are a suspicious person like me and you will think; “I already put the explanation to the top and my variable name is emailRegex. Of course, it can make the explanation because it’s OBVIOUS.“

Let’s try to make it a bit harder for AllAi Code. This time we only have a single line and it`s this 😈 :

image.png.e1c5cec9b9d07f1ba835791183ec505c.png

Let’s use Code Explanation again…

image.thumb.png.baa2fd1b8268ff4d93711d74faf4b4e7.png

🚀🚀🚀 AllAi Code rocks! Right?

 

As you can see from this example we used the features; Code Generation and Code Explanation. The features are NOT called Regex Generation and Regex Explanation.

So, this means, you can use these features for all your coding tasks! Easily create functions, code blocks, unit tests, etc., and if results are complex and hard to understand, you can Code Explanation to make it easier for yourself 🙂

 

BONUS: It’s hard to read and understand someone else's code. Especially when there are long and uncommented lines. You can use Code Explanation anywhere in your daily work to understand code pieces in a few seconds 🥳

 

Example-2: Random explanation from random page controller:

Let’s say while browsing some SFRA files you came across a piece of code or a function that is hard to understand a little bit. Of course, you can take your time and understand it but there is no need for that. You can select a piece of code and use the Code Explanation feature to get the details. Let`s see how it went:

image.thumb.png.d0af4153082d7f35e3715a85e836c52a.png

I know this is not a piece of code that needs a paragraph to be explained. AllAi Code explained a bit more than we expected, but why?

In the first sentence, it explains the piece I selected and in other sentences, it gives more details. It`s because the code piece I select has some parameters from the rest of the function and it’s important to know those to grasp the details because they are being used here.

 

You can use this feature wherever you like and in whatever language you like!

 

Example-3: Look what I found!

  • I hope you remember Example-1 because I took to emailRegex from there. After adding a new empty line, it wanted to make me test the Regex with some examples. AllAi Code dropped a comment “//Test cases” and then suggested a “testEmails array”. I just hit “Tab“ from my keyboard to accept it. And then, AllAi Code suggested a forEach loop on the line[17-19] and of course, I accepted!

Everything was looking fine and I thought we were done in here. NO! AllAi Code did something great and I believe I discovered a feature 😎.

Without me needing to run the code and check the console logs to see if it’s working or not… AllAi Code suggested even more!

The output on lines[21-32] was suggested by AllAi Code and I accepted again without complaining... Because AllAi Code knew that I would want to run that code and see the result. But AllAi Code was like, “Buddy, I got your back, Just relax... I know this piece of code and I can tell you the output. You don’t need to run it 😉 “. I don’t know what you think but I`m impressed by this feature a lot.

Because, this means that, I don’t need to run my whole code to see results by myself. In any situation, I can provide enough context to AllAi Code and it will give me the results with 0 effort from me. It’s a great win in many cases 😎

image.thumb.png.9871ba03dd8e7c474d499f112b2e60a8.png

And the better is, you can use the "Generate Unit Test" feature with Right Click:

image.thumb.png.906eaf222da3a2f55f52ddc47256c854.png

Do not forget to read the user guide to learn all the features!

Example-4: Look ma`, no keyboard!

You saw the whole code in Example-1. In this example, we will use the same code piece. Let’s assume that this file was created by someone else in the past, and now it’s malfunctioning, and you have your task to fix this problem.

Broken Part: I have changed the line from “emailRegex.test” to “emailRegex.exec“ to break it 😈

 

How to fix Broken Part: We realized that our code is working fine till this line. But, everything seems okay and I don’t understand why it’s not working. What I do is simple, with my mouse, I just select the lines of code that I need, right-click, and select “Find and Fix Bugs“.

Let’s look at how the “Find and fix bugs” feature worked.

image.thumb.png.10a5ad14d8f4bf0b89c85d52722d94ca.png

 
AllAi Code did a great job.
  1. It understood the problem

  2. It proposed a fix

  3. It explained what was the problem and what it did to fix it.

  4. Now, all I have to do is click to “Insert to editor“ button on the right top corner of the proposed code. You can also click on the “Show Diff“ button to make AllAi Code show you the suggested line changes.

  5. That`s all! We fixed the problem without touching the keyboard!!! 🥳

 

Part-4: Usage by High experienced people

Well, there are no limits for you 🙂 AllAi Code can help you in many different ways. But you may still need some inspiration to widen your perspective on use cases. Spend some time on our AllAi Documentation and keep reading our posts, we will share some good use-cases to inspire you!

AllAi Documentation

 

 

Thank you for reading my post, I hope you enjoyed it, see you in the next one! 

-Dora the Enabler

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy