- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
I wonder if was frist something else that devolved into this mess we got.
Edit Admin
Anyone care to explain why we hate it? I do this quite frequently in my Razor View code.
Admin
Well, it works. It does nothing on Javascript side and sets a variable on PHP side. But indeed, it does not work as the author expected...
Edit Admin
Blurring your state across front-end and back-end is just bad separation of concerns. It makes everything harder to test and debug.
Admin
I think the author used a conditional PHP once to generate a Javascript code and it worked. So they tried in reverse...
Edit Admin
Balzor is different because it's designed to let you write server-side looking code that runs on the client. PHP doesn't.
Addendum 2025-04-21 11:06: Blazor*