• 0 Posts
  • 75 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle

  • There may be a need for additional information, there just isn’t any in these responses. Using a basic JSON schema like the Problem Details RFC provides a standard way to add that information if necessary. Error codes are also often too general to have an application specific meaning. For example, is a “400 bad request” response caused by a malformed payload, a syntactically valid but semantically invalid payload, or what? Hence you put some data in the response body.














  • I have no complaints about just calling it .NET. The distinction between .NET and .NET Framework isn’t much of a problem. It’s the fact that .NET and .NET Core aren’t actually different that’s odd. It underwent a name change without really being a different project, meanwhile the Framework -> Core change was actually a new project.


  • Not an intern, but this week I’ve unraveled some mysteries in ASP.NET MVC 5 (framework 4.8). Poked around the internals for a while, figured out how they work, and built some anti-spaghetti helpers to unravel a nested heap of intermingled C#, JavaScript, and handlebars that made my IDE puke. I emulated the Framework’s design to add a Handlebars templating system that meshes with the MVC model binding, e.g.

    @using (var obj = Html.HandlebarsTemplateFor(m => m.MyObject))
    {
      Name: obj.TemplateFor(o => o.Name)
    }
    

    and some more shit to implement variable-length collection editors. I just wish I could show all this to someone in 2008 who might actually find it useful.