Gotcha, makes sense. Thanks for the detailed response! 

On Friday, October 13, 2017 at 11:37:48 AM UTC-4, Xavier Noria wrote:
>
> On Fri, Oct 13, 2017 at 5:25 PM, Colin Hart <epic...@gmail.com 
> <javascript:>> wrote:
>
> What exactly is a temporal fix?
>>
>
> I was joking.
>
> Sometimes you fix something, but the fix is temporary, which means it is 
> expected to be eventually gone, should be gone better sooner than later.
>
> This may happen in many scenarios, but to put an example: a gem you depend 
> on has a bug, you monkey patch it instead of forking because the fix is 
> trivial. That should be undone when the bug is fixed in the gem and you 
> upgrade. It is a temporary hack.
>
> I said "typical" because it is not unsual that people forget they did 
> something "temporary" and that stays in the code base for a long time. 
> Maybe even they are gone and maintainers do not know under which 
> circumstances the temporary fix can be deleted, etc.
>
> In practice that needs some kind of discipline. For example, in the use 
> case above I wrap the fix in a version check that raises if the version is 
> not the expected one (that is, the application cannot even boot if you 
> upgrade the gem). And that forces you to revisit that spot instead of 
> relying on memory. A code comment for maintainers does wonders too.
>
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to