+ 1

Better references on Lists and Bit Arrays in C# Intermediate

Bit arrays were always told to me to avoid for too many years and over the decades. Confusing or not, lists were not a better choice as well. Okay, I can be wrong on both including anyone's avoidance to use lists or bit arrays. The problem is being immediately thrown into a project using lists and bit arrays but a lesson called Lists and BitArrays in C# Intermediate. How about some advice or some decent references because I'm out of ideas, references, and I need some damn, good references that don't give wrong answers like the comments I've wondered about on this whole app. I love a dead end but I wouldn't hang on a node. Even it might disappear without the wise ones using delete.

12th Apr 2024, 10:53 PM
Michael
4 ответов
+ 3
The ultimate source of truth is the official language reference. https://learn.microsoft.com/en-us/dotnet/api/system.collections.bitarray?view=net-8.0 https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-8.0 I also recommend to learn about LINQ because it is one of the greatest convenience features is C# and makes it very easy and fun to work with any type of Collection. https://learn.microsoft.com/en-us/dotnet/csharp/linq/
13th Apr 2024, 4:13 AM
Tibor Santa
Tibor Santa - avatar
+ 2
You can think of the standard library as different shapes of Lego bricks. Each of these types can be useful in the right situation. So it depends on what you want to build. If you can describe your project or the use case, maybe it is possible to make recommendations if BitArray or List are good options to solve it, or what are the alternatives. Usually there are many possible solutions to the same problem, and they may differ in space/time complexity, readability, performance, convenience, or other metrics. Maybe you have a specialized task and someone has written the perfect data type for it and you just need to NuGet. https://www.nuget.org/
13th Apr 2024, 4:20 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you Mr. Tibor Santa for your information on .NET which is a huge package from Microsoft. According to the C# Intermediate module in which the lessons have been on SQL and Python shows me how interesting C#, possible libraries of C#, and Sololearn lessons fit into the Microsoft documentation of .NET. I haven't researched NuGet but I thank GitHub, too.
23rd Apr 2024, 12:49 AM
Michael
+ 1
As for Sololearn, I can see why on sales (okay, wrong word but sales is supposed to educate but don't) of learning Microsoft, Google, HTML, etc. holds true no matter on what happens in a learning module of a course. I'll keep on with getting the wrong code for my answers and keep trying even when it is told it's easy to do. We've all been here in our lifetimes.
23rd Apr 2024, 12:55 AM
Michael