Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for example program written in different languages [closed]

As a way to understand the differences between OOP and Procedural languages I was looking for a sample program written in C and C++ or C# or Java. I just want to see the different approaches to the same problem to help me get a sense of the real differences. Does anyone know where I can find a tutorial like this?

like image 770
jumbojs Avatar asked Jul 25 '26 05:07

jumbojs


2 Answers

I don't think this is likely to teach you much. The program has to have a certain size before the differences between different programming paradigms really show. And people aren't likely to write identical copies if the same program in different languages unless the program is trivial.

Most real-life examples would also be polluted with a lot of extra noise, things that can be done within the standard library of one language, but requires third-party libraries in another. And the programmer who wrote it may be more familiar with one language than another, so his implementation in some languages isn't representative of how it "should" be done.

You're more likely to learn the difference between these paradigms the usual way. By learning what each means, and how to use it.

like image 177
jalf Avatar answered Jul 26 '26 19:07

jalf


I recommend the 99 bottles of beer website

like image 25
dsm Avatar answered Jul 26 '26 18:07

dsm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!