The race to understand the mysterious world of Africa's fungitheguardian.com8 ポイント·投稿者 a_w·3 か月前·0 コメント
A teenager redrew the Alabama voting map – and it's now state lawtheguardian.com8 ポイント·投稿者 a_w·8 か月前·1 コメント
How Google's DeepMind tool is 'more quickly' forecasting hurricane behaviortheguardian.com3 ポイント·投稿者 a_w·8 か月前·0 コメント
The working-class hero of Bletchley Park you didn't see in the moviestheguardian.com3 ポイント·投稿者 a_w·9 か月前·1 コメント
New Dataset Makes Health Chatbots Like MedGemma More Mindful of African Contextscc.gatech.edu2 ポイント·投稿者 a_w·11 か月前·0 コメント
The mountain retreat – upholding an Italian tradition (football)bbc.co.uk4 ポイント·投稿者 a_w·12 か月前·0 コメント
Vienna Could be the model for how to tackle the housing crisis, climate changenpr.org8 ポイント·投稿者 a_w·昨年·3 コメント
a_w·昨年·議論I do this often:```rubyif (user = User.find_by(email: '[email protected]')) user.update(status: 'active') end```Is it better to do this instead?```rubyuser = User.find_by(email: '[email protected]')user.update(status: 'active') if user.present?```
```ruby
if (user = User.find_by(email: '[email protected]'))
end
```
Is it better to do this instead?
```ruby
user = User.find_by(email: '[email protected]')
user.update(status: 'active') if user.present?
```