Learn software development tips on topics ranging from programming (PowerShell, Python, Go, Rust, C#, etc.) to cloud (AWS, Azure, Google Cloud), Linux, open source, and much more!
Any content produced on this YouTube channel is produced exclusively by Trevor Sullivan, and is not affiliated with any other individual, company, business, government entity, or non-governmental organization (NGO).
Trevor Sullivan
TRY THIS YOURSELF! ➡️ You can create MermaidJS diagrams with LLMs. In this example with Google Gemini 2.5 Flash, I generated a helpful architecture diagram to help some folks understand how Azure CosmosDB works. Give it a shot yourself, in Google AI Studio!
Here's the prompt I used to generate these: "Create a Mermaid JS diagram showing the relationship of Microsoft Azure CosmosDB accounts, databases, containers, documents, and related cloud resources. If any nodes use lighter background colors, make sure the text color is dark, and vice versa. Don't use special characters in node names."
Copy / paste the resulting Mermaid JS code into Mermaid.live, and see the visual result! If it doesn't work quite right the first time, just tweak your prompt to address the issues. A couple iterations is how I came up with this prompt.
3 months ago | [YT] | 12
View 2 replies
Trevor Sullivan
If you're using Ollama to run models locally, check out the latest update! I run it on Windows 11 natively and also on headless Linux servers, with NVIDIA GPUs. I'm also running Open WebUI as a front-end for the Ollama REST API, and it works great! Really nice to have the option to keep data private and run inference on my own network. 🖥️ I highly recommend trying it out, if you haven't yet. New release ➡️ github.com/ollama/ollama/releases/tag/v0.9.5
3 months ago | [YT] | 7
View 0 replies
Trevor Sullivan
💡 🧠 One of the many use cases for Large Language Models (LLM) includes diagramming code flow. As a visual learner, it helps me to see a flow control diagram rather than trying to reverse engineer code as text. I've been working on an internal software project in TypeScript recently, and forgot how some functions interacted with each other. I used a very simple, generic prompt to ask for a Mermaid JS diagram of the program's flow.
For the screenshot attached to this post, I cloned the "dua-cli" GitHub repository, which is an open source disk usage analyzer built in Rust. 🦀 I used the following prompt to generate the diagram, with absolutely zero manual modifications: "Generate a Mermaid JS diagram showing the high-level code flow in this Rust project's source code files."
I used the Claude 3.5 Sonnet v2 model, through Amazon Bedrock APIs, to generate this diagram.
Take some time to experiment using LLMs to generate Mermaid diagrams! Add in some color customizations, or other unique instructions, per the Mermaid.js documentation, and see if the model can handle it! Use these diagrams to help you learn how to architect software, from other opensource examples.
4 months ago | [YT] | 29
View 2 replies
Trevor Sullivan
The "colored" crate for Rust helps you print out colored text for terminal applications. I use it along with the "inquire" crate to make very simple, interactive applications in Rust. 🦀🦀 Simply import the "Colorize" trait, and you get some extra functions to change colors on &str and String types in your Rust application! Check out the official documentation for more examples and reference docs: docs.rs/colored/latest/colored/
4 months ago | [YT] | 73
View 0 replies
Trevor Sullivan
⚠️ ANNOUNCEMENT ⚠️ Hey guys, you all ROCK for getting my channel to well over 20k subscribers! Thank you so much for your continuous support. I am so thrilled that all of you are learning new skills and are actively engaging with the Rust community. 🦀🦀 I have EXCITING news! I am currently uploading a NEW VIDEO! I literally just finished recording it a minute ago. Does anyone want to guess what the topic is, while it's uploading and processing? 🤔 Pic (mine) for attention, and has no direct relevance.
4 months ago | [YT] | 17
View 12 replies
Trevor Sullivan
THANK YOU to everyone for 20,000 subscribers and growing! 🦀🦀 Never stop learning!
5 months ago | [YT] | 51
View 9 replies
Trevor Sullivan
Learn how to call LLMs from Rust applications, using the Amazon Bedrock Converse API. 🦀🧠
7 months ago | [YT] | 2
View 0 replies
Trevor Sullivan
Check out this new video covering AWS cloud infrastructure automation, using a natural language approach. Made possible by Amazon Bedrock Agents, Lambda, and Anthropic Claude 3.5 Sonnet.
7 months ago | [YT] | 2
View 0 replies
Trevor Sullivan
🦀 Looking for a Rust, high-performance data frame analysis library, similar to Pandas for Python? Check out Polars! Also, find more Rust libraries, by category, on this resource ➡️ lib.rs/
github.com/pola-rs/polars/
8 months ago | [YT] | 45
View 2 replies
Trevor Sullivan
🦀 Here's an example Rust binary size comparison, starting with the debug build, then release, then progressively adding compiler optimizations. Between the release and highest optimization on the right, there's a 5x reduction in size!
For context, this is an interactive CLI utility I've been writing, that just calls out to some AWS APIs for resource management. It's not currently open source, as I've been writing it on my work computer.
I still thought it would be helpful to visualize some compiler options to reduce binary size. Make sure you're adding ones that make sense for your application!
8 months ago | [YT] | 42
View 0 replies
Load more