Group Theory. The Math Twin to Object Oriented Programming[Math Mondays]
One of the greatest Math Ideas to become a 10x programmer.
If you like my writing, I would really appreciate an anonymous testimonial. You can drop it here.
To learn more about the newsletter, check our detailed About Page + FAQs
To help me understand you better, please fill out this anonymous, 2-min survey. If you liked this post, make sure you hit the heart icon in this email.
Recommend this publication to Substack over here
Take the next step by subscribing here
How can you become a better software engineer/tech manager?
By implementing techniques and principles from various disciplines into your work. Having a giant toolkit can be a game changer in being more effective in your work. One of my favorite examples is the story of the engineer who went from SW2 (entry-level developer) to Principal (one of the senior-most positions) in 4 Years, which we covered here.
In today’s post, we will be covering why should learn Group Theory in order to write code that is more modular. In particular, group theory (which is like the Math variant of Object Oriented Programming) will help you take your OOP design to a whole other level. Whether you’re a developer looking to improve code quality (look into this guide on cleaner code) or a manager looking to design better systems, this is not a piece you want to miss.
In mathematics, a group is a set and an operation that combines any two elements of the set to produce a third element of the set, in such a way that the operation is associative, an identity element exists and every element has an inverse. These three axioms hold for number systems and many other mathematical structures.
-The definition of a group can easily be applied to objects and instances.
Key Highlights
What is Group Theory- Group theory is a branch of math that studies the groups. The principles of group theory help in understanding the concept of inheritance and polymorphism in OOP.
What is Inheritance in OOP? How Groups are relevant- Inheritance in OOP allows classes to inherit properties from their parent classes, just like groups can inherit properties from their subgroups. In this way, objects can be organized in a hierarchical structure, with common properties defined at higher levels and specialized properties defined at lower levels.
What is Polymorphism in OOP? How Groups are relevant- Polymorphism allows objects to take on multiple forms. This concept is modeled by group actions, where the elements of a group act on a set to produce new elements, just as objects can take on different forms based on their methods.
Group Theory as a Framework for design- Group theory also provides a framework for understanding the relationships between classes and objects in OOP. This can be useful in creating more efficient algorithms and designing more modular systems.
Where to learn it- YouTube and other online platforms have tons of courses. Take a look through them and try some out. For a guide on how to learn it better, check out my post on why math is a language. Also, make sure you’ve read all the other posts on the recommended reading list right here.
You should see that Group Theory provides valuable insights into the concepts of inheritance and polymorphism in OOP. It can help you in designing more organized, efficient, and modular systems. So don’t sleep on it.
I created Technology Made Simple using new techniques discovered through tutoring multiple people in top tech firms. The newsletter is designed to help you succeed, saving you from hours wasted on mediocre resources or on the Leetcode grind. Easily find your needs met in one place. I have a 100% satisfaction policy, so you can try it out at no risk to you. Use the button below to get 20% off for up to a whole year. Using this discount will drop the prices-
800 INR (10 USD) → 533 INR (8 USD) per Month
8000 INR (100 USD) → 6400INR (80 USD) per year
In the comments below, share what topic you want to focus on. I’d be interested in learning and will cover them. To learn more about the newsletter, check our detailed About Page + FAQs
If you liked this post, make sure you fill out this survey. It’s anonymous and will take 2 minutes of your time. It will help me understand you better, allowing for better content.
https://forms.gle/XfTXSjnC8W2wR9qT9
If you like my writing, I would really appreciate an anonymous testimonial. You can drop it here.
Stay Woke,
Go kill all,
Devansh <3
Reach out to me on:
Instagram: https://www.instagram.com/iseethings404/
Message me on Twitter: https://twitter.com/Machine01776819
My LinkedIn: https://www.linkedin.com/in/devansh-devansh-516004168/
My content:
Read my articles: https://rb.gy/zn1aiu
My YouTube: https://rb.gy/88iwdd