Coding Tidbit

Software articles that can be consumed quickly

  • Home
  • About
  • June 8, 2018

    Pull Request at GitHub

    Well, they say GitHub is a social-media site for programmers. It provides a way of collobration and contribution for programmers via pull request. If you are just using GitHub to download source code, you are not using it to the fullest potential. I often have users message/email me about some small fix they did for […]

  • June 7, 2018

    Floating Point and Integer Arithmetic Benchmark

    Introduction This is not much of a tip, just a posting of benchmark result to compare integer and floating point arithmetic timing. All the integer and floating point types used in Benchmark are 64bit. Timing is based on looping 100 million times. Clarification: SmallInt and SmallDouble refers to small values (10-10000) stored in int64_t and […]

  • June 6, 2018

    C++: Simple Permutation and Combination Parallelism

    Primary Motivation Single Threaded Permutation Multi-Threaded Permutation Single Threaded Combination Multi-Threaded Combination Primary Motivation My Github repository, Boost Concurrent Permutations and Combinations on CPU, has been up since January 2017. However, download is close to none while my older single threaded next_combination has plenty of downloads. So I figured it must be the code usage […]

  • June 6, 2018

    Improved Next Combination with State

    To speed up next_combination, we can store the state of generated combination so that it does not have to find which current combination elements correspond to the bigger collection. One way to do it is to store this state inside a class but this violates the design of STL algorithms. Another way to do it, […]

  • May 17, 2018

    Making HTTP REST Request in C++

    Introduction Today, I am going to show you on how to make HTTP request to a REST server using C++ Requests library by Huu Nguyen. Mr Nguyen is heavily influenced by Python Requests design philosoply when writing C++ Requests. Those who had used or familiar with Python Requests, should feel right at home with C++ […]

  • May 16, 2018

    C++11: Compile-time Conditional Types

    Introduction C++11 introduces std::conditional to give C++ developer the flexibility to choose a type based on the compile-time condition. If the boolean parameter of the std::conditional is true, then the delved type is class T or else it is class F. Below is an example on how to use std::conditional. Before to use std::conditional, we […]

  • May 12, 2018

    Design Patterns in Modern C++ Book

    Just as I was scouring Amazon for new C++ book. I came across this Design Patterns book with examples based on Modern C++ by Dmitri Nesteruk. A quick look at content table uncovers the null object pattern, curiously recurring template pattern and SOLID design principles in addition to the classic design patterns in the GoF […]

  • January 31, 2018

    Use STL copy, Not memcpy to Copy Array

    Many C++ developers like to use memcpy() to copy POD arrays to extract the maximum performance during the copy. See the POD structure below. What if a new unsuspecting developer adds a string member and is not aware that the code uses memcpy() to do copying? memcpy() only makes shallow copies. The code no longer […]

  • January 31, 2018

    Erase-remove Idiom Revisited

    Recently, I reread Erase-remove Idiom on classic Effective STL by Scott Meyers, which is dated by now, so I also consulted the same topic on another STL book published in 2017. How to remove elements from container is a common C++ interview question, so you may want to sit up and pay attention here. std::vector […]

  • January 13, 2018

    My IT Certificates

    The blog post is for readers who are interested to see my IT certificates. Certified Secure Software Lifecycle Professional(CSSLP) ITIL® Foundation Certificate(ITIL) EC-Council Certified Security Analyst(ECSA) Certified Ethical Hacker(CEH) EC-Council Certified Secure Programmer(ECSP) Project Management Professional(PMP). In Singapore, for Project Managers undertaking a IT project for government, they are required to be PMP certified. I […]

←Previous Page
1 … 5 6 7 8
Next Page→

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
 

Loading Comments...
 

    • Follow Following
      • Coding Tidbit
      • Already have a WordPress.com account? Log in now.
      • Coding Tidbit
      • Edit Site
      • Follow Following
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar