<?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 Stephen Solka on Medium]]></title>
        <description><![CDATA[Stories by Stephen Solka on Medium]]></description>
        <link>https://medium.com/@trashhalo?source=rss-eee08cdb9ca5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BpZ3svn_-FsSRY2F.png</url>
            <title>Stories by Stephen Solka on Medium</title>
            <link>https://medium.com/@trashhalo?source=rss-eee08cdb9ca5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:43:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trashhalo/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[Microservice Comparison]]></title>
            <link>https://medium.com/@trashhalo/microservice-comparison-63ed53a47a6c?source=rss-eee08cdb9ca5------2</link>
            <guid isPermaLink="false">https://medium.com/p/63ed53a47a6c</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[crystal-lang]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Stephen Solka]]></dc:creator>
            <pubDate>Thu, 23 Aug 2018 13:02:58 GMT</pubDate>
            <atom:updated>2018-08-23T13:02:58.828Z</atom:updated>
            <content:encoded><![CDATA[<p>Build a simple microservice in three languages to have a solid baseline to compare implementation time.</p><p><a href="https://github.com/trashhalo/microservice-comparison">trashhalo/microservice-comparison</a></p><h3>Workflow</h3><p>1. Download json data from reddit<br>2. Transform it to a different structure<br>3. Return transformed data</p><p>This is a very common pattern for microservices. Slightly bigger than a hello world and forces you to bump into some platform warts.</p><h3>Summary</h3><p><strong>Golang</strong> is in a sweet spot of simple syntax, fast compiled language, rich standard library and age of platform. I would recommend it to any team looking to build on a solid platform.</p><p><strong>Crystal</strong> is a beautiful language. The standard library is rich and well thought out. Type inference mostly just works. The size of the community, age of the language and issues teams have hit trying scale up to larger systems will keep me away from recommending it for anything other than side projects.</p><p>I want to like <strong>Rust</strong>. This is my second time implementing something in rust. They have done a great job writing documentation around the language. <a href="https://doc.rust-lang.org/book/2018-edition/index.html">Rust book is massive</a>. My main issue with rust comes when you start to wade outside the standard library.</p><p>You have to chose your own destiny on concurrency primitives, http clients, servers, routers even byte buffers come from external crates. Hopefully you pick libraries that work together. Good luck if your team goes through an open source audit.</p><h3>Detailed thoughts on implementations</h3><h4>Rust</h4><p><a href="https://en.wikipedia.org/wiki/Rust_(programming_language)">Rust (programming language) - Wikipedia</a></p><p>Rust requires a larger investment in time to get moving. Larger being defined as a hour or two of reading about memory management for a senior engineer will get you started. Errors are normally helpful at suggesting next steps.</p><p>Batteries were not included. Have to go out and decide which async library / http server is right for your project. To do this basic workflow brought in 150+ transitive dependencies.</p><p>Many of the code examples out there are using use xxx::*; which makes it hard to understand where things are coming from. Avoid use* while you are learning.</p><p>Originally tried to go with <a href="https://github.com/hyperium/hyper">hyper http client</a> until I realized hyper’s http examples don’t support https. Decided to go with <a href="https://github.com/seanmonstar/reqwest">reqwest</a> but the current version of <a href="https://github.com/seanmonstar/reqwest/issues/323">reqwest’s docs are broken</a>.</p><h4>Golang</h4><p><a href="https://en.wikipedia.org/wiki/Go_(programming_language)">Go (programming language) - Wikipedia</a></p><p>Implementation-wise was pretty straight forward. Deep generic JSON access was really ugly and involved a lot of type casting. Went with a defined JSON type to clean up the code.</p><p>Go has a standard http server but routing is third party. Went with <a href="https://echo.labstack.com/">echo</a> because the documentation and error handling was helpful. Used std JSON support but its <a href="https://github.com/golang/go/issues/5683">known to be slow</a>. Consider picking a third party library if your payloads are large.</p><p>Implementation brought in 11 transitive dependencies.</p><p>Note: Reddit seems to be blacklisting go’s http agent. Consistent 429s until I changed it.</p><h4>Crystal</h4><p><a href="https://en.wikipedia.org/wiki/Crystal_(programming_language)">Crystal (programming language) - Wikipedia</a></p><p>Youngest language. Smallest implementation. Code is very ruby like. I appreciate the JSON builder concept the<a href="https://crystal-lang.org/api/0.23.1/JSON.html"> standard library</a> provides. Release build can spike in time to 5 seconds. <a href="https://www.reddit.com/r/crystal_programming/comments/98s10f/will_crystal_survive/">Build time horror stories on reddit</a> make me nervous about using it for anything serious.</p><p>Standard library wise similar situation to golang in that http server built in router is third party. Implementation brought in 4 transitive dependencies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63ed53a47a6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oh No! My Git History Is A Mess!!]]></title>
            <link>https://medium.com/upside-engineering/oh-no-my-git-history-is-a-mess-cd3ef01c7434?source=rss-eee08cdb9ca5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd3ef01c7434</guid>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Stephen Solka]]></dc:creator>
            <pubDate>Wed, 09 Aug 2017 17:43:53 GMT</pubDate>
            <atom:updated>2017-08-09T17:56:21.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiuAyfDRLIr6ZKutQWbJZQ.gif" /></figure><p>It’s a common problem with git after merging or rebasing to have a history that no longer makes sense. Perhaps you tried to get fancy and do an interactive rebase. Or maybe you were just pulling down changes and had conflicts and now your branch won’t boot. All of this can be fixed using three git commands.</p><h4>Reset Hard</h4><p>Deletes your working changes and moves your branch to a specific commit. As long as you committed your changes at some point in the past your changes will be recoverable.</p><h4>Reflog</h4><p>Every action that you do to a git repo creates a pointer in something called the reflog. You can see all of these records by invoking the reflog. There are even pointers to branches that no longer exist.</p><h4>Cherry Pick</h4><p>This command allows you to take a commit from anywhere in time and place it onto your branch.</p><h3>With their powers combined</h3><p>Now that the basics are covered it’s time to fix your history using the three commands above.</p><pre># get the most recent changes from your remote server<br>git fetch -a<strong><br></strong># this is the point where you need to stash changes in your working copy if you want to keep them<br># git stash (optional)<br># move your branch to the head of master<br>git reset — hard origin/master<br># your branch is now in a pristine state like you just made it ready to work<br># list the commits you have made to the repo<br>git reflog |grep commit</pre><h3>Reflog Output</h3><pre>cfa4d873 HEAD@{2}: commit: COR-11990 bumping request logger to get crash fix<br>8c051139 HEAD@{6}: commit: Minor bump to improve logging for nested routes<br>395eb4e7 HEAD@{10}: commit: COR-11777 adding request logger to get performance stats and logging<br>3b043ba2 HEAD@{17}: commit: Short lived cache on roles to reduce impact on endpoints<br>7b4444ee HEAD@{21}: commit: test needs a thing<br>e5f55a4a HEAD@{22}: commit: using coredb</pre><p>Above is a sample of what you will see when running reflog. Identify which of these lines represents the commits you wish to keep. Execute a cherry pick on each of these commits. Go in order of oldest to newest.</p><pre>git cherry-pick e5f55a4a<br>git cherry-pick 7b4444ee</pre><p>As you execute each cherry pick there may be conflicts. Take a moment to fix it and commit before continuing to the next cherry pick.</p><h3>Inspect your work</h3><p>To see a visualization of your changes execute a graphed log statement</p><pre>git log --graph --oneline --decorate</pre><p>If your fix was a success you should see a * that represents origin master then a flat line of * above it representing the cherry picked commits.</p><h3>Send your changes to the remote</h3><p>Now that you have fixed the history of your branch it is time to send the changes back up to the server.</p><pre>git push origin branch_name<strong><br></strong># WAIT! Git refused to accept your changes :(</pre><p>By default git does not like us rewriting history. When you make a change like this the only way to put your changes back on the server is to execute a force push. Take this moment to verify you are not on master and are on a development branch.</p><pre>git rev-parse --abbrev-ref HEAD<strong><br></strong># assuming that says your branch name you are ready to force push<br>git push --force origin branch_name</pre><h3>Summary</h3><p>You have reset your branch to the most recent commit on master. Used reflog to find the older commits you cared about. Then placed the identified commits back into your branch with cherry-pick. Your git history went from looking like a tangled web of lines to a flat list of commits. Congratulations!</p><p>Want to talk git with <a href="https://www.linkedin.com/in/stephensolka/">Stephen</a>? Check out our open engineering positions and start working with Stephen at Upside today: <a href="http://upsd.io/2vOytt0">http://upsd.io/2vOytt0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd3ef01c7434" width="1" height="1" alt=""><hr><p><a href="https://medium.com/upside-engineering/oh-no-my-git-history-is-a-mess-cd3ef01c7434">Oh No! My Git History Is A Mess!!</a> was originally published in <a href="https://medium.com/upside-engineering">Upside Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>