Category: Editorial

  • Editorial Republish: Detecting Issues

    It’s the Redgate company wellbeing data, where everyone gets the day off. I’m traveling back from Florida after coaching all weekend, so you get to re-read Detecting Issues.

  • Having a Little Fun at SQL Server Central

    When we started the site, I had never met most of the other co-founders (we went from 7 to 3 inside of a few years). A few knew each other, but Brian, Andy, and I had only communicated through emails and phone calls. We ran the company remotely from Denver, Orlando, and Jacksonville. In fact, I met Brian for first time when he came to Denver for the 2002 PASS Summit (moved from 2001). I met Andy later that year at the Seattle Summit in November 2002. That, coincidentally, was my first meeting with Simon Galbraith, founder of Redgate Software.

    Over the years, we’ve tried to enjoy running an online community in different ways. We wanted this to be a profitable endeavor, but one where we could have some fun. We did this in few different ways. One was with some off-topic articles. Early on, Andy wrote a piece asking Is Steve Jones Really Steve Jones? I still enjoy reading that one today.

    Once I was running the site full-time, and stuck with the Question of the Day and editorial responsibilities, I added a category for humor that I used on holidays and other random times. April 1 was a fun day (and still is), with me trying to write plausible, but completely untrue articles about database topics. I’m still thrilled that my joke from Apr 1, 2005, SQL Server on Linux, finally came true.

    We had a Lighter Side category for editorials that didn’t fit anywhere else, which I and others have used to try and remind ourselves that not everything is about databases and it’s also not the most important things in our lives. We have had a lot of articles on career topics and soft skills, especially editorials, as the guest editors and I know these are some of the most important skills to develop for career growth.

    Thankfully, Redgate has supported some of my fun, as they agreed to pay for and publish a series of crosswords and cartoons over the years.

    Perhaps the most fun I’ve had over the years was running the SQL Server Central parties at the annual PASS Summit. In exchange for promoting the event and getting people to register with our code, we got a small payment for each person. This started in 2002, and we decided not to take this money as profit, but rather to have fun with it. Each year we’d get a few thousand dollars from referrals, so we tried to be creative. We gave away books and shirts the first year, with a line stretching out the door during the welcome reception. In Florida in 2003 or 2004, we decided to have a video game party with XBOX consoles. We not only purchased consoles, but also TVs, and gave everything away at the end of the night to random people.

    Somehow, I stumbled on the idea of a Casino party one year and contracted with a firm in Seattle. We ran those parties for years and even charged admission for people who hadn’t used our code. I would guess how many people would come and then go shopping at Best Buy when I arrived in Seattle, spending a few more thousand dollars on random prizes to give away. I’m sure we lost money in a few of those years, but it was all for fun.

    Maybe one of the most memorable things I did was for TechEd in 2004 or 2005. We wanted to brand ourselves and try to raise awareness of the site. Since I was in charge, I ordered 3 different styles of Hawaiian shirts for each of us, with a SQLServerCentral logo and name embroidered on each, intending to wear a different one each day. Andy and Brian were good sports, going along with me most of the time. There was a day Brian refused to wear my choice as it was a little too out there for him.

    However, I did meet Euan Garden (RIP) for the first time there and he loved our chili pepper shirts. I arranged for a shirt to be made and shipped to him and I loved seeing him wearing it at a events over the next few years. I also got inspired to do an interview series, which I really enjoyed.

    Thinking back on the history of this business, I’m both amazed by how it changed my life, and I can smile at so many good memories. Hopefully, you feel the same way.

    Steve Jones

    Listen to the podcast at Libsyn, Spotify, or iTunes.

    Note, podcasts are only available for a limited time online.

  • Testing is Becoming More Important

    Many of us know that testing our code is important. The adoption of unit testing by many software application developers as a normal course of business has dramatically improved the quality of applications. Mobile software, especially, has benefited from the requirement for most software to include, and constantly run, a suite of unit tests.

    For database software, I find relatively few organizations formally test their database code. A few people have adopted tSQLt or the Microsoft Unit Testing Framework, but most don’t bother. In fact, many queries that are embedded in application code, or built by ORMs, aren’t tested beyond a developer looking at the results from their own (limited set of) test data. That often doesn’t catch errors until someone in production runs their application against a larger set of data.

    What might be worse is that refactoring those queries might produce different results that aren’t tested against regressions.

    In this new age of AI-assisted coding, testing is becoming more important. Grant wrote an interesting post on LinkedIn that discusses your job changing in the age of AI. You need to have more testing that ensures you validate code that the AI produces, which is going to be more important as the amount of code grows. AI will produce lots more code, and potentially, lots more poor code. We will need to ensure that the generated code  has some validation that the results are what we expect.

    Unit tests help here, and while I know these can be tedious to write and maintain, this is a great use for AI assistance. Generating unit tests, with default data based on data in current tables, is something AI agents can do well. They can also use these to verify functionality as code is generated and refactored. Of course, humans still need to be in the loop as there are plenty of reports where AI Agents write tests that return success without actually testing code. This is something humans have done as well.

    You need to validate the tests, and ensure your AI uses those tests to validate its work. Those tests can also be used by humans if they write code.

    AI is an amazing tool, but like an intelligent, over-eager, junior developer, it needs clear communication and strong guidance.

    And a little review of its work.

    Steve Jones

    Listen to the podcast at Libsyn, Spotify, or iTunes.

    Note, podcasts are only available for a limited time online.

  • Can You Let Go of Determinism

    Why do we reboot machines when something goes wrong?

    I’m sure all have done it, and I would guess quite a few of you have found situations where this seems to fix issues, but there isn’t an underlying root cause that you can pinpoint.  This is a fairly accepted way of dealing with issues, but have you thought about why this is a way to solve some problems?

    The main thing that a reboot does is return the system to a know starting state. It’s why quite a few people complain about some modern laptops and mobile devices because they avoid restarts and try to sleep/wake instead. Most software expects to work on a stateless machine, so restarts help find a known good state.

    Coincidentally, this is why databases are so hard for many people, especially software developers. Databases are state machines, which are inherently more complex than stateless ones. However, that’s not the thing I want to discuss.

    If you think about code you’ve written and problems solved, which datatypes cause the most headaches and challenges? Which types of data are most difficult to deal with? There might be a variety of answers, but one of the most common ones is datetime data. The main reason? It’s not deterministic in many cases when we deal with calculations in real time. This data ages poorly and it’s hard to even test. By the time we’ve restored data from production, invariably our test data is old. We can de-age it (make it newer), but still, testing this data based on what happened yesterday is often hard.

    This has been on my mind as another modern technology has similar characteristics. AI LLMs are often not deterministic. The same prompt might not produce the same response, and like SQL Server execution plans, even small changes in the input can affect the output.

    That can be maddening to many of us, as we often want a reproduction of a problem to solve it. I ask for this from clients, Microsoft asks for it when I send them an issue, and most software developers want to be able to reproduce a problem on their machines. Or they often struggle to fix a bug.

    In this new AI world, is determinism something most of us can hold loosely? It’s a good question as many of us struggle with AI when we don’t get the response we expect, or even a good response. Worse, we might get varying levels of quality code back from the same models. I have found that an experiment I conduct sometimes cannot be reproduced with any accuracy.

    And sometimes it works the exact same way the second and third times I conduct the experiment.

    Humans are not deterministic. Many of us know someone that is very reliable and can predict how they react most of the time. Most, however, isn’t a characteristic of determinism. I guess in that sense, humans are a state machine as well, one that is constantly evolving and different every day.

    I find that success with modern AI LLMs requires me to accept some level of determinism and flow with it. I need to not expect the results to be perfect, and either massage the way I express the problem or give up. I’ve written it before, but I think learning when to give up on an LLM and just do the work yourself is a key skill for technologists.

    Maybe for anyone using LLMs.

    So, as you think about the future, are you prepared for one without determinism?

    Steve Jones

    Listen to the podcast at Libsyn, Spotify, or iTunes.

    Note, podcasts are only available for a limited time online.