<?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 Paul Frydlewicz on Medium]]></title>
        <description><![CDATA[Stories by Paul Frydlewicz on Medium]]></description>
        <link>https://medium.com/@pafryd?source=rss-db7adb9e8c95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Kgu8VkvsCUwYK6E0</url>
            <title>Stories by Paul Frydlewicz on Medium</title>
            <link>https://medium.com/@pafryd?source=rss-db7adb9e8c95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:56:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pafryd/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[Why is automated driving such a Challenge?]]></title>
            <link>https://medium.com/@pafryd/why-is-automated-driving-such-a-challenge-ead081a15f71?source=rss-db7adb9e8c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead081a15f71</guid>
            <dc:creator><![CDATA[Paul Frydlewicz]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 15:06:30 GMT</pubDate>
            <atom:updated>2024-12-26T15:06:30.228Z</atom:updated>
            <content:encoded><![CDATA[<p>The industry around automated driving has been very turbulent in the past few years. <br>Billions of dollars have been invested by car manufacturers and suppliers. Newcomers in the automotive industry have shown promising results. Tens of thousands of engineers have created new software ecosystems and data and labeling pipelines to design and train machine learning models.</p><p>Despite all the progress made in the last 15 years, there are relatively few tangible results on the road when it comes to automated driving — at least among the options available to consumers at car dealerships.</p><p>Famous and promising endeavors like Cruise and Argo have been dissolved. Some OEMs and suppliers have already given up on the topic or are reconsidering their approach. <br>Waymo has reached a technical maturity that allows it to operate a Level 4 fleet (meaning no driver is required) in a few cities in the US, but its solution is still far from being adaptable to everyday life and, according to news reports, it is not yet financially viable.</p><p>Mercedes-Benz, as the only OEM in the world, offers a Level 3 solution in its flagship cars (meaning the car actually takes responsibility), but the system only supports a limited set of scenarios where it can be activated.</p><p>Tesla, promises a full set of features but can only offer a Level 2 system (full-self-driving actually means YOU must drive yourself — see argumentation below), despite ten years of constant “within-the-next-year” promises. Many Chinese companies are gaining traction and making huge improvements, but still no L3 systems are in sight.</p><p>An observer from outside the industry might wonder: why have no solutions materialized despite these massive investments and decades of development? What makes automated driving so difficult?</p><p>Automated driving is not a trivial task. It is easily overlooked that it is technically incredibly difficult on many levels, and perhaps even technically unfeasible with today’s technology, to some extent.</p><p>In this article, I want to give some insights into rarely talked about considerations of engineers on the way to a self-driving car. I will outline the general difficulties and lines of thought that go beyond implementing cool features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-FEtD735krmJ-Sgb" /><figcaption>Who needs self-driving cars when you can get a taxi? Photo by <a href="https://unsplash.com/@fellowferdi?utm_source=medium&amp;utm_medium=referral">Ferdinand Stöhr</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Three Most Basic Requirements of an Automated Driving Solution</h3><p>Automated driving is all about the features, right? Actually, no. Features _are_ an important part, but they are only _a part_ of the engineering of a self-driving car.</p><p>A car is a massive 1.5 to 3.5+ tons of steel, traveling at speeds of 130 kph (80 mph) or more, passing pedestrians at a distance of less than 1 m, and counter-traffic at less than 0.5 m — working under all possible weather conditions, in different countries, and lasting for more than 10 years.</p><p>When you think about it, a car can be a dangerous machine. A small mistake can lead to people’s deaths. To me, it is truly a wonder that only so few accidents happen in real life (even though every accident is one too many). Trained and healthy human drivers are exceptionally good at driving.</p><p>With this introduction, I want to prepare you to understand that the engineering task goes far beyond technical features. Self-driving is about <strong>guarantees</strong>, <strong>reliability </strong>of the features, and continuously assessing <strong>risk</strong>.</p><p>Now here are my <em>three most basic requirements</em> that an automated driving solution must fulfill:</p><p>1. The system must have the intended features to perform tasks automatically (e.g., lane-keeping).<br>2. Point #1 must be guaranteed to have an error rate of less than 0.000…1 errors per kilometer (a very low number, which I cannot quantify here because it depends heavily on the design domain).<br>3. The system must continuously detect if its assumptions are in line with reality during operation, and it must be able to do this with an error rate of 0.000…1 (again, an incredibly low number).</p><p>I provided some placeholders for “numbers” to illustrate the scale of the required reliability. These numbers are extremely hard to achieve, but they are not negotiable.</p><p>Whenever a YouTuber celebrates a self-driving system that only makes an error every 100 km, don’t take them seriously — proceed to the next video. They’re describing a dangerous toy system.</p><p>To put things into perspective: A car in Germany, on average, travels 15,000 km (9,300 miles) per year. Even if a self-driving car made a mistake every 15,000 km, you would agree that this is unacceptable under any circumstances, as it will kill or injure someone once every year. Statistics can be brutal, but the topic is very serious.</p><p>Now let’s discuss the three requirements in detail, starting from bottom to top, and see what they mean and what not so known considerations are important in the engineering process.</p><h3>Brief Note about Levels of Self-Driving</h3><p>Before we start, a note on some common terminology. You’ve probably heard of Level 2, 3, and 4 autonomy. These numbers describe the guarantees (you’ll see this word more often in this article) that the system is able to provide. They are standardized by the SAE norm J3016. Here is my casual interpretation:</p><p><strong>Level 2 (L2)</strong> basically gives you absolutely no guarantees about its reliability, and it is by no means self-driving. It only says that a certain set of features is implemented (e.g., lane-keeping). Some PR departments like to call their system something like L2+ or L2++ (the number of “+” seems to correlate with the level of management desperation). L2++++ is still an L2 system and gives you no guarantees. It is NOT an autonomous system in any sense — the driver is 100% responsible, must always monitor, and should never rely on the system. <em>Sidenote</em>: Tesla’s FSD is a pure L2 system at the time of writing this article.</p><p>Only a <strong>Level 3 (L3)</strong> system can be called <em>self </em>or <em>automated driving</em> (or <em>conditionally automated</em>, to use the official term), as the car actually takes over responsibility from the driver (including legal liability). The driver can be distracted and rely on the decisions the car makes, but the driver must always be ready to take over if the system doesn’t know what to do in a situation. So what’s the benefit? Well, an L3 system <strong>guarantees </strong>that it can handle the situation for at least a few seconds in advance (e.g., 10 seconds — the exact number depends on the design domain and regulations and is part of the certification process).</p><p><strong>Level 4 (L4)</strong> essentially means that the driver is optional — a very, very, very big leap from L3. Kudos to Waymo; it’s a an amazing achievement.</p><p>For simplicity, I will assume an L3 system, unless otherwise mentioned.</p><h3>The Operational Design Domain (ODD)</h3><p>The ODD defines the environment and conditions under which the system can guarantee safe operation. This can include assumptions about minimal and maximum speeds, day/night time, dry/rain/snow conditions, highway-only scenarios, urban-only scenarios, and many combinations of other parameters that describe typical traffic scenarios.</p><p>Why is it so important to define the ODD? Because it has a huge impact on many decisions regarding the system’s specs. Let’s take speed, for example. When the car is traveling at 50 kph (roughly 30 mph), it covers only half the distance per second compared to 100 kph (60 mph). Braking increases non-linearly with speed (the faster, the longer the braking distance), and it gets even worse under rainy conditions, downhill, etc. The faster a self-driving car drives, the further ahead its technology must be able to see and react.</p><p>This has significant implications on the required sensors, data bandwidth, and computing hardware (frame rates, jitter of frame rates, angular camera resolutions, etc.), as the required reaction times must be met under any condition of the ODD, plus a margin. At some point, the system may not be able to guarantee safety in rain at a given speed because the cameras may not have sufficient lateral resolution to detect a small child at a crosswalk in time or the AI models may not reliably detect small children without producing many false positives.</p><p>Some strategies to define the ODD is to simply define the roads the self-driving system can operate on. Waymo operates its cars only in precisely pre-mapped and pre-trained areas of some cities and they are not allowed to leave the geo-fence.</p><p>These considerations fall under **SOTIF** (short for _Safety of the Intended Function_). SOTIF is an engineering field focused on ensuring that the system’s features are effective because all assumed conditions are fulfilled. I see SOTIF engineers as the philosophers of engineering, as they tend to ask philosophical questions (e.g., “What if?”, “What is the actual purpose of…”) that a hardcore feature developer may overlook. It’s good to have both groups of engineers involved, and it’s always healthy to balance the two.</p><p><em>Personal note</em>: Some managers dislike SOTIF because it doesn’t align well with the <em>“fake it till you make it”</em> philosophy. However, with SOTIF in place, engineers can sleep better. In case of doubt, the self-driving system’s default response should be to disengage and request the driver to take over rather than risk false positives or false negatives.</p><p><strong>Wording:</strong><br><em>False negatives:</em> The system should have reacted, but it didn’t. Examples: The Uber car driving over a woman with a bicycle in 2018. Tesla crashing against a truck lying on a highway or emergency vehicles with their flashy lights.<br><em>False positives:</em> The system reacted, but it shouldn’t. Example: The system triggers an emergency braking even though there was nothing (many people report this from various OEM’s L2 systems).</p><h3>Functional Safety (FuSa)</h3><p>Now your L3 car has this nice lane keeping feature where you can relax, look out of the window and enjoy the scenery. The car follows the lane automatically.</p><p>But wait, the camera has a glitch and didn’t transmit any images for seconds. The computer is still working with that 3 seconds old image and is actually driving blindly. The next slight turn will crash your car into counter traffic. This scenario is a realistic example illustrating the importance of functional safety (FuSa). FuSa deals with ensuring that the system is always working within specified timings, with real and updated sensor data, that error propagation is working reliably and much more.</p><p>Another trivial everyday situation is when a stone hits your windshield directly in front of the camera. Now the camera still sees <em>something</em>, despite the cracks, but can it guarantee to see the child on the crosswalk? Probably not. The system must detect this problem and immediately propagate this error through the system reliably. The system must disengage or stop at the side of the road (if possible; this might not be possible in the left lane — ODD again). Why? Because it cannot guarantee proper operation anymore.</p><p>What are the consequences? The system must always monitor itself, and immediately detect if any part of the system is not well functioning. It must be 100% sure that the decisions it makes are not based on garbage data or wrong processing.</p><p>In a well implemented system, Functional Safety is intertwined with the features and functions. FuSa is a dedicated field that requires a certain mindset of the engineers. One of the basic approaches is: “No data is better then false data” or “in case of anomalies, make the function unavailable”. A self-driving system must not cheat itself, neither intentionally nor unintentionally.<br>If inference results of an AI model look sketchy (whatever that means), try counter measures or just shut down that whole thing.</p><p>Speaking of AI models and safety, now comes the juicy part: The functional safety aspect of AI models is still under debate and active research. This is one of the big reasons that there are not yet many L3 systems on the market.</p><p>As good as AI models work (single task, multi task or even end-to-end), it is still under active research, how their functional safety can be guaranteed. What is the problem? If there wasn’t any data in the training set that showed a trucks that lies on its side on a highway. How can you guarantee that this unnormal but dangerous situation is properly detected? This was more than once an crash scenario for Tesla’s FSD. And you cannot solve this problem by adding more training data (it may reduce the risk for some cases though). Even if a scenario was not part of the training set, a <em>safe</em> system must react properly in dangerous unknown situations. This level <em>safety </em>is required to reach L3, because these systems are <em>responsible </em>for the driving decisions.</p><p>FuSa in cars is a proven engineering concept since decades and it works remarkably well in airbags, ABS, EPS and other software related systems. But the FuSa of AI models is a tricky thing and is still in its “infancy”.<strong> </strong>The engineering problem is:<strong> It is not possible to train every scenario, but it must be guaranteed that every dangerous scenario will be detected</strong> — and this is the big crux. It’s about handling the unknown unknowns safely, which cannot simply be solved by more training data.</p><h3>The Features</h3><p>Finally, let’s discuss briefly some aspects of the feature set. Features and functions are nice. More features are nicer, and who doesn’t want as many features as possible? Most software engineers love to implement new features. It gives us satisfaction.</p><p>But… not all features work reliably. Some AI models work well, others not so much. Sometimes, specific conditions cause problems.</p><p>For an automated driving system, reliability must be the number one priority. If a car makes an error even every 1,000 km or 1,000 miles, it’s not safe — and personally, I don’t want to be near it. <br>As I mentioned in the introduction, cars are like cruise missiles — they can quickly become deadly weapons. All parties involved should have a sense of responsibility and accountability:</p><ul><li><strong>Developers:</strong> Always aim for reliability of features, FuSa, and SOTIF.</li><li><strong>Managers:</strong> Don’t cut corners on system safety. One safe feature is better than ten unsafe ones.</li><li><strong>PR departments:</strong> Don’t overpromise and misinform, it’s not worth the quick buck.</li><li><strong>Drivers:</strong> Never rely on an L2 system (even the shiny FSD).</li><li><strong>Regulators:</strong> Don’t ignore the irresponsible behavior of companies — enforce accountability.</li><li><strong>Media/bloggers:</strong> PR departments don’t explain the world objectively — companies want to sell products. Do reasonable research and don’t jump on every hype train.</li><li><strong>Car buyers:</strong> Have a healthy skepticism and know what your buying. Use your car responsibly. Remember, you’re your car can quickly become a driving cruise missile.</li></ul><h3>Quick wrap up</h3><p>I see two very opposite approaches on the market:</p><ul><li>Tesla and some Chinese OEMs follow the “Implement first and optimize until it’s safe” approach. Will it succeed? Maybe, but so far, I’m not convinced.</li><li>Waymo, Mercedes, and others take the opposite route: Make a feature mature first and then release it to the public. They may be very restrictive with respect to the ODD (Waymo: very limited geographically, Mercedes: very limited use cases), but they have a product on the market that takes ownership.</li></ul><p>Which approach do you think is better?</p><p><strong>One last remark:</strong> Until self-driving isn’t solved, you don’t need to drive yourself. Take the next bus or train, order a taxi or ask a friend who loves driving. Life can sometimes be so simple.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead081a15f71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Waterfall software development is not bad]]></title>
            <link>https://medium.com/@pafryd/waterfall-software-development-is-not-bad-fe4eceec0c52?source=rss-db7adb9e8c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe4eceec0c52</guid>
            <category><![CDATA[waterfall-model]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-dev]]></category>
            <dc:creator><![CDATA[Paul Frydlewicz]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 11:19:04 GMT</pubDate>
            <atom:updated>2024-02-11T11:19:04.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays many software developers and project managers are inclined to think that Waterfall-like development is intrinsically not suited for software development at all. In this article I want to stand up for the Waterfall process and argue why and when it can be a suitable option in certain scenarios. This might be a controversial thought at first, but let’s keep our minds open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NKe6Zzya3EUSujViVERAA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@jakub-markiewicz-445047150/">Jakub Markiewicz</a></figcaption></figure><p>Firstly what is the waterfall model in software development? A waterfall flows from top to bottom, always in one direction. In the same way a project would flow from one stage to the next until it is finished. The project phases are typically in strict order:</p><ol><li>defining requirements</li><li>designing the intended solution</li><li>implementing the solution</li><li>testing the solution</li><li>documentation and final release</li></ol><p>Now, are the above mentioned activities limited to Waterfall projects? No, every (software) project will have these activities. In agile approaches we just do more granular loops, or we reorder them or work on them in parallel. That is the meaning of the word agile (small letter “a”).</p><h3>Why would people invent Waterfall project management?</h3><p>Before showing a use-cases where a Waterfall approach is reasonable, let’s answer first the question, why smart engineers would come up with the Waterfall approach?</p><p>In my last article I showed that software engineering is a new discipline. Civil engineering was done for thousands of years, as an example. Now imagine civil engineers constructing a bridge over a river. How will they approach the task at hand?</p><ol><li>they need to know the required width, what load the bridge shall be able to carry, clearance over the river and more requirements.</li><li>They would make one or more detailed design proposals with cost estimates, maybe on different locations.</li><li>They would acquire land and contract workers and suppliers to build the bridge</li><li>They would inspect the bridge together with the client</li><li>They would hand over important documentation and maintenance schedules</li></ol><p>Is it feasible to apply an agile approach in bridge building? I’d argue that it is not good to apply agile approaches in most civil engineering projects. Why not? The requirements must be known from the start of the design phase, because later changes and additions can be very expensive. Once you construction starts, the design must be fixed, changes will be even more costly or impossible. And once construction is finished there are very limited possibilities for changes.</p><p>I think you understand where I’m going. The Waterfall approach is very reasonable if the cost of changes of one or more phases is very high.</p><h3>Waterfall and software engineering</h3><p>Software engineering is different from civil engineering as the implementation can often be changed very easily and new versions of the product can be often released with a simple mouse-click. But this does not apply to every kind of software development. Are there areas where the cost of changing the implementation is high?</p><p>I want to illustrate my argument with an example.</p><p>Imagine you want to develop an ASIC (application specific integrated circuit). An ASIC is basically hard-wired software. ASICs are used to reduce cost and increase performance by moving functions from a processing unit to dedicated hardware. A popular example may be filtering of camera images.</p><p>Before producing an ASIC prototype you want your requirements and design be mostly fixed. Why? because making prototypes of ASICs can be very costly. You need to create the silicon design, produce masks and other tooling and produce the ASIC itself. One iteration can cost 10/100 thousands, if not millions of dollars.</p><p>The project manager will likely encourage the development team to keep the number of iterations as small as possible, ideally at a single shot only. On the other hand the project management needs to make sure, that the requirements are as complete as possible, before the design phase, which is often not cheap as well, because extensive simulations are performed in the design phase.</p><p>This use-case is not pure software engineering, it is intertwined with hardware development. I used this example to show-case the benefit of Waterfall when the iteration of one or more phases are expensive in itself, or if the software is reliant on expensive development of hardware.</p><h3>Conclusion</h3><p>What do you think? Is Waterfall a bad choice for your project? Well, I hope you agree with me now, that it depends. Project management should be the process of getting stuff done, quickly, with low cost and good quality. Knowing why and when engineers use Waterfall approaches can help to make better decisions in your particular use-case.</p><blockquote>Software engineering is more than just web-development</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe4eceec0c52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Waterfall or Agile or Scrum or …? Does it matter?]]></title>
            <link>https://medium.com/@pafryd/waterfall-or-agile-or-scrum-or-does-it-matter-f1bf8df176c0?source=rss-db7adb9e8c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1bf8df176c0</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[process-improvement]]></category>
            <category><![CDATA[waterfall-model]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Paul Frydlewicz]]></dc:creator>
            <pubDate>Sun, 14 May 2023 13:41:54 GMT</pubDate>
            <atom:updated>2023-05-14T13:41:54.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Waterfall or Agile or Scrum or …? Does it matter?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orzsn79Oc8Dv2uMDJvgk6g.jpeg" /><figcaption>What are these guys using? Scrum or Waterfall or something else? (Photo by <a href="https://unsplash.com/@sunburned_surveyor?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Scott Blake</a> on <a href="https://unsplash.com/photos/seven-construction-workers-standing-on-white-field-x-ghf9LjrVg?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><h4>Recently I stumbled over quite some articles on Medium about questioning Agile and Scrum processes in software engineering. Do you also perceive that there is a trend of questioning Agile or whether it is some kind of biased article proposal due to my reading history.</h4><p>It seems to me that it is a much debated topic, including my workplace. Some argue that Agile is great, but it needs to be implemented properly. Others argue that something that only works on paper can be compared to communism, nice in theory but useless in reality.</p><p>There are many text books out there proposing different approaches. What guidelines can we use to decide when to use which approach?</p><p>Certainly you agree with me, that the purpose of every development process should be to get the software done with the least amount of friction and satisfy customers and users. The development process is only a means to achieve that goal.</p><p>I have worked in software engineering for 16 years, both with rigid waterfall, Scrum and without any development process in place (startup). I have no concluding answer to the question in the title, but I would like to have a better opinion about it.</p><blockquote>An opinion is the personal understanding of the nature of something. It is subjective in nature. An opinion can change based on arguments, experiences and other reasons.</blockquote><p>I am convinced, that having a strong opinion (even though not perfect) can help in making decisions and follow through. Making good (even though not perfect) decisions is so important in designing, planning and creating complex products. But a strong opinion is a double edged sword, it must be build with openness of mind and shaped with reasonableness.</p><p>So, what is better, Waterfall, Agile, Scrum or &lt;placeholder for your dev process&gt;? Certainly you agree that … it depends. I would like to better understand what factors determine or counteract the success or either development process.</p><h3>Is Software Engineering the only discipline in the world?</h3><p>One fact that we should always remember is that Software engineering is a young engineering discipline. Architecture, Civil engineering, Mechanical engineering (to name a few) have created processes for decades or even centuries.</p><p>Construction engineers were able to design and build iconic structures with sometimes thousands of people involved. They not only had to deal with the technical aspects and human factors, but also with harsh natural conditions, political game play, financial resources, etc.</p><p>I am in awe of the people that built and operated thinks like the Golden Gate Bridge, the Panama Channel, the Apollo space program, etc. I advocate to look beyond software engineering, and try to learn about approaches in other disciplines and also why they were used in the first place.</p><p>If you have personal experiences from your software or non-software projects, I’d like to invite you to share it in the comments. I value personal experiences very much, because real life often includes more than simplified text book definitions.</p><blockquote>Real world examples can help us understand something without explaining it.</blockquote><p>What are your experiences with either development process? Thank your for your time and insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1bf8df176c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>