3,333 reputation
21123
bio website
location London, United Kingdom
age 33
visits member for 3 years, 6 months
seen Mar 26 at 22:42

Software engineer, 5+ years


Mar
12
awarded  Popular Question
Feb
17
comment Polymorphic template container: shared_ptr vs reference_wrapper
It depends on the lifetime of the objects being stored in the vector. Shared_ptr isn't a silver bullet
Feb
16
answered Why is base-for-all-objects discouraged in C++
Nov
10
answered Should I choose to join a programming bootcamp or work as a junior developer?
Nov
9
comment Who is to blame for this range based for over a reference to temporary?
This has nothing to do with rvalues, or range-based for loops, but with the user not understanding the object lifetime properly.
Sep
24
awarded  Autobiographer
Sep
15
comment Why does java.util.ArrayList allow to add null?
@Philipp What values will it put into that space?
Sep
6
awarded  Yearling
Jul
26
answered Why do executables depend on the OS but not on the CPU?
Jul
21
answered Why use getters only as opposed to marking things final?
Jul
21
comment Why use getters only as opposed to marking things final?
Won't doing Martin Fowler's trick still require a library's user to recompile?
Jun
17
answered Is heap fragmentation a problem in bare-metal arm with g++?
Jun
16
comment Usage of raw pointers
@ThomasEding it's because blogs are given far too much weight in this industry. Someone manages to solve problem X without using language feature Y, and so decide Y should never be used. These are the same idiots who make everything a shared_ptr.
May
28
comment “bug” in C++11 text by Stroustrup?
It's quite possible that std::string::length() and strlen(std::string::c_str()) return different values if the string contains binary data. C_str does give a valid c-string, it just returns a pointer after all, you get the same effect if you do strlen("hello\0world")
Apr
18
comment How to make C++ template stack work with basic data types and compound variables?
Add an Empty() function so the user has some chance of avoiding this issue
Apr
7
comment Assert Message in Unit Tests
Why do you need asserts in unit tests? Can you not just check-and-fail?
Mar
24
comment How to reuse c++ code?
#include "repo/subsolution.h", and build subsolution as a library
Mar
9
awarded  Famous Question
Jan
26
reviewed Approve Why does the US government disallow dynamic languages for secure projects?
Jan
24
comment NDA's in interviews
I AM NOT A LAWYER: Why would it pose a problem? If you take the second job you have no obligation to tell the first company that fact. The only obligation on you would be to not talk about company 1's business with company 2, if you signed the NDA. If you don't sign it you don't get the interview.