Skip to content

Commit

Permalink
Improve readability of backend implementations with simpler interface…
Browse files Browse the repository at this point in the history
… to platform

+ Help distinguish between subscriptions and tasks/commands: Explicitly group them under 'Subs' and 'Cmds' in the API.
+ Simplify event handling code in apps: Remove dependency on the static event type that caused boilerplate code in simpler apps.
+ Do not require app developers to generate unique task IDs anymore: Support using a function to handle the resulting event instead.
+ Refine names: Use 'Command' instead of 'Task'.
+ Abbreviate names to 'Cmd' and 'Sub' for similarity with other Elm platforms.
+ Update only a part of the example projects to the new interface to clarify both API versions still work with this engine version.
  • Loading branch information
Viir committed Aug 14, 2021
1 parent 38ee5db commit 85f1b33
Show file tree
Hide file tree
Showing 18 changed files with 1,589 additions and 1,771 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion implement/elm-fullstack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace elm_fullstack
{
public class Program
{
static public string AppVersionId => "2021-08-12";
static public string AppVersionId => "2021-08-14";

static int AdminInterfaceDefaultPort => 4000;

Expand Down
4 changes: 2 additions & 2 deletions implement/elm-fullstack/elm-fullstack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>elm_fullstack</RootNamespace>
<AssemblyName>elm-fs</AssemblyName>
<AssemblyVersion>2021.0812.0.0</AssemblyVersion>
<FileVersion>2021.0812.0.0</FileVersion>
<AssemblyVersion>2021.0814.0.0</AssemblyVersion>
<FileVersion>2021.0814.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 85f1b33

Please sign in to comment.