TL;DR - Switch raw heap pointers to unique_ptrs when possible. If your heap allocated resource needs multiple owners, use a shared_ptr instead.
I find myself reviewing C++ smart pointer types over and over again. I guess for me, it’s just been one of those things that doesn’t stick, or perhaps I’ve only needed to use them infrequently enough to forget about them. So, here’s a note to myself, and anyone else dying to read about smart pointers in C++.
Introducción El valle de los lobos es un libro para adolescentes que narra las aventuras inesperadas de una niña que se llama Dana. Es un libro interesante, aunque sea un poco juvenil. En mi opinión, es útil para los estudiantes del idioma porque la historia es fácil de entender y no se usa un vocabulario tan complejo, ya que el libro se escribió para los adultos jóvenes. De hecho, es muy parecido a los libros de Harry Potter.
TL;DR - choose either the option containing the largest number, or the fewest tiles and you’ll be ok!
Read on to learn more…
What am I talking about? Over the summer at a friends house, I was presented with an “old bar game” that I was completely unfamiliar with. It’s a wooden tray, with the numbers 1-12 printed in ascending order on little wooden tiles.
Here’s an example of what it looks like:
Si en tu vida no has aprendido un idioma después de tu primer idioma, puede ser difícil empezar. Estos son mis consejos sobre el tema. Si sigues algunos de mis consejos, mejorarás tus conocimientos de tu segundo idioma. Pero también es importante que tengas en cuenta el hecho de que no soy profesor ni experto en el tema. Es posible que lo que me sirve a mi no te sirva a ti.
Overview Memoization or memoisation is a method used to optimize programs. Usually, at least in my experience, it’s one of the first topics introduced when dynamic programming algorithms are being discussed. With a quick google search you can find the Wiki or a trillion other blogs about it - most will show the canonical example - the “hello world” of the topic - that is, using memoization to optimize a recursive implementation of a function that generates the n-th Fibonacci number (or sometimes a function computing factorials).
This is my (the only?) ranking:
Spicy dino-nuggets Spicy nuggets Dino nuggets Nuggets Keep in mind I’ve been a “most of the time non-meat eater” for a few years now, so maybe I’ve got it wrong when talking about the real meat nuggets…For my other veggie friends out there, I’m a fan of Nuggs (if you’re into the substitute thing). They’re the closest I’ve had to real, good old after school freezer nuggs (I’m an adult, I swear, just ask my hairline).
In celebration of pi-day, let’s look at a method of computing pi using random numbers that is often presented in probability, statistics or other classes, as an elementary example of using random sampling and / or simulation.
In my case, the first time I remember seeing / hearing about this example was in a probability class, however we didn’t actually write any code to try it, we just looked at the idea.
Aviso: eso ha sido un trozo de texto que escribí para practicar mí español, no tiene nada que ver con FarSounder oficialmente.
Introducción En mi empresa, se llama FarSounder, hacemos un sistema de Sónar para los buques y los yates. El objetivo principal de este sistema es buscar cosas que sean peligrosas delante de la nave y bajo el agua. Hay un sensor que se pone en la proa, que está dirigido hacia delante, por supuesto.
We’ve all got a little more time on our hands lately due to social distancing and COVID-19 (unless you have young children). I’ve been partly entertaining myself by learning new programming languages and frameworks, and also with some programming puzzles on sites like HackerRank.
I found one problem I ran into recently particularly interesting, and I enjoyed figuring it out (read: drove me crazy for a bit). This post is a write up of the problem and the solution that I ended up with.
It’s been about a year or so since we officially upgraded all of our tooling at my job at FarSounder from Python 2.7 to Python 3 (3.6 at the moment). Aside from the syntactic changes, there have been a handful of updates in Python 3 that I’ve found to really increase the readability of our scripts. One of those updates (from back in Python 3.4) has been the introduction of the pathlib module.