HN user

activepeanut

173 karma
Posts0
Comments75
View on HN
No posts found.
  Otherwise you can just use git submodules.
I would recommend against it. They become a real pain down the road.

I wish I had something to suggest as a replacement. We're still trying to figure that one out ourselves. We just know we won't use submodules again. For now, we're manually managing disjoint repositories.

C++ pitfalls 14 years ago

Good catch. You're correct. I wish I could delete my original comment.

C++ pitfalls 14 years ago
  template<typename T>
  Array<T>::Array(int size)
  :  _size(size), 
     _data(new T(size)) // should have been new T[size]
  {}
That's not the only thing wrong here.
  private:
     T* _data;
     int _size;
  };
The order of initialization is the order of declaration, NOT the order you use in your constructor.

_data depends on _size being initialized first. Therefore _size must be declared above _data.

Note: I understand the next example goes over this issue. I just think this example should've been declared properly as to avoid distracting the reader from the main problem, "() vs []".

  The team had elite and, for tech, senior talent from
  Twitter, Google, Facebook, Craigslist, Quora, and some
  of Chicago's own software companies such as Orbitz and
  Threadless
21st century SWAT team.

Indeed.

Ditto for certain groups at Google (cough android cough).

Either have a dedicated research group, or give people a pass at being 20% less productive at their regular job.

Here's a novel idea.. increase your workforce by 20%? I know, that's just crazy talk. :)

I'd love to be able to vote thru the internet, with a state-issued certificate to authenticate me. It'll be a while before society's tech savvy enough for this tho so I won't hold my breath.