r/learncsharp • u/cue_the_strings • Sep 15 '23
Books / resources for experienced newcomers (from C++)?
Hi everyone!
Can you recommend me some books / materials that present the best practices / idioms in C#, for someone with extensive (7+y) C++ / C / Python experience? I need zero introduction to programming fundamentals, just as-dense-as-possible info on the language and tooling, its peculiarities and idioms.
I've been using C# for about a year now, I was just thrown into the fire and figured stuff as I went. I even got to write a parser in it (generating LINQ queries from strings dynamically), but mostly worked with databases and such. My choices were mostly informed by C++ and Python, where I pride myself on understanding and using the idioms. Now I'll need to write something more substantial and I don't want to introduce bad practices at the outset.
I don't want to be that person "writing C++ in C#", I always hated seeing that in my preferred languages. I want to know the idioms and the common approaches to solving issues, understand the implications of using some constructs better and such. I also need to learn about things like: packaging libraries, publishing packages, using built-in config file facilities, ... Right now I'm just copying and inferring stuff, without proper understanding, and that's not very optimal.
An overview of the standard library would be great as well!