HackerTrans
トップ新着トレンドコメント過去質問紹介求人

a_w

no profile record

投稿

The race to understand the mysterious world of Africa's fungi

theguardian.com
8 ポイント·投稿者 a_w·3 か月前·0 コメント

The Origin of AI's 'Reasoning' Abilities

theatlantic.com
4 ポイント·投稿者 a_w·3 か月前·0 コメント

Spain's Wind-Farm Bargain

theatlantic.com
3 ポイント·投稿者 a_w·4 か月前·0 コメント

A teenager redrew the Alabama voting map – and it's now state law

theguardian.com
8 ポイント·投稿者 a_w·8 か月前·1 コメント

How Google's DeepMind tool is 'more quickly' forecasting hurricane behavior

theguardian.com
3 ポイント·投稿者 a_w·8 か月前·0 コメント

The working-class hero of Bletchley Park you didn't see in the movies

theguardian.com
3 ポイント·投稿者 a_w·9 か月前·1 コメント

New Dataset Makes Health Chatbots Like MedGemma More Mindful of African Contexts

cc.gatech.edu
2 ポイント·投稿者 a_w·11 か月前·0 コメント

The mountain retreat – upholding an Italian tradition (football)

bbc.co.uk
4 ポイント·投稿者 a_w·12 か月前·0 コメント

Vienna Could be the model for how to tackle the housing crisis, climate change

npr.org
8 ポイント·投稿者 a_w·昨年·3 コメント

Logical Fallacies

owl.purdue.edu
2 ポイント·投稿者 a_w·昨年·0 コメント

Keep if clauses side-effect free

teamten.com
2 ポイント·投稿者 a_w·昨年·1 コメント

The Pedestrians Who Abetted a Hawk's Deadly Attack

theatlantic.com
11 ポイント·投稿者 a_w·昨年·2 コメント

What Goes in $Path? (2018)

chris-martin.org
1 ポイント·投稿者 a_w·昨年·0 コメント

コメント

a_w
·昨年·議論
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?

```