News for hackers. Stuff that matters.
Re:Throw away code by heavyset_go on Saturday September 26, 2020 @12:43AM (#24596487)
> Someone also said the REPL, and while the REPL in Python is not as powerful as, i.e.: Clojure, it is still something that feels essential for a exploratory workflow that is the scripts case.

Check out IPython if you haven't, the REPL is a game changer.

Re:Throw away code by sullyj3 on Saturday September 26, 2020 @04:24AM (#24597248)
What features make it a game changer for you? For me it felt like just a small quality of life improvement, but I've never delved that deeply into its feature set.
Re:Throw away code by heavyset_go on Saturday September 26, 2020 @04:50PM (#24602013)
- readline functionality and history

- Hints and completions behind the Tab key

- Syntax highlighting as you type, along with auto-indentation

- Dynamic introspection with "?" and "??"

- Being able to run shell commands with "!" and capturing their output with "!!"

- Magic commands behind "%" and "%%"

- File system navigation

Re:Throw away code by m45t3r on Saturday September 26, 2020 @11:03AM (#24599340)
I know IPython, and yeah, it is very nice. But most of the time I just to test something fast the default REPL is already enough.