Most developers work with different programming languages throughout their careers, however, I believe you always have your favorite, or the one that you feel most connected to. So, what’s yours?
Category: Dev
Dev Tunes Vol. 3: Ratatat
As I’ve already mentioned before, I need my music to code but there are times when I find lyrics a bit distracting, specially when I need to focus, like, really focus.
Ratatat is one option that I have when I need instrumental yet highly energetic music. A peculiar mix between rock, electronic and hip-hop.
Azure ❤️ Containers
Mustafa Toroman, MVP for Microsoft Azure, shared with us the talk “Azure loves Containers” as part of AP’s Dev Talks Meetup. I enjoyed it a lot so I just felt like sharing.
Enjoy!
Mustafa published several books on cloud technologies. Lately, his focus is on designing new solutions in the cloud and migrating existing ones to the cloud. Mustafa possesses over 40 Microsoft certifications. Also, he has held the MCT title for many years and has been awarded the MVP for Microsoft Azure for the last four years in a row. He often speaks at international conferences about cloud technologies and now it’s time for Dev Talks Meetup where he will cover topic ‘Azure Loves Containers’.
Containers are the latest big thing in the cloud. They are light, fast, and consistent. And they fit very well into DevOps. Azure offers multiple container options to choose from. And each one of them makes deployment of our applications easy. Let’s see how to build your containers and deploy them anywhere.
C# Tuple
I have recently found this C# feature and found it interesting, let’s take a look.
C# tuples are types that you define using a lightweight syntax. Basically, it gives you the opportunity to define data structures with multiple fields without the complexity of using classes.
Please look at the following example.
(string, int) tuple = ("Hello", 1);
Console.WriteLine($"Tuple with elements {tuple.Item1} and {tuple.Item2}.");
// Output:
// Tuple with elements Hello and 1.
Optionally, you can define the field names.
(string Text, int Count) tuple = ("Hello", 1);
Console.WriteLine($"Tuple with elements {tuple.Text} and {tuple.Count}.");
// Output:
// Tuple with elements Hello and 1.
Another interesting feature of tuples is the support for equality operators.
(string Text, int Count) left = ("Hello", 1);
(string Text, int Count) right = ("Hello", 1);
Console.WriteLine(left == right);
// Output:
// True
Also, you can assign tuples to each other. Keep in mind that tuples must have the same number of fields and the values must be implicitly converted.
(int, double) tuple1 = (17, 3.14);
(double First, double Second) tuple2 = (0.0, 1.0);
tuple2 = tuple1;
Console.WriteLine($"{nameof(tuple2)}: {tuple2.First} and {tuple2.Second}");
// Output:
// tuple2: 17 and 3.14
Now, I must say that you should not go crazy with tuples; replacing separate classes with tuples because you will save a few lines of code it is not a good idea, so before implementing tuples in your code base make sure to document their usage for scenarios where they could be helpful without sacrificing your code quality.
A tiny overview at tuples, but share your thoughts.
For more information about tuples visit Tuple types – C# reference | Microsoft Docs.
AZ-900 Microsoft Certified: Azure Fundamentals – How to Pass
So, I have just passed Exam AZ-900: Microsoft Azure Fundamentals
For all of you that are thinking of taking this exam, here is how I passed, just 2 steps:
Step 1: Microsoft Learn: Learning Paths
Microsoft offers Azure Fundamentals Learning Paths for free in Microsoft Learn, I studied this material, part 1 to 5; this is the recommended online training for this exam from Microsoft.
Microsoft Certified: Azure Fundamentals – Learn | Microsoft Docs
Step 2: Microsoft Azure Fundamentals Certification Course (AZ-900) video from freeCodeCamp
I really liked the structure of this video; it allows you to go through a lot of Azure concepts divided in small capsules (2-5 minutes) which give you a good overview of Azure.
And that’s it, that’s the preparation I had before presenting the exam.
However, I must say that I had a little of hands-on experience with Azure myself and even though I don’t have experience with every topic from the exam, it definitely helped. So, if Azure is completely new for you, you should consider adding a few more elements to your exam preparation.
Here are some ideas from a colleague that presented the exam and nailed it!
JuniorLearnsToCode: How to Pass AZ-900 Azure Fundamentals Certification Exam
Good luck!