-
Notifications
You must be signed in to change notification settings - Fork 3
Recommended editors #44
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small things
content/api/local-installation.md
Outdated
title: Local installation | ||
--- | ||
|
||
Installing our code locally will allow your editor you extract type definitions from the `Robot` class and its boards, as well as allowing type completion on parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to extract?
content/api/local-installation.md
Outdated
pip install git+https://github.com/sourcebots/robot-api --user | ||
``` | ||
|
||
Simply restart your editor of choice, and it should these up and start being able to use them immediately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load these up?
cebc5db
to
4c2306b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry should have been clearer originally
content/api/local-installation.md
Outdated
--- | ||
|
||
Installing our code locally will allow your editor you extract type definitions from the `Robot` class and its boards, as well as allowing type completion on parameters. | ||
Installing our code locally will allow your editor you to extract type definitions from the `Robot` class and its boards, as well as allowing auto-complete (also known as [IntelliSense](https://en.wikipedia.org/wiki/IntelliSense)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'will allow your editor you to' The 'you' after editor should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
.spelling
Outdated
2.2A. | ||
PyCharm | ||
macOS | ||
IntelliSense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing newline please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good starting point, though I worry that much is too technical for many readers (see inline for details).
I'm aware that I'm not familiar with the rest of the docs, so I'm not sure how these fit in context -- if the context resolves the overly-technical side, then feel free to ignore those comments.
content/api/local-installation.md
Outdated
|
||
Installing our code locally will allow your editor to extract type definitions from the `Robot` class and its boards, as well as allowing auto-complete (also known as [IntelliSense](https://en.wikipedia.org/wiki/IntelliSense)). | ||
|
||
Installing these definitions is highly optional, however will be incredibly useful if your editor supports this. All editors in our [recommended list](/tutorials/editors/) besides IDLE will support it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"highly" feels redundant by the time users are reading this page.
To write code for the kit, you don't need anything specific in your editor, you just need to be able to edit Python (`.py`) files, and get them onto a USB drive. | ||
{{% /notice %}} | ||
|
||
Any editor will do, so it's recommended to use one you're already familiar with. If you don't already have a preference, here's some great ones, available on Windows, macOS, and Linux! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that the right capitalisation of macOS (I was expecting MacOS, but that's based on English grammar rules rather than Apple)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm afraid it is. https://www.apple.com/macos/
content/tutorials/editors.md
Outdated
- [Visual Studio Code](https://code.visualstudio.com) | ||
- [PyCharm](https://jetbrains.com/pycharm/) | ||
- [Atom](https://atom.io/) | ||
- [IDLE](https://wiki.python.org/moin/IDLE) (comes with Python!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDLE only comes with Python on Windows I think (I've not seen it on Ubuntu, don't know about Macs)
content/api/local-installation.md
Outdated
@@ -0,0 +1,31 @@ | |||
--- | |||
title: Local installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how it will look once rendered, but this feels ambiguous -- what is being installed.
I also wonder whether this page should be phrased more as "Getting editor support for the API" rather than "Installing the API". The difference is that the former is an intent, while the latter is a way to achieve it.
content/api/local-installation.md
Outdated
title: Local installation | ||
--- | ||
|
||
Installing our code locally will allow your editor to extract type definitions from the `Robot` class and its boards, as well as allowing auto-complete (also known as [IntelliSense](https://en.wikipedia.org/wiki/IntelliSense)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While correct, the phrasing here feels quite technical. I expect that inexperienced readers would be confused by this (what's a "type definition"?).
Unless we're deliberately targetting advanced users, we should probably keep this fairly high level.
(I'd be completely open to having an "Advanced" section which explains that we have added type annotations compatible with mypy
)
content/tutorials/editors.md
Outdated
|
||
Any editor will do, so it's recommended to use one you're already familiar with. If you don't already have a preference, here's some great ones, available on Windows, macOS, and Linux! | ||
|
||
- [Sublime Text 3](https://sublimetext.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sublime is (strictly speaking) a paid-for editor, for any use. I'd suggest that we move it down the list (or note that you're meant to buy it)
content/tutorials/editors.md
Outdated
To edit your code, you'll need an editor. | ||
|
||
{{% notice info %}} | ||
To write code for the kit, you don't need anything specific in your editor, you just need to be able to edit Python (`.py`) files, and get them onto a USB drive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we clarify that Python files are actually just text files?
Installing our API, the code you interact with, can be installed using `pip`, Python's built-in package manager. `pip` should be installed on your machine, if it's not, you'll need to look up how to install it. On Windows, this is best done using the [`get-pip.py` script](https://pip.pypa.io/en/stable/installing). | ||
|
||
```bash | ||
pip install git+https://github.com/sourcebots/robot-api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we considering putting the API up on PyPI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember it being discussed previously very briefly, and not really actively considered. But i'm strongly against it
content/api/local-installation.md
Outdated
Installing these definitions is highly optional, however will be incredibly useful if your editor supports this. All editors in our [recommended list](/tutorials/editors/) besides IDLE will support it. | ||
|
||
## Installation | ||
Installing our API, the code you interact with, can be installed using `pip`, Python's built-in package manager. `pip` should be installed on your machine, if it's not, you'll need to look up how to install it. On Windows, this is best done using the [`get-pip.py` script](https://pip.pypa.io/en/stable/installing). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should clarify that pip
will be installed if you have installed Python. (I'm not sure whether we've already told them to do that somewhere, but even if we have I think it's worth being explicit here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to this, have we mentioned anywhere that they'll need to use Python 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mentioned in #45, however i'll reitterate it here to be sure
content/api/local-installation.md
Outdated
Installing these definitions is highly optional, however will be incredibly useful if your editor supports this. All editors in our [recommended list](/tutorials/editors/) besides IDLE will support it. | ||
|
||
## Installation | ||
Installing our API, the code you interact with, can be installed using `pip`, Python's built-in package manager. `pip` should be installed on your machine, if it's not, you'll need to look up how to install it. On Windows, this is best done using the [`get-pip.py` script](https://pip.pypa.io/en/stable/installing). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any recent versions of Python for Windows which don't bundle pip? (If not, I suggest dropping the last sentence here).
Added commands for powershell using py -m for all bash commands
content/api/editor-support.md
Outdated
Installing these definitions is optional, however will be incredibly useful if your editor supports this. All editors in our [recommended list](/tutorials/editors/) besides IDLE will support it. | ||
|
||
## Installation | ||
Installing our API, the code you interact with, can be installed using `pip`, Python's built-in package manager. `pip` should be installed on your machine, if it's not, you'll need to look up how to install it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A trailing blank seems to have crept in on this line.
- [PyCharm](https://jetbrains.com/pycharm/) | ||
- [Atom](https://atom.io/) | ||
- [IDLE](https://wiki.python.org/moin/IDLE) (comes with Python!) | ||
- [Sublime Text 3](https://sublimetext.com) (License recommended for continued use) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realised: why does Sublime Text get a version number?
content/api/editor-support.md
Outdated
```bash | ||
pip install git+https://github.com/sourcebots/robot-api | ||
``` | ||
And on windows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the cause of difference is, but I've always been able to just pip
directly on windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible this addition isnt necessary, but when I tried yesterday on @Bitbait 's windows machine, pip
wasn't available in the path. I'll investigate on my windows machine(s) and see if I can find a cause
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can use pip
on Windows without explicitly editing the path, the installer has a tick box (ticked by default) for auto adding installation to PATH
This requires validation of #44 (comment) before merging. |
Add a page with kit shipping instructions
Recommend some editors for students to use, and explain how to install the library on machines to get type definitions etc.