Bas Steins Profile picture
SWE working on @stelviodev🐍, podcast host @basdotfmπŸŽ™οΈ, coffeechatterβ˜•, conference speaker🎀
Mar 17, 2023 β€’ 13 tweets β€’ 5 min read
Still on vacation – but a lot of reading material I found #ThisWeekInPython🐍

Check it out πŸ‘‡ Image +++
#ThisWeekInPython🐍 is in my blog, too πŸ‘‡
+++
bas.codes/posts/this-wee…
Mar 3, 2023 β€’ 13 tweets β€’ 5 min read
Another week of interesting articles and projects I found #ThisWeekInPython🐍

Enjoy your weekend! +++
You can follow #ThisWeekInPython🐍 on my blog, too πŸ‘‡
+++
bas.codes/posts/this-wee…
Mar 1, 2023 β€’ 16 tweets β€’ 5 min read
πŸ’‘πŸš Want to become a wizard on your command line? πŸ§™

Here are 14 CLI tools to boost your productivity as a developer
πŸ‘‡ autojump is a tool that learns your most frequented directories and allows you to switch to them by using a shortcut.
github.com/wting/autojump
Jan 19, 2023 β€’ 6 tweets β€’ 2 min read
πŸπŸ’‘ Let's talk about short and concise code!

Here is a collection of 5 one-liners in Python πŸ‘‡

What is your favourite Python one-liner? You can swap two variables in just one line in Python
Jan 18, 2023 β€’ 8 tweets β€’ 3 min read
πŸπŸ’‘ Python can be an expressive language. When I review pull requests, I sometimes see when people don't make use of its expressiveness.

Here are 7️⃣ tips that make your Python code look more professional πŸ‘‡ You should use f-strings instead of manual string building.

Look at how much more readable that becomes:
Dec 23, 2022 β€’ 14 tweets β€’ 6 min read
#ThisWeekInPython +++
You can follow #ThisWeekInPython on my blog, too πŸ‘‡
+++
bas.codes/posts/this-wee…
Dec 22, 2022 β€’ 12 tweets β€’ 4 min read
πŸ’‘πŸ Did you hear about Type Hinting in Python?

Let's have a look at these helpful additions to your code
πŸ‘‡ Python is a dynamically typed language.

A variable does not need to be declared with a specific type. Also, variables can change their types during runtime.
Dec 21, 2022 β€’ 7 tweets β€’ 3 min read
🐍 Are you looking for a Python job? πŸ‘€

Here are 5️⃣ websites to find your next adventure!

πŸ‘‡ remoteok is a job board focussed on Remote Positions built by @levelsio
rli.to/NhzzB
Dec 21, 2022 β€’ 9 tweets β€’ 3 min read
πŸ’‘πŸ We have 𝚏-strings in Python since 3.6

Let's have a look at their powerful features
πŸ‘‡ Image You can execute arbitrary expressions inside f-strings Image
Dec 20, 2022 β€’ 9 tweets β€’ 3 min read
πŸπŸ’‘Want to know more about the history behind some concepts of Python?

Let’s meet some of Python’s grand-grand-parents! πŸ‘΄πŸ‘΅
πŸ‘‡ C: The blocks

In some regards, the C programming language can be seen as the mother of most modern languages. It introduced β€œblocks” to structure programs, although they are limited by characters, not indentation Image
Nov 21, 2022 β€’ 11 tweets β€’ 3 min read
πŸπŸ’‘ You need to understand Python well before you can write idiomatic code in it.

But what does that even mean?

Here are 9⃣ examples πŸ‘‡ 1⃣ Falsy and Truthy

Almost all data types can be interpreted as bool-ish. An empty list? Fals-y. A 3-character string? Truth-y
Nov 20, 2022 β€’ 15 tweets β€’ 5 min read
πŸ’‘πŸThese AI-generated avatar pictures have been trending for a while now

Today, we will have a look behind the scenes – let that sink in

πŸ‘‡ Image 1/ these images are generated from text prompts, such as

"painting of bas wearing a space suit, vector illustration" Image
Nov 16, 2022 β€’ 4 tweets β€’ 2 min read
πŸπŸ’‘ Want even more clean code tips for #Python?

Let's have a look at how we could get rid of πš’πš statementsπŸ‘‡ If your function checks for a boolean, you can return it directly rather than building an πš’πš/πšŽπš•πšœπšŽ block around it: Image
Nov 14, 2022 β€’ 5 tweets β€’ 2 min read
πŸπŸ’‘#Python is a very expressive language. So you can simplify your code a lot if you know about syntax and built-in functionality.

Here are some examples of writing more pythonic code πŸ‘‡ Use πšŠπš•πš• and πšŠπš—πš’ if you want to check if some criteria match all/any elements of a list rather than writing a loop Image
Nov 14, 2022 β€’ 5 tweets β€’ 1 min read
Here is the story behind the story of this little experiment:

It's about accountability πŸ‘‡

To make big changes, you have to start with the little things. So I manage big goals and the steps to get there like a business
Get your partner, your family, and your friends involved!
Oct 11, 2022 β€’ 7 tweets β€’ 3 min read
🐍 Are you looking for a Python job? πŸ‘€

Here are 5⃣ websites to find your next adventure!

πŸ‘‡ remoteok is a job board focussed on Remote Positions built by @levelsio.

remoteok.com/remote-python-…
Jun 6, 2022 β€’ 13 tweets β€’ 4 min read
πŸπŸ’‘ You need to understand Python well before you can write idiomatic code in it.

But what does that even mean?

Here are some examples πŸ‘‡ Falsy and Truthy

Almost all data types can be interpreted as bool-ish. An empty list? Fals-y. A 3-character string? Tru-thy
May 2, 2022 β€’ 9 tweets β€’ 3 min read
πŸ’‘πŸ Technical Debt, Clean Code, Design Patterns:
Complex stuff just for "Senior" Python developers?

No, here are 7⃣ tips to write cleaner Python code:

πŸ‘‡ Use descriptive variable names.
Mar 23, 2022 β€’ 18 tweets β€’ 6 min read
πŸ’‘πŸš Want to become a wizard on your command line? πŸ§™

Here are 14 CLI tools to boost your productivity as a developer
πŸ‘‡ You can find the full list on my blog as well
bas.codes/posts/best-cli…
Mar 7, 2022 β€’ 11 tweets β€’ 4 min read
πŸ’‘πŸ You are learning Python or trying to improve your skills?

Here is a list of awesome GitHub repositories that might help!

πŸ§΅πŸ‘‡ 1. Python Mini projects
github.com/Python-World/p…
Mar 7, 2022 β€’ 8 tweets β€’ 3 min read
πŸ’‘πŸ Usually, loops in Python are pretty straightforward. πŸ”

Today, we have a look at some caveats. Use these tips to take unreadable code to the next level! πŸ†™

πŸ§΅πŸ‘‡ The expression in the head of the loop is evaluated for each iteration.

That means you can modify the iterable inside the loop's body and change the behaviour that way