r/learnprogramming • u/Icy-Host6428 • 26d ago
I have started learning asp.net , should I read C++ book?
Is it a good thing to read basics of computer science while starting asp.net since it is based on object oriented programming
9
Upvotes
10
u/jt25617 26d ago
You need a c# book not c++ the asp.net framework uses c#
3
u/mikedensem 26d ago
C# for dot.net - you’ll get plenty from the patterns and practices used in C#
1
u/edwbuck 26d ago
Asp.NET is a framework. A framework is an incomplete program that you complete by filling out the missing parts. Frameworks try to be flexible, so you can use the same framework for multiple problems. Asp.NET supports three different languages C#, F#, and Visual Basic.
Object oriented programming is a Paradigm, a way of structuring programs to solve problems. Other major Paradigms include Imperative Programming (C, C++, C#, PHP, Python, etc.) Lambda / functional Programming (Haskell, Erlang, Lisp, ML, Java 9+, C++ 11+, C#, Scala, and Rust), and Logical Programming (Prolog, Datalog, Souffle).
A programming language can fit into more than one category, and many do. But in your case, if you want to use the Asp.NET framework, you should probably look for a C# book, as it will be possible to use C# in Asp.NET.
While you would get some good Object-Oriented programming ideas from any language, most programming language books only have a small section about object-oriented programming, and the details of how to program object-oriented solutions can vary. Additionally, being a programming LANGUAGE book, it won't focus much on how to solve problems using Object Orientation. So you could get a little knowledge reading the C++ book, but most of the details will be off.
If you know Spanish, Portuguese is a language you can understand, but it's rules are slightly different. You won't know Portuguese, but you will recognize it and be able to understand most of what is being said. It's about the same with C++, C#, and Java. These languages are closely related, but when you attempt to write a program, you need to know the details of the language you're using. This means that if you learn one, don't fixate on it, learn the others (at least in passing) because you already did a lot of the work learning about the ideas behind it.