Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Beginner C# Code Review - Write Better Code

Code Monkey via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to identify and fix common C# programming mistakes through a detailed code review session that examines a beginner's script and demonstrates how to write cleaner, more maintainable code. Discover proper access modifiers and naming conventions to improve code readability and organization. Understand better collection naming practices that make your code more intuitive and professional. Explore the crucial differences between Awake and Start methods in Unity and when to use each appropriately. Master the technique of decoupling code and UI using events to create more flexible and maintainable game systems. Implement input management best practices that will make your controls more responsive and easier to modify. Optimize coin pickup logic to improve game performance and reduce unnecessary processing. Avoid common loop bugs when removing items from lists and learn safe iteration techniques. Gain insights into professional coding standards and receive practical advice for developing better programming habits that will serve you throughout your game development journey.

Syllabus

00:00 Intro
00:30 Reviewing the beginner script
01:30 Access modifiers and naming
03:00 Better collection naming
04:00 The difference between Awake & Start
05:30 Decoupling code and UI with events
07:00 Input management best practices
08:00 Optimizing coin pickup logic
09:00 Loop bugs and removing from lists
09:50 Final thoughts and advice
10:07 Outro

Taught by

Code Monkey

Reviews

Start your review of Beginner C# Code Review - Write Better Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.