Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
[flagged] Things to commit just before leaving your job (gist.github.com)
39 points by occamschainsaw on Jan 16, 2024 | hide | past | favorite | 23 comments


    // In case it's not clear: I am not suggesting you *actually* do this!
A more practical but still dubious takeaway would be that you can safely `#define private public` and `#define protected public` to work around the visibility and you still get a syntactically correct C++ code. Of course, you are doomed if ABIs start to depend on the visibility...


Lots of unit tests start that way. Maybe when you have a minute, see how your compiler handles a zero-width character at the end of private?


Things to commit just before leaving your job if you don’t intend on working in a position of trust again.


  // This started as a tweet with a joke of "C++ pro-tip: #define private public",
  // and then it quickly escalated into more and more evil suggestions.
  // I've tried to capture interesting suggestions here.

  // In case it's not clear: I am not suggesting you *actually* do this!


Obviously, C and C++ have characteristics driving people to desperately try Twitter pro-tips. To stuff something like this under the door, I believe your PR better mention Jenkins.


*whoosh*


Too obvious and easy to clean up. Depending on how things were when you left, a passive aggressive commit message with whatever work you had left uncommitted is easiest.


158 comments in 2015: https://news.ycombinator.com/item?id=10084570

Only 8 when originally posted just over 10 years ago: https://news.ycombinator.com/item?id=6218920


I was expecting "fraud" or similar. Not too far off.


initial commit is 2013


"Something evil to do to make yourself feel better about having been fired from a job for which you were probably un-qualified."


Glorifying vandalism like that feels very very immature. How did this end up here, and why was it upvoted?


It's a joke.


Still it is not clear why a silly joke needs to be on the front page of HN!


Humour that taught me, someone that doesn't touch C, that you can do some interesting / weird things with C...

But, you are absolutely right, good sir. This is the internet.

And The Internet is Serious Business


I see something that makes me chuckle, I upvote it. 20 more people do the same and it is on the front page. Nothing mysterious, really.


It isn't mysterious. It just doesn't match the vibes of HN. I don't come on HN to see silly jokes. And as you can see by the number of flags this post has received to kill it, it looks like most HN readers agree with me.


Then you’re really not going to like my signature move from the 90s:

On the main mail server, echo “jive | more” > /usr/bin/less


So you're saying that the HN front page should be humorless...


I'm guessing the flags are from people who get mad at xkcd comics and drink percolator coffee as a preference.


Some folks just don't like to laugh

For the record, I make coffee one large cup at a time via the pour-over method


Simple, it's funny and we should glorify more "potential" fun in this shitty world.


    // In case it's not clear: I am not suggesting you *actually* do this!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: