/core/ - .NET development general

Jon Skeet for sticky edition

>Learning resources
docs.microsoft.com/en-us/dotnet/csharp/programming-guide/
docs.microsoft.com/en-us/dotnet/fsharp/language-reference/
docs.microsoft.com/en-us/dotnet/visual-basic/
docs.microsoft.com/en-us/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp?view=vs-2019
docs.microsoft.com/en-us/dotnet/standard/clr
devblogs.microsoft.com/dotnet/hardware-intrinsics-in-net-core/
c-sharpcorner.com/UploadFile/ff2f08/depth-looks-in-garbage-collection/

>C# specific resources, tips / tricks, stuff of interest
csharp.2000things.com/
github.com/dotnet/csharplang/labels/Proposal champion

>Web development in .NET
dotnet.microsoft.com/apps/aspnet
dotnet.microsoft.com/apps/aspnet/web-apps/blazor

all i can think of for now, to be expanded

Attached: darth skeet.jpg (800x533, 68K)

Other urls found in this thread:

learnbchs.org/
github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS#python
youtu.be/uW-Kk7Qpv5U?t=709
hanselman.com/blog/SelfcontainedNETCoreApplications.aspx
github.com/dotnet/roslyn/issues/11475
twitter.com/AnonBabble

Is .NET Core 3.0 out yet?

is blazor ready for development? I want to ditch JS already

Im pretty sure it's production ready in 3.0
Someone correct me if im wrong

Just previews and RC's

how's the integration with 3rd party javashit such as gmaps plugin?

Use F#, it's such a comfy language, and active patterns are the shit. Cant believe no other language has that

afaik you can embed JS in your blazor components, so anything not directly supporting/supported by blazor can be made to work with JS instead.

I've used F# in some edge cases where it has been easier to implement an algorithm from paper just so i can convert the IL to C#.

now all we need is a way to tell GC to BTFO and let us handle it instead and there's literally not a single reason to ever use any other language family

This

When will this fuck release a new edition?

Attached: jr.jpg (960x720, 108K)

Bump
I wont let this thread die on my watch

lmao they keep adding and changing features . Good luck maintaining a product in the long run.

sup pajeets, anyone know when .net 3.5 will be deprecated? asking for a friend.

what's the best .NET lightweight HTTP web framework like Python Flask or Node.js Express for throwing quick HTTP service

asp :^)

ASP.NET

Use c+kcgi

learnbchs.org/

what about simple SQL query builder similar to Node.js knex, I don't like ORMs

Dapper

LINQ to SQL lets you do sql-like queries in C#, but it's still an ORM.
But I think most SQL providers let you run raw SQL against your datacontext.

botnet garbage

Bump

Dapper is fantastic, unless you're doing anything except selecting.

kek

>blazor
I just watched a video from microsoft about blazor. It shows just blazor itself loads ~2MB of dll/dependencies traffic and unpacks into 5 MB of data. Excuse my boomer response, but that's XBOX HUEG. You could build a standard html/css/js/php/sql page and load it in under few github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS#python

autism

2MB x 100K page views = 200 Gigabyte bandwidth for just the front page view.

Vs

5 KB x 1M page view = 5 Gigabyte bandwidth

Scalability is a thing. If you're getting 100K views a day, the server bandwidth cost will kill you.

The plan is to have a standard binary set that gets cached basically forever in the browser. No need to download the runtime every time.

>bandwidth cost
?

Where are you getting these numbers?

Soes netcore have a way of creating a self contained binary that doesnt require anything installed on the target machine?

Yes

youtu.be/uW-Kk7Qpv5U?t=709

That's not showcasing AOT compilation and dont forget Blazor is still not production ready. I imagine they'll be able to at least cut that in half.

What is the most /core/ way to develop cross-platform applications?

It is fucking gigantic, but you're forgetting that blazor competes in the SPA space. So you have to compare the file size to Angular, React, etc. Its still shit but they're improving it rn.

how to unit test in C? i would like to make a solid program that handles files and parses shit and i don't want to be the self deprecating idiot running;

>minimal simple shit
>this program is for shcool
>yet another X

titles that im not going to put on my project becuase i m not a fagot.

bu... but muh Java.

>they keep adding and changing features
Not really, they mark old shit as obsolete and add stuff that [spoiler]mostly[/spoiler] makes sense as opposed to clusterfuck sepples

Absolutely, hanselman.com/blog/SelfcontainedNETCoreApplications.aspx

yeah but its little awkward as the output is about 150 files and totals to a minimum of about 50 mbs.

What frameworks are available for C# web application development?

I'm looking for the equivalent to Spring Framework (Java). Google has failed me.

Attached: 1567630693815.png (1080x1087, 906K)

.NET Core has Web API and MVC, which are the most popular.

Is there a way to merge those files?
Like static linking or ILmerge

Just like electron!

from .NET Core 3.0 you can pass the /p:PublishSingleFile=true flag, this will generate a single executable.

Spyware SDK
Imagine shilling for a trillion dollar company FOR FREE

You've got no idea how happy I am that this thread exists, Jow Forums needs to appreciate .net more, it's the white man's productive language.

Depends on the type of application. But as a general rule, A .net standard class library containing all the shared code, and a .net core project referencing it. If .net framework features are needed, separate .net core and .net framework projects referencing the class library.

Attached: 1563784057209.jpg (594x595, 53K)

We can't trust Microsoft. :(

freetards need not apply

Not a freetard, just a guy who loves democracy and not being bulled by evil US companies.

.NEET core is free too.
Now dilate.

you sound an awful lot like a socialist and socialists have nothing to do in the development biz

Can't trust Google, Facebook, Netflix, Amazon, Oracle, IBM, etc. either. Better not use the Linux kernel, just to be safe.
Protip: Check the contributions to nearly every large free software project.

