FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Claude was finally smarter than me
NewsMachine Learning

Claude was finally smarter than me

via Dev.toSteve Frank1mo ago

Elixir, Phoenix, Ash project Got 100's of text fields spread across 20+ Ash Resources. Finally got around to enforcing some sane max_length constraints on them. Simple prompt, "Add sane max_length constraints to all Ash Resource text fields, based on their implied meaning" Few minutes later, it was done, and after a quick review there weren't any changes needed. Next up, add that same max_length as maxlength on the corresponding inputs fields. Simple prompt: "Now apply those max_length constraints to the field's corresponding input boxes" Which I thought I was going to get 100+ edits. Well, wrong. It thought for 30s or so, and ultimately made a nice simple change in one place, core_components.ex def input(%{field: %FormField{} = field} = assigns) do errors = if Phoenix.Component.used_input?(field), do: field.errors, else: [] assigns |> assign(field: nil, id: assigns.id || field.id) ... |> maybe_inject_maxlength(field) |> input() end ... @maxlength_types ~w(text email tel url search tex

Continue reading on Dev.to

Opens in a new tab

Read Full Article
26 views

Related Articles

The Artemis Moon base project is legally dubious
News

The Artemis Moon base project is legally dubious

The Verge • 5h ago

The HP OmniBook 5 Is a MacBook Neo Killer, and It's Only $500
News

The HP OmniBook 5 Is a MacBook Neo Killer, and It's Only $500

Wired • 5h ago

Trump defunding of NPR and PBS blocked by judge, but damage is already done
News

Trump defunding of NPR and PBS blocked by judge, but damage is already done

Ars Technica • 6h ago

Everything is iPhone now
News

Everything is iPhone now

The Verge • 6h ago

Terms & Conditions: Soundboks Giveaway
News

Terms & Conditions: Soundboks Giveaway

Wired • 6h ago

Discover More Articles