Recent Posts

    Fun with ChatGPT and letters

    Write a letter for a friend asking how he and his family is doing Dear Brandon, I hope this letter finds you and your family well. I have been thinking about you all and wanted to check in to see how everyone is doing. How have you been? How is your spouse and children? I have been keeping busy with work and some hobbies, but I have been missing our get-togethers and catching up.

    Passing argument by value and by reference in Rust

    Most programming languages pass information from function arguments by value or by reference. This means creating a copy of the data or passing a reference to the original data respectively. This is very important depending on the case and the language, as it can have performance consequences or make the code less robust. By value Passing by value makes the code more functional and less prone to errors. Since the function can internally modify the arguments without affecting the variables that contain the original data in the function call environment.

    Stop fearing the regex! - Part 3

    In the previous post about regular expressions we explained how to express a variable number of characters at certain position in our regex. And how to write a regex that would allow us to capture words inside a context (specific characters before and after the word). But we’ve seen that context is considered part of the matching by the regex engine and we need to avoid that. Let’s see how to solve that issue.

    Stop fearing the regex! - Part 2

    In the first post about regular expressions we’ve explained how it is possible to write a regex matching specific characters (or character group/type) at certain position. In a way that makes it very easy to write a regex that finds an x followed by a white space, followed by a y. But what if we need to find an a followed by four to six decimal digits, followed by a b.