<?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 Akila Senanayake on Medium]]></title>
        <description><![CDATA[Stories by Akila Senanayake on Medium]]></description>
        <link>https://medium.com/@akilasenanayake22?source=rss-f7495ee431af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*doVGG6t9OwG7Zo9yHygMkQ.png</url>
            <title>Stories by Akila Senanayake on Medium</title>
            <link>https://medium.com/@akilasenanayake22?source=rss-f7495ee431af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:31:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akilasenanayake22/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[From Confusion to Confidence within a Few Weeks: What Worked for Me as a Trainee]]></title>
            <link>https://medium.com/@akilasenanayake22/from-confusion-to-confidence-within-a-few-weeks-what-worked-for-me-as-a-trainee-ac570421af35?source=rss-f7495ee431af------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac570421af35</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software-quality-engineer]]></category>
            <dc:creator><![CDATA[Akila Senanayake]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 17:11:54 GMT</pubDate>
            <atom:updated>2025-12-21T03:19:16.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFBT2DwUy_dPJpFFHUs4-A.jpeg" /></figure><p>When I entered the IT industry, I had a clear idea of what field to choose, but I was confused about where to start as a trainee QE. Because I had an understanding and ability on the development side, I knew I had the capacity to learn and advance in this field. There are many companies, and you will have to work under different supervisors in the beginning. Their knowledge is very valuable when entering the field. Additionally, I needed to quickly acquire some knowledge to work more efficiently.</p><p>The idea of this is to discuss my plan at that time, and this article reflects only my personal experience and opinion. What worked for me may not work the same way for everyone. However, one important lesson I learned is that, especially at the beginning, it is better to focus on a few high-priority concepts and apply them practically, rather than trying to learn everything at once. The earliest impact, in my opinion, came from having an understanding of the requirements, addressing the problem from the perspective of the end user, building relevant test cases, and learning how to properly report defects. I encourage anyone starting in the field of QE to do additional research, consider different learning pathways, and not stick to just one approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*eAmAAQhLNV_7n1mjdDry-Q.png" /></figure><blockquote>I gained an awareness of how essential manual testing experience is as I worked toward becoming an automation engineer. Automation is great, but it’s very simple to automate the wrong scenarios or overlook critical edge cases due to a lack of a solid foundation in manual testing.</blockquote><p>You can learn how to think like a tester, evaluate business logic, investigate application behavior, and effectively apply testing approaches through manual testing. Meaningful automation starts with an understanding of test design methodologies, test scenarios, and realistic user flows. Strong manual testing skills, in my experience, made learning automation technologies like Selenium, Cypress, Playwright, etc. simpler and more efficient.</p><p>Before coming into the industry, I also tried Selenium on my own to understand what automation testing actually is. At that time, I did not aim to become an automation expert, but I wanted to get a basic idea of how tests can be automated and how tools work in real scenarios. This approach may differ from person to person, but for me, having early exposure to automation helped reduce the fear of it later. It gave me a clearer picture of how manual test cases can be translated into automated scripts and how automation fits into the overall testing process. Learning Selenium with TestNG using Java had several advantages for me.</p><blockquote>Since I already had a software engineering background and was comfortable with Java, it was easier to understand concepts such as object-oriented programming, test structure, and reusable components.</blockquote><p>TestNG helped me learn important testing concepts like annotations, test execution flow, grouping, and reporting, which are highly useful in real projects. Selenium, on the other hand, helped me understand browser interactions, element locators, and real user behavior in web applications. Even at a basic level, this knowledge made it much easier to communicate with automation engineers and understand automation-related discussions in the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcTvw5lk_tY_1upr7CcaWQ.png" /></figure><p>Both manual and automation testing have a long learning journey, and in my personal opinion, mastering quality engineering does not happen overnight. Along the way, you learn manual testing concepts such as requirement analysis, test design, and exploratory testing, while also gradually improving automation skills with tools and understanding areas like CI/CD integration. Balancing both manual thinking and automation execution helps build a stronger testing mindset and real-world testing capability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac570421af35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built Confidence in Selenium with a Simple Practice Site]]></title>
            <link>https://medium.com/@akilasenanayake22/how-i-built-confidence-in-selenium-with-a-simple-practice-site-3f2850bea63d?source=rss-f7495ee431af------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f2850bea63d</guid>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[web-automation]]></category>
            <dc:creator><![CDATA[Akila Senanayake]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 20:02:27 GMT</pubDate>
            <atom:updated>2025-07-21T13:31:48.900Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most challenging tasks I faced when first learning Selenium WebDriver was locating a reliable practice site with accurate user interface elements. To properly practice automation, I needed more than basic samples; I needed something that resembled actual applications. At that point, I discovered LeafGround, a simple yet useful playground designed for Selenium users. Buttons, text boxes, dropdown menus, alerts, frames, windows, drag-and-drop functionality, tables, and grids are all included to learn the fundamentals. I thought it was great that each page focused on a different kind of ingredient, which made learning more organized.</p><p>In this blog, I’ll share how I used <a href="https://leafground.com/">LeafGround</a> to improve my automation skills and build confidence in writing Selenium scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nyuHqekW70AmO8GxZO2TnA.webp" /></figure><h4>What is LeafGround?</h4><p>Leafground is a basic but interesting environment for automating. A variety of user interface components, including buttons, text boxes, drop-down menus, alerts, frames, windows, tabs, drag-and-drop sections, and tables, are available on different web pages. Because each page focuses on a separate topic, learners and engineers can more easily construct focused automation scripts and develop their Selenium skills in a structured way.</p><h4>My Setup for Practicing Selenium</h4><p>I used IntelliJ IDEA as my IDE, Maven to handle dependencies, and Selenium WebDriver to set up a basic Java project in order to practice effectively. I made a Java class for every UI interaction in order to structure my code. I have distinct classes such as ButtonExample, TextBoxExample, DropdownExample, and WindowExample, for instance. I was able to focus on one subject at a time without feeling overburdened because to this modular method. This little effort eventually developed into a personal automation library where I could go back and make improvements to my scripts.</p><p>Here’s a quick look at my practice project structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*n6HpXjWtuLS2cOI4HfxHng.png" /></figure><h4>Practicing Basic Element Interactions</h4><p>I started with the simplest components: text boxes and buttons. This made it easier for me to learn how to find elements using XPath, CSS selectors, names, and IDs. I created programs to click various button kinds, retrieve their properties (such as size and position), and check their current statuses. Similarly, I worked on filling the input fields with text, clearing them, and checking the outcomes. These quick tasks enhanced my comprehension of WebDriver instructions and gave me more confidence when interacting with simple web elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*nZK5sgLtutj6zXV6SSOh1A.png" /></figure><p><strong>Working with Dropdowns and Checkboxes</strong></p><p>After mastering the fundamentals, I advanced to selection elements like checkboxes and drop-down menus. I identified how to choose choices by visible text, value, and index using Selenium’s choose class. I worked on checking and unchecking checkboxes and verifying the states they were in. I learned how to manage lists of elements from these exercises, which is a crucial ability when dealing with real-world apps that have several filtering and selecting possibilities.</p><p><strong>Handling Alerts, Frames, and Windows</strong></p><p>Understanding context switching, an essential component of web automation, was the next step. I worked on accepting, rejecting, and recording JavaScript alert messages. After that, I studied frames and how to navigate between them on a page. Lastly, I looked at controlling several tabs and browser windows, which clarified for me how Selenium monitors various window handles. The majority of contemporary programs use popups and embedded information, which require dynamic context switching, therefore this section was really helpful.</p><p><strong>Exploring Links, Navigation, and Dynamic Elements</strong></p><p>I focused on dynamic components like links and navigation after I figured out context handling. I created programs that can click on various kinds of links, retrieve all of the links on a page, and even check for broken links. I became increasingly familiar with dynamic page behaviors as a result, where items may not always load promptly. In order to deal with this, I discovered the value of explicit waits like WebDriverWait, which improved the dependability of my scripts in contrast with hard-coded delays like Thread.sleep().</p><p>The first is that creating test scripts that are robust and maintainable requires specific consideration of locating technique. The second is that because explicit waits avoid unreliable tests brought on by dynamic loading delays, they are far better compared to static waits. Additionally, I noticed that learning was considerably facilitated by practicing with small, modular scripts. Above all, I became more comfortable creating Selenium tests by practicing easy tasks and progressively advancing to increasingly challenging situations.</p><p>Becoming proficient with fundamental elements like buttons, text boxes, dropdown menus, alerts, and frames. There are still many things to learn about automation, including how to manage dynamic web elements, integrate complex frameworks, run parallel tests, and create reliable CI/CD pipelines. Every little step you take with these fundamental workouts gets you ready to take on increasingly challenging real-world situations and develop into a proficient automation engineer.</p><p>Have you used LeafGround or any other Selenium practice site? When learning automation, what was the most helpful thing to you? I’d love to hear your experience!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVyHDx1JVh0RikSWNWfSjA.jpeg" /></figure><p>Hope you get something new from it. Don’t forget to share it with the community, too, so they can also benefit from this context.</p><p>— You can follow me on <a href="https://medium.com/@akilasenanayake22"><strong>medium.com</strong></a>, I’ll share more valuable articles on different sides of technology and others, so don’t miss those. 🚀</p><p>IG: akila_senanayake</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f2850bea63d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discussing basic concepts about Number Systems]]></title>
            <link>https://medium.com/@akilasenanayake22/discussing-basic-concepts-about-number-systems-ed60ff569624?source=rss-f7495ee431af------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed60ff569624</guid>
            <category><![CDATA[octal-number-systems]]></category>
            <category><![CDATA[number-conversion]]></category>
            <category><![CDATA[decimal-number-system]]></category>
            <category><![CDATA[hexadecimal-numbers]]></category>
            <category><![CDATA[binary-number-system]]></category>
            <dc:creator><![CDATA[Akila Senanayake]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 07:02:43 GMT</pubDate>
            <atom:updated>2025-06-09T09:29:59.602Z</atom:updated>
            <content:encoded><![CDATA[<p>The number system is a method to notify or represent the numbers of a given set or identity using symbols of relative significance. There are different types of number systems in which a single number can be represented in multiple ways.</p><h4>How is the number system used in real life?</h4><p>The number system helps us identify the extent to which we need to limit an entity. These give us a general insight into the mathematical operations regarding the given numbers. This helps in the calculation of numbers using mathematical operations. <a href="https://unacademy.com/content/cat/study-material/mathematics/number-systems-in-real-life-situations/#:~:text=%3E%20(151)16-,How%20is%20the%20number%20system%20used%20in%20real%20life%3F,of%20numbers%20using%20mathematical%20operations.">Visit more about how the number system is used in real life.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTO5WDFRPDT824qKOUKnRA.png" /></figure><p>In the number system, numbers can be seen from different types of bases, and one needs to know how to convert them as needed. Although there are various technical methods for that, it is important to know how to do it alone with someone’s words in the basic foundation of learning information technology. I hope to talk about how to easily convert numbers between these different bases and some other important points.</p><p><strong><em>I am using my handwritten notes here because it is easy to understand.</em></strong></p><h3>Decimal number system</h3><p>Decimal is a numbering system that uses a base-10 representation for numeric values. The system is used extensively in everyday life to carry out routine tasks such as buying groceries, trading stocks, tracking football scores, or scrolling through cable channels. Numbers such as 7, 28, 199, and 532.11 are all examples of decimal numbers. The decimal system is also referred to as the <strong><em>Hindu-Arabic system</em></strong>. Additionally, the term decimal is often used to refer to a <strong>fraction</strong> that is represented as a number in the decimal system, such as 19.368. <a href="https://www.techtarget.com/whatis/definition/decimal">Learn more about decimals.</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FG4doTGQPRPw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DG4doTGQPRPw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FG4doTGQPRPw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cda0b74efe2a7de34bad91ae51478ca1/href">https://medium.com/media/cda0b74efe2a7de34bad91ae51478ca1/href</a></iframe><h3>Binary number system</h3><p>A binary number system is one of the four types of number systems. In computer applications, binary numbers are represented by only two symbols or digits, i.e., 0 (zero) and 1 (one). The binary numbers here are expressed in the base-2 numeral system. For example, (101)2 is a binary number. Each digit in this system is said to be a bit. <a href="https://byjus.com/maths/binary-number-system/">Learn more about binary.</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsXxwr66Y79Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsXxwr66Y79Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsXxwr66Y79Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/85bee5ef8b0067484f6693ae3734627b/href">https://medium.com/media/85bee5ef8b0067484f6693ae3734627b/href</a></iframe><h3>Octal number system</h3><p><strong>The Octal Number System </strong>has a base of eight and uses the numbers from 0 to 7. The octal numbers, in the <a href="https://byjus.com/maths/number-system/">number system</a>, are usually represented by binary numbers when they are grouped in pairs of three. For example, an octal number 128 is expressed as 0010102 in the binary system, where 1 is equivalent to 001 and 2 is equivalent to 010. <a href="https://byjus.com/maths/octal-number-system/">Learn more about octal.</a></p><h3>Hexadecimal number system</h3><p>The <strong>hexadecimal number system</strong> is a type of number system that has a base value equal to 16. It is also pronounced sometimes as <strong>‘hex’</strong>. Hexadecimal numbers are represented by only 16 symbols. These symbols or values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. Each digit represents a decimal value. <a href="https://byjus.com/maths/hexadecimal-number-system/#:~:text=The%20hexadecimal%20number%20system%20is,digit%20represents%20a%20decimal%20value.">Learn more about hexadecimal.</a></p><h3>Number Conversions</h3><p>As we know, the number system is a way of expressing numbers. In number system conversion, we will study how to convert one base, to a number of another base. There are a variety of number systems, such as binary numbers, decimal numbers, hexadecimal numbers, and octal numbers, that can be exercised.</p><p>Here, you will learn the conversion of one base number to another base number, considering all the base numbers such as decimal, binary, octal, and hexadecimal, with the help of examples. Here, the following number system conversion methods are explained:</p><h4>Decimal to Binary conversion</h4><p>In <strong>decimal-to-binary</strong> conversion, we convert a base 10 number to a base 2 number by using simple methods. For example, if 335(10) is a decimal number, then its equivalent binary number is 101001111(2). Thus, it is easy to convert the given decimal to binary using simple tricks, which you will learn here. <a href="https://byjus.com/maths/decimal-to-binary/">Learn more.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Usk_92DlGYDmwE66VcKsqA.jpeg" /></figure><h4>Binary to Decimal conversion</h4><p><strong>Binary-to-decimal conversion</strong> explains the conversion of a binary number (base-2) to an equivalent decimal number (base-10). In mathematics, a number system is used for expressing numbers. It is a way to represent numbers. <a href="https://byjus.com/maths/binary-to-decimal-conversion/">Learn more.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW5xfG7oKohc0JVw0kvXdA.jpeg" /></figure><h4>Decimal to Octal conversion</h4><p>To convert a<strong> decimal to an octal</strong>, we have to learn about both number systems first. A number with base 8 is the octal number, and a number with base 10 is the decimal number. Here we will convert a decimal number to an equivalent octal number. <a href="https://byjus.com/maths/convert-decimal-to-octal/">Learn more.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2W3loMtXlLKt_U4qFFo8w.jpeg" /></figure><h4>Octal to Decimal conversion</h4><p>In some cases, this method becomes difficult. Therefore, these methods are not widely used. An easy method is given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1o2ojAe9SbXMSOkOI24Rw.jpeg" /></figure><h4>Binary to Octal conversion</h4><p>These methods are not very popular. But it is a very easy method. Here, the corresponding binary value is divided into 3 parts from the end. Then 0 is added in front of the middle bit at the beginning. Then the values of those parts are obtained separately, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mqSEoyJLGGTjaStZivGDQ.jpeg" /></figure><h4>Decimal to Hexadecimal conversion</h4><p><a href="https://byjus.com/maths/decimal-to-hex-conversion/">You can learn things about using this.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F9UefBcrkYFhVAUlvJctqQ.jpeg" /></figure><h4>Hexadecimal to Decimal conversion</h4><p>As we know, number systems can be converted from one base to another. Thus, we can convert hexadecimal numbers to decimals easily. This number system conversion can be done as explained in the example given below: <a href="https://byjus.com/maths/hex-to-decimal/">Learn more.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQvFA5zkLow682jXn9NbEA.jpeg" /></figure><h4>Binary to Hexadecimal conversion</h4><p>Also, these methods are not very popular. But it is a very easy method. Here, the corresponding binary value is divided into 4 parts from the end. Then 0 is added in front of the middle bit at the beginning. Then the values of those parts are obtained separately, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikVOKlXSfxsXpWAlVUCmAw.jpeg" /></figure><h4>Bonus method</h4><p>In some cases, it is quite difficult to convert decimal values to octal or hexadecimal values at the same time. In such cases, it is easier to first convert the decimal value to a binary value and then convert it to octal or hexadecimal values as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ovVweQB2Qa73AwBjkjZTw.jpeg" /></figure><p>Here we have simply talked about what a number system is, different number systems, and how to convert them to each other. I hope to talk more about this in the future.</p><p>Hope you get something new from it. Don’t forget to share it with the community, too, so they can also benefit from this context.</p><p>— You can follow me on <a href="https://medium.com/@akilasenanayake22"><strong>medium.com</strong></a>, I’ll share more valuable articles on different sides of technology and others, so don’t miss those. 🚀</p><p>IG: akila_senanayake</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed60ff569624" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computational Thinking]]></title>
            <link>https://medium.com/@akilasenanayake22/computational-thinking-programming-concepts-002-c515f521ea8b?source=rss-f7495ee431af------2</link>
            <guid isPermaLink="false">https://medium.com/p/c515f521ea8b</guid>
            <category><![CDATA[pillars-of-ct]]></category>
            <category><![CDATA[what-is-ct]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[computational-thinking]]></category>
            <dc:creator><![CDATA[Akila Senanayake]]></dc:creator>
            <pubDate>Fri, 22 Sep 2023 11:56:37 GMT</pubDate>
            <atom:updated>2025-06-09T09:30:26.868Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Let’s discuss the theoretical side of Computational Thinking</strong></h3><p>Computational thinking is the step that comes before programming. It’s the process of breaking down a problem into simple enough steps that even a computer would understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*P9cuvrxCjJhTYOajSD5smg.png" /></figure><p>It is an interrelated set of skills and practices for solving complex problems, a way to learn topics in many disciplines and a necessity for fully participating in a computational world.</p><h3>Introduction</h3><p>Computational thinking (CT) is a problem-solving technique that imitates the process computer programmers go through when writing computer programs and algorithms. <a href="https://digitalpromise.org/initiative/computational-thinking/computational-thinking-for-next-generation-science/what-is-computational-thinking/">Click here to get more information</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*IOZkeLI75_Wd0Fv_-LifYg.png" /></figure><p>Any problem that seems difficult or unsolvable can easily be tackled by breaking it down into manageable pieces.</p><h3>Pillars of Computational Thinking</h3><p>The 4 major components of computational thinking. Decomposition, pattern recognition, abstraction, and algorithm design are them.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmUXo-S7gzds%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmUXo-S7gzds&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmUXo-S7gzds%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/19bbb0d2b69e6735aaa045d5ea44d194/href">https://medium.com/media/19bbb0d2b69e6735aaa045d5ea44d194/href</a></iframe><h4><strong>Decomposition</strong></h4><p><strong>Break down complex problems into smaller, simpler subproblems.</strong></p><p>Break a bigger problem into smaller parts, we can solve the smaller problems or smaller parts of the bigger problem rather than getting stuck on solving the bigger problem, that is what we do by decomposition once we find the solutions for the smaller parts we can put those solutions together and solve the figure problem that we were faced with originally.</p><p>When a problem is decomposed, or broken down into manageable pieces, it is much easier to solve. The problem can be more closely examined in further detail, making finding solutions easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*LRkZStp6bQg3fblrlYQAag.png" /></figure><h4><strong>Pattern Recognition</strong></h4><p><strong>Make connections between similar problems and experiences.</strong></p><p>In this, we try to see things that are common to multiple similar problems so that we can reuse the solution or solution that we have used for one of these similar problems by solving that or by using a solution given to a similar person we are able to solve multiple problems using pattern recognition.</p><p>In another way, pattern recognition is the analysis of similar objects or experiences and the identification of commonalities. By finding what these objects or experiences have in common, we can develop an understanding of patterns and make predictions based on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*nJtNQR0YkI5WUHSwWe0hPw.png" /></figure><h4><strong>Abstraction</strong></h4><p><strong>Make one solution applicable to multiple situations by ignoring unrelated, irrelevant information.</strong></p><p>In this, we try to focus or look at the important things of the problem or the details that matter to solve the problem and ignore the other things that are around it. Sometimes we get distracted by looking at the bigger problem or by looking at all the details of the problem. It is only a few things that we need to concentrate on solving the problem in that sense what we could do is look at an abstraction of the problem and try to solve that problem at the abstraction of the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*JeP4jfSJvRz-VYrAW6aHKA.png" /></figure><h4><strong>Algorithm Design</strong></h4><p><strong>Design simple achievable steps to realize a solution.</strong></p><p>In this, we have algorithm design in this we come out with step-by-step instructions to solve a problem. So that we can use the steps to solve this problem later or else we can ask somebody else to solve this problem in computer programming, we do that we come up with step-by-step instructions on how to solve a problem.</p><p>An algorithm is a stepwise approach to solving a problem. It involves creating a process or set of rules to be followed. It should also be noted that there can be more than one way to solve a problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*YLa94Oq5SC-0YJxaXp-ehA.png" /></figure><p>In the algorithm design, we can talk about <strong>Flow charts and Pseudocode.</strong></p><h3><strong>Flow charts and Pseudocode</strong></h3><p>A <strong>flowchart</strong> is a picture of the separate steps of a process in sequential order. <a href="https://asq.org/quality-resources/flowchart#:~:text=A%20flowchart%20is%20a%20picture,process,%20or%20a%20project%20plan.">See more about flowcharts</a></p><p>You can get some help with creating flowcharts and learn about that. <a href="https://www.lucidchart.com/pages/what-is-a-flowchart-tutorial">Click the link to visit the site</a></p><p>Flowcharts are a pictorial representation of algorithms, while pseudocodes are more high-level, textual representations.</p><p>For example, we can also think of the problem of scheduling the trip as an algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*zSPNJlw3fraD33q0HPS3gA.png" /></figure><p>We can also represent the solution as <strong>pseudocode</strong>. Pseudocode is a way of writing a solution to a problem in an informal way so we remember how we solved the problem and for other people to understand how we solved the problem. <a href="https://economictimes.indiatimes.com/definition/pseudocode">See more about pseudocodes</a></p><p>Pseudocode is not a programming language but we can easily convert pseudocode to programming languages like Python or Java.</p><p>Consider the same example above here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*7NWotppEsGAAyHNN4gQpFg.png" /></figure><p>Now that we have a way to solve problems and a way to represent them. so others can also solve them. we can think of machines solving problems for us. we can build machines to take each step and do what we ask it to do.</p><p>Hope you get something new from it. Don’t forget to share it with the community, too, so they can also benefit from this context.</p><p>— You can follow me on <a href="https://medium.com/@akilasenanayake22"><strong>medium.com</strong></a>, I’ll share more valuable articles on different sides of technology and others, so don’t miss those. 🚀</p><p>IG: akila_senanayake</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c515f521ea8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interpreter & Compiler | programming concepts #001]]></title>
            <link>https://medium.com/@akilasenanayake22/interpreter-compiler-3dbfa7d64f3d?source=rss-f7495ee431af------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dbfa7d64f3d</guid>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[compiler-and-interpreter]]></category>
            <category><![CDATA[difference]]></category>
            <category><![CDATA[programming-concepts]]></category>
            <category><![CDATA[interpreters]]></category>
            <dc:creator><![CDATA[Akila Senanayake]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 12:18:44 GMT</pubDate>
            <atom:updated>2025-06-09T09:31:08.296Z</atom:updated>
            <content:encoded><![CDATA[<h3>Interpreter &amp; Compiler</h3><p>The basic concepts in programming and it will be a great help to understand the functions of programming.</p><figure><img alt="Interpreter vs Compiler" src="https://cdn-images-1.medium.com/max/1024/1*oJTt9XI3v0ml-KNZ-83Jig.jpeg" /></figure><h3>Introduction</h3><p>A machine can understand only<strong> </strong><a href="https://tecadmin.net/what-is-binary-file/"><strong>binary format programs</strong></a>. But we use high-level languages for programming. High-level language uses English words and symbols. A machine cannot understand that. That is why we use an<strong> interpreter </strong>or <strong>compiler </strong>to convert <em>high-level language to machine language </em>(Binary format).</p><blockquote>Some programming languages are compiler-based languages, and some languages are interpreted languages.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*RcyaZEBaG9JowotjrxVzNA.png" /></figure><h4>Compiler</h4><p>A compiler is a program that translates source code into machine code. This program is then used to generate machine code that can be used to run the program.</p><p>Generate a separate executable file with machine code (.exe) by the compiler. We can run this<a href="https://www.techtarget.com/whatis/definition/executable-file-exe-file"> <strong>executable file</strong></a><strong> </strong>with/without that source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*wPPSmCENMl3JvcO57zQBsw.png" /></figure><p><a href="https://www.codementor.io/@ankitdixit7890/what-is-compiler-1um9dn13uc">Click here to visit more information about Compiler</a>.</p><h4>Interpreter</h4><p>An interpreter is a program that directly executes the instructions in a high-level language, without converting it into machine code.</p><p>We use a web browser like an interpreter. This does not generate a separate file. Interpreted language read line by line in source code and displayed/executed in a web browser. Source code must have to run this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*NgfquJrSzlnGM3OZmUDJkA.png" /></figure><p><a href="https://www.toppr.com/guides/computer-science/computer-fundamentals/system-software/interpreter/">Click here to visit if you want more about the interpreter.</a></p><h3><strong>Difference between this compiler and interpreter?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*gfmtQuQUdFA1zIzhqJTWyw.png" /></figure><p>A compiler is a software tool that converts human-written computer code into machine code. It generates an executable file, but an interpreter is not.</p><blockquote>The executable file runs fast because the machine can understand quickly. <strong>Compiler language is faster than interpreted language.</strong></blockquote><p>If we want to keep personal our source code within a project, compile language is the best solution. But we must share source code to run the interpreter language.</p><p>Compile language fully converts source code to machine code but interpreter language converts it line by line. <a href="https://www.freecodecamp.org/news/compiled-versus-interpreted-languages/">See more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*j2mktJdODeMaYQllVGjVhA.png" /><figcaption><a href="https://www.tutorialsmate.com/2020/08/difference-between-compiler-and-interpreter.html">Difference between interpreter and compiler | See more</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FI1f45REi3k4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DI1f45REi3k4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FI1f45REi3k4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f09cb1aa35af9baa862b2c9dc5c637b/href">https://medium.com/media/8f09cb1aa35af9baa862b2c9dc5c637b/href</a></iframe><h4><strong>Hybrid (Compiled and Interpreted)</strong></h4><p>First, the source code is converted to a byte code (.class) by the compiler (if the source code does not have any error). Then, the Interpreter converts it to machine code.</p><p>In this case, Java uses JVM (<a href="https://www.javatpoint.com/jvm-java-virtual-machine"><strong>Java Virtual Machine</strong></a>) as an interpreter. We cannot display within the execution like a web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*LbAKDknd7myxSsOz60ZfQg.png" /></figure><p>And also Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. (Python uses a compiler inside the interpreter).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*YAqkC3NGnEcY5vdKgRgPQg.png" /></figure><h4><strong>Why Do we use both?</strong></h4><p>When we can use both, we have some Advantages. Byte code compiled by Java that can run (in a JVM) with any operation system. So, we only have to install JVM to our Operating system.</p><p>Executed files converted by the compiler can run only one operating system because that file compiles on that operating system. An example of that is if we run that exe file in a Windows operating system, then we can only run this file in a Windows operating system. Cannot communicate with other operating systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*Vd-fXWvkjQHV-eHijK6qrg.png" /></figure><p>But in Java, the byte code we created can communicate with a JVM. We have to install Java for our OS and then we have a JVM so this JVM communicates with a system and byte code can run in any operating system with a JVM. That is a reason for compiled byte code by Java can run in any operation system. It defined the Java Portability feature.</p><p><strong>That is the reason Java is the most popular for making distributed applications.</strong></p><p>In conclusion, machines cannot understand High-level language. That is why we use an<strong> interpreter </strong>or <strong>compiler </strong>to convert it to machine language. As mentioned above, different types of programming languages work with different advantages, and the differences between them are also as above.</p><p>Hope you get something new from it. Don’t forget to share it with the community, too, so they can also benefit from this context.</p><p>— You can follow me on <a href="https://medium.com/@akilasenanayake22"><strong>medium.com</strong></a>, I’ll share more valuable articles on different sides of technology and others, so don’t miss those. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dbfa7d64f3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>