Generics & Open recursion

1. Generics

If you are a fan of reusing code then generic programming is your best friend! Generics offer the possibility for primitive data types and user-defined types to be passed as an argument for functions (geeksforgeeks, 2019)

By taking generic programming into consideration, you should be able to solve problems that require applying the same algorithm with all data types, for the reason that the main purpose of using Generics is to avoid repeating the same algorithm when the only variable is the data type.

--

--

--

I write what I needed to read in the past!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Data pipeline automation

image

Connect From Your Local Machine to a PostgreSQL Database in Docker

What is AWS?

kubernetes control plane doesn’t come up after 40 seconds

Leading a tech project: Three months as a technical driver

An Introduction to AWS Route 53

CS373 Spring 2021 Blog #14: Sriram Alagappan

Cosmos DB — Under the Hood

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Noura EL ALLAM 🐍

Noura EL ALLAM 🐍

I write what I needed to read in the past!

More from Medium

All About IDEs

The .match() method and regex pattern

Git Commit Hash Number Theory

Sorting Techniques in C++