Elektrine
EN
Log in Register
Paige Chat Timeline Communities Gallery Videos Email DNS VPN Uptime Kairo
Back to Timeline
Remote

Stephen Gruppetta

@s_gruppetta@qoto.org
  • Open on qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming

• I write about Python on The Python Coding Book blog and on Real Python

• Former Physicist

• Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends!

#Python #programming
#coding
#fedi22
#LearnToCode #LearnPython

6 Followers
127 Following
13 Posts
Joined November 05, 2022
Python Blog:
https://thepythoncodingbook.com/blog
The Python Coding Book:
https://thepythoncodingbook.com
Codetoday:
https://codetoday.co.uk
Everything...Everywhere:
https://stephengruppetta.bio.link

Posts

Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 27, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

Do you know the offside rule? Here's a step-by-step tutorial to write a Python Offside Rule Quiz using Object-Oriented Programming

I score 10 out of 10 all the time. How about you?

Great article for anyone:
- who wants to learn object-oriented programming
- who wants to learn the offside rule

#Python #Programming #Coding #LearnPython #LearnToCode #Offside #Football #soccer

https://thepythoncodingbook.com/2022/11/27/football-offside-rule-quiz-in-python-using-object-oriented-programming/

2
1
2
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 26, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

Offside Rule Quiz using Python's `turtle`. I scored 10 out of 10. No need for VAR if I'm the referee, then?!

Article coming soon*

small print:
*soon is a relative term

#Python #Programming #Offside #Coding #LearnPython#LearnToCode #Football

Your browser does not support the video tag.
0
0
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 26, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

There are so many fascinating insights in this article by Lambert Meertens about design principles and decisions in Python's precursor languages, B and ABC.

Here's one of them which says so much about Python and about "language wars" some still have today.

Context: It's early 80s, talking about deciding to only allow integers as array indices, despite the fact it violated one of their design principles, with Guido van Rossum joining the ABC team at around this time:

"This design decision had been driven by fear: we had been concerned that aiming too high would make our language unimplementable on the small personal computers that were starting to appear on the market. But Dewar, in particular, convinced me that this meant we were designing for the past, not the future."

And this observation should be seen in the context of another consideration that the designers of B and ABC had, which was common with another high-level language they were exposed to at the time. Here's the quote:

"The design of SETL was predicated on the philosophy that, as computers became faster and faster, human time would be more valuable than computer time "and that the efficiency of the tool set SETL provided should not be measured in terms of speed of computation, but in their conceptual power."

Some still have the debate nowadays about whether computer time or programmer time are more precious. Although this still depends on the case, more and more applications are programmer-time limited today.

But in the past, most (all?) applications were computer-time limited. Way back in the very early days it could take several hours to get the result of a program execution–no wonder languages at the time prioritised computation speed over development speed.

But things have moved on. Python took off because it came at a time when the switch over between computer-time limited applications and programmer-time limited ones was happening as computers became faster.

Yes, we still need the languages that prioritise computer-time today – there are still applications that need them, but the shift has happened and languages such as Python which prioritise the programmers' time over the computer's time will get more and more relevant (they already are, of course)

Article in Inference

#python #programming #coding #LearnPython #LearnToCode

https://inference-review.com/article/the-origins-of-python

4
0
2
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 25, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org
Replying to @SignalsAndSorcery@ravenation.club
@SignalsAndSorcery@ravenation.club The static v. dynamic typing debate is one that will go on forever. There's a place for both, I feel, depending on the use case…
1
1
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 25, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

When does talking about #programming sound like Philosophy 101?

Teaching `None` in #Python (or similar in other languages) is one of them

`stuff = None`

I can be heard saying the following when teaching (not quite, but dramatising a bit for effect!)

"`stuff` is not empty. But we want it to be empty. But we need to put something in. So we put Python's way of representing nothing. But `None` is still an object. So it's still something. But it's something that represents nothingness. Is that all clear?!"

It's a bit like when you're told to listen to silence in a meditation exercise?!

#Coding #LearnPython #LearnToCode

3
4
2
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 24, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

@miko@snug.moe A great starting point usually is trying to automate a task you do often that's a bit repetitive (read: boring). You'll be motivated knowing how much time it will save you in the long run

0
0
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 24, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

@miko@snug.moe are you new to programming, though, or is it just that you want to use your skill and not sure how?

0
1
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 24, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

@taz glad you agree!

0
0
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 24, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

— Code Wars: Episode IV – The Language Wars —

Which is better? Java or Python or Javascript or C++ or Rust or Julia or …

You often see the language wars being waged on many fronts – books, online tutorials, and of course here on social media

Each language has its pros & cons, strengths & weaknesses

The reason there isn't one language to rule them all (I'm mixing my fictional references!) is because all have or had a place

The language that's best for one purpose may not be the ideal for another

Where do I stand on this?

Although you only ever see me post about Python, and all my current work is in Python, you may (or may not) be surprised to know that I won't participate in this feud

Yes, I think Python is a brilliant language – and lots has been written elsewhere about this

But the "language A is better than language B" argument or the "language Z is rubbish" line doesn't lead to anything fruitful. Ever!

So these childish debates are not for me, sorry!

Think of the programming language as a tool to achieve your objective. What matters is achieving your objective and not which tools you use

Of course, some tools are more suited for certain objectives…

On the other hand, if you know how to use one particular tool very well and want to use it for most of your tasks, there's nothing too wrong about that, either!

---
Coming Soon: Code Wars Episode V

---

#coding #Programming #LearnToCode #python

10
1
6
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 24, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

As I've been re-watching the Star Wars trilogy of trilogies (kids are now interested, so I'm doing it for them!), I thought of creating a Code Wars series – where are the battles relating to programming fought?

So, we start with Episode IV, of course. Here it comes…

#Programming #Coding #Python

3
0
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 23, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org

I'm still surprised at how many hits this article gets every day, so let me reshare it here in case it's of interest to anyone.

It's rather niche, but it's a fun tutorial to follow even if it's not really your field:

Recreating any image from sines and cosines

#Python #Fourier #FourierOptics #Coding #Programming #LearnPython

https://thepythoncodingbook.com/2021/08/30/2d-fourier-transform-in-python-and-fourier-synthesis-of-images/

4
0
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 08, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org
Replying to @mariatta@mastodon.social
@mariatta @oliverandrich Not sure if old toots stay on the old instance though…
0
1
0
0
Open post
s_gruppetta
Stephen Gruppetta @s_gruppetta@qoto.org · Nov 07, 2022
Stephen Gruppetta
@s_gruppetta@qoto.org

• Rethinking how to teach programming – I prefer the friendly, relaxed approach when communicating about Python programming • I write about Python on The Python Coding Book blog and on Real Python • Former Physicist • Expect posts on scientific and numerical programming –> NumPy, Matplotlib and friends! #Python #programming #coding #fedi22 #LearnToCode #LearnPython

qoto.org
Replying to @mariatta@mastodon.social
@mariatta I think, and I’m by no means an expert, when you click on that link you’re going to their server, not yours. That’s why you need to log in. But you can copy-paste that link in your search bar and then just click follow
0
1
0
0

Remote instance

qoto.org
Open on original server
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

Platform

  • Email
  • Chat
  • Timeline
  • Communities
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • Warrant Canary
  • Lite (no JS)
  • VPN Policy
  • Source code

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 09:13:12 UTC