Author: drweb

range(start, stop, step) range(5) # 0, 1, 2, 3, 4 The range() function generates a sequence of numbers that you can iterate over. That’s it. Three parameters, one simple job. You give it boundaries, and it gives you integers within those boundaries.Most Python developers use range() every single day without thinking about what it actually does under the hood. They slap it into a for loop and move on. But understanding how this function works will save you from some genuinely weird bugs and help you write faster code.How the Python range function actually worksThe range() function doesn’t create a…

Read More

How Python for loops actually work under the hoodWhen you write a for loop, Python calls the __iter__() method on your sequence. This returns an iterator object. Then Python repeatedly calls __next__() on that iterator until it raises a StopIteration exception. numbers = [1, 2, 3] iterator = iter(numbers) print(next(iterator)) # 1 print(next(iterator)) # 2 print(next(iterator)) # 3 print(next(iterator)) # StopIteration exception This matters because it means anything implementing the iterator protocol works in a for loop. Lists, tuples, strings, dictionaries, files, generators, custom objects. If it’s iterable, you can loop it.Running Python for loops through different data structuresStrings iterate…

Read More

Harness today added an artificial intelligence (AI) agent to its portfolio that has been specifically trained to help DevOps teams investigate events that occurred prior to an incident. Tina Huang, vice president of product and engineering for AI SRE at Harness, said the Harness Human-Aware Change Agent leverages large language models (LLMs) to analyze comments […]

Read More

for index, value in enumerate([‘apple’, ‘banana’, ‘cherry’]): print(f”{index}: {value}”) # Output: # 0: apple # 1: banana # 2: cherry That’s Python enumerate() in its most basic form. It takes any iterable and returns both the index and the value at each iteration.The syntax is enumerate(iterable, start=0), where start is optional and defaults to zero.Why enumerate exists in PythonYou could write a counter yourself. You’ve probably done it a thousand times, incrementing some variable by one on each loop iteration. But that’s the kind of boilerplate that makes code harder to read and easier to mess up. Python’s enumerate() removes…

Read More
SQL

We’re a week late, once again my fault. I was still coming out of the holidays and forgot to check on my host. Luckily, Louis Davidson (who did have Feb) agreed to go early. He has a nice invite, and I am glad to answer.This is the monthly blog party on something SQL Server/T-SQL/etc. related. I have about half of 2026 covered, but if you would like to host, I’d love to have you. Ping me on X/LinkedIn/BlueSky.A MistakeSince we aim for T-SQL, I decided to ping something I’ve done a number of times in T-SQL, and sometimes still break.…

Read More

We’re Kinnovis, a fast-growing and family-run B2B SaaS company on a mission to modernize the self-storage industry across Europe with smart, automated software solutions. Our headquarters is in Vienna, Austria, and our international team is based in Austria, the UK, Slovenia, Spain and France. As one of Europe’s leading software providers in our niche, we help self-storage operators manage their facilities efficiently through smart, automated software. Currently, we serve clients in 22+ countries, and we are in a phase of fast growth and keep expanding. Our growth is sustainable, and we focus on long-term customer relationships and internal decision-making— without…

Read More

ARM (Advanced RISC Machine) is a RISC (Reduced Instruction Set Computing) instruction-set architecture developed by ARM Holdings, which is increasingly used in Linux devices, primarily due to its energy efficiency and suitability for everyday use. Therefore, every day more and more applications from various fields are trying to offer versions dedicated specifically to this architecture, such as Calligra Suite, Gnumeric, AbiWord, etc. One of these applications is also ONLYOFFICE Desktop Editors, which is a free and open-source desktop application for editing text documents, spreadsheets, presentations, PDF files, and fillable forms, which now natively supports Linux ARM64 systems. Therefore, in this…

Read More