• Home
  • About
    • News
  • Subscribe
    • Personal Subscriptions
    • Team Pricing
  • Episodes
    • All Episodes
    • Freebies
    • Guest Episodes
    • Categories
      • APIs and Libraries
      • Applications
      • Design
      • Language
      • Patterns and Anti-Patterns
      • Style
      • Testing
      • Tools
    • Surprise me!
    • Video Downloads
  • Courses
    • Tasting Menus
    • Feasts
  • Help
    • FAQ
    • Contact
    • Nominate a Guest Chef
    • Privacy
  • Log in
  • Twitter
  • Facebook

Categories

Tags

activerecord asynchrony code smells command line concurrency containers corelib data database debugging domain modeling Enumerable & Enumerator failure handling files guest idioms Input - Output iteration linux literals logging metaprogramming oop patterns practices processes (execution) rails Rake refactoring regex rspec RubyGems stdlib strings syntax systems tdd test doubles testing text threads tools unix value objects variables
May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Sep    

Archives

Account

  • Login

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Mobile Analytics
  • All
  • Language
  • Design
  • Style
  • APIs and Libraries
  • Testing
  • Freebies
Let's Eat
  • Twitter
  • Facebook
Recent Episodes

RubyTapas

Short Screencasts of Gourmet Ruby, by Avdi Grimm

  • Home
  • About
    • News
  • Subscribe
    • Personal Subscriptions
    • Team Pricing
  • Episodes
    • All Episodes
    • Freebies
    • Guest Episodes
    • Categories
      • APIs and Libraries
      • Applications
      • Design
      • Language
      • Patterns and Anti-Patterns
      • Style
      • Testing
      • Tools
    • Surprise me!
    • Video Downloads
  • Courses
    • Tasting Menus
    • Feasts
  • Help
    • FAQ
    • Contact
    • Nominate a Guest Chef
    • Privacy
  • Log in

Tag: Referential Transparency

A referentially transparent function takes input only in the form of arguments, and delivers output only in the form of its return value. It doesn’t access any global data sources, and it doesn’t cause any external side effects along the way.

  • “What is referential transparency?” at Stack Overflow
  • Wikipedia – Referential Transparency
  • in Ruby Tapas –
    • When we change the context that a referentially transparent method is called in, its behavior will never change.
    • …problem [is] referential transparency, or rather, the lack of referential transparency.
    • a referentially transparent method that works in one place can be used anywhere else
    • [these] methods are referentially transparent, which means they are pure functions of their inputs

Episode #275: Antique Shop

Avdi Grimm January 22, 2015

Revisiting the idea of "referential transparency", today we look at some unforseen side-effects of a method that modifies its arguments.

Read More

Episode #270: Referential Transparency

Avdi Grimm January 5, 2015

In this episode we'll discover a particularly insidious side effect of implicit global I/O dependencies.

Read More

Episode #244: Drop While

Avdi Grimm October 6, 2014

In today's episode, we'll compare two methods for getting to the body of an email: one imperative; one functional; and both idiomatic Ruby.

Read More

  • All
  • Language
  • Design
  • Style
  • APIs and Libraries
  • Testing
  • Freebies
  • Home
  • About
  • Subscribe
  • Episodes
  • Courses
  • Help
  • Log in
© 2021 ShipRise LLC