Thank you to everyone who tuned into my live video! Join me for my next live video in the app. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit weekly.devleader.ca/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00All right, we're just getting going here, folks. We'll wait for things to connect. I apologize. I have like a bit of an eye infection and it's disgusting. I was making YouTube videos on Sunday and I was literally wearing an eye patch. This is the worst. So I do apologize. Um... but that's kind of how life is right now. So we're going to be coding today, which is always fun. Coding live is always this great opportunity to remind me how
awkward it is to code
SPEAKER_00in front of people. You get to see all the things I'm messing up, and then I get to sit here and stress out about doing dumb things. But that's just, again, how it goes. Is my chat not showing up? What the heck is going on? weird i don't know why that's happening sorry uh no one's talking in the chat yet but my chat just like isn't it's not doing anything if i flip over to here crazy
yeah restream uh chat just isn't showing up i can i can see chat so i apologize folks i like having the chat on the screen so you can see the messages coming in i
SPEAKER_00don't have that so i'm gonna try to pay extra close attention um just like that man just got home uh done at the gym this is devon and now i'm uh wondering whether i sanitize enough yeah like literally i think i get eye infections and stuff from the gym and it's almost always from like doing this with my shirt like after sweating and like rubbing my eye like just to wipe sweat off my face and There we go. So I have to deal with that and hopefully it's gone right away.
SPEAKER_00We're going to be coding though. I just wanted to, before I jump into the actual code, I wanted to go to Substack and pull up a newsletter article. just to make sure that if there's like some meta points before we dive into coding that I can touch on those. I originally had a very hard stop at the top of the hour, but things kind of moved around so I can go a little bit over. I still try to wrap it up, but I want to spend most of the time coding. So
SPEAKER_00Let me pull this up here. Okay. One of the things... Let me flip over to this so you can see what's going on. Yes, I used a thumbnail from a recent video in my video editor. I find the best thumbnails that he makes are the ones where I look ridiculous in them, so... That's not actually me in case you were wondering, but I'm approaching this level of physique so soon. But this newsletter article, I should put it into the chat so folks have it. I know folks on Substack,
you already know where it is because that's where you're at.
SPEAKER_00I think that I tried to capture as much as I could around... Ooh, do I want many viewers? Yes, let's block you. I guess you guys can't see the chat, so that's awkward. But yeah, I get people spamming in the chat. So this newsletter article on this topic, again, came from Code Commute. The things that I've been kind of focused on more recently in my own software development have been around.
SPEAKER_00I use a lot of, you know, agentic programming, some vibe coding. I am leaning into the AIs. But no, genuinely, I've been trying to use it more and more. And one of the things that I've said on CodeCommute over the past, I don't know, like almost 12 months now, is like some of these tools... I mean, everything's changing so fast, but some of these tools are working well for me, some aren't. And instead of just writing them off when they're not working, it's like trying to learn and understand more about them, right? Like,
SPEAKER_00maybe it's not a good fit right now, maybe things will evolve, and then trying not to get totally blocked on what's going on. But one of the things I've been arriving at, and I've been kind of joking about this on social media in different capacities, I'm sure... for most people watching this, if you are on social media and you are in sort of any tech space on social media, you will see people talking about AI, of course. But the other thing that you'll see a lot of is that you get people on completely
SPEAKER_00different ends of the spectrum for supporting AI or being against it. And When you have people that are so much supporting it, not only do you get the sort of the post that we're all totally burnt out from like, oh, software developers won't exist in five months. Like it's been five months. It's been longer than five months. We're still here. Not only do we get that, but we get people that will make like kind of. absurd claims about things so they'll say like oh you know like
i use one prompt and i wrote like 10 million lines of code and like i am a software ai god now and it's like dude this technology has not been around for you to use long enough to like claim like the the mastery level that you have but what happens with this kind
SPEAKER_00of stuff on social media is that there is a lot of almost like superiority complex, where it's like, well, you must just be stupid if you can't do it. And I really hate that. I think that's not helpful at all. I think that people are embellishing things a lot, but I genuinely think if you have things that are working for you, like, awesome. I'm trying to get there myself. But I think when people just jump to absolutes, it's not... It's really hard to have a conversation with anyone that's
speaking in absolute.
SPEAKER_00So I try to avoid it. I don't love it. But we keep seeing people that are like, oh, it's like you just don't know what you're doing. You just can't prompt properly or it's just your instructions file is wrong or just your agent, your custom agents wrong or you're just using the wrong model. It's always like you just must be a dummy. And I don't like that. And the more and more that I'm using this stuff, the more and more I'm learning, which is great. And I hope all of you are kind of doing this, right? I hope that you are trying to improve on things and it's great.
SPEAKER_00But what I'm starting to notice is that even when I, you know, I'm, some of the examples that we're going to code today, I literally have lived examples where in my prompt, I say, do not do this. In my copilot instructions, I say, do not do this. In my custom agent, I say, do not do this. In the documentation in the project, I say, do not do this. Guess what the agent does anyway? Like, how many times do I have to put the context in?
SPEAKER_00You know, it's ridiculous. And so I'm not saying that those things don't help. But what I am saying is almost like, no matter how hard we try, there are still opportunities for things to go off the rails. And I want this to be sort of a meta point for you to think about is like, that's actually the same thing with people. We can put all these things in place. We can try to force people into the pit of success, but there will always be these opportunities where it's like,
SPEAKER_00oh, we put all these automated tests in place and someone still managed to push code in and break the build. How? There are still ways that this kind of stuff happens with people. Anyway, just want that to be a reminder. In the chat, Baron Byte says, old school example of embellishment. People said we won't exist in 2000 because PCs, yeah, Y2K, right? Because PCs wouldn't be able to handle all the zeros. Yeah, when we wrap around from 1999 to 2000, that's it.
SPEAKER_00Devin says, I like how the Primogen puts it, we're 28 months into AIS or taking our jobs in six months. Exactly. it's uh don't get me wrong things are changing things are rapidly evolving toolings changing model new models all this stuff all of this stuff is moving and changing and you know by the i've been joking in some of the videos i'm making and stuff it's like by the time i finish this sentence there's already you know the number of tools is doubled like it's things are moving fast but um
SPEAKER_00We stay on top of this stuff. So what we're going to vibe code today, this is primarily for .NET developers. We're going to be looking at C-sharp code. But I don't want that to, like, you know, scare people off if you're like, oh, I hate C-sharp. These damn Microsoft guys and their C-sharp. I've used C Sharp long before I worked at Microsoft. The concepts, like we're going to look at Roslyn analyzers, and the concepts are kind of what I want you to take away. And that means that while we're making a Roslyn analyzer,
SPEAKER_00if you don't know what that is, it's something that will effectively give us like static code analysis so we can inspect the structure of the code with like custom rules that we'll define, and we're gonna vibe code them, that's why it's awesome. So we're gonna vibe code analyzers that can check out rules in our code, and then we can enforce these things so that the code won't even compile if our rules are broken. And the goal is that when we put more guardrails like this in place,
SPEAKER_00we can have agents stay on track. So if you're using a different language or, you know, technology stack and you're like, well, I don't use C-sharp. We don't have RAWs and analyzers. I have a linter. Awesome. Start with your linter, right? Make it so that you can't progress if the linting is off. So you can't, if you're trying to do like a release build of something and the linting is not working, no dice. you know, commit hooks and stuff like that. The linting's busted, no dice.
SPEAKER_00Can you do more advanced things than just your standard linter? Like, I don't know, depending on what you're using, like what other types of static analysis do you have where it can inspect the structure of your code? And so I would kind of recommend if you're not a C-sharp developer, like what things like that are available to you in your tech stack? The two analyzers we're going to look at today are very simple. And I want to give you a heads up that I actually recorded YouTube videos for both of these on my main channel,
SPEAKER_00Dev Leader. They'll go out either this week or the week after. because I actually managed to record videos. The one weekend, I'm like, I'm ready to go. And I have this stupid eye thing going on. And I'm like, I gotta be a pirate for my YouTube videos. But anyway, I got them recorded. So if you, you know, kind of want to recap on this, or you just want to watch the edited down version, you can check that out on my main YouTube channel, Dev Leader, when that's all set. Okay, enough blabbing.
SPEAKER_00Who wants to see some code? I do. I do. Um, okay. Let me just clean some of this up. Cause before I share my, Oh, I'm already sharing my screen. Don't look, don't look, don't look. Okay. Um, I just wanted to get rid of some of the sort of fixes that will spoil it. Um, because like I said, I, I made some YouTube videos to go through this. Another reason too, by the way, is like, some of the ai stuff when i'm making videos because it's not perfectly
deterministic it's a bit of a pain in the butt when you go to make a video and you're like and go and then the agent does something completely different and you're like okay like how many times do i want to sit here and prompt this thing and try to do a take of it working so i'm trying to structure my videos in a way
SPEAKER_00that like um like the AI can go off the rails and we will work to bring it back. So some of these videos are a little bit longer too. Devin says in the chat, that's one area where C Sharp and Visual Studio makes me happy. Agent Mode likes to at least make sure everything compiles. And VS Code on a JavaScript stack, it just kind of YOLOs the changes. Yeah, this is a... It's like some of the minimum bar expectation stuff is kind of silly because I can't wait for like a year from now,
SPEAKER_00two years from now. All this, I feel like, I'm hopeful, all the stuff that we're dealing with where it's like, how is this thing literally not even trying to compile the code? I hope that that is... something that we're telling our kids and our grandkids and like campfire stories where like back in my day, my agent wouldn't even compile the code and they'd go, Oh my goodness. And they would say, tell us grandpa what's code because they don't even know. Um, but, Yeah, it's a bit of a pain in the butt.
Um, you know, I've, I've talked recently about, I like was trying out cursor and agent mode.
SPEAKER_00I really love the ability to kick off work for my phone and just like, you know, fire off like 10 features and bug fixes before I go to bed or before I drive to the office and then like check them at the end of the day or when I wake up in the morning, like I love it. And, uh, you know, I'm kind of getting more used to like, it gets it 80% of the way there. And I finished the rest. That's what I was doing before, uh, streaming here. And if we have time, I'll talk about that,
SPEAKER_00but like cursor in agent mode doesn't seem to have, and maybe I can configure it somehow, but like whatever containers it's using or, you know, the images for it, there's no, there's no build tools for Microsoft there. So it builds stuff, and I find Cursor does a really good job, but when it doesn't have that feedback loop to at least compile, it's like, come on, man. Think about it. Back to my analogy that I said earlier that I want you to think of. A lot of this stuff, it's like, think about people.
SPEAKER_00What would people do? Do you literally use a language that compiles, write code, and go, I think it's good, not compile like a complete lunatic, and then push it up for code review? Or just push it to the build system? No. If you're in Visual Studio, you're pressing F6 or F5 at least once. You have to. It would be nuts to not do that. So when you have these agents building things, just going off and doing whatever and then they're not when i
say building i mean writing code then they're not building it they're not compiling it what are we doing here so anyway um that's a fun thing for sure jabwan good to see you code code um let's jump over to it so i'll flip back over here sorry the text is going
SPEAKER_00to be a little wonky um And that's because usually when I am doing YouTube videos, this is a 48-inch monitor. I go down to 1080p for my resolution to record. But when I'm streaming, I'm using this monitor as four monitors right now so I can see what's going on at the same time. So I apologize if some of the other text is very small. Sincerely, I'm sorry. I don't have a better way to do this in my streaming setup right now.
SPEAKER_00Let's... do a new chat. And what I'm going to walk through is that we have a very simple program. The context of this is literally that I just wanted a class with some methods that have some Boolean return values. By the way, in the chat, let me know if the size is good. If you want me to zoom in or zoom out, happy to do that. I had some feedback on a YouTube video recently. Someone said that the size was a
It's always recorded at the same resolution, but I guess different zoom level.
SPEAKER_00So just let me know. But yeah, basically kind of just like some dumb code. This was literally just tab, tab, tab, and Copilot just putting in dumb stuff. It's totally cool because we don't actually care about what this class does. Then I asked Copilot to go write tests for it. Again, it's a silly class. It wrote the tests. I just want to call out something that it did was if you look at these two sets of tests, Again, for folks that aren't familiar, theory is an X unit attribute,
SPEAKER_00and a theory is just a parameterized test. A fact in X unit is just a test without parameters. So you can see that this is a theory because it's marked as such, and it has this int input, so it has a parameter. What it did originally was basically combined these. So it's like is number even. There's two tests for is number even. Then it's return true and returns false. And it basically just had true and false as parameters as well. And then used assert dot equals.
I want it to be assert true and assert false for the second half of this video
SPEAKER_00because I want us to build a different analyzer. So you know what? Let's start with that. I'm just looking at the code now. Let's start with that analyzer because otherwise to demonstrate what I want to do, I'm going to need Copilot to rewrite the tests for the other analyzer. I don't want to do that. We're going to start backwards. So what we are going to do, because all these tests are structured the same way, I'm not sure if folks are familiar with this,
but you can see I have a failing test because there's at least one because there's
SPEAKER_00a red X here. If I go run these, it should fail. Sorry, I know this is the boring part, but I just want to kind of set things up. Okay. Two tests pass, one fails. Uh, sorry, the text is probably tiny. Um, but this is the thing that I cannot stand. This is a personal preference thing. It's you're welcome to disagree. That's totally cool. Uh, the goal with this is to show you that we can write analyzers and you don't have to know how to write them.
So when we have an assert true or assert false fail and you don't put a message,
SPEAKER_00okay, take care, Devin. Um, Devin's got to leave. So when we have assert true or assert false like this, when it fails, the message is the most unhelpful thing ever. Assert true failure, expected true, got false. Thank you. That's literally the only way that assert true can fail. With a simple test like this, and if you do try to have like single assertions in your test, I certainly don't live by that rule.
SPEAKER_00If you do, this probably feels like nonsense. But when you have more complicated tests with more assertions, and then you see one of these popping up, how the heck are we supposed to know what's going on? So I personally, in my own projects, I have an analyzer rule that I vibe coded that will force this behavior, right? So it puts a message into here. And that means that when this fails, we'll get an actual helpful message.
SPEAKER_00I mean, the one I wrote there is certainly not helpful, but hopefully you get the idea in just a second, right? So we can get a message when it fails And that way, when you're like, oh crap, my tests are failing and you're looking at your CICD pipeline, you can see why. Instead of going, okay, there's this test and it got false and it wanted true. Like, what are we talking about? So this is something I like to enforce and we're going to vibe code it. So, oh man, I hope my microphone is working one sec.
In my last YouTube video I recorded yesterday, my mic setup stopped working.
SPEAKER_00which made it really fun. So one sec, I'm going to try somewhere else because I think it's taking from my clipboard. Testing one, two, three. Oh, it works. Okay. When I was making the YouTube video, it was just pasting random things from my clipboard instead of transcribing what I was saying. So a bit of a pain in the butt. So we're going to go over to agent mode. Let me get rid of this. And I'm going to ask, let's use GBT5.com. You're welcome to use it whenever you'd like.
But I want to show you that we can go make Roslyn analyzers with tests associated
SPEAKER_00with them and then have it fail our build when the rules are busted. Let's try it out. So full disclaimer, I have 34 Roslyn analyzers in BrandGhost that is a product that I'm building. And I vibe coded every single one of them. and they have all helped me tremendously with trying to keep my agents on track and enforce coding standards that I prefer that aren't simple like naming. They're kind of like a little bit more advanced, and this is one of them.
SPEAKER_00So let's try it out. Let me get my foot on this pedal. I would like you to create a Roslyn Analyzer and associated tests in a new project. The Roslyn Analyzer should report errors for assert true and assert false when a message is not provided as the second parameter into the method. I'll start with that. I want to read it back. Again, text is probably tiny, so I'm very sorry. I'd like you to create a Roslyn Analyzer and tests in a new project.
The Roslyn Analyzer should report errors for assert true and assert false. When the Analyzer reports an error, it should have a helpful message that tells the developer... that it needs to provide a descriptive message as the second parameter for assert
SPEAKER_00true and assert false. A heads up why I'm saying this is that... I noticed I had an agent that was listening to my analyzer and it said, oh, you need me to put a message? No problem. And then it literally wrote in, like, it was like unexpected value or something. I'm like, come on, man. So this is part of the prompt that I really think that you can tune this part up. right i'm still being kind of generic you can say like what
exactly you want it to be but i'm not doing that hey kenneth welcome from linkedin good to see you i wonder if this chat's going to come back ever no it's still it says in uh in obs
SPEAKER_00it's like your chat is totally displaying it's not it ain't there um can I like drag this onto the screen for a sec? Like there's chat. It's real. Um, I promise. Okay. So we have this part of the prompt. And then the other thing that I want to do is enable this analyzer for the console app tests project. And then I want to double check this.
SPEAKER_00Um, So what's the next thing I want to say? Basically, I want to make it ensure that it's going to build. I feel like Visual Studio is a lot better now with their latest updates. Like the agent mode seems to try and build at least unprompted, but let's try it. When running MSBuild on the console app test project, once the analyzer is enabled, I expect to see compilation errors because the assert true and assert false methods currently do not have a message parameter.
SPEAKER_00So we'll try that out. I'm gonna fire this prompt off. For all of you that are prompt wizards and prompt sorcerers and level 99 prompters, sure, I could do a better job prompting. We'll get there. Let's see what the plan says. Create an analyzer project, that's right. Create analyzer implementation, yes. Rules, that's just building the analyzer. There's a diagnostic descriptor. If you're not familiar with what some of these terms mean, the diagnostic descriptors are going to be the things that tell
us when we're
SPEAKER_00building what's going wrong, what it can do better. It knows it needs to make an analyzer test project, so that's right. Add the unit test for the analyzer behavior. One opportunity that I see already to improve some of the prompting that we did was like, what tests do I expect? I said to add tests, but I can't be disappointed if it adds a test project and pretty useless tests. I didn't specify. So that's, you know, sort of a little lesson for us to reflect on.
SPEAKER_00Reference Analyzer in the console app test project is Analyzer. That's an important note. I don't want to forget to call this out. So I'm going to call it out now. Sorry, it's trying to build and it's flashing stuff up in front of me. Reference analyze on the console test project as analyzer. If you don't do this, then it doesn't apply the analysis properly. So you have to add it a special way. There's just another flag that you have to put in. I'll show you that when it's done. And then run the bill to validate it. So this all looks good to me.
SPEAKER_00I feel good about that. Hello as well on LinkedIn. Despina, I believe that's how to pronounce... your name and yes i i sorry language is not i think you're saying good day and then i think this the last word is december so yes we've just we've just started december lovely i remember when it was summer and now it's dark at like 3 p.m
SPEAKER_00that's okay it'll it'll brighten up soon Okay, come on, co-pilot. Is it done? Oh, I think it's done. I was expecting to see this last thing kind of finish off, but I guess it didn't update the plan, but it looks like it's done running. So it didn't quite work. And this happened when I was recording the other day. What it's doing right now, let me flip back just to make sure when I open my file browser,
SPEAKER_00it doesn't go to the wrong spot. What's happening is that it made the analyzer project. I'm pretty sure we're going to confirm. But it didn't refresh Visual Studio to add it into the solution. which is a bit of a problem because we need it in there in order for the analysis to get picked up in Visual Studio. So I'm just going to, I'm just adding those two projects in. Give me one moment because it made them. I see them both. Okay, back to here. We'll get rid of this task list.
SPEAKER_00So we have the analyzers and analyzers tests. Let's have a look at the tests. Tests are always fun. Let me keep that. The tests don't pass. So, I mean, they don't compile. That's not a good start. Come on, co-pilot. You had one job. Oh, there's so many compilation errors. Okay. And what's the analyzer look like? Let's just keep that so we can read it. So... Ah.
SPEAKER_00Feature target type object creation is not available in C Sharp 7.3. Please use language version 9 or greater. Interesting. So... this is not um using features that are recent enough and so kind of funny it's using that eight i'm cheating a little bit this isn't totally vibe coded i'm just trying to see if we can speed some things up a little bit um still not going to work that's because this is in the we need to set the language
version in the
SPEAKER_00project let's vibe code that so i'm just going to tell copilot The analyzers and analyzers test projects that you created do not currently compile. Fix the compilation issues so that the analyzer works and then run the analyzer tests. Another thing that I just realized is that I did not explicitly tell Copilot that I have an existing test project, that it's using a particular version of XUnit.
SPEAKER_00I didn't give it those details. should I expect that it did the same thing? Like I would love to, I don't have a high degree of confidence. So like, as an example, these are the, the console tests that I had, uh, coincidentally this is the leftover one from before let's get rid of that i will keep that sorry it's a little messy hard to read but this is the analyzer i'm just going to start pulling some of this down so you can read it all
at once but this is the new project that it added it added the output item type as analyzer the speech
SPEAKER_00to text is the ultimate vibes yes um i prompt a lot uh via talking and sometimes i catch myself especially when i'm like going back and forth like being frustrated because agents are doing dumb things uh i i feel this is how bad it gets i feel like i want to hold shift and like type in caps to yell at the agent and i'm like wait a second i can i can use my foot pedal and yell at this thing that's not really the right response to have.
SPEAKER_00It should be, maybe you should prompt better. Maybe you should take a break, but sometimes I'm sitting here like, why are you so dumb? Um, I think it feels good. So I do it, but I'm not suggesting that's how you live your life. So, uh, I do really enjoy having the, you know, the, the speech to speech to prompt. It's very nice, but yeah, you need to have this output item type is analyzer for that to take effect. But this one is net 10 X unit V three, right? Three, two, one, three, two, one for the version.
SPEAKER_00What's this one that it added? So it switched the... tests back to net eight. Why? I don't know. I didn't tell it to use.net 10. It probably thinks that.net 10 is in preview mode based on my earlier conversations with it. So that's annoying. And then X unit, completely different versions, right? I said it was three, two, one. it's not. So is that going to matter? It might not, right?
SPEAKER_00These tests will run, but in a real project, what I should have done in the prompt was said to refer to the existing test to use the same packages. We can use central package management so we can define these in one spot. So that's a bit of a miss on my part. Currently, Copilot is just just going at it and it's uh it's having a real difficult time let's see what it's doing here it's adding in there like i don't even know what
verify is like why do you i guess whatever training data it picked up on this time is just oh my goodness
SPEAKER_00oh look at this terrible nonsense This is the third time that I'm doing this, by the way. This is by far, just for reference, this is the worst one that I have seen it do. This is reaching a point where I see so many things failing and this test does not resemble anything useful. I would personally start a new chat or I would flip the agent or the model, sorry, to being probably Sonnet 4.5 because that's what I have there.
SPEAKER_00And I would just tell it to like start again because this is terrible. This is a pretty, pretty disappointing in my opinion. And not only do I see like all of these like back and forth, like it's trying and failing, trying and failing. But another giveaway is like when it starts slapping in all of these different packages, it's cool at this point. It's actually trimmed some of them out. That's great to see. But I don't have a high degree of confidence the way this is
going to see how it's
SPEAKER_00adding them back in like, it kind of feels like it's just trying random stuff. And this is what I would probably call like stupid mode. And I don't mean that to be like condescending to co pilot. I use copilot nonstop. And this is just a very terrible sort of track that it's going down. We don't need humanizer added into this at all, right? So what I'm going to do is stop this because this is pretty embarrassing.
SPEAKER_00I'm just going to, let's just keep these for a second. I'm going to keep everything. And then I'm going to delete the tests. because they're terrible. And I'm going to, let's take this. Actually, let's take the whole top. I'm just basically setting up this analyzer one to not be in the worst shape ever. So at this point, there we go.
SPEAKER_00It's set up to be the same, right? There's no tests in it. So I'm going to, I'm going to keep the same chat. I'm going to change the model. And then I'm going to say, add the tests for the assert message analyzer. Very generic still. I'm hoping that it can just add some test coverage while it's going to do that. I just want to make sure it starts. I've seen far too many times now where we go to kick off an
agent or I think I am. And then I come back like a couple hours later and it's like, do you want me to start?
SPEAKER_00I'm like, I wanted you to start hours ago, man. Like, what are you doing? Okay. It's editing. Great. I wanted to go. We haven't even looked at the analyzer. Right. That's the beauty of this. And in the YouTube videos that I put together, that's kind of the funny part is like we go through the whole thing and it's like we haven't even seen the analyzer code. And it was working, so it's kind of cool to see. But this is a Roslyn analyzer. I am very transparent about this,
SPEAKER_00that at this point in time, could I read what this analyzer is doing? Can I explain what's going on and make sense of it for the most part? But there's a bunch that I can't. So I know how descriptors are used. So this is so that you get different error messages and stuff in MSBuild and in Visual Studio. how these definitions work. There's more to it because you can version them for Nougat packages, all sorts of stuff. By the way, I'm saying this to kind of quiz myself, just so you know.
SPEAKER_00The entry points and the usage for analyzers are a little bit weird. I see that they almost always have supported diagnostics and an initialized method. And then this is really where all the logic is. And This is where it gets kind of weird for me because with analyzers, we can sort of navigate the expression tree of our code. And that includes things like comments, which is kind of neat, right? So we can kind of see what's going on. We can traverse this tree of information,
but I don't have experience with the different things that we have access to. So all of my experience with analyzers up to this point has been purely vibe coded.
SPEAKER_00And now I'm in a position, I think I said earlier, I have like 34 of these analyzers in my code base. I have a great excuse now to go like understand them better. As someone who creates content and stuff, it's like, that's something that I wanted more experience with. It's not coming up in my regular work. I have other things to make content on, so I'm just not getting around to it. So now I think I have that chance. Let's go check our tests. This is failing terribly again.
SPEAKER_00This is very embarrassing. All the test paths in the analyzer works as expected. That's a really interesting claim because the code doesn't compile. Okay. I'm opening up a new chat because I feel like that one's just poisoned. The assert message analyzer tests do not currently compile. Fix the compilation errors and run the tests.
SPEAKER_00I'm purposefully not giving it a lot of information because... I have already had success multiple times with it building these analyzers out and writing tests for them without much information. So I'm just trying to demonstrate that it's doable. But one of the meta points that I was making in my YouTube videos on the weekend was that... If you don't know what you're doing, do you see how painful this is? It's a pain in the butt.
So this is the kind of thing that if you are finding yourself in a similar spot
SPEAKER_00where you're like, man, I spend so much time just trying to fix dumb errors and what's going on. Understand it better. The better you understand it, the more that you can convey it to the LLM. So why is this stuff not working? My only guess right now is... It has the wrong packages. I have a feeling, personally, it has a lot to do with this up here, with .NET 10. And the reason I think that is because when it's pulling in packages,
SPEAKER_00I don't know if you recall from a little bit earlier, it pulled in older versions of XUnit. Why? Well, it did that because it was using an older version of .NET, it was using older versions of XUnit. why like that's what it's trained on and i didn't tell it explicitly so it's also trying to like live a little bit in the past and it's pulling in some older stuff for uh code analysis it says it says it worked oh my goodness
look at that we have tests in here it's beautiful can we run these tests it said that they passed
SPEAKER_00discovery and I see them. I see them. Let's run them. I want to talk a little bit more about the test that we're going to see the result of our... Oh, they don't pass. Come on, man. What's going on with these tests? Did it say that it... Oh.
SPEAKER_00I don't think it ran the tests. It says that it, they build and it can, oh, and it says executed.net tests. None of the tests pass. I'm just going to leave it at that and see if it will do something. The analyzer might work though, right? The analyzer might work. It might just be that these tests are pretty terrible and that's okay. I want to go back over to this. Oh, come on. It jumped me to it.
SPEAKER_00I'm going to undo the changes in this file. It's very annoying when Copilot's doing that. But you'll notice something interesting, right? All of these now have a red squiggly. And they have a red squiggly... because the analyzer is running. So I'm sorry because Copilot keeps flashing stuff up when it's trying to run things and it's closing the tooltip and all that. But on my screen, I realized the text is small.
SPEAKER_00It says that the error is VC001, provide a descriptive message as the second parameter when using assert.true. What I'm going to do is after Copilot finishes hijacking my IDE here, I'm going to use a different Copilot technique and ask it to go fix these up. And we're going to see if it genuinely writes descriptive messages into there or not. So this analyzer is not super fancy.
SPEAKER_00It's not really all that exciting. Point is, I just want to show you that you can do this. And we can vibe code a lot of stuff, and you will do even better if you know what's going on. These tests still don't pass. I love, too, that Copilot's like, I am GitHub Copilot. Thank you so much. Thank you so much for letting me know. I don't know... Who at Microsoft do I need to talk to to say, take that out? We know it's GitHub Copilot.
SPEAKER_00Fix analyzer test project reference. Cool. Updated that. Adjusted this one. Okay. Built successfully. Test execute via .NET test. Okay. That just doesn't make sense. So I'm just going to say that all the ones that say report error don't pass. Actually, let's leave that because we can see this analyzer going. That's just going to be a vibe coding circle of life. So what I want to do is show you that we can highlight all of this.
SPEAKER_00I'm going to right-click, co-pilot actions. Oh, no, that's not. Where's the... The keyboard shortcut is... Not that, it's alt slash. Alt slash is ask co-pilot. Is that the same thing that was... Oh, it's at the top. My apologies, I'm just losing my mind. Okay, so I'm just going to say it to it. The assert true and assert false methods in this class are failing with compilation issues.
SPEAKER_00Address the errors. Very generic. Again, my goal with some of these prompts is to leave them generic and to see, like, are we putting guardrails in place that can help us with generic prompts? Because if you can keep refining your prompts and doing a better job, that's great. But what I said earlier was like, you can have really good prompts and AI will still mess up. How do we keep it on track? Let's go.
SPEAKER_00When we do the second analyzer, it should go faster, I hope. We might skip the tests on that one just to save time because apparently we're having a bad time with Vibe coding tests today. but I want to show you if it works like my YouTube video did, that will watch Copilot write it wrong the first time. It will try to build and it goes, oh, I need to change that because the analyzer's catching it. So this, I feel like is pretty descriptive. We're gonna tab through and read through the changes,
SPEAKER_00but it went through and for every single one of these, expected is even number, input to be true, but was false. That's pretty descriptive to me. So let's go run this test and see how much better that feels for us. Right? I know it's in the test name. I know this is a silly example, but when this test fails, expected is number even 43 to be true, but was false. Now I know exactly what's going on.
SPEAKER_00If you think about some of the tests that you have in your projects, this might be something fun to explore. You might have other things that are a pain in the butt for you, and you can go write analyzers like this. So we're going to do one more. And I'm going to show you what that looks like. So we'll start a new chat. We'll keep it. Thank you so much, Copilot. You're the best. Okay. Okay. I'm going to ask this thing to write tests for us following the
arrange act assert pattern.
SPEAKER_00Okay, this is my favorite. So pretty common to write tests with a range act assert. If you haven't heard that format before, beginning part of a test is where you're setting your test up, then you act so you are exercising the system under test, and then you assert so you've done something What are we checking afterwards? Okay, so arrange, act, assert. What I really don't like, personal preference, if you like doing this, totally cool. I'm not stopping you unless you're writing code in my code base
because I have an analyzer. But what I really don't like is when we have comments for arrange, act, assert.
SPEAKER_00I don't need the comments. I think they're polluting. I think that it's a distraction from what's going on in the test. I know that it's following a range act assert because every single test that I've written in memory has been a range act assert. The comments aren't adding anything for me. Personally, you're welcome to do anything you would like. So what I'm going to do is say, I would like you to add tests for the fun with numbers class following the arrange
SPEAKER_00act assert pattern. Okay, and you might say, well, Nick, that was a dumb prompt because you just told it to follow that pattern and you didn't tell it that you don't want comments. Like that's your fault. You are right. But what I said earlier in this live stream, if you were on at the beginning or you're watching the recorded video, what I said was in my own development, I put it into the prompt.
SPEAKER_00I put it into the co-pilot instructions. I put it into my custom agent. It's in the documentation of my code base. None of the other tests have comments that say arrange, act, assert, and it will still sometimes do it. I don't know. So I prevent it with an analyzer. So we're going to hopefully see that it writes tests. Where did this thing go?
SPEAKER_00Aha, there we go. You can see that it did what I don't like. Arrange Act Assert on every single thing. Also, I said this earlier, but you can see it's using theories with two parameters, which is what it did for me the very first time I put all this together. So we get Arrange Act Assert, Arrange Act Assert. Like, I know it's Arrange Act Assert. I don't want the comments. In fact, I want to prevent them from ever happening. So let's do that with an analyzer.
SPEAKER_00Where's my foot pedal here? Let's try it out. I would like you to add a new analyzer that looks for a range, act, assert comments inside of tests and marks them as an error. We do not want any tests to have a range, act, assert comments. So that looks like first. I feel okay about that prompt so far.
SPEAKER_00I'll be a little bit more explicit. Add the new analyzer to the existing analyzer project. You do not need to fix the fun with numbers tests. And we should see that the arrange act assert comments that are present are marked as errors. Cool. I'm just trying to constrict it a little bit. so that we can go clean that up ourselves and see it working.
SPEAKER_00So the followup, when we see that's all working, is that now that we have the analyzer, I'm going to copy and paste the exact same prompt we used when it wrote with a range act assert comments, and we'll see if we can repeat what I saw yesterday, which is it tries, it puts a range act assert, and then it catches itself, thanks to the analyzer. By the way, chat went very quiet. Do folks have questions about what's going on or you want to
see follow-ups? This is a good opportunity because if I don't have time to walk through it in this
SPEAKER_00live stream, I will make YouTube videos all about it. I'm happy to try my best and, you know, be the guinea pig, try things out and report back and have a video for you. So just let me know. I think it's working. I can see some fun information in the output window. Okay, I think it's gonna report that it's done. Ready? Where are my tests at?
SPEAKER_00Aha, there we go. So this is cool. We got a range act assert comments getting flagged. Can I put something else here? nice can I put something here can I remove the comment nice can I do this oh co-pilot you missed one so actually the first implementation I had from the weekend
SPEAKER_00it did this properly but that was one of the things I checked for. So assert message tests, arrange, act, assert, comment, analyze tests. If we go back to here, so this is a good example because I want to show you this. The tests are a little bit hard to read. Let's get this cleaned up, simplify stuff. Let's do it in the whole project. Sorry, it's just, there's a lot on the screen. It's especially hard to read because sometimes it writes these
SPEAKER_00these examples of code on like one line, which is silly because if you're trying to work through this and understand it, like that doesn't help. Like you don't write code like this as a human, I hope because it's a pain in the butt to read, but like, I don't want my test to look like that either, but that's just copilot being copilot. We could ask copilot to go change these. right? But one of the things that I would recommend is when you're
trying out your
SPEAKER_00analyzer and you're like, wait a second, I wanted this to be caught. It shouldn't do that. It should flag this as an error because it's also a comment. Because what we don't want to have happen, just as an example, is like, we don't want Copilot to go, oh, no problem. I can't use You see what I'm doing here, right? Like, you don't want me to use the double slash comment? No problem, I won't. You're getting a range act assert anyway.
SPEAKER_00We don't want that, right? So we need more guardrails. So I would say to co-pilot, let's do this. I'm going to add this to the context. Co-pilot actions add to chat. We need the analyzer to also catch arrange, act, assert comments in block comment format, not just with the double slash comment style. Fix this in the analyzer and add tests to cover this behavior.
SPEAKER_00So we'll go do that. We'll send that off to co-pilot. And again, like most of this is being vibe coded right before your very eyes. My message is not that this is the best approach. I do highly recommend you spend time going to learn how these things work. I personally plan to do more of that. I'm going to keep reiterating that in the rest of this video, but I figured it would be fun to kind of show people that,
SPEAKER_00you know, as someone who's been using C Sharp for a very, very long time, I don't know how analyzers work because I haven't made time for it. And I'm building with them. And I'm eventually going to learn them. I have to. So here you go. So we've added more test coverage. We can see that these actually are failing now. So not that, not that. There's too many things pulled up now. This is the actual analyzer itself. We'll keep that.
SPEAKER_00This is the test. So, oh, this is the wrong one. No, it's the... Yeah, this is the same one. Yeah, and then reports error for block. AAA is the arrange, act, assert in case you were wondering what that was. But it says here, right, report errors. And then we look here, arrange, act, and assert are included as block comments. So it did include a nice little example there. And we can clearly see that.
SPEAKER_00Where was it? There you go. Now it's being caught. Okay, so we're going to do one more final thing here. We'll delete them all again. Okay, and I'm going to do a new chat. We'll keep it continue. But I want to go back to get my prompt. Not this one. Did I go, oh, I went, the list is in the opposite order than I thought.
SPEAKER_00So not that, is it this one? Yes, this. Let's take this prompt. New thread, paste it. So all that we're saying is I want you to add tests that follow the arrange, act, assert pattern. And we're gonna watch it because I'm very curious if it's like the YouTube video I made, we'll watch it, put the comments in. And then we'll watch it undo it because it realizes it's not allowed to.
SPEAKER_00So I think that when you can prompt more effectively, then you can sort of take preventative measures early on to keep the agents on track. So that's ideal, right? It's not wasting any cycles. But ultimately, we need some guardrails in place. So you can see a range act assert was put in here. We have the analyzer firing and saying, oh, you can't have that. saying it's reading the errors now, boom, trims them all out. Look how cool that is.
SPEAKER_00Look how cool that is. I think it's cool. So that's just an example of putting a guardrail in place. These are both sort of like trivial examples. You might say, I don't care about that. I'm fine with the range act assert comments. It's not the point. The point is to show you that if there's different things that you want enforced in your code base, then you can very much do that, right? There's all sorts of like, you know, one of the best things to do is like warnings as errors as a .NET developer get
SPEAKER_00that turned on from the start. If you're in an existing project, you don't really have a choice, but you can start turning on rules incrementally. right? Keep chipping away at them, get your errors, your warnings as errors. How do I say this? You can't ship the code if you have errors, it's not going to compile. So eventually you keep trying to drive your warning numbers down until you get to the point where like you're turning on so many rules. And then you might say, okay,
make everything that's a warning as an error. And then you have a bit of an allow list for some things that you don't care about ever.
SPEAKER_00If you're starting from scratch, it's a lot easier to turn it on in the start and then abide by that. But the whole idea is guardrails, right? I think that's the biggest lesson here is try to get guardrails in place. Do we got time? We got a couple of minutes. One sec. Let's see. Let's see if I can show what I was working on. What is a good way to do this? Ah, okay. gotta pull some stuff around here pull this window up sorry
there's too many too many windows um i'm gonna pin this i just want to kind of walk through something that's like kind of kind of fun today um yeah dj neil getting rid of the comments
SPEAKER_00is super necessary i agree Um, okay. Full screen. Boom. This is brand ghost. Um, particular some of the tests that I was playing with a little bit earlier. Um, I ran into a bit of a scary snag and I'm, I'm glad that I approached things this way. So the YouTube videos that are coming out over the next couple of weeks, I, I already mentioned a little bit about them. Two of them are going to be kind of the content we just covered. And two of them are going to be about how I'm using,
like literally real examples of using GitHub Copilot to go create features for
SPEAKER_00BrandGhost. And I showed one of them. We go from having a chat with GitHub Copilot, translating that into a GitHub issue. I feel like it had pretty good structure. then the second video was like going through the code that it produced and seeing like did we do an okay job with that prompt and spoiler alert it did it did a pretty damn good job um there's a couple of follow-up things that i asked for and it started screwing up that's not in the video but you know it
it honestly got like 90 of the way there and then i got greedy because i said i want more tests because
SPEAKER_00i'm not confident yet So this, what you're looking at on my screen, though, is another feature that I was basically doing the same way. And I want to give you a little bit of context and explain why I was pretty nervous about this change. And so the idea with BrandGhost, if you're not familiar, BrandGhost is a social media cross-posting and scheduling platform that I'm building. I use this for posting all of my social media content across every platform. So if you came here from somewhere on social media like twitter
linkedin instagram facebook tiktok where else uh blue sky threads you name it i post there uh and i only am able to post there because i use brand ghost to do it all for me i write the content brand ghost sends it out one of my philosophies with brand ghost is
SPEAKER_00that um You can make the argument that if you want to have highly effective content, you need to tailor it to the platform. I don't disagree with that, but I don't consider myself as someone who's like a full-time content creator. That's not what I'm going to do for the rest of my life. I like making content. That's not how I identify, if that makes sense. I build software. That's how I identify. So content's a side thing for me.
I don't want to spend more time custom tailoring posts and stuff for each platform. I want to write my content once and then say, hey, BrandGhost, put this out everywhere for me.
SPEAKER_00I don't want to think about, oh, do I have to resize this picture? Oh, the text is a little bit too long for this platform. No. Or it's a PNG, but this platform only takes JPEGs, or I had a WebP file and it's not PNG. Like, I don't want anyone to ever have to worry about that when they use BrandGhost. And one of the things that came up recently was I had someone who tried to post a really big picture. And they said, hey, it didn't go out. And I had to go investigate to see why.
SPEAKER_00They didn't have their notifications on to tell them what the reason was. And I was looking at this thing going, that's kind of bizarre. Why did it work for... It was a huge picture. I said, why did that work for a couple of platforms and not others? It worked for a couple of platforms because those platforms have constraints on the resolution. So what we did was we resized it for the resolution. the resulting file size was obviously much smaller then. So it worked on those platforms.
The platforms where it didn't work don't actually have resolution constraints.
SPEAKER_00They just don't. Or they do and they're not published and we haven't had anyone hitting that issue. But because they don't have a resolution constraint, we didn't try to resize the resolution. We just said, that picture is too big. Sorry. Like file size is too big. So I said, you know what? We have a gap. We need to make sure that when there are file size limitations on these platforms, even if we don't need to do a resolution scale, we need to change the size of that media. We need to do it.
I think because I don't want anyone using the platform and having to think about
SPEAKER_00those constraints. Let's figure it out. So I told Copilot, hey, I got this code that exists already. It does the resolution scaling. And I actually found some code that I didn't realize I had this, but from talking with Copilot, it does resize pictures that are JPEGs in a very specific situation, but it found the example code. I said, this is perfect. We have to put these things together because then we can essentially get the
SPEAKER_00resolution scaling. We can get the image format conversion and we can get some size limitations in terms of the file size. We get the trifecta. This is great. So I said, I need you to go add this image compression stuff in. And first attempt was terrible. was absolutely terrible it was one of those ones that was so bad where i'm like oh my god um i have to start this again i thought and i don't
think i'm going to make a youtube video on this one i might but i thought the prompt was very good it was lots of structure like i say the prompt the um the github issue but it was just simply too much it was so much content and in hindsight i'm like yeah that's stupid
SPEAKER_00it it probably lost the context like you know, one hour into reading how big this GitHub issue was. So I said, let's focus on a core part of it. Let's deliver the core change and then we'll hook it up to the consuming parts later. I actually feel more comfortable about that. Let's do it that way. So it did it and it gave me all these tests. Code look good, but it's more complicated than I'm comfortable with. There's a bunch of different paths for different types of image resizing, different strategies based on the format.
SPEAKER_00Resizing a JPEG is very easy with this library. If you want to have a size limit, awesome. It's like one line of code. If you want to do it for some of the other ones, it doesn't work so well because it doesn't have a parameter where you can set an upper limit. So we have to build that, and Copilot did. So it built all this stuff and then it wrote some tests for me. And I said, excellent. This is great. There's tests and the tests all passed. Awesome news.
What wasn't awesome news is that a lot of the tests had, let me collapse this for a second.
SPEAKER_00So this is a big test file. A lot of the tests said something kind of ridiculous. Let me find an example. Here's one. right, assert true that the compression result quality iterations, it says greater than or equal to one. This is actually better than what it was because it used to say, right at the top, you can still see it in the name, quality iteration count is returned.
SPEAKER_00the quality iteration count has to be returned. It's part of the return object. It's not not going to get returned. So kind of a crappy name. And then it was basically looking like this. It was saying, make sure that there's at least zero, you know, equal to greater than or equal to zero. And I'm like, that's not okay that you're not testing anything. You tested that this code didn't crash, but we didn't test anything useful.
SPEAKER_00So there are some examples like this. This one's still in pretty rough shape. It's passing, but how many, like what I'm trying to figure out how to convey this to copilot properly is like, how many quality iterations do you expect this to take? because the answer isn't supposed to be greater than or equal to one or greater than or equal to zero. It should be five iterations. It should be six iterations. Give me an exact result. So I'm glad that I was reading through that. Let me scroll down a little lower.
SPEAKER_00I'm trying to find some more examples. Some of them have been touched up though. This one was better because it was just saying, make sure that it's fitting within the limit. That is a fair assertion. What was another sort of ridiculous one? There was a handful that were like, the number of iterations and the quality values that it was checking were just like, greater than or equal to zero. There was one that was like, make sure the quality is less, less than or equal to 100.
SPEAKER_00It's a scale from zero to 100. So like by definition, it must be right. It's a completely useless assertion. So I've been catching a bunch of stuff like that. And I got to the point where I was like, you know what? I looked at the code. It seems like roughly it's doing what I would expect. I feel okay about that. It's a little bit complicated, but some of this stuff is a little bit complicated. So I can buy that. I was happy with the test scenarios that it added for the most part.
I feel like that's offering some confidence, but I still had some failing tests.
SPEAKER_00And in particular, I had some failing tests around quality. Let me scroll back up a little bit just to see if there is one. There were some of the tests that say like, you know, they're doing something and there's a quality check somewhere. If I just search like here, quality iterations, but what's quality? Let's find another one. I don't just want quality iterations. There's literally a check for quality.
SPEAKER_00I thought. There's one that says quality iteration is greater than or equal to two, so that's good. But why are we doing ranges? Like just make it an absolute value. This right here, right? So this one is saying the final quality of this should be 100%. And the test makes sense if we think about it, right? You don't have to understand the code. I'm not showing you that yet, that's fine. This test says try to compress this. We're starting off with maximum quality.
So that if we're trying to compress it and we're starting with the maximum quality,
SPEAKER_00we actually want this to stay at the maximum quality. And that's because we have a very generous limit for the size. So, you know, if I'm just making this up, if this file size was 10K, 10 kilobytes, and we're checking this quality here, What am I trying to say? This size limit against 500K, it's like, hey, that's well within limits. We don't have to do anything. So you would expect that we're starting with max quality.
SPEAKER_00We didn't even resize it. Give us a max quality image back. I found a problem, though, and it's not obvious from the code. So I'm just going to jump into this to show you. dj in the chat is saying that's the quality of ai testing even the ai doesn't want to write tests yeah it's it's it's tricky right i feel like it's very easy to go look at a big wall of tests and go oh it did it but like did it because it did something um just to show you what was going wrong here um
SPEAKER_00If we take, this is create an uncompressed result. Okay, so it's taking a magic image. This is the library I'm using, image magic. It takes this image in. This is the original image. And it's writing, it's doing two things wrong, by the way. It's writing this to a new stream so that we can get The stream is like the result that we're passing back. We want people to have a stream to go do things with. But there's two problems here.
SPEAKER_00One of them is that the final quality is the original image quality. In this example, it should be okay. It should be fine. Because whatever quality we started with, that's what we should have ended up with. But you'll notice image here, this variable... We didn't make a new image. We just wrote the stuff to a stream. This is technically misleading. If we wanted the actual final quality, technically what we need to do is go load that stream into an
image object and
SPEAKER_00check the quality. So we technically need to do. I say that because there's other parts of this code in this class where they do a similar thing. Like they do some work, they actually re-save some things out, blah, blah, blah. And then they're also using the original image quality. And I don't think that that's correct. So that's one thing. The other thing that's very interesting about this is if we check out the tool tip, it says gets or sets the JPEG. I don't even know what a MIF is.
M-I-F-F, I don't know what that is, but JPEG, MIF, and PNG compression level.
SPEAKER_00By the way, that's super confusing. Quality and compression level, those seem like the inverse, but what do I know? It says that's the compression level. The default is 75. Okay. When I went debugging this, I said, this code is doing what I expect. I'm following along, I'm stepping through and I'm going, I don't get why this is failing. This looks like it's doing exactly what I expect. The image quality of the original image that was coming in was
just zero, which is interesting. I don't know enough about the library, but it was just saying like, yep, I'm zero.
SPEAKER_00So even though we are using the original image, writing it back out, we're still taking the original image's quality right here. And the original image had a quality of zero. And I said, I don't know. I don't know what to do about that because it seems like we can't trust this property the way that we expected. So anyway, moral of the story here is that there are times where AI writes tests for me, like a feature and tests, and it's concise enough. I'm familiar enough with it and I feel good about it.
SPEAKER_00and I can check it out, you know, in GitHub, do a little code review and sign off, send it, I'm good. This was an example where I started to feel uneasy about what it was doing. And I kind of trusted my gut and said like, I don't think I feel comfortable doing this in GitHub. I don't want to sit there and hope. So I need to be able to run this. I need to step through it. I want to investigate. I want to have my familiar tools and see what's going on here.
And so I wanted to share that with you because it's just an example that's real. is literally from right before this live stream where i said this is getting a little bit too complicated and me working with ai right now is now it's slowing me down i'm i'm very glad that it got me to where it got me to i think the code structure is correct i think the tests are a good test there's a couple of improvements we need to make with some of those assertions but i feel very good
SPEAKER_00about it now but now I have it committed locally and I want to make sure that I can do some iterations and say like, Hey, like if this quality property doesn't work, when doesn't it work? Can we use it at all? Do we have to redesign like what this looks like? Good news is at least we have tests now, right? So I want to see if I can get some of those a little bit further, but it's been a, it's been a really unique experience on this feature for sure. Kind of a challenging to navigate.
SPEAKER_00So yeah, that's that folks um i probably should go share stuff that's going on i think there's a big sale on dome train i think what's going on on dome train oh yeah black friday so one sec um Nice. Cool. Black Friday sale. For folks that don't know, I do make courses on Dome Train. So if you like the content I put out and you would like to try out some courses,
SPEAKER_00there's a big sale. There's a Black Friday one in particular. There's also get 40% off forever. There's got to be... Oh, Black Friday 25 is not 25% off. My bad. The year is 25. Duh. It's 40% off everything, so that's cool. I'm really bad at sales and marketing, if you haven't guessed. But I have courses on getting started in C Sharp and deep dive for C Sharp. Most people do these kind of back-to-back.
SPEAKER_00It's 11 and a half hours of C Sharp material. And then I have a couple of other courses that are not C-sharp related that I paired up with Ryan Murphy on. So you can check those out, behavioral interviews, career management. And then there is a reflection and refactoring for C-sharp devs. And I will keep dropping a couple of spoilers. If you liked this video, then you may like the next course that I'm putting together. And that's all I'll say for now. But you can stay tuned for that. For folks that don't know, I do have other YouTube channels and stuff.
SPEAKER_00So give me one second. I'm just going to start pulling all these things up onto my browser up here. There we go. DevLeader is my main YouTube channel. This is where I used to do the live stream and stuff like that as well. But this is my main YouTube channel where I have programming tutorials. and um it's mostly in c sharp but other other than that it's like using ai tools to program so you can check that out there is the dev leader podcast um if i could spell i usually have all these tabs open by the way and i just
like was a little bit flustered before i started streaming so you can see i'm live right now but um
SPEAKER_00yeah we did I put out this one last week and then put this one out yesterday. Unfortunate that only got four views. And I feel like this channel is doing rough. I was instructed by a YouTube coach to split out my material. And that way it's not so confusing to YouTube when it's serving content. But like, man, some of these videos, it's like, you know, 16 views three weeks ago.
SPEAKER_00Like, oh my goodness. Feels kind of sad coming from my main channel, but that's okay. Code Commute is the other one I'm going to promote right now. Thanks folks for joining from Code Commute. It means a lot. I really like the Code Commute community. It's cool. So if you haven't seen Code Commute, Code Commute is a different format from my other YouTube channels because as you can see, it's usually me commuting. And I do Q&A style videos. So if you have questions that you want answered,
SPEAKER_00you can just leave a comment on any Code Commute video. You can send me a message. Some people message me on LinkedIn, Twitter. You can go to CodeCommute.com and you can submit totally anonymously that way. But it's a lot of fun. I really enjoy making CodeCommute videos. And this is a channel, like, if you look at the number of videos compared to the number of subs, it's like, it's kind of... kind of unfortunate but like i don't edit the videos i don't make thumbnails and i
really enjoy all the topics that we're going through so there's been times where people are like oh you know if you're feeling overwhelmed like it's okay like we'll wait on code commute i'm like no man like these are the videos i like to make um it's a lot more about um it's a lot more about like general software engineering um
SPEAKER_00DJ says, it's more confusing for the user. I have to hunt them down. The podcast I listen to on Spotify for simplicity. Yeah, and so that's a good point. Thanks for bringing that up. There's a Spotify URL. It is just spotify.codecommute.com. And sorry, DJ, you might have been talking, or the podcast I listen to on Spotify. Yeah, so you can see that I have Code Commute here, but I also have the podcast. So... Spotify lags a little bit behind YouTube,
so I don't have the latest podcast up here.
SPEAKER_00But you can check both of those out if you go to Spotify, search for Dev Leader or Code Commute, either one. But yeah, I try to put content up there as well. Especially these types of videos, people are saying like they just leave them on in the background. And like, that's awesome. Please do that. Watch time still accumulates if you do it that way. And that's the number one metric for us on YouTube. And then I'm just going to do a final little shout out for BrandGhost because we got to see some code for BrandGhost today.
But BrandGhost is the platform that I am building for posting content to all the
SPEAKER_00social media platforms. We're doing a little rebrand. We haven't updated our logo on the site yet, but... Colors and stuff are mostly going to stay the same. Logo is going to change a little bit. It's still the ghost because we're brand ghost. But this is the platform I build. So I like reminding people that it's totally free to use if you just want to cross post and schedule content. So if you're trying to get into some content creation, you want to do some learning in public, totally cool. It's free. Just use it. Cross post schedule.
SPEAKER_00Great. Um, if you have a small business or if you're at the point where for your content creation, if you're making money from it, um, and you're like, Hey, I would like to have, you know, more regular content posting. I'd like to make sure that I'm easily posting to multiple platforms, that kind of thing. Um, our paid for tiers have more advanced features. So, um, another, I'll just do one more. I'll do one more. Um, I love showing my content calendar cause I think it's kind of funny. Um,
So this is the thing that I like to show people because when I say Brand Ghost
SPEAKER_00really helps me with my content, this is December. By the way, the little numbers that you see are the number of posts that go out in a day. And I don't just mean like, what's a good way to say this? I don't just mean like, oh, I'm going to make nine posts because it's one post to nine platforms. I mean like, I know my head's in the way, I'm sorry. Here we go. This is one day of posting. Okay, so I'm not there.
SPEAKER_00I'm at the bottom now. So that's one day of posting. And so that's cool. That's December. But here's January. And here's February. And here's March. And here's April. You see a pattern? Like I didn't manually schedule any of this. I put my content into BrandGhost. It automatically schedules it for me. And some of the features that we should be turning on very soon, I probably took a little bit too long just playing around with them. But if you have content that you've written, so just as an example,
SPEAKER_00These are all different posts. If you have content in Brand Ghost and you're like, I want more content like this, the more stuff that you have in Brand Ghost, the more that we can try to emulate your voice. So if you want, you can use our ghost writing tool to be able to generate more content. And that way, if you're like, I got writer's block or I don't know what to write about, it's i feel like with ai the writing is never perfect but uh we've been getting pretty good results i would say and it gets me to the point where i'm like touching things up like i always tell people i'm not against m dashes i
just don't use m dashes normally in my writing i just don't do that so i use because i'm typing
SPEAKER_00naturally if i want an m dash i do two dashes So when AI is writing my content and it's giving me a first draft, I'm like, I don't want em dashes. It's just not how I type. So little things like that. But overall, it's a lot of fun. And yeah, brand ghost has definitely saved my butt for content creation. So... That's all I got this week, folks. Should be on next week, same time and everything. Probably not vibe coding again. I don't know what the topic's going to be. Maybe it will be more coding stuff.
SPEAKER_00We'll see. Thank you so much for watching. I hope to see you all. Next week, if you want to know what the topic is going to be, if you go to weekly.devleader.ca and you check out the newsletter, you don't have to subscribe. You can just check it out on a Saturday or a Sunday. That's going to give you a heads up for what the live stream is. It's either that newsletter topic or you can click the link or subscribe to the YouTube channel, you'll see that it's scheduled. That's all different ways to go check it out.
SPEAKER_00Uh, DJ says I'm seriously going to need to pony up and buy the pro sub scheduling post, uh, time as consuming. Yeah. Pain. And I see why it's why I don't post a lot. Yeah, exactly. I, I always remind people like I started dev leader in 2013. I started this over a decade ago and then I gave up for 10 years. I just gave up. And I literally gave up because I was writing blog articles and I was like, I need more views. How do I get more views? I will put them on social media.
And then I'm like, every day I'm posting, not every day, but I'm posting these blog articles.
SPEAKER_00No one's reading them. And I'm burying myself trying to like post all these platforms. Like no one's reading my stuff. Oh, this is the worst. Like, why am I doing this? And I gave up. Could you imagine if I kept going for 10 years in between then and now? I kick myself in the ass sometimes for that, but that's okay. Because I got brand ghosts now and that's what matters. So again, thanks folks for watching. I really appreciate it and hope to see you all next week. If you can't wait, tune into Code Commute.
SPEAKER_00You get to hear my beautiful voice. I'm sure that's why you're tuning in. Okay, see you folks next time. Take care.
Thank you to everyone who tuned into my live video! Join me for my next live video in the app. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit...
Thank you to everyone who tuned into my live video! Join me for my next live video in the app. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit...