user avatar
CJ Avilla
@cjav_dev
Developer Experience at @AnthropicAI. x-@StainlessAPI, x-@Stripe
New Hampshire
Joined April 2009
Posts
  • user avatar
    ๐Ÿ˜ If a request to the Stripe API fails, you'll now get a new property on the response called `request_log_url` which opens your request logs for the failed request.
    ~/stripe/demos $ stripe payment_intents create --amount 100
{
  "error": {
    "code": "parameter_missing",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-missing",
    "message": "Missing required param: currency.",
    "param": "currency",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_3yZ3P9MWukQbpE?t=1666028506",
    "type": "invalid_request_error"
  }
}
  • user avatar
    I'm sad that @mint is gone so going to speed run for a few hours and try to build a web-based replacement for the features that I actually used frequently: * Net worth tracking * Searching transaction history
  • user avatar
    I'm working on a course to teach Ruby on @rails basics. I'm considering recording the whole thing using a cloud IDE like @Replit so that students can start without needing to set up an env. Good idea? bad idea?
  • user avatar
    With zero direction, my 10-year-old made this fully working pokedex search using @tldraw ๐Ÿคฏ
  • user avatar
    In 2019, I really wanted to push myself to start creating screencasts. Watching videos is how I learn best, and I wanted to give back. One of my 2019 goals was to create 6 screencasts. Since then, I've created/livestreamed/guested on/edited and/or produced 432 videos. ๐Ÿ˜ฑ
  • user avatar
    Very cool tools coming soon for @StripeDev Terminal. @charlesw_dev taught me just enough to be dangerous today!
    00:00
  • user avatar
    I've been working hard to officially move into the developer advocate role @Stripe. It's official! ๐ŸŽ‰๐Ÿพ I'm very thankful for the incredible support from @anelder, @jaakkosf, and @chris_trag!
    GIF
  • user avatar
    Okay whoโ€™s been learning from @excid3 longer than me? Sept 8, 2014!
    I've been working on @GoRails for 10 years I just realized. ๐Ÿ˜ฒ
  • user avatar
    Can you tell me when I went back to product engineering? ๐Ÿ˜… ๐ŸŒ‘๐ŸŒ•
  • user avatar
    Asked my 8 year old what he wants for his birthday and he shared this google doc with me. ๐Ÿ˜‚๐Ÿฅฐ
  • user avatar
    If you use Rails, I highly recommend following @websebdev. Constant stream of incredibly useful tips like this one.
    ๐Ÿ’ŽRails tip๐Ÿ’Ž Did you know Rails 7 added support for PostgreSQL generated columns? These columns will be calculated by the database only once on INSERT and UPDATE. #ruby #rails #rubyonrails
    # db/migrate/20220226153929_create_orders.rb
class CreateOrders < ActiveRecord::Migration[7.0]
  def change
    create_table :orders do |t|
      t.integer :subtotal_cents
      t.integer :tax_cents
      t.virtual :total_cents, type: :integer, as: "subtotal_cents + tax_cents", stored: true
      
      t.timestamps
    end
  end
end

# console
Order.create(subtotal_cents: 1000, tax_cents: 200)
Order.last.total_ce...
  • user avatar
    Here we go! ๐Ÿ•บ 3.3.0 time.
  • user avatar
    Something I've wanted for YEARS at Stripe... a public, incremental changelog with all the additions (not just breaking changes). Our dreams have come true!!
  • user avatar
    Moving across the country today. NV ๐Ÿ‘‰ NH. Excited for the adventure! I pride myself on traveling light and embarrassed by how massive our checked bags are ๐Ÿคช.