
What’s wrong with MERN
TLDR: Everything and nothing much. read on. MERN stands for Mongo, Express, React and NodeJS. While picking a programing language is a must (at least for the time being) in order to start a project, […]
Classes in NodeJS
JavaScript version 6, has a full support for classes. Here I’m focusing on NodeJS, since it’s easier to import and play with, and there are no compatibility issues. One caveat with Node – classes and […]
Format Ubuntu install USB stick
If you use a USB stick to install Ubuntu, you might find it hard to format. This is because the regular format won’t work on it. So we need to use Gnome disks: Sun disks […]
Using googletest as unit test for C++
I love C++, but the lack of actual tooling is one of the most annoying things about it. luckily, there are many open source tools to bridge this gap. The googletest unit test suite is […]
Split string into int (or another type)
It’s very easy to split a string in python – just use split(). The default will split the string by spaces, without you even providing this parameter. If needed, you can call split() with a […]
Getting the object type in a case statement
If you have a case statement and you need to determinate the type, you can’t use something like this: If you’ll run irb and try it with ==, it will work, but not in a […]
Print in python
Every python programmer knows that basic print function:print(1) will print 1, print(“hello”) will print hello and so on. Here are a few tricks:To print a formatted string, you can use the string.format method, e.g”hello {}”.format(“world”) […]
C++ copy constructor and elision
Lets say we have a file class object with a file buffer, like so: This is not an uncommon pattern. Now, what do we need to do, if somewhere we’ve created a function like this? […]
The C++ pointer
So, this is an interesting topic. Again, about craftsmanship. While most c++ if not all using them, it seems that some basic knowledge is lacking; This time, I’ll touche some basic facts: the const pointer. […]