Conclusion

- [Instructor] So now you've seen how I…would approach an unfamiliar dataset…in that I would take care to write unit tests…to explore the dataset, column by column, row by row,…and I would use TryParse to avoid exceptions,…so it's not a very expensive operation…to scan through this file,…and I would use an error handler…to make sure that I do keep track of those lines…that do give me trouble.…I also like using Ienumerable in this way…because then I can use LINQ: Language Integrated Query…to write the expressions when it comes…to the extract, the filtering of my results,…as well as the transformation,…when I can say select into new objects.…

Both Math.NET and LiveCharts were essential for me…for this challenge.…The Math.NET library included the least squares method'…of fitting a line to an existing dataset,…so from that we could get the slope really easily,…and LiveCharts, of course, for drawing.…It's not my strength, so I would almost always use a library…whether it's DataText or WPF or something else…to draw graphs and charts for me.…

Resume Transcript Auto-Scroll

Author

Released

10/31/2018

Successful programmers know more than just how to code. They also know how to think about solving problems. Code Clinic is a series of courses in which our instructors solve the same problems using different programming languages. In each course, instructors provide tips and tricks for working in a particular language and help you grasp why you might want to learn one language over another. Here, Anton Delsink works with C#. Throughout the course, Anton introduces challenges and then provides an overview of his solutions in C#. Challenges include topics such as geolocation, face recognition, and accessing peripherals. Visit other courses in the series to see how to solve the same challenges in languages like C++, JavaScript, PHP, Python, Ruby, Go, and Swift.