HackerTrans
TopNewTrendsCommentsPastAskShowJobs

a_w

no profile record

Submissions

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

theguardian.com
8 points·by a_w·il y a 3 mois·0 comments

The Origin of AI's 'Reasoning' Abilities

theatlantic.com
4 points·by a_w·il y a 3 mois·0 comments

Spain's Wind-Farm Bargain

theatlantic.com
3 points·by a_w·il y a 4 mois·0 comments

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

theguardian.com
8 points·by a_w·il y a 8 mois·1 comments

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

theguardian.com
3 points·by a_w·il y a 8 mois·0 comments

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

theguardian.com
3 points·by a_w·il y a 9 mois·1 comments

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

cc.gatech.edu
2 points·by a_w·il y a 11 mois·0 comments

The mountain retreat – upholding an Italian tradition (football)

bbc.co.uk
4 points·by a_w·il y a 12 mois·0 comments

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

npr.org
8 points·by a_w·l’année dernière·3 comments

Logical Fallacies

owl.purdue.edu
2 points·by a_w·l’année dernière·0 comments

Keep if clauses side-effect free

teamten.com
2 points·by a_w·l’année dernière·1 comments

The Pedestrians Who Abetted a Hawk's Deadly Attack

theatlantic.com
11 points·by a_w·l’année dernière·2 comments

What Goes in $Path? (2018)

chris-martin.org
1 points·by a_w·l’année dernière·0 comments

Space probe to map carbon content of remotest tropical forests

theguardian.com
3 points·by a_w·l’année dernière·0 comments

comments

a_w
·l’année dernière·discuss
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?

```