C++ 17 – Generative Programming in C++ 17

Interesting generative programming in C++ 17. I think that this explains why compile time reflection and declarative programming approach is required for clean and readable code in C++.

Advertisements
Posted in C++, Programming | Leave a comment

High scalable application characteristics

1. Stateless
– HTTP request/respond structure.
2. Idempotence
– database snapshot, recovering data.
3. Monoid
– map/reduce, parallelizing operations.

Posted in Programming | Leave a comment

Docker – nsenter tool to access the Docker container

Installing nsenter in /usr/loca/bin directory

$ sudo docker run -v /usr/local/bin:/target jpetazzo/nsenter

Get the process id of container

PID=$(docker inspect --format {{.State.Pid}} <container>)

Launching a shell inside the container

$ sudo nsenter --target $PID --mount --uts --ipc --net --pid

Run a ls command inside the container

$ sudo nsenter --target $PID --mount --uts --ipc --net --pid ls
Posted in docker, Programming | Leave a comment

C++17 – C++17 feature and boost library documentation

https://www.bfilipek.com/2017/01/cpp17features.html
https://theboostcpplibraries.com/

Posted in C++, Programming | Leave a comment

C++17 – Learning STL algorithm

https://www.fluentcpp.com/2018/07/10/105-stl-algorithms-in-less-than-an-hour/
http://www.fluentcpp.com/getTheMap/

Posted in C++, Programming | Leave a comment

C++ – Core dump Linux utility tool from MS

https://github.com/Microsoft/ProcDump-for-Linux

Posted in C++, Programming | Leave a comment

CMake – Adding debug information


-DCMAKE_C_FLAGS_DEBUG="-D_DEBUG" -DCMAKE_BUILD_TYPE=Debug

Posted in C++, Programming | Leave a comment