<?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 Alex Sharov on Medium]]></title>
        <description><![CDATA[Stories by Alex Sharov on Medium]]></description>
        <link>https://medium.com/@AskAlexSharov?source=rss-5448381cb6e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4IszR7xgGbfCXlXWyuKbEw.jpeg</url>
            <title>Stories by Alex Sharov on Medium</title>
            <link>https://medium.com/@AskAlexSharov?source=rss-5448381cb6e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:16:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AskAlexSharov/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[Things I don’t know by 2019]]></title>
            <link>https://medium.com/@AskAlexSharov/things-i-dont-know-by-2019-a8bf977cf790?source=rss-5448381cb6e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8bf977cf790</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[inspiration]]></category>
            <dc:creator><![CDATA[Alex Sharov]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 04:56:34 GMT</pubDate>
            <atom:updated>2019-01-28T09:12:43.865Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*68gmdmCGT0YdZG1ATGyj1w.jpeg" /></figure><p>I don’t change companies often enough — and feel really hungry for shiny new technology/methodology</p><p><strong>This post is about programming tools and methodologies I wish to know, but still don’t</strong></p><p><strong>Kuber:</strong> even we had it in production, but Kuber is such a big and dynamic universe, with super short “<a href="https://en.wikipedia.org/wiki/Half-life_of_knowledge">half-life of our knowledge</a>”. Recent <a href="https://medium.com/@daniel.p.woods/on-infrastructure-at-scale-a-cascading-failure-of-distributed-systems-7cff2a3cd2df">cascade failure</a> showing how much more we need to know/invest to build reliable distributed systems</p><p><strong>GraphQL:</strong> pretty easy! Until you try to write DataBase for it: <a href="https://tour.dgraph.io/blocksvars/3/">https://tour.dgraph.io/blocksvars/3</a>. I wounder — how to write GraphQL API service with DGraph under the hood. Maybe I will have time to implement crawler to grab data into DGraph about Golang stdlib functions: examples from real big projects on GitHub, links to Articles, Videos, etc… Kind of “godoc on steroids”!</p><p><strong>Blockchain:</strong> In 2018 had contributed a bit to Eth Swarm: <a href="https://github.com/ethereum/go-ethereum/pull/17782">PR-17782</a>, <a href="https://github.com/ethereum/go-ethereum/pull/">PR-18083</a>. Passed courses: <a href="https://cryptozombies.io/">Cryptozombies</a>, <a href="https://blockchain.berkeley.edu/courses/">Barkley</a>. But it’s such a huge tech knowledge area. With crazy problems and wildest dreams.</p><p><strong>Networking stack:</strong> I’v read few great books: <a href="http://www.stolyarov.info/books/programming_intro/vol3">From professor my University</a>, <a href="https://www.amazon.com/TCP-Network-Administration-OReilly-Networking/dp/0596002971">TCP/IP Network Administration</a>, <a href="http://[">AWS Certified Solution Architect</a> (so — I play much with VPC), Dived deep in <a href="https://github.com/libp2p/go-libp2p">New P2P Go library made by IPFS team</a>. But when i talking with Network Engineers — I understand only 30% of their words… I wounder that it’s not my problem ;-)</p><p><strong>New SQL: </strong>really wish to have production experience with CockroachDB or TiDB. Had no chance. We using home-brewed analog of vitess.io</p><p><strong>HashiCorp Configuration Language:</strong> friends recommended, maybe it’s a golden grail and fixed all problems of json/yaml files</p><p><strong>Serverless:</strong> “isolated short-living functions, no shared memory” — hmmm… sounds familiar… isn’t it PHP? Yeah! I used Firebase a bit. Didn’t touch anything else</p><p><strong>Service Mesh: </strong>I tried my best to configure istio.io locally… Gave up.</p><p><strong>Python: </strong>Passed few DataProcessing courses with Python… But, no, i’m very beginner here. Just no reason to study</p><p><strong>Algorithms: </strong>Read great book <a href="https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/098478280X">Cracking Coding Interview</a>. Now reading about Linear Algebra <a href="http://web.mit.edu/ehliu/Public/sclark/Golub%20G.H.,%20Van%20Loan%20C.F.-%20Matrix%20Computations.pdf">Matrix Computations</a>. Succeed with interview question “Write on Whiteboard LRU cache with O(1) get/set”. Wanna study more about approximate/probability/streaming Algorithms</p><p><strong>Mentoring: </strong>6 years ago I was paid for 1 great guy mentoring about PHP and Yii. That guy’s startup succeed. But since that time I never did it for money, only as part of teams leading activity. I wounder if it’s a good idea to start Mentoring practice again. Now that head has much more practical knowledge, can do it more systematic. Probably will try this year</p><p><strong>Whiteboard Drawing:</strong> oh, I’m such a bad painter, did practice few times, but regular practice needed here</p><p><strong>Ionic/ReactNative:</strong> After touching Swift mobile apps — realized that no reasons to study whole new world of XCode/Layouting/etc… Feels that CSS+HTML are enough good for me. Then played around Ionic and ReactNative, but didn’t release any app. Maybe I will try again with new shiny Ionic4 and ReactHooks</p><p><strong>Functional languages:</strong> had play with Haskell, Elm, OCaml — only play. It’s fun enough, my Opinion is — pure functional languages are great if you need DSL inside your system. Because all side-effects will delegated to your platform. So, you will able to do great caching opportunity. For example Gradle suffering from uncontrolled side-effects inside build tasks. <a href="https://bazel.build/">Bazel</a> created own Starlark language just to prohibit any side-effects and delegate them to platform. From another point of view — all server-side programs and all mobile apps can’t do any side effects — they doing SysCalls to OS and OS doing dirty work for them. Then all our programs are DSLs inside OS… Anyway I’m not professional here</p><p><strong>RX in Java and JS:</strong> Great abstraction, but if need to run .unsubscribe() manually, then you doing manual garbage collection — then it’s poor abstraction. Maybe I just don’t know how to cook it</p><p><strong>TypeScript: </strong>This baby I used a lot! But… how to write type definition for some existing JS lib? Omg! It’s so hard!</p><p><strong>Transparency: </strong>Helps to get cool friends, feedback, trust. But it’s not in Russian culture. I just doing first small steps here… Still shy to posting by Facebook… Only <a href="https://twitter.com/AskAlexSharov">Twitter</a>, <a href="https://medium.com/@AskAlexSharov/">Medium</a>, <a href="https://www.reddit.com/user/AskAlexSharov">Reddit</a> and <a href="https://www.linkedin.com/in/AskAlexSharov/">LinkedIn</a> for now. Writing and Self-Reflection takes tons of time… But practice will simplify everything, just need few months</p><p><strong>English:</strong> Oh, yes, baby. Here mostly self-thought, rare meeting native-speakers and even have no idea how bad I’m :-)</p><p>Regardless our skill/job level — we missing tons great topics/people/tools. It can affect us — drop self-confidence level</p><p>I may never know thing X. And it’s fine, can study X crazy-fast in a proper time, or rise question about X for my friends around the globe — they have different experience/knowledge</p><p>PS: I’m on the right of photo. Thanks, Dan, for <a href="https://overreacted.io/things-i-dont-know-as-of-2018/">inspiration</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8bf977cf790" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Idiomatic Go: test suites available in standard library]]></title>
            <link>https://medium.com/@AskAlexSharov/idiomatic-go-test-suites-available-in-standard-library-3bbf802fd3df?source=rss-5448381cb6e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bbf802fd3df</guid>
            <category><![CDATA[idiomatic-go]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Alex Sharov]]></dc:creator>
            <pubDate>Sun, 20 Aug 2017 16:21:40 GMT</pubDate>
            <atom:updated>2017-08-20T16:21:40.446Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbO-7Dl3Pj9xfBPBp4It-g.png" /></figure><p>After 2 years having Go in production we end up with <a href="https://labix.org/gocheck">https://labix.org/gocheck</a>. Because in that time was not obvious: how, based on “testing” package, implement “SetUp/TearDown” methods for Suites and Tests. But now it’s easy and idiomatic.</p><p>First of all, go providing “<a href="https://golang.org/pkg/testing/#hdr-Main">testing.M</a>” object to have SetUp/TearDown for package:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fc1fcf2c9171303d9d483a092dc0223/href">https://medium.com/media/2fc1fcf2c9171303d9d483a092dc0223/href</a></iframe><p>Notice: “testing.Short()” — standard way to separate integration/unit tests and benchmarks(actually short/slow tests, but i assume that integration tests are slow). “go test -short” to run only units. Example in <a href="https://golang.org/pkg/testing/">Docs</a>.</p><p>Your best choice is “<a href="https://github.com/golang/go/wiki/TableDrivenTests">table driven tests</a>” pattern. And about each table you can think as about Suite:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/beca79bd0854f6c0002b25cd0c3281b2/href">https://medium.com/media/beca79bd0854f6c0002b25cd0c3281b2/href</a></iframe><p>Notice: You can wrap “for” loop into t.Run() call to give name for Suite and make it possible to run it individually or by prefix: <br>“go test -run Example/SuiteName”</p><p>Anti-pattern example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3adaade436163aff2f6759758dfc5176/href">https://medium.com/media/3adaade436163aff2f6759758dfc5176/href</a></iframe><p>Notice: Don’t move logic to tables. It shows that you don’t understand enough deep function which you test or function is not well written. After few iterations you will find way — how to convert list of tests to 1–2 tables and it will simplify tests and code of application.</p><p>In result, by using only standard library of Go, we can:</p><ul><li>SetUp/TearDown package, suite and test</li><li>Store unit and integration tests in same package — as close to code as</li><li>Run group of tests parallel — which a bit harder to write, but helps to catch race conditions</li><li>Move common code and initialization of mocks/context/other objects out of tests — cleaner tests</li><li>Run exact test or all by prefix: <a href="https://golang.org/pkg/testing/#hdr-Subtests_and_Sub_benchmarks">Docs</a></li><li>All the same for Benchmarks</li><li>All the same will work for Fuzzing <a href="https://github.com/golang/go/issues/19109">soon</a>, i hope</li></ul><p>So, Go community already has more flexible tool then just Test Suites. Show it to your colleagues and friends, it will help to use common way of dealing with tests in existing projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bbf802fd3df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>