20
stacked
5y

How can a candidate have 10+ years or experience with C++ and let alone struggle with the most simple exercise!?

Thoughts from the inner me during an actual interview:

FOR FUCK SAKE, DUDE, PUT THAT "std::" IN FRONT OF YOUR "vector" AND IT WILL COMPILE!

USE ITERATORS GODDAMMIT INSTEAD OF THOSE FUCKING INDEXES. YOUR CODE IS FULL OF DAMN OVERFLOW ERRORS!

HAVE YOU EVER REALIZED THAT ARRAYS CAN BE EMPTY SOMETIMES?

Comments
  • 1
    Sounds like amateur hour over there.

    using std::vector;

    for (type & : collection) // personal preference but not always posible
  • 2
    I HATE iterators, and I am not exactly sure why. Prefer indexes and new style for loops. And, I can have both at the same time now. Thank you ranges!
  • 4
    @Demolishun Maybe because C++ iterators are massively verbose and unintuitive
  • 1
    Easy, 10 years of slacking and copying code from stackoverflow
  • 1
    @12bitfloat I just wrote an iterator last night. I thought I would feel dirty, but I accomplished. It was really easy to write too.
Add Comment