News for hackers. Stuff that matters.

a_w

Re:Keep if clauses side-effect free on Saturday May 24, 2025 @04:21PM (#44083564)
I do this often:

```ruby

if (user = User.find_by(email: '[email protected]'))

  user.update(status: 'active')
end

```

Is it better to do this instead?

```ruby

user = User.find_by(email: '[email protected]')

user.update(status: 'active') if user.present?

```

Morality aside, I was hopping to see a discussion on the legal side of this issue.

1. Doesn't Title VI apply here?

2. Could a company legally fire an employee for practicing their religion/tradition on the weekends, outside of the office grounds?

Unfortunately, it doesn't look like Starlink is an option.

https://news.ycombinator.com/item?id=40246021

I have been thinking about that, but I haven't gotten around to researching its availability in the country yet.

I will do some research over the weekend. Thanks for mentioning it!

Thanks for the detailed response.

I wasn't aware of Phi-3 - I will look into it.

That's interesting. Could you expand on this a bit more? Which models, and I am curious about how the CS teachers/students will be using this?

Older »