Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Tyler A. Young 🧑🏻‍💻⚗️
@tylerayoung@fosstodon.org  ·  activity timestamp 3 weeks ago

Pop quiz time: Given a published post with an associated user, what gets printed here?

if user_id = post.user_id && post.published? do
IO.inspect(user_id)
end

Hint: It ain't what I thought. 😬

#ElixirLang

  • Copy link
  • Flag this post
  • Block
Mike Zornek, looking for work
@zorn@jawns.club replied  ·  activity timestamp 2 weeks ago

@tylerayoung This feels like a Credo I need to add. :P

  • Copy link
  • Flag this comment
  • Block
Tyler A. Young 🧑🏻‍💻⚗️
@tylerayoung@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@zorn https://fosstodon.org/@tylerayoung/115232468716793934

  • Copy link
  • Flag this comment
  • Block
entropealabs
@entropealabs@mastodon.social replied  ·  activity timestamp 3 weeks ago

@tylerayoung true

  • Copy link
  • Flag this comment
  • Block
Tyler A. Young 🧑🏻‍💻⚗️
@tylerayoung@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@entropealabs Yuuup. I looked at this in code review and was like "okay, so we're pulling out the user ID and also checking that it's published.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login