Skip to content

Conversation

RealOrangeOne
Copy link
Member

Recommend some editors for students to use, and explain how to install the library on machines to get type definitions etc.

Copy link
Member

@sedders123 sedders123 left a 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

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.
Copy link
Member

Choose a reason for hiding this comment

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

to extract?

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.
Copy link
Member

Choose a reason for hiding this comment

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

load these up?

Copy link
Member

@sedders123 sedders123 left a 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

---

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)).
Copy link
Member

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

sedders123
sedders123 previously approved these changes Dec 7, 2017
Copy link
Member

@sedders123 sedders123 left a 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
Copy link
Contributor

Choose a reason for hiding this comment

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

trailing newline please

Copy link
Contributor

@PeterJCLaw PeterJCLaw left a 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.


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.
Copy link
Contributor

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!
Copy link
Contributor

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)

Copy link
Member Author

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/

- [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!)
Copy link
Contributor

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)

@@ -0,0 +1,31 @@
---
title: Local installation
Copy link
Contributor

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.

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)).
Copy link
Contributor

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)


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)
Copy link
Contributor

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)

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.
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Member Author

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

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).
Copy link
Contributor

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)

Copy link
Contributor

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?

Copy link
Member Author

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

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).
Copy link
Contributor

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
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.
Copy link
Member

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)
Copy link
Contributor

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?

```bash
pip install git+https://github.com/sourcebots/robot-api
```
And on windows:
Copy link
Contributor

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.

Copy link
Member Author

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

Copy link
Member

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

@RealOrangeOne
Copy link
Member Author

This requires validation of #44 (comment) before merging.

@RealOrangeOne RealOrangeOne added the Frozen Won't fix this issue label Dec 15, 2017
sedders123
sedders123 previously approved these changes Dec 16, 2017
sedders123
sedders123 previously approved these changes Dec 16, 2017
@sedders123 sedders123 merged commit fb026ac into master Dec 16, 2017
@sedders123 sedders123 deleted the recommended-editors branch December 16, 2017 09:44
PeterJCLaw pushed a commit to PeterJCLaw/sourcebots-docs that referenced this pull request Mar 6, 2019
Add a page with kit shipping instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frozen Won't fix this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants