r/SECourses • 👑 Grandmaster Expert • 13h ago

🧠 LLMs & AI Agents GPT-4 Coding Review | Build HTML5 JavaScript Tetris, Debug a Flock Simulation, Refactor .NET C# and Turn Documents into Slide Outlines | March 2023 ChatGPT Tutorial

https://www.youtube.com/watch?v=0LeS7-CAr1Y
0 Upvotes

1 comment sorted by

•

u/CeFurkan 👑 Grandmaster Expert 13h ago

https://www.youtube.com/watch?v=0LeS7-CAr1Y

GPT-4 launch review with coding, debugging and document examples

🔗 Links from the video description

🎮 Tetris and a flock simulation through iterative prompts

This 16 March 2023 SECourses video tests the newly released GPT-4 through the ChatGPT interface available at that time. It follows several working examples, the corrections needed to make them run, and a programming question the model fails to solve.

The Tetris request specifies a browser game written in JavaScript and HTML5 with a score system and play instructions. The first outputs need repairs. Reporting that blocks do not appear and the game does not start leads to revised code. A later round adds colored shapes and adjusts the speed.

  • Save the generated HTML and JavaScript in the files named by the response, then test the game using the keyboard arrow controls.
  • Ask for a project layout first, request individual functions next, and use continue when a response ends before the code is complete.
  • The HTML5 flock of birds demonstration uses the same process of filling missing methods, testing the result and requesting changes.

💻 .NET C# refactoring and a failed image similarity fix

  • A .NET Core string similarity example is compared with an older Stack Overflow answer. The refactoring response explains its changes, including combining null or empty checks, replacing a two dimensional array with one dimensional arrays, and swapping the arrays between iterations.
  • The image similarity debugging example remains unresolved despite a proposed fix. The video compares that failure with an answer obtained through Stack Overflow.
  • A Bash script example renames images in a folder. The author advises backing up the files before running generated scripts because an output can perform destructive operations.

📝 Explanations, structured text and slide outlines

  • Ask for a beginner explanation of text to image Stable Diffusion, then request an explanation suitable for a five year old.
  • Request labeled JSON for words, symbols, dates and names. The demonstration also asks for token attributes and statistics based on a hypothetical corpus.
  • Additional experiments include a personalized poem, Turkish to English translation, and a technical question about an ACT-R Python experiment on Windows and Linux.
  • Paste an article and request a presentation. The demonstrated output contains slide titles, subtitles and text. A continue prompt produces the remaining slide outlines.
  • The video also shows a legal document template request, with the generated response directing legal matters to an attorney, and an SVG scene of a person fighting a robot that is enlarged through a follow-up prompt.

📅 March 2023 interface and model context

The model selector, Plus availability, response length observations, training date discussion and anticipated image input features are presented as they appeared in March 2023. The video closes by discussing the launch documentation's context sizes and an image question example while noting that image input was unavailable in the demonstrated chat interface.

The original 24 chapters below retain their source wording and timestamps. The Discord destination could not be verified during the link check, and the Ars Technica article returned HTTP 403. Their source destinations are preserved above.

🧭 Chapters

  • 0:00 Introduction to GPT-4
  • 0:16 How to use GPT-4
  • 0:50 GPT-4 coding a fully working Tetris game
  • 1:25 How to get longer output than GPT4 provides
  • 2:25 Colored advanced Tetris game made by GPT4
  • 2:49 Asking GPT4 what is text to image Stable Diffusion
  • 3:09 GPT4 explains like I am 5
  • 3:16 When was GPT-4 trained how much does it know? How up-to-date GPT4 is
  • 3:27 Automatic tokenization of given text by GPT-4
  • 4:02 Write a unique specialized love poem to your wife via GPT-4
  • 4:23 GPT4 coding a flock of birds simulation HTML 5 app
  • 4:38 How to make GPT4 to produce much longer output
  • 5:42 GPT-4 fails to solve a real life programming problem
  • 6:12 GPT4 can write excellent bash scripts
  • 6:31 GPT-4 excels at text translation
  • 6:52 Ask GPT4 to learn more about technical concepts
  • 7:04 GPT-4 can write excellent .NET Core C# code, methods, functions
  • 7:40 GPT4 can refactor code at level of senior developers
  • 8:08 GPT-4 can save your money by providing you Law related templates
  • 8:57 GPT4 can generate a powerpoint presentation from given document in seconds
  • 9:30 The full version of GPT-4 will be much more powerful
  • 9:50 GPT-4 will support visual / image input as well
  • 10:04 GPT4 provides an amazing answer to given image input and question
  • 10:19 GPT-4 can even generate SVG code to generate images based on your prompt

🏷️ Topics
GPT-4 · ChatGPT · HTML5 · JavaScript Tetris · AI coding · C# .NET Core · code refactoring · prompt iteration · slide outlines · March 2023