From the course: AI-Driven Software Development with OpenAI’s Canvas

Unlock this course with a free trial

Join today to access over 24,200 courses taught by industry experts.

Creating log statements

Creating log statements

- There's a couple of other features that I think you'll find super useful. Canvas understands how to create log statements for many languages, and it can insert meaningful comments, so when you come back to code, it's easier to understand. Let's start by feeding the original code into ChatGPT and asking it to jump into Canvas. Once again, I'll say, "Use canvas to analyze this code". Now in this case, it did jump into the writing version of Canvas. If you do see that, it may be a good idea to start again since this feature is still in beta. I'll say, once again, "Use canvas to analyze this code" and now it jumps into the proper version. Different languages have different syntax for logging statements, which can help you understand the state of your project. In JavaScript, we use the console log statement, but in Python you might use the print statements and look at them through your terminal. Canvas understands the…

Contents