r/learnpython • • May 06 '21

What are some programming tools that every beginner programmer should know about?

Example, today I learned about Git and GitHub and it felt incredible.

480 Upvotes

190 comments sorted by

View all comments

25

u/xelf Elf May 06 '21

There's already been some great suggestions. I'm going to toss this out there: learn a programmable editor as well. For me I went with emacs. I still use emacs regularly alongside Visual Studio and VSCode. There are times where having a programmable editor just offers you additional options.

Don't be intimidated by people that say there's a steep learning curve, it takes 15 minutes to learn the basics and to be able to manipulate things.

Sure you can spend a lifetime learning to master it, or writing your own lisp code for it, but the basics are really, well basic. Cut/paste, search, upcase region, capitalize word, record some key strokes, repeat those keystrokes 50 times. Open a shell window and compile and execute code.

It's a small investment in time for what could be a huge pay off over the next several years of use.

6

u/gapspark May 06 '21

Indeed. I came back to Emacs through the Spacemacs distribution. It has a lot of presets for different languages. Things I wouldn't take the time for to configure when I had a plain Emacs setup. I also use other editors when I feel it makes sense.

3

u/wonteatyourcat May 06 '21

Is there a point to learn eMacs if you don’t program in Linux? In 4 years of programming python (on windows) i never used it, even though I know how to. Even when I program for my raspi. My IDE and notepad++ are both more convenient and easier to use, especially with multiple files. It seems very server-centric.

4

u/vectorpropio May 06 '21

Is there a point to learn eMacs if you don’t program in Linux?

Emacs is your OS.

3

u/xelf Elf May 06 '21

I use it on windows mainly. So I guess, yes? =)

It's one of those tools where knowing how to use it can save you a ton of hassle that one time you need it, and suddenly it was worth it.

I also like having it as the default text editor instead of notepad for any text file format.

3

u/wonteatyourcat May 06 '21

I understand you like to use it, but can you give me an example of the one time it saved you a ton of hassle? Not bashing, I'm trying to understand why I would switch to it when pycharm and notepad++ do everything I need and more.

2

u/xelf Elf May 06 '21

I don't recommend switching to it. It's just an additional tool to add to your toolbelt.

Most of the things I find easier to do in it are basic text editing:

  • upcase/downcase/titlecase region/word

  • regex replace

  • record a macro ^x( type many keys ^x) and then execute the macro a bunch of times. Very handy when manipulating text files that are in a broken format and each line needs the same treatment.

5

u/wonteatyourcat May 06 '21

All of these are one shortcut away in notepad++ so I still don't see it being useful for me, but thank you for your answer :)

2

u/xelf Elf May 06 '21

Like I said, adding a programmable editor is a great tool to have access too. It doesn't have to be emacs. If you can already program macros in notepad++ and then execute them an arbitrary number of times then you're probably already in good shape.

One other thing I mentioned in another response was I like how cross platform emacs is, whether you're running it in a dos/cmd/bash shell, or as a window on linux/mac/windows whatever.

If you're only ever going to use windows then notepad++ is probably fine.

-1

u/antiproton May 06 '21

Vim and Emacs are tools exclusively for people who want to learn (and say they use) Vim and Emacs.

The vast, VAST majority of functions you need are supported by Notepad++ or Sublime.

If I need to do anything that even comes close to data editing, I throw the information into a spreadsheet and do it that way. It takes no time, and I don't have to waste space in my brain for the arcane collection of keyboard chords required by these tools.

Some people have a contact allergy to mice. I get it, we all have our idiosyncrasies. But beginners have enough to deal with without feeling like they're going crazy trying to understand Emacs.

2

u/xelf Elf May 06 '21

I hear good things about sublime. Notepad++ is good if you're only ever using windows.

It doesn't really matter which one you get, but it's typically worth it to learn an advanced editor.

But beginners have enough to deal with without feeling like they're going crazy trying to understand Emacs.

I really think you're misrepresenting here. It takes only a few minutes to pick up the basics.

Vim and Emacs are tools exclusively for people who want to learn (and say they use) Vim and Emacs.

And this is just Trolling at best, or perhaps mean spirited. We're having a nice discussion here, and the suggestion of learning any editor that supports recording and executing keyboard sequences is a good point.

I'm not advocating people drop everything and switch to emacs, I'm suggesting that having access to something like it is a good tool to have access to.

Your idea of notepad++ (& some plugins) or sublime supports my point.

1

u/[deleted] May 06 '21

Learning the basics is easy, but if you're only going to learn the basics there are much better editors out there.

To get the full potential of Emacs you really have to configure it. That can be confusing and time-consuming, since the documentation is so fragmented and arcane, and you need to have a decent grasp of elisp. I use Emacs everyday and it's definitely worth the investment, but it's a pretty high investment.

2

u/xelf Elf May 06 '21

And this is the point I disagree on.

You don't need to get the full potential out of it. To get a positive advantage out of using it, basic text editing and record and execute macros is going to be close to enough.

Sure you can learn a LOT more, there is so much more that it can do, but just a minimal amount is enough, that's why copycat editors like jove were so popular, minimal perks of emacs in minimal size.

Add the fact that it's highly cross platform! I don't think there are many editors out there that are as cross platform, run in a window or in a dos/bash shell, and handle trivially programmable macros.

Place I've run emacs:

  • as a window in windows

  • as an X window on windows and linux

  • in a variety of linux shells (bash/etc)

  • in a dos/cmd window

  • on a mac

  • on an amiga

  • on andriod (it's been a long time, it might have been an emacs clone)

I'm happy to be shown alternatives though! =) As I said, I think picking up any programmable editor is a good tool to have, it doesn't have to be emacs.

1

u/[deleted] May 06 '21

This, but for a modal editor.