The Model v2.0 alpha (Inspired by Kraftwerk - The model)
I love to model and it's looking good
I'll turn it into code that is well understood
It might be hard to get, is wrong from time to time
It takes new design approach to change your mind
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| module StorageServer where | |
| import Models | |
| import Servant.API | |
| import ServantHelpers | |
| import StorageDB |
| module ServantHelpers(Server,Proxy(..),err400, err404,liftIO,liftIOMaybeToEither) where | |
| import Control.Monad.IO.Class (MonadIO, liftIO) | |
| import Control.Monad.Trans.Either (EitherT, left, right) | |
| import Servant(ServantErr,Proxy(..)) | |
| import Servant.Server | |
| liftIOMaybeToEither :: (MonadIO m) => a -> IO (Maybe b) -> EitherT a m b | |
| liftIOMaybeToEither err x = do |
| -- Given a list of phone numbers, determine if it is consistent. | |
| -- In a consistent phone list no number is a prefix of another. For example: | |
| -- Bob 91 12 54 26 | |
| -- Alice 97 625 992 | |
| -- Emergency 911 | |
| -- In this case, it is not possible to call Bob because the phone exchange | |
| -- would direct your call to the emergency line as soon as you dialled the | |
| -- first three digits of Bob's phone number. So this list would not be consistent. | |
| module PhoneList(isConsistent) where |
Before Tom Janssens founded Arealities.com, he spent over a decade solving business problems using software and helping organisations to get better at building software.
Early 2014, he noticed an opportunity in the market and founded Arealities.com, a software company offering real-time interactive 3D visualisations over the web, next to virtual - and augmented reality solutions.
Next to this Tom is also one of the co-founders of DDD Belgium: a user group aiming to bridge the gap between software developers and business users.
You can follow Tom on his personal twitter account: @ToJans or via @ArealitiesCorp.
You've created a wonderfull, customizable product and are ready to sell it to the whole, wide, world.
Do your prospects have a hard time visualizing what you are selling?
Do you think you could sell more if you could show your product in full blown 3D?
Arealities.com visualizes your buyer's dream in full effect, so close you can almost feel it.
Tom Janssens solves business problems by building software and helps organisations to get better at building software. He is also one of the founders of Domain Driven Design Belgium.
He explores and cross-contaminates ideas from different languages and platforms; over the years he has been using languages like C#, F#, JavaScript, Erlang, Elixir and Haskell, and he is currently studying Idris. Other aspects include start-ups, BDD, DDD, CQRS and tackling legacy software.
When Tom is not working for his start-up, he is consulting clients and occasionally dumping random opinionated blurbs on his blog.
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace RicardoDeSilva | |
| { | |
| namespace Contracts | |
| { | |
| public enum ScheduleGeneratorType { Daily, Hourly /*, Add others */ }; |