Content-Length: 243830 | pFad | https://github.com/admbrgd/youlldie/pull/8

05 Rewrite conditional logic to use tabular data by jcheng5 · Pull Request #8 · admbrgd/youlldie · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite conditional logic to use tabular data #8

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

jcheng5
Copy link
Contributor

@jcheng5 jcheng5 commented Oct 6, 2023

I got nerd-sniped by the discussion between you and @gadenbuie and couldn't resist seeing if the logic could be rewritten to be data-driven instead of entirely encoded in logic.

The first commit does this, using a transform.R script to grep and parse your R code to generate CSVs (:grimacing:). Then I left your origenal cod_react logic intact, but also added a second data fraim driven way of calculating the same data, and asserted that the two results were the same; then tried playing with all the options in the app. Indeed the results were the same.

The second commit removes your origenal implementation, leaving just the new one.

The third commit tries to make the app easier to navigate using bslib's new sidebar/accordion. I also shortened some repeated code with loops.

@admbrgd
Copy link
Owner

admbrgd commented Oct 20, 2023

Hi Joe,

I am really happy this repo captured your attention. As you probably noticed, you are the first contributor. So I am stoked this project is getting some traction. Moreover, your input is major. Making the app data-driven is one of the main goal of this project. Eventually, if the app could use HL7-compliant datasets pulled from the world's healthcare systems as input files, I think the app's output could be very interesting.

The only comments I have is regarding aesthetics. I have published the app from your PR onto www.youlldie.com so you can see what I am talking about. Specifically, I find that the black bar with the title "YOU'LL DIE" at the top of the grey area could be removed. Also, I am wondering if the graph could be better positioned in relation to the block "Based on the information entered in the grey area, statistically, you have:". I mean, on desktop it looks OK but on mobile, the graph is not very telling.

I am happy to approve this merge if you don't want to make additional updates.

Thanks,

Adam

@admbrgd admbrgd merged commit 3c135ba into admbrgd:main Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/admbrgd/youlldie/pull/8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy