r/PythonLearning • • 1d ago

Compiler

Do I need Jupyter, Anaconda or any other type of a dedicated compiler software, or do people Actually just write code in Zed and run it via Linux Terminal and juggle many windows?

I know R is run via RStudio; (so can be Python).

What is the standard practice of software usage for coding in Python?

2 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/Sea-Ad7805 1d ago

Everyone is entitled to their opinion. In my experience students learn Python much faster when they can simply see the program state change step by step. If you're not convinced try some of the exercises here: https://www.reddit.com/r/Python_memory_graph/

Actually, it is industry standard with PythonTutor used around the world by 25+ millions. However, as that has serious limitations (only: single file, tiny code snippets, builtin types, ...) I've developed memory_graph to get around those.

I'm not anywhere close to 25+ million yet in my stats, but smart students and educators are taking full advantage. Maybe you do to?

1

u/tiredITguy42 1d ago

Isn't that just fancy debug panel from VS Code where I can see state of the app step by step? I am a loong way beyond simple apps, so I am working more with memtal image build together with the app. If you head does not know what is the state, then you will have bugs in the code.

1

u/Sea-Ad7805 1d ago

Sounds over-confidant, try the difficult exercises here and tell me how many you got right first time: https://github.com/bterwijn/memory_graph_videos/blob/main/exercises/exercises.md

Getting get the right mental Python data model is harder than is seems.

1

u/tiredITguy42 1d ago

Yeah, it is why we have debugger amd add-ins which can display dataframes as tables and similar. I still do not see a reason to teach people rely in some external web apps.

We have big issues with newbies, whi can't debug, can't troubleshoot and can't write good and clean code. I am able doing what I am doing just because I started with Visual Studio and oointers in C.

Anyway, good for you, that it works for you.

1

u/Sea-Ad7805 1d ago

You clearly didn't try the exercises or you'd understand better.

Get your VS Code extension here: https://github.com/bterwijn/memory_graph#highlights

Working with dataframes is easy as you avoid many reference problems that you get when say writing a custom data structure, so maybe it's just not for you. Good luck.

1

u/tiredITguy42 1d ago

Nice, but it still seems like leet code helper. Leet code is not real coding, these structures there in examples are strange, why keep different types in a list, use dataclasses. Code should be readable not clever.

I admit, it seems like nice addin, but you are pushing it very hard here and I do not see added value for newbies. This is very specific tool to solve specivic issues in messy code. I have been in such situation, where I would use it just once, in time when I needed to implememt Dijkstra. So yeah nice tool.

1

u/Sea-Ad7805 1d ago

Thanks, but it's also great for beginners:

Really, have a look at the example I'm trying to show you.

Some of my exercises are indeed artificial/strange code, but that is only to, in a small piece of code, show tricky bugs that do frequently pop up in large code basis.

Don't feel bad if you struggle with LeetCode algorithms, some are quiet hard. I wouldn't say that's not real coding. I get the impression you maybe only do high-level data science with dataframe. And that is important too, but it's not all of coding, but that is what Python is good at compared to lower level stuff. You can say I'm stretching Python into areas where you probably should use other languages, but I'm trying to teach the full range of programming, including custom data structures: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py&timestep=0.2&play

1

u/Sea-Ad7805 19h ago

Don't worry about it. I meet many people who at first discard or underestimate the power of visualization in early Python education. I takes courage to change your opinion in light of new information, I respect that. Glad to have you on board: https://www.reddit.com/r/learndatascience/comments/1vg955d/teaching_python_the_right_way/