3 ms·
IMHO, besides the fun to create such a project (and all the thibgs you learn while doing it), it's not for much. It tries to bring a technology somewhere (presu
by chrisandchris 2y ago
IMHO, besides the fun to create such a project (and all the thibgs you learn while doing it), it's not for much. It tries to bring a technology somewhere (presuambly the desktop, as asp.net and PHP are already comparable) it's not designed for - which will bring you in trouble sooner or later. It's like JavaScript on the server, it's ok but there are languages better suited for this environment.
It's much faster to learn C# in the long term than to run PHP on top of .Net.
- bob1029 2y agoC# has poor man's PHP baked in these days: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated https://learn.microsoft.com/en-us/dotnet/csharp/language-ref... And, it's getting better over time: https://github.com/dotnet/csharplang/issues/4935 https://github.com/dotnet/csharplang/issues/4935 This is essentially how I respond to web requests in my codebases right now: var table = $@"<table> <tr><th>Name</th></tr> {string.Join('\n', items.Select(i => $"<tr><td>{i.Name}</td></tr>"))} </table>";
- okeuro49 2y agoThe defining feature of PHP isn't really string templating, but its shared-nothing architecture. https://slack.engineering/taking-php-seriously/ https://slack.engineering/taking-php-seriously/ I would consider poor man's PHP as something to reimplement that architecture, rather than any particular language feature.
- pjmlp 2y agoI fail to see why anyone sane would use this way over Razor files.
- eterm 2y agoHi, my name is: <script>Alert("hi")</script>