Voice of the DBA

Coding for the Future


Listen Later

I posted a note on Twitter about some code. In this case, it was the start of a for loop, but with two things in it that I didn't like. The code is shown here:

for ($i = 2011; $i <= 2021; $i++) {

Both the starting point and the ending condition were problematic for me. This code is used in a scheduling application, to populate a dropdown that I used regularly. It's always worked, since about 2017 or 2018, and I had no reason to even think about the algorithm. I assumed the code was something like this:

Read the rest of Coding for the Future

...more
View all episodesView all episodes
Download on the App Store

Voice of the DBABy Steve Jones

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

9 ratings


More shows like Voice of the DBA

View all
The Real Python Podcast by Real Python

The Real Python Podcast

142 Listeners