HNHacker News
TopNewBestAskShowJobs

ygrechuk

13 karma · joined May 14, 2015

submissionscomments
ygrechuk··on The economics of all-you-can-eat buffets
That sauce is loaded with sugar and corn starch.
ygrechuk··on What’s New in Python 3.8
Why not something like this:

  def f_iter(many, args):
      while True:
          m = f(many, args)
          if m:
              yield m
          else:
              raise StopIteration
  ...
  for m in f_iter(many, args):
      # do stuff with m
This way you’re isolating all the initialization logic, error handling, etc. And you can focus on your domain logic in your client code.
ygrechuk··on Johnson and Johnson, America’s Most Admired Lawbreaker
I generally agree with LordKano, and in the same positions of having been vaccinated myself and my kids. At the same time I really don't like state-mandated vaccines. For philosophical reasons first of all ("Your body, your choice"). But also for practical, as it presents a great possibility of abuse; as an example impagine corrupt officials mandating unnecessary vaccination of BigPharma's profit.

> If you don't get vaccinated, and you get sick, then you infect everyone else. You don't have the right to choose to infect other people.

I would NOT be against public schools mandating vaccines in order for children to attend school. Same for places of employment.

ygrechuk··on Commuting Kills
Yeah, that's great, but here in NYC it's either freezing or hazy-humid for 2/3 of the year. Oh yeah, and my commute would be about 2.5 hrs each way, according to Google Maps.