Have you ever been frustrated by code that is difficult to read or understand (including your own!)? Have you spent hours wading through hundreds of lines of code to fix a bug? Or have you had a hard time changing your code because you're afraid you'll introduce some new bug? If you write code, you've probably written your share of bad code—we know we have! In this class, you'll learn important tips on how to elevate your coding skills to the next level. We'll explore things like the importance of naming, what functions and classes should do, why comments are (mostly) evil, and how proper formatting is a critical part of writing clean code. You'll learn about the important skill of refactoring your code, and how unit tests can help you safely refactor. Whatever language you're programming in, and whatever Autodesk product you focus on, you will learn something valuable in this class.
- Learn meaningfully about classes, methods, and variables
- Learn how to write more-cohesive, focused classes and methods
- Learn how to use unit tests to support refactoring toward clean code
- Learn how to write cleaner code
Ben Rand has been using AutoCAD software since Release 12. He learned to program using LISP in AutoCAD, worked his way up through VBA, VB6 and VB.NET, and now spends most of his days programming in C# (occasionally still in AutoCAD!). He has worked in the Industrial Engineering field for more than 17 years as a CAD Manager, developer and IT Director. In 2013, he was the 2013 Top DAUG overall winner at AU, and he served a mentor for the AutoCAD Mentor All-Star team. Ben is the proud father of four children and enjoys reading and playing a variety of sports including pickleball, volleyball, and tennis. In 2017, Ben was a member of a USTA men's league team that placed 3rd in the entire country.