enusbaum,
@enusbaum@tootsmcgoots.io avatar

You know why PHP is still around? Because it's fucking simple.

The levels of abstraction in Web Frameworks like React/Angular or ASP.NET Core is a little silly. You have to navigate through 4-5 files of logic before you actually get to the rendering of a page.

PHP?

<?php echo "Hello World!"; ?>

If dotnet could give me a syntax and framework as simple as PHP, I think it'd dominate. Just one file (index.cs), not a zillion files and boilerplate.

Call it ASP.NET Min

#dotnet #AspDotNet #php

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@enusbaum you can with Razor Pages.

enusbaum,
@enusbaum@tootsmcgoots.io avatar

@khalidabuhakmeh Still need Program.cs, still need App Builder, still need to declare routes.

I want one file web projects -- like "index.cshtml" (or whatever the extension will be).

Don't get me wrong, I know this leaves a lot of the flexibility of ASP.NET on the floor -- but I'd love the sliding scale to start at stupid simple, and then scale up to more complex projects.

b4ux1t3,
@b4ux1t3@hachyderm.io avatar

@enusbaum @khalidabuhakmeh Right, but with PHP you still need all that, it's just provided by nginx/apache and an execution environment.

You have to know how to configure those things, in their own unique configuration formats, or you can lean on a one-click deploy environment. . .which is fundamentally identical to dotnet new razor.

enusbaum,
@enusbaum@tootsmcgoots.io avatar

@b4ux1t3 @khalidabuhakmeh While dotnet new razor installs a pre-built template, there's still a lot of plumbing happening in the code. Again, highly flexible, but not "new developer" friendly.

Think back to when you first wanted to learn code and make a simple website just show "Hello World".

PHP is 2 commands:

  1. apt install apache2 php libapache2-mod-php
  2. Create 'helloWorld.php' in /var/www/

My point is, I wish ASP.NET/C# was as easy to pick up as PHP for new developers.

enusbaum,
@enusbaum@tootsmcgoots.io avatar

@b4ux1t3 @khalidabuhakmeh Again, I'm a career C# developer for the past 20 years -- dotnet can have whatever it wants from my fridge because we've been homies for a long time.

My point is, I just wish the complexity of "simple" in ASP.NET was similar to other languages. Expecting new people wanting to get into development to "just figure it out" is one way to treat them, but also the best way to drive them to a more accessible lang/framework.

My goal is to make the C# tent bigger, that's all.

Crell,
@Crell@phpc.social avatar

@enusbaum @b4ux1t3 @khalidabuhakmeh As someone transitioning from PHP to Kotlin/JVM, there is absolutely nothing in PHP that can come close to how grotesquely over-engineered Spring Boot and its various pieces are.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • tacticalgear
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • thenastyranch
  • ngwrru68w68
  • anitta
  • Durango
  • cisconetworking
  • modclub
  • khanakhh
  • normalnudes
  • ethstaker
  • cubers
  • vwfavf
  • provamag3
  • Leos
  • tester
  • megavids
  • JUstTest
  • All magazines