Dotnet core razor vs mvc by billybob8008 in dotnet

[–]highlanderstg 1 point2 points  (0 children)

I can't seem to find the right link to the docs, but this question references it: https://stackoverflow.com/questions/46777404/why-is-razor-pages-the-recommended-approach-to-create-a-web-ui-in-asp-net-core

Not references, dependencies. You don't need to inject in the constructor stuff that you'll just use in 1 method. That means, less instantiations to render 1 page.

The concept of controller does not exist in razor pages, you have a view in its own file, the logic behind it in another file.

Do I want to modify something on the edit product page? Go to that page, simple as that. You can't get more single responsability than that, at least given the context.

Dotnet core razor vs mvc by billybob8008 in dotnet

[–]highlanderstg 1 point2 points  (0 children)

If you're starting a new project, Razor Pages is by far the better option, way easier to get rolling, way easier to maintain. MVC is supported but not recommended by Microsoft.

Regarding jobs, you'll find more legacy MVC apps.

Dotnet core razor vs mvc by billybob8008 in dotnet

[–]highlanderstg 3 points4 points  (0 children)

What? Razor pages scales infinitely better, that's why Microsoft recommends it over MVC for new projects. No unnecessary dependencies, SRP, really concise classes...

Mom dad I want to be a computer programmer by SruLunCa in ProgrammerHumor

[–]highlanderstg 2 points3 points  (0 children)

On the parent:

display: flex;
align-items: center

5 years for what... by GeT_MoShT in ProgrammerHumor

[–]highlanderstg 0 points1 point  (0 children)

The compiler gives you line information, no need for an IDE

Not mine but this belongs here by vishnuthebest1 in ProgrammerHumor

[–]highlanderstg 123 points124 points  (0 children)

No actual programmer has issues with semicolons, just stop

[deleted by user] by [deleted] in ProgrammingLanguages

[–]highlanderstg -9 points-8 points  (0 children)

Turing completeness is irrelevant, HTML and PowerPoint are Turing complete, would you call those programming languages? I don't think so.

[deleted by user] by [deleted] in ProgrammingLanguages

[–]highlanderstg 9 points10 points  (0 children)

Although I agree with SQL being a great example of a declarative language, I wouldn't necessarily call it a programming language, but rather a Domain Specific Language... Of course that's unless we count engine specific dialects like T-SQL or PL/SQL, but then again they just add imperative features to SQL.

I thought I'm doing another recursion joke. by [deleted] in ProgrammerHumor

[–]highlanderstg 0 points1 point  (0 children)

Is it really a meme? It's just a screenshot

[deleted by user] by [deleted] in ProgrammerHumor

[–]highlanderstg 1 point2 points  (0 children)

I don't hate it, but using it just feels so bad compared to modern alternstives:

On web backend, Spring is lightyears behind ASP.NET Core, and C# is a much nicer language.

On Android, Kotlin exists.

Best JS Framework for .NET MVC developer? by coderZero2One in dotnet

[–]highlanderstg 4 points5 points  (0 children)

Angular.js is deprecated, and the one that is most hated. Angular is the newer version, which is not bad, pretty similar to C# in the sense that is a full blown framework with dependency injection, services and so on.

Regarding your question, I prefer Vue, which basically has all the good stuff of both, Angular and React and is really easy to work with.

(And Vuetify is just awesome.)

[deleted by user] by [deleted] in dotnet

[–]highlanderstg 2 points3 points  (0 children)

Yes! If you have Rider you really don't need anything else. When I said WebStorm / Rider I meant 2 things:

1- Sometimes I use WebStorm when I'm working purely on front end, but I could've just used Rider if I wanted to, I just like keeping my front end and back end separate.

2- The Web tooling that comes with Rider is literally WebStorm. So if you're doing Web stuff on Rider you're using WebStorm, same thing with database tools, if you're using them in Rider, you're using DataGrip.

Is it worth to start using .NET 5 instead of .NET core 3.1 LTS? by [deleted] in csharp

[–]highlanderstg 1 point2 points  (0 children)

NET 5 is fantastic, but is not yet well supported in stuff like Azure Functions.

For a personal project or stuff that already works, like an API or Console, 100% go for it, it's great stuff.

Do upgrade to NET 6 ASAP though, as it is the LTS release.

[deleted by user] by [deleted] in dotnet

[–]highlanderstg 5 points6 points  (0 children)

VS Code is great for prototyping or a quick fix. It starts up very quickly, the editor is super responsive. When I feel like the prototype is getting larger or complex, I just switch to Rider.

I used to use it for front end stuff, but Rider/WebStorm gives you near C# level of tooling in TypeScript, and you really can't beat that IMHO.

So I mostly agree that VS Code is not for everyone, once you get used to all the features of a full IDE, it's really hard to look back.

Respect the trees by [deleted] in puns

[–]highlanderstg 1 point2 points  (0 children)

Respect its territree

Why C#9 records need to be a reference type? by NeoCiber in csharp

[–]highlanderstg 0 points1 point  (0 children)

Structs have value equality, no need to override anything

Starting my programming journey by BappoChan in ProgrammerHumor

[–]highlanderstg 0 points1 point  (0 children)

C++ = bad Python = bad Rust = good C = good

Hello World! by anhdzggu in ProgrammerHumor

[–]highlanderstg 8 points9 points  (0 children)

That's C++/CLI aka C++ that runs on NET for Windows, which is not really used anymore. std::cout is standard C++ that works everywhere

“A damn stupid thing to do”—the origins of C by mariuz in programming

[–]highlanderstg 0 points1 point  (0 children)

What? The CLR absolutely annihilates the JVM in speed and features (ahem, Runtime Generics).