summaryrefslogtreecommitdiff
path: root/Biz/Devalloc/Core.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-12-06 10:04:08 -0500
committerBen Sima <ben@bsima.me>2020-12-06 10:04:08 -0500
commit83c473947589cd90fc74fb59e9c9c28a677583c3 (patch)
treecbe7ae61b5f6cf7a1be4b2c7d7fcb5c516c73234 /Biz/Devalloc/Core.hs
parented4778e3bc72d1995ae88c36486a546118f7aa2d (diff)
Finish Devalloc miso app prototype
After hours of trying to get a page abstraction working in a Miso app (both Devalloc and Hero) I had a revelation: Miso is an SPA - *single* page application - framework, and so trying to put multiple pages into it is fundamentally at odds with the rest of the architecture. Of course this is also a problem with Elm's pattern of nesting models in order to create a page abstraction. They can pull it off because they don't also try to do isomorphic rendering. In hindsight this should be obvious... if I actually do want some kind of page-like abstraction or separation, then I need a much more complex server that can embed different Miso apps based on some logic. But this is more like multi-tenancy, or something. Also I'm starting to think that I don't want Devalloc to be an SPA anyway, so I'll try an experimental branch where I rip it out and just use Servant, Lucid, and Turbolinks.
Diffstat (limited to 'Biz/Devalloc/Core.hs')
-rw-r--r--Biz/Devalloc/Core.hs86
1 files changed, 86 insertions, 0 deletions
diff --git a/Biz/Devalloc/Core.hs b/Biz/Devalloc/Core.hs
new file mode 100644
index 0000000..a56c386
--- /dev/null
+++ b/Biz/Devalloc/Core.hs
@@ -0,0 +1,86 @@
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE DataKinds #-}
+
+module Biz.Devalloc.Core
+ ( Form (..),
+ Move (..),
+ make,
+ signup,
+ view,
+ )
+where
+
+import Alpha
+import Miso hiding (view)
+import qualified Miso.String
+import Servant.API
+import Servant.Links (URI)
+
+data Move
+ = NoOp
+ | ChangeURI URI
+
+newtype Form = Form {uri :: URI}
+ deriving (Eq)
+
+make :: URI -> Form
+make uri = Form uri
+
+signup :: View Move
+signup =
+ p_
+ []
+ [ a_
+ [href_ "mailto:ben@bsima.me?subject=Devalloc+signup"]
+ [text "Request access via email"]
+ ]
+
+
+view :: Form -> View Move
+view _ =
+ div_
+ []
+ [ h1_ [] [text "Devalloc"],
+ p_
+ []
+ [ text
+ "Devalloc analyzes your codebase trends, finds patterns \
+ \ in how your developers work, and protects against tech debt."
+ ],
+ p_ [] [text "Just hook it up to your CI system - it will warn you when it finds a problem."],
+ signup,
+ h2_ [] [text "Identify blackholes in your codebase"],
+ p_
+ []
+ [ text
+ <| Miso.String.intercalate
+ " "
+ [ "What if none of your active employees have touched some part of the codebase?",
+ "This happens too often with legacy code, and then it turns into a huge source of tech debt.",
+ "Devalloc finds these \"blackholes\" and warns you about them so you can be proactive in eliminating tech debt."
+ ]
+ ],
+ h2_
+ []
+ [text "Protect against lost knowledge"],
+ p_
+ []
+ [text "Not everyone can know every part of a codebase. By finding pieces of code that only 1 or 2 people have touched, devalloc identifes siloed knowledge. This allows you to protect against the risk of this knowledge leaving the company if an employee leaves."],
+ h2_
+ []
+ [text "Don't just measure code coverage - also know your dev coverage"],
+ p_
+ []
+ [text "No matter how smart your employees are, if you are under- or over-utilizing your developers then you will never get optimal performance from your team."],
+ ul_
+ []
+ [ li_ [] [text "Find developer hot spots in your code: which pieces of code get continually rewritten, taking up valuable dev time?"],
+ li_ [] [text "Know how your devs work best: which ones have depth of knowledge, and which ones have breadth?"]
+ ],
+ p_ [] [text "(Paid only)"],
+ h2_ [] [text "See how your teams *actually* organize themselves with cluster analysis"],
+ p_ [] [text "Does your team feel splintered or not cohesive? Which developers work best together? Devalloc analyzes the collaboration patterns between devs and helps you form optimal pairings and teams based on shared code and mindspace."],
+ p_ [] [text "(Paid only)"],
+ signup
+ ]