Posts

What are UUIDs, and should you use them?

Image
The post What are UUIDs, and should you use them? first appeared on Qvault . A universally unique identifier (UUID) is a 128-bit format for creating IDs in code that has become popular in recent years, especially in relation to database keys. By using UUIDs, you ensure that your ID is not just unique in the context of a single database table or web application, but is truly unique in the universe. No other ID in existence should be the same as yours. Sorry to interrupt! I just wanted to mention that you should check out my new free Go course. It’s designed to teach you all the fundamentals of my favorite coding language. Learn Golang Now It is important to note that while the probability that a UUID will collide with another is not zero , its practically zero. The chances of collision are so astronomically low, worrying about it would be ridiculous. The total number of possible UUIDs is 2^128 or 340282366920938463463374607431768211456 . UUID Generator Online

What is Go Good For? (And What Is Golang Used For?)

Image
The post What is Go Good For? (And What Is Golang Used For?) first appeared on Qvault . In 2007, frustrated by some of C++’s inefficiencies and overcomplicated nature, and desiring a programming language designed specifically for multi-core processors and effectively managing large projects, three Google engineers, Robert Griesemer, Rob Pike, and Ken Thompson, designed the Go language. The goal was to build an improved C++ that was much easier to use — Go was developed based on C’s disciplined syntax — but also took inspiration from some of Python’s simplicity and Javascript’s useful features. Sorry to interrupt! I just wanted to mention that you should check out my new free Go course. It’s designed to teach you all the fundamentals of my favorite coding language. Learn Golang Now This combination makes Go one of the most effective languages for large-scale infrastructure, and one of the simplest languages for debugging complex projects. The open-source Go p

Golang vs C++: Which is Best For Your Next Project

Image
The post Golang vs C++: Which is Best For Your Next Project first appeared on Qvault . Needing to be a math genius to learn code is a thing of the past, as more high-level programming languages offer an alternative to low-level machine code, making it more accessible than ever to get coding. But with dozens of languages available, which ones are worth learning? Regardless of whether you plan to work in computer science, or casually dabble in code, the best thing you can do is understand what each language does and who uses them. That way, you know you’re learning a language that benefits you. Sorry to interrupt! I just wanted to mention that you should check out my new free Go course. It’s designed to teach you all the fundamentals of my favorite coding language. Learn Golang Now Now, you may have seen our breakdown of Golang vs. Python , but now it’s time to see how Golang matches up to C++. We’ll compare their design, performance, speed, and security, as we

Beautiful Language and Beautiful Code

Image
The post Beautiful Language and Beautiful Code first appeared on Qvault . “Dead Poet’s Society” is a classic film, and has become a recent favorite of mine. There’s a scene in particular that I enjoy, where Robin William’s character explains that it’s bad practice to use terms like “very tired” or “very sad”, instead we should use descriptive words like “exhausted” or “morose”! I wholeheartedly agree with what’s being taught to the students in this scene. It’s tiresome to read a novel where the author drones on within the bounds of a lackluster vocabulary. This brings me to the point I wanted to emphasize in this short article: Beautiful language and beautiful code are far from the same. Beautiful language doesn’t simply communicate instructions from one human to another. Language well-used arouses emotions, illustrates scenery, exposes nuance, and can sing through rhyme and meter. Its purpose isn’t purely functional, it’s a rich medium of creative expression. Beautiful code

Intro to the One-Time Pad Cipher

Image
The post Intro to the One-Time Pad Cipher first appeared on Qvault . In cryptography, the one-time pad, or OTP is a way of encrypting information so securely that it’s impossible to be cracked. That said, OTP has a major drawback in that it requires both parties to have access to the same key before a message is encrypted. Sorry to interrupt! I just wanted to mention that you should check out my new free Go cryptography course. It’s designed to teach you all the crypto fundamentals you’ll need to get started in cybersecurity. Start Cryptography Course How the one-time pad cipher works When using the one-time pad, a message and a secret key are required to start. Each bit of the original messageg, assuming we can use binary data, is encrypted by using an XOR operation on it and the corresponding bit from the secret key. Refresher on XOR XOR, or “exclusive or” is a binary operator that works with binary data. It returns true if both of its inputs are opposi

16 Great Coding Challenges You Can Try Out

Image
The post 16 Great Coding Challenges You Can Try Out first appeared on Qvault . Coding challenges are a fun way to improve your coding quickly. When I started to learn coding in school, coding challenges were the furthest thing from my mind. In fact, I was struck with one particular issue: I didn’t really want to learn to code. I didn’t care enough about coding. I didn’t care about the language. I wanted to get a decent grade and get out. Like a lot of other coders, I’m competitive by nature, but only when it suits me. I need a reason to care. That’s why one of my earliest coding successes was a personal coding challenge. Could I get a python bot up and running? If so, the reward was more Instagram followers for my cats. Suddenly, I was motivated to trawl through error code explanations, figure out the best libraries, and read through dozens of stackoverflow answers.  Coding challenges are a great way to give yourself a reason to pick up a new coding language, whether you’re lo

Building a Red-Black Binary Tree in Python

Image
The post Building a Red-Black Binary Tree in Python first appeared on Qvault . A red-black tree is a kind of self-balancing binary search tree. Each node stores an extra bit, which we will call the color, red or black. The color ensures that the tree remains approximately balanced during insertions and deletions. When the tree is modified, the new tree is rearranged and repainted to restore the coloring properties that constrain how unbalanced the tree can become in the worst case. The purpose of a red-black tree is to stay balanced which ensures that its common operations, like lookup and delete, never degrade to worse than O(n*log(n)) . Sorry to interrupt! I just wanted to mention that you should check out my new free Python course, “Big-O Data Structures”. You’ll learn all you need to know to crush your upcoming coding interviews and whiteboard sessions. Start Python Data Structures Course What is a balanced binary tree? Since the reason colors are added