Language for processing business rules

1

I'm designing a new project in C # and one of the needs is for the module to do mathematical calculations on the values I'm going to have in the database.

This module needs to share these rules with another Mobile project being synchronized if the rules change.

I would like to suggest some techniques or languages that can be used as scripts that can run between platforms.

At first I thought of JavaScript because it can be processed by the C # module and Mobile using the browser views (eg Android WebView, iOS UIWebKit).

    
asked by anonymous 14.02.2017 / 18:02

2 answers

2

If you need something on the server and on the mobile you can use Xamarin and stay in C #.

I do not think you really need a script language, but if you really need it, it might be C # itself as script ? This is achieved through the .NET Compiler Platform .

If you need to be web-based, you can not escape JavaScript. You can at most use a language that runs on top of JS. This could be TypeScript or even #, although the result may not be very good and probably will need adaptations.

  • p>

    Another alternative is to leave everything on the server and the client only requests the processing of the server. This has advantages and disadvantages. You have to see if it suits you.

        
    14.02.2017 / 18:18
    0

    Well, for unique business rules needs for all the devices they can access, I would recommend you create a WebAPI and all devices make calls to that API. This way, once the business rule is changed, it becomes transparent to all client devices.

        
    14.02.2017 / 18:07