<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrew Fitzsimons on Medium]]></title>
        <description><![CDATA[Stories by Andrew Fitzsimons on Medium]]></description>
        <link>https://medium.com/@andrew.fitzsimons?source=rss-3d64503dfc7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ckWTfecvt7J9t1xhirGtGQ.jpeg</url>
            <title>Stories by Andrew Fitzsimons on Medium</title>
            <link>https://medium.com/@andrew.fitzsimons?source=rss-3d64503dfc7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:53:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrew.fitzsimons/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Modeling Android Screen State]]></title>
            <link>https://itnext.io/modeling-android-screen-state-be4223012927?source=rss-3d64503dfc7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/be4223012927</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Andrew Fitzsimons]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 23:03:11 GMT</pubDate>
            <atom:updated>2024-07-30T18:25:52.906Z</atom:updated>
            <content:encoded><![CDATA[<p>In the Android developer world there are numerous ways to bridge the gap between ViewModels and views (XML or Composables) and perhaps even more techniques to manage their states. Throughout my career as an Android developer I have been able to work with a few of them and learned what I like and what I don’t like about particular strategies. I’ve launched new apps and continued supporting them for years and I’ve worked on mature apps, all the while developing new features, refactoring existing code and migrating away from deprecated libraries and APIs. This experience has led me to prefer ViewModels that expose a single observable for the view state. On top of that, I have found that sealed classes (or interfaces) are a powerful tool in managing these states. The approach highlighted in this article will show how to combine sealed classes and data streams in order to manage more complex user experiences. First we’ll walk through an example to showcase the design and then describe some of the benefits.</p><p><a href="https://github.com/fitzsia2/Fox-Maps/tree/main">Fox Maps</a> is a simple map app I created for describing how to use multiple internal streams to . It has a single Activity and a Fragment for the screen displaying the map. When the app first opens, the location permission is requested, if not already granted, and the map is displayed after. We can explore the map and click on some points of interest. Clicking a point of interest opens a bottom sheet with a photo and some information about the selection. We can dismiss the bottom sheet by sliding it off screen or clicking somewhere else on the map.</p><figure><img alt="Three screenshots showing the permission request, map and bottom sheet" src="https://cdn-images-1.medium.com/max/1002/1*NQWqNFBZVHTMmuRkZgAaUg.png" /></figure><p>We can take these requirements and build them into our screen state. When we open the app, we need to check for the proper location permissions. Until we do that, we can display a Loading state.</p><p>Typically, my ScreenState definitions will have a Loading, Error and Loaded implementation. In this case, we don&#39;t need Error so it&#39;s omitted.</p><p>Using sealed classes with Kotlin’s when ensures that all cases are properly handled. In the future, when we add a new state, we have compile time safety to ensure that it’s properly handled. If you’re really on top of it, you’ll have to update your tests too 😉.</p><p>Once we know the state of permissions (granted or denied) we can update our state. Our state can move from Loading to Loaded and Loaded will have a property containing the state of our location. In this example, I implemented LocationState with PermissionDenied, Loading, and WithLocation. Since we might have the permission but don&#39;t have a current location, a Loading state can help us show the user that we&#39;re waiting for the location update from the system. Now that we have these states outlined, we can talk about how to manage the single observable in the ViewModel.</p><p>First we can define screenStateStream in our ViewModel like this:</p><pre>private val _screenStateStream =<br>    MutableStateFlow&lt;ScreenState&gt;(ScreenState.Loading)<br>val screenStateStream = _screenStateStream.asStateFlow()</pre><p>Next, whenever the location permission is updated, we want to update the state. To accomplish that, we can define another stream, locationPermissionStream. We won&#39;t know the value until it comes from the somewhere else, so it can be nullable.</p><pre>private val locationPermissionStream =<br>    MutableStateFlow&lt;LocationPermission?&gt;(null)<br><br>fun setLocationPermission(locationPermission: LocationPermission) {<br>    locationPermissionStream.value = locationPermission<br>}</pre><p>But this won&#39;t be enough to update the screen when we have both permission and the user&#39;s location. We can create another stream for the user&#39;s location and combine it with the permission stream to create a locationStateStream. We can even create a helper for creating this object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c821fb01d62bce7a8ca7277ca8ac9023/href">https://medium.com/media/c821fb01d62bce7a8ca7277ca8ac9023/href</a></iframe><p>Now, in our ViewModel, we can emit updates to screenStateStream when locationStateStream is updated. This is the basis of how to manage screen state. You can extend this pattern and create a state + stream for the bottom sheet and feed that into the screen state the same way. Intermediate streams help by limiting the number of direct dependencies a screen state has while neatly describing how elements of the screen are constructed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/111c3de9242c5a3ea9311c2362daa387/href">https://medium.com/media/111c3de9242c5a3ea9311c2362daa387/href</a></iframe><p>Using internal intermediate streams allows us to create building blocks for our screenStateStream. I find intermediate streams to be very flexible when developing user experiences where elements can hold their own states. On top of flexibility, you can move logic usually found in Fragments or Composables into the sealed interfaces/classes (E.G. the visibility of an element). See ScreenState.mapIsVisible for an example. Doing so supports unit tests rather than relying on integration or UI tests.</p><p>To see more examples of intermediate streams, review <a href="https://github.com/fitzsia2/Fox-Maps/blob/main/app/src/main/java/com/foxmaps/maps/presentation/ScreenState.kt">ScreenState</a> and how its dependencies are created.</p><p>In comparison, another popular approach is to expose a data class with properties as the public observable. This approach leverages the copy function of Kotlin data classes to update individual properties of the state. This approach works well for simple flat interfaces but becomes difficult to manage when the screen state hierarchy begins to grow and deepen. Handling such cases requires type checking in extra and redundant places. In these cases, I find that using intermediate states is best way to go.</p><p>Overall, I find this pattern to be a powerful technique that produces reliable, maintainable and readable code. I&#39;ve had success implementing new features for all kinds of apps and use cases. If you&#39;re struggling to build more complex features, I definitely recommend trying it out and wish you success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be4223012927" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/modeling-android-screen-state-be4223012927">Modeling Android Screen State</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DownloadManager & Clean Architecture | Ackee blog]]></title>
            <link>https://medium.com/@andrew.fitzsimons/downloadmanager-clean-architecture-ackee-blog-3ac40b016430?source=rss-3d64503dfc7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac40b016430</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <dc:creator><![CDATA[Andrew Fitzsimons]]></dc:creator>
            <pubDate>Thu, 03 Aug 2023 11:05:20 GMT</pubDate>
            <atom:updated>2024-07-30T16:31:59.579Z</atom:updated>
            <content:encoded><![CDATA[<h3>DownloadManager &amp; Clean Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Djqv-il2Ae3W6mAN.png" /></figure><p><a href="https://www.ackee.agency/blog/glossary/android">Android</a> offers a few options for downloading remote files. Each solution has its own tradeoffs. Without getting into those tradeoffs, I’d like to offer a more complete example of how you can use DownloadManager to, well, manage your downloads.</p><h3>DownloadManager</h3><p>DownloadManager offers a pretty simple API for downloading files. You can create DownloadManager.Request, pointing to the URI of the remote file, set the destination of where you would like the file to be downloaded and some other options, such as the title and description of the notification shown by the system (a nice feature of DownloadManager). Once enqueued, the Android system takes over and manages the rest for you. The user is free to close the app or switch to another app while the file is downloading. Progress is also shown by a system notification.</p><p>To begin, I will assume that you already have an API which gives some basic information about available downloads (name and URI). I will use a simple data class for this information.</p><pre>data class RemoteFileMetadata(val name: String, val uri: String)</pre><p>From the high level, what does our app need to know about our download? We need to know if the file is already downloaded if it is being downloaded, or if there was an error. We can create CachedFileState to model our domain data:</p><pre>sealed interface CachedFileState {<br><br>    val metadata: RemoteFileMetadata<br><br>    data class NotCached(<br>        override val metadata: RemoteFileMetadata<br>    ) : CachedFileState<br><br>    data class Cached(<br>        override val metadata: RemoteFileMetadata,<br>        val downloadedFile: DownloadedFile<br>    ) : CachedFileState<br><br>    data class Error(<br>        override val metadata: RemoteFileMetadata,<br>        val reason: DownloadError<br>    ) : CachedFileState<br><br>    data class Downloading(<br>        override val metadata: RemoteFileMetadata<br>    ) : CachedFileState<br>}</pre><p>This is all the information that our domain layer needs to know about. If your app needs to support extra states such as pending or paused, I would suggest you add those as implementations of CachedFileState.</p><p>Our data layer will be responsible for creating CachedFileState based on the information available from DownloadManager.</p><p>DownloadManager uses system services to manage the download even outside of our own app. But what happens when the app is resumed? If your app was closed, we will not have the id returned by the DownloadManager.enqueue() API. That means we need to query DownloadManager to find our download. In most cases, the URI should be unique so we can use that to find the status of our download. If your URIs are not well known, you will need another value to manage their identity. That information can be included in the DownloadManager. Request and queried later to match the data. Here is where things get a little less convenient.</p><p>DownloadManager’s query gives us a Cursor. Cursors have become less common in modern Android development but for our case, it is not too complicated. We simply need to use our URI to find our download id and then translate data from the Cursor into our own. Since other parts of our app do not need to know that we are using DownloadManager, it is a good idea to create our own objects and protect our other components from any dependencies on DownloadManager.</p><p>DownloadManager documentation describes 5 states: pending, running, paused, successful and error. I found it useful to create my own classes around these states.</p><pre>private sealed interface RemoteDownload {<br>    val id: Long<br>    val remoteUri: String<br><br>    data class Pending(...) : RemoteDownload<br>    data class Running(...) : RemoteDownload<br>    data class Paused(...) : RemoteDownload<br>    data class Successful(...) : RemoteDownload<br>    data class Failed(...) : RemoteDownload<br>}</pre><p>Since DownloadManager will only return data related to our app, we can query it without any filters and map each cursor to a RemoteDownload. Once we have a collection of RemoteDownloads it is easy to map these to CachedFileStates and provide them to our repository. Another thing to note is that working with Cursors can block threads, so it’s important to wrap these operations with withContext(Dispatchers.IO). It is a good practice to inject these dispatchers where you need them instead of depending on Dispatchers.IO directly.</p><p>Now, that we have an easy way to query DownloadManager, we need to <a href="https://www.ackee.agency/blog/glossary/design">design</a> our repository. In modern apps, Flow is king. So, let’s expose a list of CachedFileStates through a Flow like:</p><pre>interface FileRepository {<br>    ...<br>    fun getCachedFileStateStream(metadata: List&lt;RemoteFileMetadata&gt;): Flow&lt;List&lt;CachedFileState&gt;&gt;<br>}</pre><p>Unfortunately, we’re only able to poll our data source for the status, so we’ll need to implement it with a Flow builder and delay.</p><pre>class FileRepositoryImpl : FileRepository {<br>    ...<br>    override fun getCachedFileStateStream(metadata: List&lt;RemoteFileMetadata&gt;): Flow&lt;List&lt;CachedFileState&gt;&gt; {<br>        return flow {<br>            while (true) {<br>                val cacheStates = metadata.map { getCacheState(it) }<br>                emit(cacheStates)<br>                delay(DOWNLOAD_STATE_POLL_PERIOD)<br>            }<br>        }<br>    }<br>}</pre><p>This works fine, and we can even test it. 🎉 You can find some example tests in my repo.</p><p>We can optimize this further by sharing the returned flow. This way, we will not have a process polling the download manager for each observer of the stream. 💪 Since the flows returned here depend on metadata, we need to cache them. I’ve wrapped the operation in withContext() to ensure access to our cache is thread safe.</p><pre>class FileRepositoryImpl(<br>    private val appCoroutineScope: AppCoroutineScope,<br>    private val appDispatchers: AppDispatchers,<br>    private val localFileDataSource: LocalFileDataSource,<br>    private val remoteFileDataSource: RemoteFileDataSource,<br>) : FileRepository {<br><br>    private val metadataCachedFileStateStreamMap = <br>       mutableMapOf&lt;List&lt;RemoteFileMetadata&gt;, Flow&lt;List&lt;CachedFileState&gt;&gt;&gt;()<br><br>    override suspend fun getCachedFileStateStream(metadata: List&lt;RemoteFileMetadata&gt;): Flow&lt;List&lt;CachedFileState&gt;&gt; {<br>        return withContext(appDispatchers.main) {<br>            val cachedFileStateStream = metadataCachedFileStateStreamMap[metadata] ?: flow {<br>                while (true) {<br>                    val cacheStates = metadata.map { getCacheState(it) }<br>                    emit(cacheStates)<br>                    delay(DOWNLOAD_STATE_POLL_PERIOD)<br>                }<br>            }<br>                .distinctUntilChanged()<br>                .shareIn(<br>                    scope = appCoroutineScope,<br>                    started = SharingStarted.WhileSubscribed(),<br>                    replay = 1<br>                )<br>            metadataCachedFileStateStreamMap[metadata] = cachedFileStateStream<br>            cachedFileStateStream<br>        }<br>    }<br>}</pre><p>To use shareIn() we need a common coroutine context. Since our repository should be a singleton, we can inject a coroutine scope created at the app level or, while testing, from our tests.</p><h3>Architecture</h3><p>This design tries to follow clean code and clean architecture practices. It is important to avoid as much logic as possible in the data sources since they are usually more difficult to test. Data sources usually depend on external libraries such as in our case DownloadManager or a remote API. Making them as simple as we can allows us to create our own implementations that we can use for testing.</p><p>Check out <a href="https://github.com/fitzsia2/Download-Manager-Example">my repository</a> for the full source code!</p><p><em>Originally published at </em><a href="https://www.ackee.agency/blog/downloadmanager-and-clean-architecture"><em>https://www.ackee.agency</em></a><em> on August 3, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac40b016430" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You, me and Git rebase]]></title>
            <link>https://medium.com/ackee/you-me-and-git-rebase-ackee-blog-a0cc3742d835?source=rss-3d64503dfc7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0cc3742d835</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-rebase]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Andrew Fitzsimons]]></dc:creator>
            <pubDate>Tue, 30 Nov 2021 13:52:01 GMT</pubDate>
            <atom:updated>2022-04-25T09:11:13.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*CwV0dAxTrimoSlyBfZ103w.png" /></figure><p>Developers need to make things that work but we are the ones who are responsible for the code that we produce. We make a lot of decisions about that code. How it’s formatted, how it is organized, how it is architected and so on. We are also responsible for how it is recorded. We use tools such as Subversion and Git and we use services like GitLab and GitHub. These tools and services often impact how we record and document our software and the changes we make. They enable us to share code across teams, review and merge changes, suggest improvements and find bugs. They are vital tools that we need to be familiar with. That is why I would like to share how I use Git rebase to help improve the history of changes I make and help you to make the most beautiful Git history that we can.</p><h3>Git rebase: intimidating and interactive</h3><p>Whether you’re fixing bugs, migrating APIs or creating new features, I think that the capabilities of rebasing are often overlooked. Git can be intimidating. Anyone who’s familiar with Git probably knows how to stage some changes, create a commit and push their changes. This is usually enough for us to start working and feel productive. Maybe you use some tools for merging and rebasing and that’s great! These tools get the job done. But what happens when you open a merge request and the reviewer finds some formatting issue, suggests a better name or finds a potential bug? At Ackee, I prefer to go through each comment, fix my changes and create a commit which I can reply to the reviewer with. This strategy saves time for the reviewer, who can quickly check that the suggestion was addressed in a specific commit. I think that this is a great way to stay organized and author good merge requests. The problem is that what may have started as a single commit merge request could now have many commits. For the reviewer, it’s great, but for the history of your files, it’s not so great. Thankfully, some tools can help solve this issue. For example, GitLab offers an option to squash commits before merging.</p><h4>I squash it all, so who cares?</h4><p>Squashing an entire merge request is a great option if our merge request changes can fit nicely into a single commit and the commits that we made from the review are not valuable for the history (such as formatting or an off-by-one bug). But what happens when we make some commits which are valuable to the history of our code? One example might be that you need to modify an existing <a href="https://www.ackee.agency/blog/glossary/api">API</a> in order to enable some new features. You start by modifying the <a href="https://www.ackee.agency/blog/glossary/api">API</a> and then you implement the feature. Let’s look at what the git history might look like in this scenario.</p><h4>The situation</h4><pre>* C68ADDC54 (21-01-07 15:00) Implement feature A<br>* 4DE8B588D (21-01-07 09:00) Extend myExampleApi() with parameters<br>...older commits</pre><p>We have a nice history here. You can see how myExampleApi() is changed independently from implementing feature A. It would be nice to keep these two commits in our history.</p><h4>Time to open a merge request</h4><p>Let’s say that our reviewer finds some issues related to the changes in our first commit and has some comments related to our implementation of feature A. We will create some new commits and add them to the merge request. Now, our history will look something like this:</p><pre>* 972AAEf3F (21-01-07 17:00) Split functionality into another module <br>* BAF1AA554 (21-01-07 16:03) Update documentation<br>* A23EE0A4E (21-01-07 16:00) Fix issue in myExampleApi() changes<br>* C68ADDC54 (21-01-07 15:00) Implement feature A<br>* 4DE8B588D (21-01-07 09:00) Extend myExampleApi() with parameters<br>...older commits</pre><p>Our reviewer agrees to the updates and allows us to merge but now our history is not really nice to look through.</p><h4>Git rebase: step back</h4><p>Let’s take a moment to see why we want to improve the history here. Maybe we introduced a bug in our commit C68ADDC54 (15:00) Implement feature A and no one notices for another week or so. By then there are more changes to the feature. Someone could investigate the Git history while debugging and the history could look something like</p><pre>* EE3AB1123 (21-01-14 12:33) Change background color<br>* AF2C8DD99 (21-01-10 12:33) Update feature A<br>* 972AAEf3F (21-01-07 17:00) Split functionality into another module<br>* A23EE0A4E (21-01-07 16:00) Fix issue in myExampleApi() changes<br>* C68ADDC54 (21-01-07 15:00) Implement feature A <br>...older commits</pre><p>It’s our responsibility to leave code in a better state than when we found it. Now, our colleague needs to look through each of the commits to check when the bug was introduced. Do they really care about these extra commits?</p><pre>972AAEf3F (21-01-07 17:00) Split functionality into another module A23EE0A4E (21-01-07 16:00) Fix issue in myExampleApi() changes</pre><p>I don’t think so, and I would argue that they make it more difficult to look through the history (this is just an example, the history could be much longer and contain a lot more changes). It would be a lot better if we had just the one commit.</p><pre>* C68ADDC54 (21-01-07 15:00) Implement feature A</pre><p>These changes are nice and isolated. You don’t have to look through changes to myExampleApi() which are unrelated. So, let’s use Git’s interactive rebase to rewrite the history of our changes before we merge.</p><h4>Down to the Git rebase business</h4><p>First we need to identify how many commits we need to modify. The commits in our merge request currently look like this.</p><pre>* 972AAEf3F (21-01-07 17:00) Split functionality into another module * BAF1AA554 (21-01-07 16:03) Update documentation<br>* A23EE0A4E (21-01-07 16:00) Fix issue in myExampleApi() changes<br>* C68ADDC54 (21-01-07 15:00) Implement feature A<br>* 4DE8B588D (21-01-07 09:00) Extend myExampleApi() with parameters<br>...older commits</pre><p>We need to modify all five commits.</p><p>Now, before we start, I suggest that you take notice of the current commit id 972AAEf3F . Since we’re rewriting history, it’s nice to be able to undo things in the case that something goes wrong. You can use this commit id to reset yourself with git reflog. I suggest you check the <a href="https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery">official documentation </a>for more about that (see Data Recovery section).</p><p>Ok, let’s start. The first command will be:</p><pre>git rebase -i head~5</pre><p>This means that we want to interactively rebase the last five commits. At this point, whatever editor you have configured will appear with the following:</p><pre>pick 4DE8B588D Extend myExampleApi() with parameters<br>pick C68ADDC54 Implement feature A<br>pick A23EE0A4E Fix issue in myExampleApi() changes<br>pick BAF1AA554 Update documentation<br>pick 972AAEf3F Split functionality into another module</pre><p>You may notice that the order is reversed. The top commit is the first commit. There is also some documentation about the available commands. I suggest you read this to learn more on your own. The first thing we want to do is rearrange the order of commits. Use the editor to arrange them like this:</p><pre>pick 4DE8B588D Extend myExampleApi() with parameters<br>pick A23EE0A4E Fix issue in myExampleApi() changes<br>pick C68ADDC54 Implement feature A<br>pick BAF1AA554 Update documentation<br>pick 972AAEf3F Split functionality into another module</pre><p>Now, if we save and close this file, our history will be saved. But, we’re not done yet! We can use the fixup command to combine these commits. Modify the file to fixup commits:</p><pre>A23EE0A4E BAF1AA554 972AAEf3F.</pre><pre>pick 4DE8B588D Extend myExampleApi() with parameters<br>fixup A23EE0A4E Fix issue in myExampleApi() changes<br>pick C68ADDC54 Implement feature A<br>fixup BAF1AA554 Update documentation<br>fixup 972AAEf3F Split functionality into another module</pre><h4>Clean</h4><p>And that’s it! You can save and close this file and your history will be rewritten to look like our original commit history but with all the improvements from our merge request. Check the history for yourself!</p><pre>* D9655EF5A (21-01-07 15:00) Implement feature A<br>* 917574782 (21-01-07 09:00) Extend myExampleApi() with parameters<br>...older commits</pre><p>Overall, I don’t think that it’s so tricky or time consuming. I think that it could even save you time in the future if you need to track down when a bug first appeared. If you have more questions or are interested in learning more I recommend reading the <a href="https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History">git-scm pages</a>. I always find their explanations and examples to be very helpful. Good luck improving your history!</p><p><em>Originally published at </em><a href="https://www.ackee.agency/blog/git-rebase"><em>https://www.ackee.agency</em></a><em> on November 30, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0cc3742d835" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ackee/you-me-and-git-rebase-ackee-blog-a0cc3742d835">You, me and Git rebase</a> was originally published in <a href="https://medium.com/ackee">Ackee</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>