Hacker Newsnew | past | comments | ask | show | jobs | submit | wood-porch's commentslogin

I’m glad you made it man. I don’t know how much longer I can hold out


I feel for you. Try therapies like CBT. Check yourself in if you have to. You are not alone by a long shot.


Please keep trying. You are here for a reason.


Will this correctly retrieve 0 values? AFAIK 0 is falsey in Ruby

``` return nil unless entry ```


No, Ruby is more strict than that. Only nil and false are falsely.


Doesn't that shift the problem to caching false then :D


you can probably always just do something like:

  def no_items?
    !items.present?
  end
  
  def items
    # something lone
  end

  memoize :items, ttl: 60, max_size: 10`
just makes sure the expensive operation results in a truthy value, then add some sugar for the falsey value, done.


Good riddance! I’m optimistic that these guys will transform the typing landscape, which, let’s be honest, has room for improvement. I find mypy abysmal to use, bug-ridden with weird defaults, and extremely painful to add to an existing codebase


Are you on Linux by chance? Your font doesn’t look like it has anti aliasing which seems like a common Linux thing


It's not a common Linux thing, all major distros ship with antialiasing configs ootb. The person just disabled it.


Being the exception to the rule doesn’t disprove the rule


Indeed, but I doubt I’m so exceptional. I’ve seen a lot of tech savvy people not using ad blockers.


This. GitHub is a joy to use compared to its competitors. Using bitbucket at work is frustrating, and reminds me of a lot of Microsoft web interfaces, ironic, given that it’s GitHub and not Bitbucket that is owned by them now


Being the subject of psychological experiments at Harvard probably did a number on him


Google sheets does do decimal math so I'm not sure what you mean


It doesn’t use ordinary floats?


Unless my test methodology was flawed:

Displays 0.3:

"=0.1+0.2"

Displays 3E+79:

"=(0.1+0.2)*1e80"


That could be just the way it's displaying, e.g. to 14sf or something. If you try adding a million 0.1s and use a formula to compare to 100,000, that might tell you (with floats I got 100000.00000133288).

This question suggests it uses floats: https://stackoverflow.com/questions/74542790/google-sheet-yi...


Try "=((0.1+0.2)-0.3)*1e80" -- your test can be fooled by pretty standard rounding for display.


Oops -- nice, thank you! Sorry, guess I was mistaken


Do you really think the cockroach feels pain to the same degree we do?


Similar for me, I thought I would start feeling better after my CPAP. Still had terrible sleep. Still experimenting with solutions (issues started after Covid vax, so I’m experimenting with long Covid protocols and have noticed much better sleep in the last month although I’m not getting my hopes up just yet)


If you don't mind sharing, what are some of these long-covid protocols that you're trying?


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

Search: