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

Clarifying how to use the editor #52

Open
tbooth opened this issue Sep 22, 2023 · 8 comments
Open

Clarifying how to use the editor #52

tbooth opened this issue Sep 22, 2023 · 8 comments
Labels
reviewer Issues arising from comments on https://github.com/carpentries-lab/reviews/issues/17

Comments

@tbooth
Copy link
Collaborator

tbooth commented Sep 22, 2023

from @tkphd

Two editors are mentioned here, but no editor is invoked in the lesson material.
Throughout, when showing changes to a file, preface it with the command the
instructor should use to launch the editor.
Provide installation instructions or suggest a framework (like
gitforwindows) that provides an editor.
"Setup" is meant to be run by the learner hours or days ahead of the
workshop. Any alias they set will be lost by the time they need it.
Recommend editing ~/.nanorc to set appropriate flags instead, or editing
~/.bashrc to retain the alias, and revisiting this at the beginning of the
lesson to make sure everyone has a consistent editing environment.

@tbooth tbooth added the reviewer Issues arising from comments on https://github.com/carpentries-lab/reviews/issues/17 label Sep 22, 2023
@tbooth
Copy link
Collaborator Author

tbooth commented Sep 22, 2023

Two editors are mentioned here, but no editor is invoked in the lesson material.
Throughout, when showing changes to a file, preface it with the command the
instructor should use to launch the editor.

I know this is done in the shell novice lesson, with $ nano filename being shown every time a file is edited, and nano being the prescribed editor. However, when teaching these lessons over the last two years we've instructed the learners to open the Snakefile in Gedit and keep the window open, so there is no command to run before changing a file.

I can add some more guidance to the instructor notes on choice of editor and practicalities of presenting this, but I don't think peppering these lessons with repeated instructions on how to start a text editor is helpful to anyone.

@tbooth
Copy link
Collaborator Author

tbooth commented Sep 22, 2023

Provide installation instructions or suggest a framework (like
gitforwindows) that provides an editor.

Again, the ability to edit text files is a prerequisite to this course, and is discussed in the Carpenties shell novice lessons.

@tbooth
Copy link
Collaborator Author

tbooth commented Sep 22, 2023

"Setup" is meant to be run by the learner hours or days ahead of the
workshop. Any alias they set will be lost by the time they need it.
Recommend editing ~/.nanorc to set appropriate flags instead, or editing
~/.bashrc to retain the alias, and revisiting this at the beginning of the
lesson to make sure everyone has a consistent editing environment.

Again, I think this is down to whoever is running the particular course to decide what editor environment they are happiest presenting and how much introduction it needs for their given audience. They may decide to use neither GEdit nor Nano, in which case the course shouldn't stand in their way and be over-prescriptive.

Mentioning ~/.nanorc is a good idea - I'll suggest that in place of the alias.

@tbooth
Copy link
Collaborator Author

tbooth commented Jul 17, 2024

Further comments were made by @cmeesters:

when introducing gedit (in the setup section), it is recommended to start the editor in the background. I noticed, myself, that you have to describe what the ampersand (&) actually does to newbies.

likewise with Nano, a number of rather "cryptic" command line flags are given and not explained.

@tbooth
Copy link
Collaborator Author

tbooth commented Jul 17, 2024

likewise with Nano, a number of rather "cryptic" command line flags are given and not explained.

I don't understand this comment. The text explains that these flags in nano select the equivalent settings described above for GEdit, and then for good measure I give the settings in more legible .nanorc format. At this point I could digress into a detailed discussion of editor configuration, but the point is to give the learner a setup that will work. So I don't see what I should add here that will actually be useful.

@tbooth
Copy link
Collaborator Author

tbooth commented Jul 17, 2024

when introducing gedit (in the setup section), it is recommended to start the editor in the background. I noticed,
myself, that you have to describe what the ampersand (&) actually does to newbies.

Actually it's more complex that this, because gedit has a habit of printing sporadic warnings into the terminal which is annoying and confusing. So I'm going to remove the recommendation to use gedit & and add a callout to explain further.

@cmeesters
Copy link

I don't understand this comment. (about nano)

Well, nano -wiSOE -T 4 -Y python Snakefile is preceded with "The following command will start editing with the suggested settings ... ". I merely think this does not really elucidate matters for newbies.

Essentially, all editors with a steep learning curve (nano, vi, emacs, ...) have their quirks and will lead to issues with some participants in the classrooms. Choosing gedit and nano (as nano is not that strange as vi and emacs are) is an attempt to reduce such issues. However, when people start not knowing what ls is and what flags are, -wiSOE -T 4 -Y is mysterious gibberish. It is challenging to navigate around this issue, I know. You might as well leave it as is - perhaps someone has an idea at a later time.

@tbooth
Copy link
Collaborator Author

tbooth commented Jul 17, 2024

So this gets to the fundamental question: is this course aimed at Linux newbies or is it aimed at people with shell scripting experience. I wrote it for the latter, but you (and previously @tkphd) are saying it should be modified to suit the former.

"when people start not knowing what ls is and what flags are" ... they are in the wrong place. This is not (yet) the course for them. There are many many great resources for people to learn these things, not least the Carpentries lessons introducing Linux. I do not propose to re-invent that wheel by providing introductory Linux exposition within this course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewer Issues arising from comments on https://github.com/carpentries-lab/reviews/issues/17
Projects
None yet
Development

No branches or pull requests

2 participants