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

Contributes to issue: Should add Well-Understood paper to front page description #3360 (Attempt) #3705

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

daijingz
Copy link
Contributor

@daijingz daijingz commented Mar 26, 2024

@samm82 Wait a moment for the new updates.
Inherited from previous PR #3686, but with some changes. Please wait for some further checks.
Corresponding Issue: #3360

Newest inspection: Coding style requirements.

  • Double spaces of indent levels.
  • Camel case variable names
  • Correct meaningful variable names.
  • Single blank lines between top-level objects.

Copy link
Owner

@JacquesCarette JacquesCarette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to the Website are far from pretty... but at (unfortunately) quite consistent with just how bad this code is. So those two changes are ok. Just the change to README needs improved.

README.md Outdated
@@ -21,7 +21,7 @@ Generate all the Things! Visit [our website](https://jacquescarette.github.io/Dr

## What is Drasil?

For well understood domains, building software ought to be a matter of engineering, based on solid scientific foundations. The ultimate test of "well understood" is being able to teach the domain language to a computer. Drasil is a framework for generating all of the software artifacts for (well understood) research software, from the natural knowledge base of the domain.
For well understood domains, building software ought to be a matter of engineering, based on solid scientific foundations. The ultimate test of "well understood" is being able to teach the domain language to a computer. Drasil is a framework for generating all of the software artifacts for (well understood) research software, from the natural knowledge base of the domain. The exhaustive summary of [well-understood](https://github.com/JacquesCarette/Drasil/blob/master/Papers/WellUnderstood/wu.pdf) domains and our original ideas include Drasil's primary information.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than this, I would make "(well understood) research software" in the previous line be a link to the paper, and skip this whole new sentence.

@samm82
Copy link
Collaborator

samm82 commented Mar 26, 2024

Also @daijingz, it's better to make any changes in a branch on your fork so that you don't need to "revert" your changes on your master branch, effectively removing your work from the PR (like in #3686).

@daijingz
Copy link
Contributor Author

daijingz commented Mar 27, 2024

Also @daijingz, it's better to make any changes in a branch on your fork so that you don't need to "revert" your changes on your master branch, effectively removing your work from the PR (like in #3686).

There are two existing branches in my personal machine for other issues, and I will use your described tools.
@JacquesCarette sorry for concerns, I will improve in the future.

namedRef icsePositionPaper (S "Old Position Paper") +:+ S "outlining our original ideas, a" +:+
namedRef danPoster (S "Drasil Poster") +:+ S ", and a" +:+
namedRef wellUnderstoodPaper (S "Well-Understood Paper") +:+ S "discussing key concepts."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use foldlList, or something similar. I seem to remember describing how to do this, as well as some other improvements, in a previous PR; you can use that as reference!

@daijingz
Copy link
Contributor Author

daijingz commented Apr 9, 2024

Sorry everyone, there are some non-personal issues taking place on my PC, and I am going to go to repair stores tomorrow. I will get back tomorrow.

@daijingz
Copy link
Contributor Author

daijingz commented Apr 17, 2024

@samm82 Newest update: have built two reusable wiki page sentences. This modification has some naming problems, and I am checking.

For the foldlList, I did not find some relevant code sections in the same program file. There is an example in this program file, however, it was used to represent an object list, where each hyperlink is separated by commas. However, this cannot work perfectly in the paragraph, as you can see, the input of foldlList has two input types: hyperlinks and sentences but this function can only have one type.

Can you show me the corresponding foldlList PR?

@daijingz
Copy link
Contributor Author

Up to now my PR has a lot of commits, do not worry, later I will git rebase.

code/drasil-website/lib/Drasil/Website/About.hs Outdated Show resolved Hide resolved
code/drasil-website/lib/Drasil/Website/About.hs Outdated Show resolved Hide resolved
@samm82
Copy link
Collaborator

samm82 commented Apr 17, 2024

For the foldlList, I did not find some relevant code sections in the same program file. There is an example in this program file, however, it was used to represent an object list, where each hyperlink is separated by commas. However, this cannot work perfectly in the paragraph, as you can see, the input of foldlList has two input types: hyperlinks and sentences but this function can only have one type.

Can you show me the corresponding foldlList PR?

@daijingz You should search the repo for "foldlList" to find how its used. If you can't find a PR/discussion about it (I think your git usage led to some of your work being overwritten), just search the codebase to see examples of how it's used.

@daijingz daijingz changed the title Should add Well-Understood paper to front page description #3360 (Attempt) Resolved: Should add Well-Understood paper to front page description #3360 (Attempt) Apr 22, 2024
@daijingz daijingz changed the title Resolved: Should add Well-Understood paper to front page description #3360 (Attempt) Contributes to issue: Should add Well-Understood paper to front page description #3360 (Attempt) Apr 22, 2024
@daijingz
Copy link
Contributor Author

daijingz commented Apr 22, 2024

For the foldlList, I did not find some relevant code sections in the same program file. There is an example in this program file, however, it was used to represent an object list, where each hyperlink is separated by commas. However, this cannot work perfectly in the paragraph, as you can see, the input of foldlList has two input types: hyperlinks and sentences but this function can only have one type.
Can you show me the corresponding foldlList PR?

@daijingz You should search the repo for "foldlList" to find how its used. If you can't find a PR/discussion about it (I think your git usage led to some of your work being overwritten), just search the codebase to see examples of how it's used.

Before I notice there is an example on the second paragraph:
QDU0O8_4K}@4HTBNF}~QXEY

For tonight's update, I use foldlList Comma List here, I guess this is the expected situation. @samm82
@JacquesCarette @balacij After reading some Wiki documentation, I have added some supplemental information for this PR. I realized the provided information's incompleteness.

@daijingz daijingz requested a review from samm82 April 22, 2024 15:33
code/stable-website/index.html Outdated Show resolved Hide resolved
code/drasil-website/lib/Drasil/Website/About.hs Outdated Show resolved Hide resolved
@daijingz daijingz requested a review from samm82 May 13, 2024 04:56
aboutParagraph9 papersWiki icsePositionPaper danPoster wellUnderstoodPaper =
S "A list of papers and documents written about Drasil can be found on the" +:+
namedRef papersWiki (S "Drasil papers and documents") +:+. wikiSentence +:+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I previously asked if "papers" and "documents" should be capitalized; I now realize that "Drasil Papers and Documents" is the name of the wiki page being referenced here, so they should be capitalized. Other than this, this PR looks good to me!

@daijingz
Copy link
Contributor Author

daijingz commented May 15, 2024

@samm82 Today I realized that webpage text inconsistencies may become a problem, so I inspected the existing text in the website to find any possible improvement places.

Scope: the whole About section. (Code is in About.hs)
Possible improvement places: 3

  1. useage -> usage
  2. up to date -> up-to-date
  3. shows -> show

These are Grammarly suggestions. If you feel there is no need to change this, I can stay without any further changes, but I suggest modifying these words.

Copy link
Collaborator

@samm82 samm82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor nitpick, but this looks good to me! We should wait on Dr. Carette's review though.

\a specific purpose so that knowledge may be used in generated models, definitions, and theories. Chunks are usually made up of several \
\lower-level types that hold lower-lever information; when contained together, these pieces of lower-level information hold a new specific \
\purpose. The structure of a chunk can be thought of as a wrapper of information, and this is all implemented using Haskell's record-type \
\syntax. Recipes transform the acquired knowledge into a usable format."

-- | Paragraph describing recipes
aboutParagraph7 :: Reference -> Sentence
aboutParagraph7 recipesWiki= S "As described in the" +:+ namedRef recipesWiki (S "Recipes") +:+ S "wiki page, recipes are instructions that \
\unpackage necessary information from chunks and send \
aboutParagraph7 recipesWiki= S "As described in the" +:+ namedRef recipesWiki (S "Recipes") +:+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aboutParagraph7 recipesWiki= S "As described in the" +:+ namedRef recipesWiki (S "Recipes") +:+
aboutParagraph7 recipesWiki = S "As described in the" +:+ namedRef recipesWiki (S "Recipes") +:+

@daijingz daijingz requested a review from samm82 June 3, 2024 04:40
@daijingz
Copy link
Contributor Author

daijingz commented Jun 3, 2024

Let me think about more possible improvements. (Updating)

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.

None yet

3 participants