Type substitution (or Liskov Substitution Principle in object-oriented contexts) allows an object of a certain type (supertype, superclass) to be replaced with an object of another type (subtype, subclass). Let’s clarify the difference between subclass and subtype (and their super- counterparts) first. They are closely related, but stem from different concepts: inheritance and type compatibility. Subtype vs. Subclass Subclass is a class that inherits from another class, known as its supercl...| Oleksandr Manenko's Blog
Ця історія почалася десять років тому, коли я вперше інвестував у біткоїн. Я був програмістом, що був сфокусований на високих технологіях, але завжди мріяв про великі зміни у світі. Коли ціна біткоїна досягла небувалих висот, я зрозумів: це мій шанс.| Oleksandr Manenko’s Blog
The Rust allocator API requires a Layout struct to be passed into each of its functions. For example, to reallocate or free memory, you need to pass the pointer to the existing memory block and the layout used during its allocation. This is a problem when interacting with C API which does not provide any means of storing additional allocation data. The Cassandra C++ driver’s memory allocation functions is the example of such API, e.g. unsafeextern"C"fnrealloc(ptr: *mutc_void,size: usize)-> ...| Oleksandr Manenko's Blog
Unreal Engine by Epic Games is a masterpiece. THE Game Engine. It is super powerful and convenient to use.| Oleksandr Manenko’s Blog
CMake is a de facto standard build tool for C++. There are those who love it, and there are those who hate it. The tool had a few problems in the past, but Modern CMake solved most of them and continued to evolve and add more and more features.| Oleksandr Manenko’s Blog
In this post I will show you how to setup Emacs for the Rust development. We will start with empty setup and then move iteratively adding new features. At the end of the process you should have something similar to the following screenshot:| Oleksandr Manenko’s Blog
I installed Arch Linux along with GNOME 3 yesterday. I have a git repository to keep all my settings the same across all devices.| Oleksandr Manenko’s Blog
In the previous article we implemented input form using UITableView. Static table views provide a great help during iOS applications development: developer can visually create nice looking UIs. One of the common tasks here is to create UI for picking a date. Apple already provides UI element for this: UIDatePicker.| Oleksandr Manenko’s Blog
UITableView is a powerful UI element that is used in various scenarios of iOS application development.| Oleksandr Manenko’s Blog
A sparse set is a simple data structure that has a few interesting properties:| Oleksandr Manenko’s Blog