Programming/Comparisons: Difference between revisions

From etwiki
Jump to navigation Jump to search
(Created page with "== Frameworks == === Ruby on Rails and Blazor === {| class="wikitable" !colspan="6"|Ruby on Rails and Blazor |- | !Ruby on Rails !Blazor |- !Language |Ruby |C# |}")
 
Line 4: Line 4:


{| class="wikitable"
{| class="wikitable"
!colspan="6"|Ruby on Rails and Blazor
!colspan="6"| Ruby on Rails and Blazor
|-
|-
|
|
!Ruby on Rails
! Ruby on Rails
!Blazor
! Blazor
|-
|-
!Language
! Language
|Ruby
| Ruby
|C#
| C#
|-
! Models
|
* /app/models/*.rb
|
* /Models/*.cs
* Package dependencies
|-
! Views
|
* /app/views/*.html.erb
|
* /Pages/*.razor
* /Pages/*.cshtml
|-
! Controllers
|
* /app/controllers/*.rb
|
* Part of /Pages/*.razor
* /Pages/*.cshtml.cs for corresponding /Pages/*.cshtml
|-
! Routing
|
* /config/routes.rb
|
* Defined by `@page "/<path>"` on each /Page/*.razor page
|-
! Permissions/Authentication
|
* Defined in /app/models/powers/*.rb
* Used in /app/controllers/*.rb
* /app/controllers/application_controller.rb to rescue Consul::Powerless
|
* Configured in /Startup.cs
* Used in /Pages/*.razor
* /App.razor to rescue unauthorized
|}
|}

Revision as of 09:53, 9 August 2021

Frameworks

Ruby on Rails and Blazor

Ruby on Rails and Blazor
Ruby on Rails Blazor
Language Ruby C#
Models
  • /app/models/*.rb
  • /Models/*.cs
  • Package dependencies
Views
  • /app/views/*.html.erb
  • /Pages/*.razor
  • /Pages/*.cshtml
Controllers
  • /app/controllers/*.rb
  • Part of /Pages/*.razor
  • /Pages/*.cshtml.cs for corresponding /Pages/*.cshtml
Routing
  • /config/routes.rb
  • Defined by `@page "/<path>"` on each /Page/*.razor page
Permissions/Authentication
  • Defined in /app/models/powers/*.rb
  • Used in /app/controllers/*.rb
  • /app/controllers/application_controller.rb to rescue Consul::Powerless
  • Configured in /Startup.cs
  • Used in /Pages/*.razor
  • /App.razor to rescue unauthorized