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

Add Well-Understood paper to front page description #3705

Open
wants to merge 37 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.

Closes #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
@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)

@samm82
Copy link
Collaborator

samm82 commented Jun 3, 2024

I would hold off on making any more changes in this PR (unless you learn how to use Git properly; it's hard to see what changes you've made since my last review, and just putting the issue number as the commit message doesn't provide any additional information about what change(s) was/were actually made!)

@daijingz
Copy link
Contributor Author

daijingz commented Jun 3, 2024

I would hold off on making any more changes in this PR (unless you learn how to use Git properly; it's hard to see what changes you've made since my last review, and just putting the issue number as the commit message doesn't provide any additional information about what change(s) was/were actually made!)

I am going to keep my updated version here (without any further changes). Before I just had continuous inspections on grammar, indentations, and content. I did not find a place worthy to change -> I feel, for some parts, it is better not to change instead of change. Up to now I did not find any violations with the Contributor's Guide.

@daijingz
Copy link
Contributor Author

daijingz commented Jun 3, 2024

I am going to publish my new draft branch for another issue tomorrow. (Just to indicate my previous changes, all of you do not need to give any suggestions) (There is something I hesitate to determine.)

@balacij
Copy link
Collaborator

balacij commented Jun 5, 2024

To add to @samm82's comments about git, @daijingz, it would be nice if you could squash all of your commits into one or two commits. Also, you don't need to sync your branch as frequently as you do with master -- it's really only needed when there's a merge conflict showing up in the PR. Regarding your git commit messages, your objective with commits is to write a code change, ultimately. However, to make it understandable, you want to give readers of the code change (the commit) a quick summary (the commit message) before they read your code, so that they know what they're looking at and what to critique.

For example, in this PR, you are:

  1. Fixing a few typos in the existing website content
  2. Adding a link to the Well-Understood paper to the README.md
  3. Adding a few highlighted document links to the website content (namely, the original position paper, a poster, and the well-understood paper)

Now, these are 3 separate things you've done in this PR (which I think are all fair for one PR, and are all good, so thank you :) ). These 3 separate tasks can all fit into their own commits. However, I would make the commit messages just a tad more terse:

  1. Website: Fix a few typos
  2. README.md: Add a link to the Well-Understood paper
  3. Website: Highlight a few documents (original position paper, a poster, and the well-understood paper)

Of course, it would be expected that the commit messages sufficiently line up with what code was actually changed.

Actually, you can just make compress this down to just 2 commits:

  1. README.md: Add a link to the Well-Understood paper
  2. Website: Fix a few typos and highlight a few documents (original position paper, a poster, and the well-understood paper)

With these prospective commit messages, I think you can squash the existing commits (difficult) and/or soft reset the entire branch and recommit the changes gradually (simpler).

NOTE 1: You do not need to close this PR and start anew if you want to fix your commits. You will just need to use a force-push on your remote branch to fix the commit history.

NOTE 2: I don't think you should add any more changes to this PR. It looks fine as it is, in my opinion. The git commit history could probably be cleaned up a bit, however.

Aside: I probably have some auto commits around, but I fully intend to fix my own commit messages as well going forward.

@daijingz
Copy link
Contributor Author

daijingz commented Jun 5, 2024

Sure, let me think about changing it (Really messy in the commit message right now)

Meet some problems right now, because the squash option is disabled.
Maybe the failure is because of my branch Drasil_Copy_1 usages, so that all previous commits are temporarily disabled.

Up to now I am unable to get back to my master branch, and here is the error message:
6cd7bf250276f7b76a0ce069de93c243

I guess the most possible case is because Dr.Carette had not merged this PR from the master's branch, but merged another now from the copy branch. @samm82 Can you give me some help to fix this?

@balacij
Copy link
Collaborator

balacij commented Jun 6, 2024

What is that error message from?

@smiths
Copy link
Collaborator

smiths commented Jun 6, 2024

@balacij you provide some great advice above. Can you or one of the summer students add this advice to our Contributor's Guide? I like your advice about squashing commits and only merging with master when necessary. Your advice on commit messages is also valuable. We might already have some of this in the Contributor's guide.

@daijingz
Copy link
Contributor Author

daijingz commented Jun 9, 2024

What is that error message from?

@balacij From Git Desktop, when I switched my current branch to master, it had this error message.

I tried to use commands today but it did not work. Also, when I selected multiple commits, by right-clicking, the option squash ... commits was in grey, meaning it was unavailable. I guess there are some problems, but I have not found an efficient way to solve this, and others feel unfamiliar with this error. Please help me.

@JacquesCarette There is a new PR completed today, should I submit before fixing this error?
Here is the screenshot:
3d6ffbce94515e7d7e2f52fd98d42276

@balacij
Copy link
Collaborator

balacij commented Jun 11, 2024

@daijingz Can you please try out the branch in #3793 ? I think that should fix your issue.

@daijingz
Copy link
Contributor Author

@daijingz Can you please try out the branch in #3793 ? I think that should fix your issue.

Sure

@balacij balacij changed the title Contributes to issue: Should add Well-Understood paper to front page description #3360 (Attempt) Add Well-Understood paper to front page description Jun 11, 2024
@daijingz daijingz requested a review from balacij as a code owner June 15, 2024 00:52
@daijingz
Copy link
Contributor Author

daijingz commented Jun 15, 2024

Fixed. Now I can squash commits, and please wait a moment.
There is a problem: on the GitHub desktop, I tried to drag my commits to the target squash commit. It shows a lot of options after choosing to squash. However, after determined to squash, I did not see any response from the commit message terminal. That is, the original two commits did not combine, and they stayed separate as before.
@samm82 @balacij do you have office hour so that I can get assistance? But just wait for a few minutes, because I am still trying other ways.

f0676515414b748d9e41685551d20fd8

After this page, it shows that squash success, but I did not find any change on the same page (it seems like there is nothing change):
e686895e7b931005582d78e9c695148c

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.

Should add Well-Understood paper to front page description
5 participants