313 points · by nine_k · 5y ago · 102 comments
The debugger and variable pane really help beginners figure out what's going as their program runs.
Not really. You don't have to use all its features, they are neither necessary nor intrusive. E.g. I hardly know, let alone use more than 10% of its functionality. The only reasons I use it are very smart code completion, refactoring (rename variable/class/function/whatever, jump to definition, find all usages), breakpoint debugger, auto imports suggestions, and type hints derivation. I barely even use menu items besides "reformat code". But the smart code completion IntelliJ IDEs offer is by far the best on the market so its worth that. Extremely useful for lazy/occasional/novice coders who don't remember APIs by heart and don't want to sopend much time browsing the docs every time.
Not right now, but I did.
> But as a teacher, you have a completely different problem: You need a really simple, easy to explain environment - no fuss, no unnecessary complexity.
Just tell them to ignore that complexity and only press this and this.
When I was a kid we were taught to code (simple games in C/WinAPI and C++/MFC) in Visual Studio 6 Enterprise Edition on Windows NT. Visual Studio (especially its enterprise editions) traditionally has tons of features which still seem extraterrestrial to me but you are safe to ignore them.
Just don't click those weird menu/toolbar items. Just create a project, write the code (with help of super-smart auto-completion) and press Run, use some conveniences (like refactoring and debugging) once you are told or read about those particular. Easy-peasy.
No, really! Sorry, but I've run hundreds of students through this course and that's my actual experience. I love PyCharm. It's a great tool. It's not what beginner programmers need to learn the fundamentals of programming.
- type vi <filename> to start editing
- there are two modes: 'i' to start insert mode, <esc> to leave it for normal mode
- in insert mode, what you type is entered as you type
- in normal mode, use the cursor keys to move around
- in normal mode, type 'x' to delete the character under the cursor
- type :wq to save and quit
What are the odds a vim-virgin could complete a programming assignment without getting tripped up, despite the explicit directions to use just the features above?
I can hardly imagine that. They would hate me for wasting their time they could use to learn something practical. To me Vim seems a crazy alien technology of particularly questionable usefulness (even for a keyboard-centric user), only suitable for fun and for looking cool. Unlike PyCharm or Visual Studio, Vim doesn't just have unintuitive features available to whoever chooses to invoke those, it is and can only be operated in a completely unintuitive way, impossible to learn without instruction. And I never needed any instruction on how to use, let alone exit PyCharm.
IME Thonny is a great sketchpad for Micropython ideas, and makes work on that platform nearly as easy as locally-run Python code.
I'm a psychology major and working as a "student tutor", which in my case means helping lower year students work with R for statistical analysis. A lot of them are struggling, but for the ones that aren't and show further interest beyond R, I might recommend this IDE after looking into it more!
You can use the help function to see some information about things.
For example:
help(list)
Of course all of the help that you get that way is only useful if you already know the concepts you need and the names of things. It’s not like a tutorial or a guide or anything. But still, if you find yourself forgetting some detail about something it can be a way of finding the information you need.The main window on the first shot from the site is about 620px wide and I feel I could write some code not even resizing it. I easily imagine 2 buttons, dropdown and 2 textboxes filling this whole window instead.
Thonny just seems to do few things, but do them rather well.
Also, it depends what you mean by bloated, but VS Code can be stripped down to work just like the two I listed above. Language servers aren't required by any means. If you're looking for sub 50MB ram usage, then stick to the two above and search for "Sublime Text alternative" and I'm sure you'll find more equivalents than you ever wanted.
I prefer Atom.io over VSCode for simplicity. It's much closer to working the way I want out-of-the-box. There's so much junk I have to disable in VSCode to get it where I like.
I see it more as an good modular editor that they dressed up as an IDE cause that is what the people say they want.
I'm serious, give it a spin, it's underrated.
each individual program is its own module, fs to link them (files or pipe)
Why is more tools a problem?
It is so simple, approachable, and un-intimidating. There is really no learning curve. Just type something and click run.
The GUI is based on tkinter. It looks surprisingly good.
Of note, it is the default installed Python IDE on Raspberry Pi OS.
Thonny has everything included to start quickly no external plugins, installs needed.
The debugger and the shell work quite nicely.
Key bindings are a bit different (instead of Ctrl+/ you have to use Ctrl+3)
After a few weeks I migrate them to VS Code or PyCharm and later Jupyter .
Every semester a few students stay with Thonny and it does not hold them back from making great projects.
You can install packages with Thonny but it tends to conflict with Anaconda installation leading to https://xkcd.com/1987/ situation.
I suspect (but I'm not sure) that the rest of their desktop products are built on top of that.
But there are no open source plugins for Go or Rust in top of intellij. So for all intents and purposes the editor is not open source for those languages. As far as I know no one in the community has tried implementing an open source plugin to compete with the proprietary ones.
(And for anyone who wonders, no, I'm not paid and I don't use it - because of ergonomics - for me it is almost as painful to use as Macs are for me. I see inconsistencies and weird defaults everywhere since I'm a NetBeans / VSCode / Sublime Text kind of person. I just love Jetbrains business model.)
They're currently using Mu (https://codewith.mu/) which has similar goals (very streamlined IDE aimed at kids and beginners).
bpython is the friendly alternative to ipython.