News for hackers. Stuff that matters.
Re:Python’s tug of war between beginner-friendly and advance... by BeetleB on Thursday February 04, 2021 @09:26PM (#26032347)
Whenever I hear a story like this, I always ask:

Have you taught a similar crowd any other language and gotten a different experience?

Because what you describe sounds like the students in my introductory programming class, which was in C++. Sure, they didn't have whitespace issues, but did demonstrate a similar lack in rigor, and giving up easily.

Re:Python’s tug of war between beginner-friendly and advance... by BadInformatics on Thursday February 04, 2021 @10:34PM (#26032787)
No, though I have plenty of anecdotes from friends who have. I agree that these apply regardless of language. Whitespace errors are arguably some of the more insidious syntax errors though, since most editors will not differentiate between spaces and tabs (e.g. vim's set list) and to the beginner programmer it doesn't feel like the number of spaces should matter (I'm indenting my blocks, why do you care how much?)
Re:Python’s tug of war between beginner-friendly and advance... by BeetleB on Thursday February 04, 2021 @10:49PM (#26032886)
> I'm indenting my blocks, why do you care how much?

The equivalent in an introductory C/C++ class:

"I put a newline, why do you care if I put a semicolon?"

At some point, students have to accept the quirks of any language's syntax. It's OK to have an opinion and hate it, but whitespace complaints are mostly a preference issue.

(Every time I switch from Python to a language requiring semicolons, it always feels like I'm hitting endless speed bumps.)

While Python may not be a beginner language, nor is Java/C/C++, in my opinion - and for people completely new to programming, those have a steeper learning curve than Python (the for loops are just hideous). These were the standard introductory languages in college before Python took over. I'm sure better teaching languages exist, and I'm also sure JS is not one of them ;-)

Re:Python’s tug of war between beginner-friendly and advance... by BadInformatics on Thursday February 04, 2021 @11:11PM (#26033012)
Don't get me wrong, Python is head and shoulders above Java/C# or C/C++ as a teaching language. The complaint is that, as the educator, lab/tutorial time is being wasted on trivial syntax issues that would be non-existent given a more lenient parser or better tooling (preferably the latter).
Re:Python’s tug of war between beginner-friendly and advance... by franklyt on Thursday February 04, 2021 @11:28PM (#26033112)
I’m not sure that statement is accurate, I could see an argument being made for C being a really good learning language.
Re:Python’s tug of war between beginner-friendly and advance... by BeetleB on Friday February 05, 2021 @01:25AM (#26033669)
If your goal is low level programming, yes.

If your goal is understanding data structures, algorithms, etc, then C is hideous. Explaining function prototypes, include headers, very unfriendly I/O, and I already mentioned the horrible syntax for for loops.

There's a reason most of the data structures/algorithms were in a second course at my university: It's because it took most of one semester for students to get a handle on the very basics of C syntax.

Re:Python’s tug of war between beginner-friendly and advance... by aYsY4dDQ2NrcNzA on Friday February 05, 2021 @12:51AM (#26033541)
It would be the best possible learning language, if your next language was going to be assembly.
Re:Python’s tug of war between beginner-friendly and advance... by franklyt on Friday February 05, 2021 @12:52AM (#26033549)
Is that a crack about complexity? C doesn’t have very many features.
Re:Python’s tug of war between beginner-friendly and advance... by aYsY4dDQ2NrcNzA on Friday February 05, 2021 @01:06AM (#26033595)
I’m saying that the C machine model would be an ideal introduction to pointers and registers and bit manipulation, and you could compare a C program with its compiled disassembly. Later you could get into in-line assembly and even processor intrinsics.
Re:Python’s tug of war between beginner-friendly and advance... by franklyt on Friday February 05, 2021 @01:17AM (#26033631)
Alright, I see.

Another good candidate is golang.

I’m going to think on that one a bit more.