Does .Net-Core 3.0 allows to write "native" GUI apps for Linux/Mac or do we need to use Avalonia and other shit for it, also is Avalonia good overall?

Pfff, visual studio is still x86 and doesn't run on Linux. Only retards will choose .net core for their products.

Xamarin handles GTK pretty well.

Yes, they're all shits and should be forbidden.

However, IBM is fine now.

What is this retarded CLI? Damn why M$ can't do things good.

Mostly, official release date is 23/09 but I think it will be a semi-beta release because there are still major issue. We should wait for a proper .NET 5.x.

Why? It's wrong because /core/ doesn't mean anything, /dotnet/ would be a better name.

Stop with these garbage generals already.
This is at best a once in a blue moon topic, delete your thread OP.

I think they will rebrand Xamarin and unify all their APIs.

Business is socialism! :D

cancel (You)

Bloated and fucking slow like any .NET things. Seriously we have to drop this terrible technology.

Yea in a year, until then we are stuck with Electron.

Yes, /rust/ or /deno/ are more appropriated in 2019.

just started the CLR via C#
what will this book help me understand if I stick with it, CLR, whole .net framework and c# or maybe OOP in general ?
I've pretty much never did OOP (took me a bit to understand polymorphism and type casting) and am struggling with the c# language in general ...

Electron is currently better than .NET Core. M$ is using it intensively because they are nothing better. :(

Learn Rust and change the world, dev!

Do not forget Flutter!

This is course work user, I am liking C# (when I understand what I'm doing and why something works) and my shitpad doesn't [always] crash when using VS so it's all good

/core/ is better to convey the new age of dotnet

More like shitter, for mobile its whatever and the desktop one is fucking abysmal garbage and the web one isnt even in its 0.000000000000000001 version

Dotnet core is a temp name.

>Not using .NET-Core with Rust together thanks to FFI and how easy it is to compile Rust dll/so libraries
You ain't gonna make it with the wolfs, kid .

Pure Rust is way better!

>bloated
bloated in what way? it's modular

>slow
raw processing speed is comparable to native code in most cases, i'm very interested in learning why CS grads always seem to think their 'hello world'-apps in C is somehow an accurate benchmark in cycle efficiency

yes, until .NET 5, your point?

it doesn't matter either way, the naming will sort itself out by the end of the week as with all new generals

c# is the absolute best way to learn oop because it's clean and consistent.
however clr via c# is probably the worst book you can start oop with it's a book for professionals.

Any suggestions or is just following random tutorials and doing projects optimal enough ?
I feel like I'm missing some key concepts - for example I have trouble figuring out how some classes work/are-able to pass data, procedures and scope (things that I didn't have a problem before)
And now I feel like I can't use VS at all (first time ide user) and .net seems so foreign and yet so ridiculously simple at times that i feels useless (almost like ide is weighing me down)

Attached: 49056678_2207926602792684_504446241082441728_o.jpg (1023x895, 181K)

why C?

the trick is to not fall into the SOLID oop trap and get stuck on patterns

composition, utilize interfaces & dependency containers to pass stuff around but that's it, don't go deeper

Eto.Forms has core, framework, and mono support, spits out to a platform's native toolkit from the libraries' abstracted toolkit (Gtk, WPF, Cocoa). Just werks. If you've ever used MonoGame, the MonoGame pipeline gui tool uses it.

Native GUI on Linux is retarded.
Don't try to prove me wrong. You can't.

Don't reply to the troll. He's going to bait probably for the foreseeable future. Stop falling for it.

Using CGI in 2019 is a pretty stupid plan. I wouldn't listen to him.

You're probably missing lots of key concepts if you can't even figure out scope. What language are you coming from?
inb4 JavaScript.

>what is rider
>what is vscode

Attached: 1523060990278.jpg (360x486, 112K)

Not him but the VSCode plugin for C# is abysmal(at least compared to VS). I'll give Rider a try, hopefully it's better, but I'd prefer working in a consistent environment.

>Replying to the "shart" troll.

Attached: depression_tuesday.jpg (530x530, 60K)

But the guy he's replying to is right
t. asp.net core dev

I didn't have trouble before because I placed all classes inside a single or several files - I worked mostly in Ruby and about in nodejs.
When projects get bigger and I have to create 10+ class files , and a single command needs to get passed through 6-8 of those files and 2 or 3 methods in each file- I get fucking frustrated (especially during debug)
When I look at one page - I can understand what is happening, but then if I have to look through different class files finding which file is calling what and why type casting one object isn't working it makes me want to hang myself. It's really about failing to visualise the whole project (when it gets big) and not understanding the sometimes VERY fucking unintuitive/abstract functions and reasons for having to use them
I'm mad because bad and don't know where to start to solve my issues (worst part)

github.com/dotnet/roslyn/issues/11475

what does /core/ think of this? i have had to do some IL-patching in the past and would absolutely see it as a welcoming addition

Since they cleansed themselves of everyone over 40?

>c# is the absolute best way to learn oop because it's clean and consistent.
Java because M$ don't write the documentation and any old tutorial you find will still work.

Stay mad, because there's some bullshit under the hood.
You need to design your software so that you don't need to visualise the whole thing.
If you need to follow function calls use the right click > peek implementation function. If you're having trouble casting, store the variable as a var type, then hover over it to find out what it actually is.

I meant I'm mad because I don't get it, and I do want to 'get it'.
My first experience with 'true OOP' has been kinda shit because I try to hack everything together as if I'm still doing Ruby, JS or C.
It's not as if OOP or C# is hard, big part of frustration comes from retardedly high amount of work in every single unit alongside OOP which have little to no overlap - overthinking & stressing out is the real reason for all this, C# and OOP is piss easy

Enjoy retarded tools.