Code review #2: Generalize and clean up.

Code review #2: Generalize and clean up.

HomeJacob SorberCode review #2: Generalize and clean up.
Code review #2: Generalize and clean up.
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Patreon https://www.patreon.com/jacobsorber
Courses https://jacobsorber.thinkific.com
Website https://www.jacoabsorber.com

I haven't done a code review in a while, but today I'm reviewing some code sent to me by Nikhil, who was wondering how best to generalize his timing analysis of some sorting algorithms.
https://github.com/mrillusi0n/Sorting-Algorithms-Analysis

In this video I give it a try and show you an example of finding a common interface and replacing one-off code with array and loop based alternatives. This result is, in my opinion, a cleaner and more general setup for testing these sorting functions. I also take a little look at the simple correctness tests included in the code.

Related Videos:
Timecode: https://www.youtube.com/watch?v=1KQqpiXxvWQ
Function pointer: https://www.youtube.com/watch?v=axngwDJ79GY

Previous code review videos:
https://www.youtube.com/watch?v=k2K2HVg4Arc
https://www.youtube.com/watch?v=BM9cnSEY23s

***

Welcome! I post videos to help you learn to program and become a more confident software developer. I cover systems topics from beginner to advanced, from network programming, threads, processes, operating systems, embedded systems, and more. My goal is to help you get a glimpse behind the scenes and better understand how computers work and how you can use them to become better students and more capable professional developers.

About me: I am a computer scientist, electrical engineer, researcher, and teacher. My specialties are embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:
https://www.jacoabsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/

How to support the channel:
+ like, subscribe, share
+ donate via Patreon — [https://www.patreon.com/jacobsorber]
+ Represent the channel with nerd merch — [https://teespring.com/stores/jacob-sorbers-store]

The source code is also available for Patreon supporters. — [https://jsorber-youtube-source.herokuapp.com/]

Would you like me to review your code?
Email the code to [email protected]. The code should be simple and in one of the following languages: C, C++, Python, Java, Ruby. You must be the author of the code and have the rights to publish it. Please include the following statement in your email: /"I confirm that this is my code and hereby grant Jacob Sorber the right to use, review, publish, comment on and modify this code in his videos./"

You can also find more information about code reviews here.
https://www.youtube.com/watch?v=k2K2HVg4Arc

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.