<?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 Abdellah Alaoui on Medium]]></title>
        <description><![CDATA[Stories by Abdellah Alaoui on Medium]]></description>
        <link>https://medium.com/@AlaouiSolaimani?source=rss-6aad346ef701------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sw_MNxfXbOCDQXeb1DukTA.jpeg</url>
            <title>Stories by Abdellah Alaoui on Medium</title>
            <link>https://medium.com/@AlaouiSolaimani?source=rss-6aad346ef701------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:50:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AlaouiSolaimani/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[Render Prop vs Higher order Component]]></title>
            <link>https://medium.com/@AlaouiSolaimani/render-prop-vs-higher-order-component-7b2fac7baaf0?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b2fac7baaf0</guid>
            <category><![CDATA[apollo]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Mon, 23 Apr 2018 10:57:04 GMT</pubDate>
            <atom:updated>2018-04-23T10:57:04.276Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Important Note</strong> : This is <strong>not</strong> about which one is best, but rather which one fits which scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2TMsTx4EK0vwbYNbe-mzg.png" /></figure><p>I’ve been writing a C<a href="http://contibuting.md/">ontributing.md</a> file for out front-end team, so far so good. I arrived to the graphql section. This is how we’re going to structure our queries and mutations (inspired by <a href="https://github.com/withspectrum/spectrum/blob/alpha/shared/graphql/queries/channel/getChannel.js">spectum code</a>) :</p><p>The way query and mutation files are structured is:</p><ul><li>The query as a named export</li><li>The options for the query are not exported</li><li>The default export is the Higher order component (HOC) of the query</li><li>When importing the default, its name starts with <strong>with</strong> import withLeadsQuery from “graphql/queries/leads”</li><li>This structure enables quick usage of the query, and further customization if needed by importing only the query and changing the options to suit.</li><li>It also allows using the render prop pattern using Query components.</li></ul><p>Here is some sample code</p><pre>import gql from &quot;graphql-tag&quot;;<br>import { graphql } from &quot;react-apollo&quot;;</pre><pre>export const loginMutation = gql`<br>  mutation Login($email: String!, $password: String!) {<br>    login(email: $email, password: $password) {<br>      token<br>    }<br>  }<br>`;<br>const loginMutationOptions = {<br>  props: ({ mutate }) =&gt; ({<br>    login: ({ email, password }) =&gt; mutate({ variables: { email, password } }),<br>  }),<br>};<br>export default graphql(loginMutation, loginMutationOptions);</pre><h3>HOC vs render prop:</h3><p>When to use HOC? render prop? and why?!!</p><p>I did <a href="https://dev-blog.apollodata.com/query-components-with-apollo-ec603188c157">some</a> research and found the following arguments in favour of the render prop:</p><ol><li>Testability</li><li>Separation of concerns</li><li>Abstraction over data management layer</li></ol><p>Now let’s push these arguments a bit:</p><h4>Testability and separation of concerns</h4><p>I don’t see any particular improvement in testing. And we can put the query logic in a separate file for separation of <em>files/concerns</em></p><pre>import withLeads from &quot;graphql/queries/leads&quot;<br>export const LeadsList = () =&gt; &lt;div&gt;...&lt;/div&gt;<br>export default withLeads(LeadsList)</pre><h4>Abstraction over data management layer</h4><p>I don’t think this one is a strong argument, as we very rarely (i.e never) change data management layers.</p><p>I did <a href="http://engineering.khanacademy.org/posts/creating-query-components-with-apollo.htm">more research</a> and found the following arguments in favour of the Query component:</p><ol><li>When using HOC, The properties of the component <strong>don’t properly communicate the intended usage</strong>, as you don’t know which props you should pass to the component VS data-fetching prop-types</li><li>This use case “We’d like to pass a parameter to the component in order to filter the query by date” makes presentation component tightly coupled to the query logic. Using the same logic in another component isn’t obvious</li></ol><h4>Prop types</h4><p>This is a totally valid argument. And we can circumvent it with a simple comment -&gt; <em>data fetching props</em></p><h4>Tight coupling</h4><p>In the example of the article above, mapping props is done in the query side. And it’s what makes it tightly coupled to the presentation component.</p><h3>In favour of the render prop</h3><p>I have been pushing back the render prop even though i like it. Here are some reasons for using it instead of HOC.</p><p>1- The query is launched as soon as the component renders. Maybe you want to <strong>delay</strong> it until it’s needed.</p><pre>render(){<br>    return (<br>        &lt;div&gt;<br>            ...<br>            { timeToLoadMe &amp;&amp; (<br>                &lt;Query query={leadsQuery}&gt;<br>                    {()=&gt; ...}<br>                &lt;/Query&gt;<br>            )}<br>        &lt;/div&gt;<br>    )<br>}</pre><p>2- You’re planning to move some part to a separate component. You might as well move data and presentation all together.</p><p>What are your thoughts on this? what are your use cases?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b2fac7baaf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native, why you should care]]></title>
            <link>https://medium.com/@AlaouiSolaimani/react-native-why-you-should-care-b30e5f960399?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/b30e5f960399</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Sun, 06 Aug 2017 14:53:22 GMT</pubDate>
            <atom:updated>2017-08-09T17:22:55.119Z</atom:updated>
            <content:encoded><![CDATA[<p>“<a href="https://facebook.github.io/react-native/">React Native</a> is a framework for building native apps using React” is the official one sentence definition in the <a href="https://facebook.github.io/react-native/">React Native website</a>. It enables you to build native <strong>mobile apps </strong>using the technologies most developers are familiar with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*SluXAlSPIxxWjwUsiqD2Kw.png" /></figure><p>So you can write a iOS, Android, and <a href="https://github.com/Microsoft/react-native-windows">Windows-phone</a> app using: JavaScript and a <a href="https://code.facebook.com/posts/1751945575131606/yoga-a-cross-platform-layout-engine/">subset of CSS</a> (read without pain points). More than that, you can share most of your code between platforms (sharing all of it would probably make a bad UX but you can do it of you want).</p><p>“😴 … We can do that using Cordova or Ionic”</p><p>Yes. But wait, there is more.</p><h4>React Native apps are true native apps</h4><p>React Native does not actually build a web app and wrap it in a WebView. Instead, it uses the native platform’s building blocks. So, a `Text` component would map to a `UITextView`on iOS and to a `TextView` in Android.</p><p>Basically, React Native has two threads: A main thread responsible for displaying the user interface and another thread that runs the JavaScript code in the device’s JavaScript engine. And they communicate via a bridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EnRosUJLH3xH61HKGbBKKg.jpeg" /></figure><p>We might go into more depths in future posts. But for now, keep in mind this architecture enables great performance since communication between the threads is asynchronous, batched and serializable.</p><h4>React Native performance</h4><p>React Native performance is by far better than its hybrid competitors, but it has been recently compared with swift and the results are … shockingly good. As it seems react-native performs better then Swift in some cases! <a href="https://medium.com/the-react-native-log/comparing-the-performance-between-native-ios-swift-and-react-native-7b5490d363e2">Read the full article here</a></p><p>“🤔 I don’t know, we have a team of native iOS developers and Android developers and we’re <em>happy</em>”</p><h3>React-native makes everybody happy</h3><p>I know, that’s a very weird claim to make. So let’s split it to three to make it less so.</p><h4>1. Managers: React Native will save you tons of money</h4><p>Let’s perform a switch statement over the size of the team you can afford, and talk briefly about each case:</p><ul><li><strong>One developer</strong> (typical for a startup or a side-project): You can write a cross-platform mobile app without having to learn (or hire someone who knows) Java or Objective-c/Swift. And even better, you can even write the web app using the same technologies ! → That’s at least 50% of the cost gone with the wind without compromising on quality.</li><li><strong>Separate teams for Android and iOS: </strong>First things first, you don’t have to go all in into react-native. You can incrementally adopt it in your existing app, like Facebook and AirBnB are doing. Second, if you opt-in to do that, you will gain the immediate benefit of (at least) doubling your time to ship a feature + reducing the number of people that need to work on the same feature from 2 → 1. And thus, you’ll have more time to try those shiny features that were hanging in the backlog. One last thing is that you can also easily expand your mobile team with people from the web team. In this video, Tal Kal Head of mobile engineering share Wix’s experience with React Native across their many teams (worth watching)</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FabSNo2P9mMM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DabSNo2P9mMM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FabSNo2P9mMM%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/3cd04469c9c2cdb06eb8f0559047afcb/href">https://medium.com/media/3cd04469c9c2cdb06eb8f0559047afcb/href</a></iframe><h4><strong>2. Developers: React Native has the best developer experience out there</strong></h4><p>Developer Experience is a term that was coined lately and we have been hearing a lot about it in the context of APIs mainly. But The React ecosystem highly values DX and puts it as a top priority!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqXVakfdA040%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqXVakfdA040&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqXVakfdA040%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/9d97c62fefbcda6d3bf4dc980fdf4957/href">https://medium.com/media/9d97c62fefbcda6d3bf4dc980fdf4957/href</a></iframe><p>Note that having a great DX is not a luxury, since many companies in the Fortune 500 are tech companies and the rest relies heavily on technology. But more importantly, <a href="https://thenewkingmakers.com/">developers are the new kingmakers</a> and are today the most important constituency in business (more on this later). And thus, satisfying them is not an option anymore.</p><p>Let’s walk through why react-native has a great DX:</p><ul><li><strong>Time to Hello World: </strong>react-native holds the record on this one. Since <a href="https://github.com/react-community/create-react-native-app">you can start coding</a> and run your app in your phone in no time (and no pain of downloading SDKs and configuring environment variables …)!</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9baaVjGdBqs%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9baaVjGdBqs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9baaVjGdBqs%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/24243da409099574ded018279f859981/href">https://medium.com/media/24243da409099574ded018279f859981/href</a></iframe><ul><li><strong>Extremely fast development cycles: </strong>If you have been working on Android or iOS development or using any compiled language, you are used to wait for a few (or many) minutes to recompile your project and see the change. But in React Native, you just hit the reload button (or not if you use live reloading) to see your change (available also if running the app in your phone!). And it makes all the difference in the world.</li><li><strong>No friction: </strong>If you are a web developer, you’ll feel right at home using React Native. You’ll write using familiar tools (JavaScript and a subset of CSS) and you’ll <a href="https://facebook.github.io/react-native/docs/debugging.html">debug using the amazing chrome dev-tools.</a></li><li><strong>A wealth of libraries at your disposal: </strong>If you worry about working in a new ecosystem and therefore lacking on packages to assist you … rest assured, we’ve got your back. You can use the majority of <a href="https://www.npmjs.com/">npm</a> packages (<a href="http://www.modulecounts.com/">the largest module repository out there</a>), and you can even run anything node can run on desktop can run using <a href="https://github.com/staltz/react-native-node">react-native-node</a> (Android only for now)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*u6Em9H13966dVnvgkx5t4g.png" /><figcaption>Screenshot from <a href="http://www.modulecounts.com/">http://www.modulecounts.com/</a> in August 2017</figcaption></figure><h4>3. End Users: React Native will enable you some unprecedented advantages in the mobile land</h4><p>Satisfying your end users is the most important thing for anyone building an app. And this can be quite hard to do, which can lead to bad ratings that might kill your lovely app.</p><p>Let’s go through a simple and usual scenario: you ship a new feature, and ship a new version to the store. You wait for a day or two to get approved by Apple, and then users can install the update.</p><p>Let’s say you discover a bug 🐛 right after your app has been pushed to the stores. You decide to fix it and ship it immediately. But it turns out immediately is around 2 days in Apple land ! And after that, you need the affected users to install an update again! 😫</p><p>React Native to the rescue!</p><p>In react-native, lies the solution to both of these problems. Updates Over The Air will give you the ability to update your app without the users nor the app store even noticing 😈</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*GUbS6EGDq-zzP-A7ZZnqcw.png" /></figure><p>Using a tool like <a href="https://microsoft.github.io/code-push/">Microsoft’s Code Push</a>, you can do even more. You can manage alpha, beta and production apps and do advanced A/B testing and experimentation (for free)!</p><p>“🌟, cool, but can i really use react-native in production?”</p><h4>Companies using React Native in production</h4><p>Believe it or not, you probably already have a react-native app in your phone. Here are <a href="https://facebook.github.io/react-native/showcase.html">some mobile apps built with it</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*ED3kDCBKgwf-n6husHk9Iw.png" /><figcaption>Screenshot taken from <a href="https://facebook.github.io/react-native/showcase.html">https://facebook.github.io/react-native/showcase.html</a></figcaption></figure><h4>Conclusion</h4><p><a href="https://facebook.github.io/react-native/">React Native </a>is a great tool that has a lot of potential and a bright future. You should definitely give it a try in your next project. You might need to convince many people before. One advice i’ll give you about this is “get the developers to try it out and show the managers the money they’ll win”.</p><p>If you have some questions about React and its ecosystem, feel free to reach me at als.abdellah@gmail.com or just leave a comment.</p><p>If you like this post, show me some 💌, share and subscribe for more on React, React Native, flow and other interesting topics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b30e5f960399" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Graveyard for my ideas]]></title>
            <link>https://medium.com/@AlaouiSolaimani/a-graveyard-for-my-ideas-1042e776cbb0?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/1042e776cbb0</guid>
            <category><![CDATA[pizza]]></category>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[robots]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Sun, 22 Jan 2017 11:51:25 GMT</pubDate>
            <atom:updated>2017-01-22T11:51:25.219Z</atom:updated>
            <content:encoded><![CDATA[<h3>Motivation</h3><p>I have a lot of ideas in my mind, and they’re just dying in a corner in my memory. I decided to burry them somewhere.</p><h3>Pizza printer</h3><p>I love pizza, and i love drawing. And i thought we could build a mobile app where you can draw something on a pizza and send it as a gift to someone (not anyone).</p><p>Let me elaborate.</p><p>First, you would draw stuff on the pizza using real ingredients (cf. the ingredients picker in the bottom) and the price auto-updates of course (not shown in the picture to make people pay more).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UF2ZBlcE02zLmC9haqmd4g.png" /><figcaption>Borrowed from <a href="http://pixiteapps.com/pigment/apple-ipad-pro-pencil.html">Pigments app</a></figcaption></figure><p>Please don’t ask me about the ingredients i’m going to use for all these colors. I promise not to put any chemical stuff on the pizza.</p><p>Now to the hard part. How are we going to make our pizza?</p><h4>Answer</h4><p>For a few clients a day, i’ll just make it manually.</p><p>And if this thing works:</p><h4>Pizza Robot ©</h4><p>The robot will use the printing machines algorithm. Here is how it works (at least in my imagination):</p><p>It transforms the drawing (input) from our app into a grid where each square has an ingredient or none (in this case it will be the tomato sauce). Note this is going to look more like a 64 bits image with 16 colors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*egBc2ZzC5avwtfqRw9yu-w.png" /><figcaption><a href="http://toshirofrog.deviantart.com/art/16-Bit-Sprites-Pikachu-331469418">By ToshiroFrog</a></figcaption></figure><p>Our robot will repeat the following steps for all the ingredients :</p><ul><li>It will make sieve/grid with empty squares as the ones having our ingredient on them and all the others will be covered.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*cXVFTHbfxmWOm4bAAKcBzg.jpeg" /><figcaption>Ingredients sieve</figcaption></figure><ul><li>Then our robot will sprinkle the ingredient on the sieve.</li></ul><p>Finally, our Pizza Robot will put the pizza in the oven</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*ewJ3RPLjIk5q8OF3R4TvUw.jpeg" /><figcaption>Our final pizza, Pikachu is not very clear in this shot 🤔</figcaption></figure><h3>Conclusion</h3><p>Hopefully, you understood the concept. I will make sure i write about my other ideas from time to time.</p><p>Thanks for reading all the way here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1042e776cbb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[About me, risks and a first step]]></title>
            <link>https://medium.com/@AlaouiSolaimani/about-me-risks-and-a-first-step-e698388c159e?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/e698388c159e</guid>
            <category><![CDATA[experiment]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Thu, 21 Jan 2016 14:46:12 GMT</pubDate>
            <atom:updated>2016-01-21T14:46:12.235Z</atom:updated>
            <content:encoded><![CDATA[<p>I am usually afraid of taking risks. I give it several names to make it sound nice or acceptable, like procrastination or perfectionism or even planning …</p><p>I have a few articles sitting in drafts, and tons of ideas with a big potential in the graveyard.</p><blockquote>The brain is a graveyard of ideas</blockquote><p>I decided to tackle this problem seriously and since i have no idea how to actually do that, i will experiment.</p><p>This article is an experiment in itself. One of my resolutions for this year is to write 15 medium posts, which makes this post a first step, a risk … but i keep saying to myself: “what’s the worst thing that could happen? Nobody will read it?”. That’s totally fine, I’ll just try again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*e-xMMxIePpJrPcdK2t-q1Q.jpeg" /><figcaption>Another first step takes you higher</figcaption></figure><p>Stay tuned for the next experiment, for the next first step.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e698388c159e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn to Debug]]></title>
            <link>https://medium.com/@AlaouiSolaimani/learn-to-debug-5b405afefa6b?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b405afefa6b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Thu, 07 Jan 2016 15:39:10 GMT</pubDate>
            <atom:updated>2016-01-07T15:39:10.806Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Debugging is the cornerstone of being a programmer.</blockquote><p>The first meaning of the verb to debug is to remove errors, but the meaning that really matters is to see into the execution of a program by examining it. A programmer that cannot debug effectively is blind.</p><p>Idealists that think design, or analysis, or complexity theory, or whatnot, are more fundamental are not working programmers. The working programmer does not live in an ideal world. Even if you are perfect, your are surrounded by and must interact with code written by major software companies, organizations like GNU, and your colleagues. Most of this code is imperfect and imperfectly documented. Without the ability to gain visibility into the execution of this code the slightest bump will throw you permanently. Often this visibility can only be gained by experimentation, that is, debugging.</p><p>Debugging is about the running of programs, not programs themselves. If you buy something from a major software company, you usually don’t get to see the program. But there will still arise places where the code does not conform to the documentation (crashing your entire machine is a common and spectacular example), or where the documentation is mute. More commonly, you create an error, examine the code you wrote and have no clue how the error can be occurring. Inevitably, this means some assumption you are making is not quite correct, or some condition arises that you did not anticipate. Sometimes the magic trick of staring into the source code works. When it doesn’t, you must debug.</p><p>To get visibility into the execution of a program you must be able to execute the code and observe something about it. Sometimes this is visible, like what is being displayed on a screen, or the delay between two events. In many other cases, it involves things that are not meant to be visible, like the state of some variables inside the code, which lines of code are actually being executed, or whether certain assertions hold across a complicated data structure. These hidden things must be revealed.</p><p>The common ways of looking into the ‘innards’ of an executing program can be categorized as:</p><ul><li>Using a debugging tool.</li><li>Printlining — Making a temporary modification to the program, typically adding lines that print information out, and</li><li>Logging — Creating a permanent window into the programs execution in the form of a log.</li></ul><p>Debugging tools are wonderful when they are stable and available, but the printlining and logging are even more important. Debugging tools often lag behind language development, so at any point in time they may not be available. In addition, because the debugging tool may subtly change the way the program executes it may not always be practical. Finally, there are some kinds of debugging, such as checking an assertion against a large data structure, that require writing code and changing the execution of the program. It is good to know how to use debugging tools when they are stable, but it is critical to be able to employ the other two methods.</p><p>Some beginners fear debugging when it requires modifying code. This is understandable — it is a little like exploratory surgery. But you have to learn to poke at the code and make it jump; you have to learn to experiment on it, and understand that nothing that you temporarily do to it will make it worse. If you feel this fear, seek out a mentor — we lose a lot of good programmers at the delicate onset of their learning to this fear.</p><p>Next <a href="https://github.com/braydie/HowToBeAProgrammer/blob/master/1-Beginner%2FPersonal-Skills%2F02-How%20to%20Debug%20by%20Splitting%20the%20Problem%20Space.md">How to Debug by Splitting the Problem Space</a>.</p><h3>Notes:</h3><p>From <a href="https://github.com/braydie/HowToBeAProgrammer">A guide on how to be a Programmer </a>. This is a proposal for posting this book in Medium. Refer to <a href="https://github.com/braydie/HowToBeAProgrammer/issues/16">this issue</a></p><p>Copyright 2002, 2003 Robert L Read</p><p><a href="https://github.com/braydie/HowToBeAProgrammer/blob/master/LICENSE">LICENSE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b405afefa6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running away]]></title>
            <link>https://medium.com/@AlaouiSolaimani/i-run-662a815e5029?source=rss-6aad346ef701------2</link>
            <guid isPermaLink="false">https://medium.com/p/662a815e5029</guid>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Abdellah Alaoui]]></dc:creator>
            <pubDate>Fri, 09 Oct 2015 10:11:56 GMT</pubDate>
            <atom:updated>2015-10-09T11:18:33.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qbFXeCC_8XQDg5cQOfs-wA.jpeg" /></figure><p>I run:</p><p>Away from duty,<br>Away from blame,<br>Away from everything,<br>But just in my brain</p><p>Unfaithfully,<br>I ran to friends,<br>Here take away,<br>What caused me pain</p><p>Gently,<br>they took my hand,<br>‘should stop running,<br>Ô poor friend</p><p>Fiercly,<br>i smacked their hands,<br>let go of me,<br>‘don’t understand</p><p>I kept running …</p><p>It was dark,<br>i was hollow,<br>Anyone there,<br>but you sorrow?</p><p>Like a pred,<br>it came close,<br>not for the kill,<br>just showed her jaws</p><p>I felt some hands,<br>they were so warm,<br>surrounding me,<br>am i alone?</p><p>They were here,<br>here in my heart,<br>they were here,<br>we’re not apart</p><p>I stood up,<br>faced my pred,<br>it then vanished,<br>far ahead</p><p>As i walked back,<br>i felt it close,<br>it would come back,<br>if i just pause</p><p>For those running,<br>all i can say,<br>if you keep running,<br>you’ll stay the prey</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=662a815e5029" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>