HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ahci8e

no profile record

comments

ahci8e
·anno scorso·discuss
Uff, yeah. I used to work with a guy who would immediately turn the panic up to 11 at the first thought of a bug in prod. We would end up with worse architecture after his "fix" or he would end up breaking something else.
ahci8e
·2 anni fa·discuss
I have a Supernote A5X! It's great! I got it to replace my old rm and never looked back. I also recently bought the Supernote A6X2. Not sure which I prefer size-wise. Sometimes the smaller A6X2 is great, especially for reading. Other times drawing on the A5X is more comfortable.

One thing I don't like about the A6X2 is that there is a noticeable gap between the screen and the pen. This gap isn't there (or maybe is just way smaller) on the A5X. The screen on the A6X2 is also textured, I guess to try to mimic paper, but I grew to like the gel pen feel of the A5X screen.
ahci8e
·2 anni fa·discuss
How would this work if I need to update multiple variables?

  int value1 = 0;
  int value2 = 0;
  if (condition) {
    value1 = 8;
    value2 = 16;
  } else {
    value1 = 128;
    value2 = 256;
  }
Would I have to repeat the if expression twice?

  int value1 = if (condition) { 8 } else { 128 };
  int value2 = if (condition) { 16 } else { 256 };
ahci8e
·2 anni fa·discuss
Almost zero drama, yeah. I do remember the dep drama though...