Aberdeen Python User Group 8 November 2023

"Gradual Static Typing in Python" - Dr Lee A. Christie

Python is a dynamically typed language which programmers love as it lets them easily and quickly write code without worrying too much about types. However, it can sometimes cause problems for readability and maintainability in larger code bases even with the help of a smart IDE. Should we abandon Python and switch to a statically typed language?

Did you know that Python has support for type hinting? This allows programmers to add gradual static typing for static analysis tools like mypy and your IDE’s built-in linter. This has been used by large companies like Dropbox and Instagram to improve the way they write Python. This way you can selectively add typing information to just some parts of your code base at a time and more easily detect and fix bugs! In this talk, you will learn the basics of how to add static typing hints to your Python code. We will show how to type hint functions, variables, collections, and use unions and optionals.

Dr Lee A. Christie is a Research Fellow working at Robert Gordon University’s National Subsea Centre where he regularly uses Python in real world applications such as ferry planning and energy network design. He also teaches an introductory Python module for MSc. Business Analytics. He has been programming since about 1997 and picked up Python in 2013.

The talk will be followed by related coding challenges which attendees can work on in small groups or solo.

If you don’t already have Python set up, we can help you with that too. Coding in pairs or small groups (especially mixing beginner and more experiences coders) is strongly encouraged, though you can also code solo.

This event is orgnanised by a charity - Code The City. CTC suggests a small donation to help with charity admin costs, but if this is a barrier please just change the ticket price to what you can afford.

We're now back to planning physical events backed up with an online option.

If you select a physical ticket and it happens that we can not meet physically you will have to attend the Zoom session. If you choose a physical ticket and it goes ahead you will have to comply with any conditions of attendance (eg masks or social distancing) that the venue operators demand at the time.

Those attending the physical space meetup should attend at 6pm for pizza and drinks. The talk (for online attendees) will be from 6.30pm. Doors will be locked from 6.30pm.

**If tickets are sold out please do not attend as you will be refused entry without a ticket. **

Our booking system is provided by Tito. Their platform is integrated with payment processing by Stripe

Tickets

Additional Information

Our physical session starts at 6pm with pizza and drinks.

"Gradual Static Typing in Python" - Dr Lee A. Christie We will then work on related coding challenges in small groups.

Please note our policy on reducing the spread of infections diseases such as Covid-19