question

fritterhat-9706 avatar image
0 Votes"
fritterhat-9706 asked AgaveJoe edited

getting web page data, no thrid party librares and minimal built in MS.dlls, prefering primative data over newer types newer. e.g string over String

I am thinking about web scraping local websites in my home network. Using no thrid party libs and the minimum amount of MS libs, preferring primitive data types and low-level programming.

I realize c# is not C or C++ or Java or Python, but I want to know how "close to the metal" I can get before, a library is needed. Does that make sense? Additionally, this relates to environments where using an unavailable dll is not an option, and I want to approach this side of the issue from a black-box perspective. I hope that is not too outlandish.

Please let me know if you need an example or have any questions.

dotnet-csharp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@fritterhat-9706
Unlike in Java, there is no difference between string and String in C#.
What is the difference between String and string in C#?
Similar to this are:
Boolean and bool
Int32 and int
Double and double

0 Votes 0 ·

but I want to know how "close to the metal" I can get before, a library is needed. Does that make sense?

Libraries are a main feature of every high level language. If you don't want to use libraries that come with the language then simply don't use them.

For example, a string is a character array terminated by a zero. If you do not want to use string methods that come with C# then write your own character array utilities. It does not make a lot of sense to do this because the string libraries are well tested.

Additionally, this relates to environments where using an unavailable dll is not an option,

What unavailable dlls are you referring to? Framework dlls? Custom dlls? Is this a multi-platform question because you plan to target different platforms or hardware? If so, .NET 5 might be an option.

If you are looking for straight up black box then Assembly is a possible option. Assembler is specific to hardware and it is not the easiest language for writing large programs but it is as close to the metal as you get; other than writing machine code.


0 Votes 0 ·

0 Answers