<?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 Lachlan Ford on Medium]]></title>
        <description><![CDATA[Stories by Lachlan Ford on Medium]]></description>
        <link>https://medium.com/@Ludum_Ford?source=rss-6407e757aefc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v3o2JjUsZt08LyIM8EparA.png</url>
            <title>Stories by Lachlan Ford on Medium</title>
            <link>https://medium.com/@Ludum_Ford?source=rss-6407e757aefc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:28:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Ludum_Ford/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[Novice Software Engineer Tips]]></title>
            <link>https://medium.com/@Ludum_Ford/novice-software-engineer-tips-498d0aa12c64?source=rss-6407e757aefc------2</link>
            <guid isPermaLink="false">https://medium.com/p/498d0aa12c64</guid>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Lachlan Ford]]></dc:creator>
            <pubDate>Mon, 19 Aug 2019 15:01:01 GMT</pubDate>
            <atom:updated>2019-08-20T04:14:25.661Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>5.1 Tips For Fledgling Software Engineers</strong></h3><p><strong>Tips for fledgling software engineers you might find useful.</strong></p><p>In conversation with an acquaintance that was entering the fantastic field of software engineering, I was asked what some useful tips for a novice software engineer entering the field would be. Since I had not given it much thought in the past I babbled out some kind of answer off the cuff which was barely coherent but was useful enough for my friend to be reasonably satisfied. Since that version of this list had some utility I thought I might take the time to noodle through it further and see if I could produce a more refined version.</p><p>Without further delay, here are 5.1 hopefully useful tips for fledgling software engineers getting their beaks sticky and eye bags calloused in the wonderful world of software engineering. Some of these I think are counter-intuitive and not often emphasized, but I have found them quite useful.</p><p><strong>When and what to optimize?</strong></p><p>Novice engineers will tend to early optimize. Whether this be run-time complexity or space complexity. This can be well and good and produce more efficient code but will often come at the cost of productivity. Like most things in the pragmatic world of professional software engineering this is a balancing act.</p><p>A third factor not often considered is life optimization[1]. Sure binary search is the classic O(logn) blue hedgehog of simple search algorithms but its implementation may end up taking more of your finite lifetime than anticipated, not to mention increasing code entropy and complexity[2], whereas the humble linear search is easy, simple and fast to implement. Unless there is a library for the complicated method, stick to the simple and easy method. Especially since that in most cases, the optimization is of a small part of the overall system AND the data you are operating on is likely bounded. Computers are fast these days, so the real time performance difference will likely be negligible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*psGpCOcL9RWKNCTA" /></figure><p>Most everyday performance gains will be from your choice of data-structures (which will inform your choice of algorithms) in your implementations.</p><p>Performance may also not be as predictable as you think. A wiser strategy is to consider your program as a whole and use profiling tools to discover the real performance sinks.</p><p><strong>Failing to aim for understanding</strong></p><p>Often, novices will dive into a problem without grasping the system they are working in to the extent that they can.</p><p>The ability to intuit what to ignore and what information to seek is a skill that is developed from working in a codebase for an extended period of time, and only really developed after most of the system is understood. Often novices will feel that the time investment to understand a system is not worth the upfront cost, which delays the resolution of their immediate problem. This is a trade of long term productivity to short term productivity.</p><p>Most everyday software engineering problems will show themselves to be trivial or obvious once their domain is understood. The answers will make themselves apparent.</p><p>Productivity may also be killed by changing stuff and seeing what happens (though this can be a technique to gain understanding), or worse, debugging using print statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*THp9VOmpAqfKQVzQ" /></figure><p>If you have an understanding of the system, problems in execution will stand out to you like a sore thumb. You also cannot ever be confident in an implementation unless you completely understand it.</p><p>Understanding also stretches to your tools. An IDE may have many productivity boosting features waiting to be discovered. The best way I found to discover these features was to watch a wide range of developers coding habits. Everyone uses their own personal subset of the feature set.</p><p>Of course this is also a balancing act as short term productivity is important. However it is necessary not to over index on the short term and sacrifice the long term.</p><p><strong>Invest in them tests</strong></p><p>Tests are a great way to lock in your newly found understanding. They also are a great hedge against your own imperfections as a developer. They also take the cognitive burden of much of the understanding of the system from you as you are able to solidify it formally.</p><p>As development increases code entropy, over time we will want to refactor every now and then to avoid slowly git pushing ourselves into a spaghetti themed hellscape. It is almost impossible to confidently refactor large codebases without comprehensive test coverage. They are another thing that takes short term time but are one of the most valuable long term investments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*cZSuBhORfcFFktAd" /></figure><p>I would also advise to never skimp on the cleanliness and expressiveness of test code. Why? Because you can be damn sure your coworkers will skimp over it in code reviews, so it’s all up to you!</p><p><strong>Simplify as much as possible</strong></p><p>Like all good little lifeforms, we want to continuously fight entropic decay. The art of simplification is one of the more important skills to cultivate. The number of bugs in a system is positively correlated to the size of a codebase. As Software Engineers one of the worst things you can do to a codebase is to add code to it. Simplification is the art of expressing the codebase as elegantly as possible. Ideally you should be trying to be as lazy as you possibly can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*mA_O_IKVFb_FLjhW" /></figure><p>A simple and elegant codebase will be more understandable and less bug prone. This simplification principle does not just apply to the raw code itself but also to the choice of abstractions, algorithms and modules etc.. Everything should exist for a clear and distinct purpose with logical data flow between systems. There are many books on this so I wont go any deeper here.</p><p>Having an intuition for simplification and elegance is also a skill developed over years of experience but can be put into practice fairly simply. Once we have our rough understanding of our system and it is bolstered by comprehensive tests and we may refactor safely to our hearts content, we may begin by simply deleting all unnecessary code, unifying code any duplication and examining how complex or convoluted are our abstractions. Again there are many books on this so I wont go any deeper here.</p><p>Often it is good to bias towards correctness first, simplification second. My general approach is to make the implementation as complex and dirty as it needs to be and aggressively trim it down as much as possible when I am comfortable that it is correct.</p><p>I’m not entirely sure why simplification is so effective, but if I had to guess it would be because it constrains possible state. The core of understanding codebases is mentally mapping possible states. If these states are constrained there is far less room for bugs and entropy to sneak in. An alternate (or complementary) way to think about simplification may be state space minimization.</p><p><strong>Learn and experiment (diplomatically)</strong></p><p>Engage in learning and try your ideas out practically. You will find that this will get push-back for many reasons. Firstly, most ideas are bad ideas, and most of the ideas you try will be bad ideas (and that is OK) and the people pushing back probably do know better than you (their perspective is valuable). Secondly, people get set in their ways, as humans tend to do.</p><p>The software industry is probably the most dynamic and ever changing industry in existence today. Especially web development[4]; there you type as fast as you can just to stay in the same place. Thus it is important to expose yourself to a wide range of programming techniques and paradigms and stay on top of the latest features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Z9w-FFbTgqUsouqg" /></figure><p>Introducing these new toys to the real world difficult but is more an effort in diplomacy than anything else. The benefits have to be sold and need to significantly trump the negatives and if possible, should not be significantly disruptive to the existing codebase. Simple right?</p><p>For example functional programming is a very useful programming paradigm to follow for a myriad of reasons. It is also a complete mindfuck for most imperative inclined veterans, making it a difficult sell. Applying functional principles to C++ is quite a bit easier and is a much easier and more pragmatic approach[5].</p><p>Cultivating a culture of experimentation is a good long term investment for your own growth and for the long term health of the codebase.</p><p>People can get highly accustomed to out of date techniques and systems. Your young blood is useful for more than just vampiric nourishment but also for invigorating the codebase.</p><p><strong>Perfectionism</strong></p><p>Done is better than perfect ;)</p><p><strong>References</strong></p><ol><li><a href="https://youtu.be/JjDsP5n2kSM">Jonathan Blow on programming independent games independently</a></li><li><a href="https://ai.googleblog.com/2006/06/extra-extra-read-all-about-it-nearly.html">Most binary search implementations are wrong</a></li><li><a href="https://www.mayerdan.com/ruby/2012/11/11/bugs-per-line-of-code-ratio">Bugs to lines of code</a></li><li><a href="https://www.reddit.com/r/webdev/comments/8orzqx/does_anyone_feel_like_the_state_of_web/">“Welcome to web development”</a></li><li><a href="https://www.gamasutra.com/view/news/169296/Indepth_Functional_programming_in_C.php">John Carmack on functional programming in c++</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=498d0aa12c64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploding Head Syndrome]]></title>
            <link>https://medium.com/@Ludum_Ford/exploding-head-syndrome-a042e3b1f1d2?source=rss-6407e757aefc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a042e3b1f1d2</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[sleep]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[paranormal]]></category>
            <dc:creator><![CDATA[Lachlan Ford]]></dc:creator>
            <pubDate>Sun, 25 Nov 2018 04:52:16 GMT</pubDate>
            <atom:updated>2018-11-27T03:49:35.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*AY14w2Ssw8aH8XM5.png" /><figcaption>Source: <a href="http://chainsawsuit.com/">http://chainsawsuit.com</a></figcaption></figure><p>You’re in bed. The chatter of the mind and thoughts of the day are slowly dissolving as you’re drifting off to sleep. Suddenly the tranquility is shattered by a loud explosion sound like a cymbal crash radiates from your head and through your body, resonating for a few seconds and fading into nothingness. As the adrenaline wears off and the phenomenon dissipates as quickly as it arrived, you realize that the sound came from nowhere but inside your own mind. You lay back, relax and continue on to sleep.</p><p>If this sounds familiar, then congratulations, you may have experienced Exploding Head Syndrome.</p><p>Though it sounds like a possible Monty Python skit or B-movie plot, the phenomenon itself is much more benign. It is a “parasomnia”, a sleep disorder, characterized by a sudden loud noise, much like an explosion, gunshot or cymbal crash emanating from inside of your head suddenly and without warning, when on the border between sleep and waking life; the state of consciousness known as hypnagogia.</p><p>The phenomenon was first described by Silas Weir Mitchell as “Sensory discharges” in 1876, and came to be known as “Exploding Head Syndrome” in a paper by J M Pearce in 1989. It is a surprisingly common phenomenon, affecting approximately 27% of students and 10% to 18% of the general population. Despite this relative commonality, it remains a mysterious and relatively understudied phenomenon.</p><p>Many possible causes have been identified including partial temporal lobe seizures, ear dysfunction and calcium channel dysfunction. Though the most up to date working theory is that it is caused by a dysfunction of the reticular formation in the brain, an evolutionarily ancient brain stem network which plays a crucial role in mediating arousal and consciousness. Each night, when our bodies begin to shut down, sleep paralysis kicks in, to make sure we don’t become a safety hazard to ourselves and others, attempting to act out our dreams. It is hypothesized that a glitch in the reticular formation results in a delayed shutdown of some brain areas, which then causes a surge of neural activity in areas of the brain responsible for sound perception.</p><p>Others have described it as “a high tension cable snapping”, “my entire body feels like it’s being jolted by electricity, just no pain. I’ll be right on the verge of sleep and then <em>BAM</em>, mini-seizured right back to full awareness”, “similar to if someone were to dump an entire bucket of freezing water on you, unexpectedly just as you’re on the verge of sleep, that little in between space”. Some have heard neighbors shouting, a bark, gunshots, car crashes or what sounds like people breaking in.</p><p>Sleep paralysis problems appears to accompany anecdotal reports which, along with hypnagogic hallucinations, could go some way in explaining many reports of alien abductions and other paranormal phenomena.</p><p>I would describe it as though reality is a string and it is suddenly plucked. Like your body is a old CRT monitor and someone just hit the degauss button. A fizzling electric brain buzz that crescendos to an explosion and fizzling out through the rest of your body. A sudden crash and reboot. A roaring vibration traveling inwards from all points. Sometimes accompanied by a flash of light and brief bodily sensations. It not an unpleasant experience, in fact it can be somewhat exhilarating. Gets the blood pumping. In my experience it is a rare event that occurs roughly once every few months, peaked in university and has been less frequent since.</p><p>I find it is likely after stress and consistent nights of sleep deprivation. I can feel when it is likely. The world feels a bit fuzzier. It is often accompanied by strong migraines and, when falling asleep, a strong impulse to tense upper body muscles that is hard to resist. Once it happens it can feel like a pressure release and is almost always followed by a deep, dreamless and incredibly restful sleep.</p><p>“What is the treatment?”, you may ask. The treatment is as mysterious as the disease in this case. One effective substance is the antidepressant Clomipramine whose mechanism of action is unknown. It also has can some pretty intense side effects so in this case, the best medicine may be good old fashioned healthy living and stress management.</p><p>As neurosciencentific progress marches forward, improved understanding of the brain and underlying mechanisms of sleep may elucidate what’s really going on in the mysterious gray area between normal wakeful consciousness and sleep where our heads sometime explode.</p><p>Maybe one day we’ll know why are heads are exploding.</p><p>If you liked my work, consider supporting it!<br>ETH: 0x01D942b25076bDCAFF1810c5619433854C092140</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a042e3b1f1d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>