<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>refactoring on Maëlle Salmon&#39;s personal website</title>
    <link>https://masalmon.eu/tags/refactoring/</link>
    <description>Recent content in refactoring on Maëlle Salmon&#39;s personal website</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>Licence: &lt;a href=&#34;https://creativecommons.org/licenses/by-sa/2.0/&#34;&gt;CC BY-SA&lt;/a&gt;</copyright>
    <lastBuildDate>Thu, 23 May 2024 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://masalmon.eu/tags/refactoring/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>What I edit when refactoring a test file</title>
      <link>https://masalmon.eu/2024/05/23/refactoring-tests/</link>
      <pubDate>Thu, 23 May 2024 00:00:00 +0000</pubDate>
      
      <guid>https://masalmon.eu/2024/05/23/refactoring-tests/</guid>
      <description>This post was featured on the R Weekly highlights podcast hosted by Eric Nantz and Mike Thomas.
I&amp;rsquo;m currently refactoring test files in a package. Beside some automatic refactoring, I am also manually updating lines of code. Here are some tips (or pet peeves, based on how I look at it / how tired I am 😁)
Prequel: please read the R packages book The new edition of the R Packages book by Hadley Wickham and Jenny Bryan features three chapters on testing, all well worth a read.</description>
    </item>
    
    <item>
      <title>Automate code refactoring with {xmlparsedata} and {brio}</title>
      <link>https://masalmon.eu/2024/05/15/refactoring-xml/</link>
      <pubDate>Wed, 15 May 2024 00:00:00 +0000</pubDate>
      
      <guid>https://masalmon.eu/2024/05/15/refactoring-xml/</guid>
      <description>Once again a post praising XML. 😇 These are notes from a quite particular use case: what if you want to replace the usage of a function with another one in many scripts, without manual edits and without touching lines that do not contain a call to replace?
The real life example that inspired this post is the replacement of all calls to expect_that(..., equals(...)), like expect_that(a, equals(1)), in igraph tests with expect_equal().</description>
    </item>
    
  </channel>
</rss>