Make it parallel Most machines these days have multiple cores, some even support hyper threading. If you want your code
Continue readingCategory: Development
How to pass arguments (C++)
Analysis Code ▼ Output ▼ Constructor: bar_0 Not store copy run_copy_no_store Constructor: bar_1 === lvalue === Copy Constructor: bar_1 ===
Continue readingMutable vs. Immutable (Python)
Immutable data types They are not modifiable e.g. Numbers, Strings and Tuples Before line 3 a —> 1 b —–^
Continue readingConceptual distinction – Testing
Unit vs. Integration vs. System test All of them are functional tests, but on a different level. Unit test: Tests
Continue readingPipelines in Jenkins
For CI/CD of your projects, you can use Jenkins. To set up a workflow, you can create a pipeline. They
Continue readingstd::forward with concept (C++)
Introduction std::forward: Keeps the type of the reference. (lvalue, rvalue) concepts: Specify requirements for the template types. Example $ g++
Continue readingBackward and Forward compatibility (API)
Showcase API (in protobuf) message User { string name = 1; int32 id = 2; } Backward compatibility If you
Continue readingCache friendly code
Example Analysis The array will be stored in memory like this: [row_0, col_0] … [row_0, col_999] … [row_999, col_0] …
Continue readingLayout of std::string (libstdc++)
Source code Analysis $ g++ –version g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0 $ g++ main.cpp -g $ gdb a.out (gdb) b 7
Continue reading