Category: Editorial

  • Disclosing the How

    Many of us have written a computer program of some sort. Maybe just a script to complete a task, maybe complex software the clients interact with. For all of us, I would guess that we’ve been asked to do something, or we’ve asked ourselves to build a program, and we use that request as a specification for our code.

    When we do this, how many of us get this right the first time? I’m sure some do, and the simpler or narrower the task, the more likely we get it right. However, we also sometimes make mistakes and realize that our specification wasn’t correct or that we interpreted the specification incorrectly. Even when I write code for myself, sometimes I realize I haven’t described when I need clearly enough, even in my own head.

    That happens when I control the entire process. When someone else is my client, there are plenty of ways in which we can make mistakes, especially in decoding the specification. As we use more and more software to make decisions for us and automate our world, I wonder how often we’ve assumed the software works in a way different than it actually does. With machine learning and artificial intelligence programs, I think there is an even greater chance of a misunderstanding.

    Recently I saw that in New York City there is a proposal to disclose how software is used in hiring decisions. Humans are barred from discriminating by law, but what about software? What if there are bias that can come out in the software based on how someone enters data?

    I think there are certainly potential issues in having software evaluate individuals, though I do think software will do a better job than many people, once we’ve worked out the bugs and we know how we want it to work, and then we can compare that to how the algorithm produces results.

    These are tough issues, and difficult projects. I also think it’s important that we analyze the data that is used in testing software, to be sure that it doesn’t contain its own biases. Ultimately I think having public data sets that are evaluated by many individuals is important. I could see a reference set of data and the expected results, or some range of results being required to ensure software meets the goals we want as a society. This, along with the disclosure of how algorithms work will make our use of software better over time.

    Steve Jones

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

  • Republish: Making Guesses

    I’m skiing this morning in Crested Butte and then coming home, so you get a republish: Making Guesses.

  • Using Dynamic SQL

    There are many ways that you can structure your T-SQL code to solve complex problems. Throughout my career, I’ve learned different ways, and also some patterns to avoid. However, those change over time. For example, there was a time when heavily loading tempdb caused issues in the v6 era. As a result, I tried to avoid using them. These days, I’d consider them a good option to think about.

    One of the techniques that I see people trying often is Dynamic SQL. This is where you don’t write the code directly, but you write code that will put together a string of code to execute, and then you call this with EXECUTE() or some other mechanism to get your results.

    There are places where you might find Dynamic SQL useful. I saw an article from Erik Darling recently that gives you some situations where Dynamic SQL can help. These are often situations where performance is worse with a bunch of conditional code that is jumbled together. Separating out code into different procs or functions can help here, but that becomes a maintenance headache in many ways.

    Dynamic SQL isn’t something to just try without thinking carefully about the ramifications. SQL Injection is a real concern, though you can mitigate the risk with some careful coding. However, you need to be careful how you structure code, and don’t just concatenate strings together and execute them. Read up on good practices from others, and ensure you test your code thoroughly. In fact, this is one place where automated testing can become important, as you learn of different injection techniques, you can add new tests to ensure your code isn’t vulnerable.

    As you work with T-SQL, it’s important to continue your education, learn how the platform and language work, how performance changes between versions, and what options are to be adopted or dropped. Becoming a better T-SQL developer takes work and practice, and it’s an area in which we should all be constant students.

    Steve Jones

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

  • Viva

    I want holographic screens and meetings. Heck, I’d like Teams/Slack/Zoom/etc. to recognize multiple screens and let me separate out different cameras to different screens. I’d like to be able to see more than a tiny thumbnail of a presenter, or of other people that are in a meeting. That might be one of the things I miss most when I’m in these virtual meetings. I can often barely see others.

    Microsoft Viva is a new platform for remote work and collaboration. I’m not completely sure what it is, though there is a video with the cool, enticing holographic screens. It’s not an app, but appears to be some way to connect various information in an organization into Teams. It’s like an intranet from the 90s, but designed to help someone navigate their organization and work environment.

    I’m all for bringing together more data, and especially making it easier for people to do so. I love all the single-sign on we have at Redgate, but everyone produces so much data through tickets, feedback from customers, notes in chat apps, emails, announcements made everywhere, internally and externally, video updates, and more. I find it extremely hard to keep up, or to even know if I’m keeping up enough, too little, or too much.

    What I really need is some prioritization and triage for me. For me personally my role. That sounds like I want a personal digital assistant, which I don’t know I’d have confidence in. I suppose I wouldn’t have confidence in a human assistant until I’d trained them, so maybe this is a similar task I’d need to complete, whether it’s a computer or human. I’d have to build trust, and expectations about how to deal with different situations.

    With software, however, I’d worry about data privacy. I know this is still an issue with humans, but there is less scale for humans. They can’t learn and remember as much, and there is less secret access to about what my human assistant might know. After all, they know, or should know, if they tell someone something. However, what a digital system stores can be accessed by, well, who knows.

    At least I feel there is a potential problem here. Maybe I’m just worried, but many of the problems I see with computers have to do with the scale of data access. Both in the volumes of data someone can see, but also the variety of people that can see the data. Microsoft has already had some issues with trying to boost productivity for individuals. They’ve gotten complaints over what they store and report on, and more data might make that worse. Perhaps they are going to find a balance with insights and privacy, but I don’t want to be a test subject for this.

    Changing the way we work, helping individuals be more productive and accountable, while protecting their rights privacy is hard. I applaud Microsoft for trying something, mostly because I think remote work will continue to be a part of our lives and it’s not great. I suspect that this is like many of their new ideas, half-baked and incomplete. They want to release something, and it might not be much more than minimally viable. Whether they continue to invest and grow this into a useful tool remains to be seen, but I hope they do. I’d certainly like to have more useful ways to learn, collaborate, and communicate.

    Especially if they build holographic screens.

    Steve Jones

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