<?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 The CPP Devil on Medium]]></title>
        <description><![CDATA[Stories by The CPP Devil on Medium]]></description>
        <link>https://medium.com/@cpp-dvl?source=rss-6b4d3cf4a717------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EPQoiv98QA8XGikvGGg_PQ.jpeg</url>
            <title>Stories by The CPP Devil on Medium</title>
            <link>https://medium.com/@cpp-dvl?source=rss-6b4d3cf4a717------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:26:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cpp-dvl/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[Debugging your fucking health: A programmer’s Wake-Up Call]]></title>
            <link>https://cpp-dvl.medium.com/debugging-your-fucking-health-a-programmers-wake-up-call-625fa543e5ce?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/625fa543e5ce</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[midlife-crisis]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[midlife]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 01:14:33 GMT</pubDate>
            <atom:updated>2024-11-27T15:10:24.783Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“The best trick the devil ever pulled is to set mankind into thinking he doesn’t suffer illness” — me (and some Kayzer Souce)</blockquote><p>When I was younger, debugging software felt like debugging life: find the issue, patch it, and move on. But as a 46-year-old electronics engineer, I’ve learned the hard way that debugging the human body doesn’t follow the same logic. Illness isn’t just a glitch; it’s a cascade of system failures, and ignoring the warnings can lead to catastrophic downtime.</p><p>Last week was a vivid reminder of this truth. It started with something I thought I could handle: a dull backache. “Probably my chair,” I thought, adjusting my posture like a quick fix to bad code. Sleep became elusive, but I brushed it off. By day two, the pain had migrated to my shoulders and neck — a persistent bug moving through my body. Still, I was too engrossed in my work to see it as anything serious.</p><h3>Day One: “I Can Handle a Back Pain”</h3><p>It began subtly: an ache in my back that interrupted my sleep. I attributed it to poor posture, perhaps too many hours hunched over my desk. Adjust the chair, keep working, problem solved — or so I thought. Ignoring the discomfort felt reasonable; after all, who takes a day off for a little back pain? Sleep was the first thing sacrificed, but I convinced myself it was temporary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XMMazyDBOzfHaFkx.jpg" /><figcaption>You can handle a back pain, can’t you? You have been thru worse. You are tempted with this idea levered by vanity. <strong>The Fallen Angel, Cabanel</strong>.</figcaption></figure><h3>Day Two: “The Pain Is Spreading”</h3><p>By the next day, the ache had migrated. My shoulders and neck were stiff, as if someone had tightened the screws on my skeletal structure. This wasn’t just a seating problem anymore, but I shrugged it off. Rest wasn’t an option; there were tasks to finish, bugs to fix, and deadlines to meet. I powered through, rationalizing that discomfort is just part of the job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0CCJ3w5Vajy3M-K9TmIU9g.png" /><figcaption>The pain spread thru my body. <strong>Lepper with begin bowl. Miroir Historial. Vincent De Beauvais/Alamy</strong>.</figcaption></figure><h3>Day Three: “Self-Medication to the Rescue”</h3><p>Frustrated with the mounting discomfort, I turned to over-the-counter painkillers. Neck pain? Solved. But in fixing one issue, I introduced another: gastric pain. The meds wreaked havoc on my stomach, making sleep even more elusive. The cycle was clear — less sleep, more pain — but I was too preoccupied with work to break it. This was just a rough patch, I told myself. It would pass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*lOY5BkCQ8DzBnTFUUgxXPA.png" /><figcaption>Self medicating engineer in the 21 th century. Circa 2024 Medellin, Colombia.</figcaption></figure><h3>Day Four: “Here Comes the Cold”</h3><p>By the fourth day, the symptoms ramped up. Nasal congestion, sinusitis, and a headache joined the party, and I knew it was time to call the doctor. He prescribed antibiotics and rest. I followed the first half of the advice religiously. The second half — rest — was treated like an optional feature I didn’t have time to install. Resting meant downtime, and downtime meant falling behind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmKFwqwD8LTXS590c8z7tQ.png" /><figcaption>The cold got “colder”. This from Getty Images.</figcaption></figure><h3>Day Five: “I’ll Just Push Through”</h3><p>With antibiotics in my system, I convinced myself I was improving. I sat down to code, determined to stay productive. It was a disaster. My brain, usually sharp and logical, was foggy and uncooperative. Simple tasks took ages, and I made more errors than progress. It was like trying to debug a program with corrupted logs: everything was slower, harder, and less reliable. Still, I told myself I just needed to push harder.</p><h3>Day Six: “The Symptoms Take Over”</h3><p>The next day, I couldn’t even pretend to work. My body was shutting down, and the symptoms were getting worse. I spent the day in bed, feverish and weak. Breathing was becoming a chore, but I still clung to the hope that the antibiotics would eventually do their job. Rest felt more like defeat than recovery, and I wasn’t ready to admit defeat.</p><h3>Day Seven: “System Crash”</h3><p>Early in the morning, everything changed. A sudden, sharp pain struck at the base of my lungs, stealing my breath. It was so intense I nearly blacked out. Panic set in as I realized I couldn’t ignore this any longer. Somehow, I made it to the hospital, where the doctors delivered the verdict: the antibiotics hadn’t been effective, and my cold had escalated into pneumonia. I was admitted immediately, ordered to rest, and hooked up to machines monitoring my fragile system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wxn-R6Zg6HuRsq8M" /><figcaption>A computer crashing on borlands compiled C / DOS program in the nineties, after chatting with <strong>Gabriel Puentes Tamayo</strong>.</figcaption></figure><h3>Days Eight Through Ten: “Recovery Isn’t Instant”</h3><p>The hospital stay was a blur of chest pain, labored breathing, and a lot of enforced rest. By the eighth day, I felt marginally better, but coughing brought sharp, unbearable pain. Breathing was easier, but every cough felt like a system interrupt. On day ten, I was stable enough to go home, but the road to full recovery was clearly going to be long and slow.</p><h3>Reflection: Debugging Health in the Long Term</h3><p>This experience left me reflecting on a fundamental truth: <strong>Programming is a long game, but so is health. Neglect either, and you’ll find yourself facing a costly failure.</strong> Just as clean code requires discipline, good health habits are non-negotiable — especially as you age.</p><p>For programmers in their 30s and 40s, here are a few habits that can keep you running smoothly:</p><h4>1. Sleep Is Your Compiler</h4><p>Skipping sleep is like skipping compilation. The results are unpredictable, and the cost is steep. Aim for 7–8 hours a night — no exceptions.</p><h4>2. Move Regularly</h4><p>Sitting all day is a bug in your health system. Schedule “commits” of physical activity: stretch every hour, walk after meals, or do a short workout. Think of it as optimizing your runtime.</p><h4>3. Nutrition Matters</h4><p>You wouldn’t run a program on outdated hardware, so why fuel your body with junk? Balanced meals are essential for sustained focus and energy.</p><h4>4. Listen to the Logs</h4><p>Pain, fatigue, and recurring issues are debug logs from your body. Address them early to avoid catastrophic failures.</p><h4>5. Isolation Isn’t Always Bad</h4><p>When you’re sick, isolate your work and recovery threads. Trying to multitask both is a recipe for disaster.</p><h3>The False Heroism of Working While Sick</h3><p>On day five, when I sat at my desk, I thought I was being productive. In reality, I was just creating more problems — for myself and my team. My logic was sluggish, errors multiplied, and progress stalled. Worse, I ignored my body’s desperate calls for rest. This wasn’t heroism; it was hubris.</p><h3>Conclusion</h3><p>Your body is the hardware that runs the software of your life. Debug it regularly, optimize its performance, and prioritize rest and recovery. Whether you’re 20, 30, or 40, the lessons are the same: health isn’t just a feature — it’s the foundation for everything you do.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=625fa543e5ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I hate when developers give a fuck.]]></title>
            <link>https://cpp-dvl.medium.com/i-hate-when-developers-give-a-fuck-8e607f728111?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e607f728111</guid>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 03:06:02 GMT</pubDate>
            <atom:updated>2024-11-09T03:06:02.897Z</atom:updated>
            <content:encoded><![CDATA[<p>One or two things about being persuasive…….</p><p>DEV1: “Hey your change may have introduced longer build times.”</p><p>DEV2: “I don’t care.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gpYYWAFbOIW4H3gy" /><figcaption>Photo by <a href="https://unsplash.com/@notso?utm_source=medium&amp;utm_medium=referral">Christopher Ott</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Why does this happen? This “I don’t care” attitude — what I call “do-not-give-a-fuckerism” — sometimes feels like a way for others to avoid facing skill gaps, brushing them off as irrelevant. It’s frustrating — almost infuriating — when it seems like someone is deliberately refusing to grow or take ownership. It’s not just that they don’t care about improving; it’s that I can’t seem to make them care. That’s the part that really hits me: the realization that I can’t bridge that gap. It makes me wonder if, somewhere along the line, I’ve missed learning the one skill I need most — the skill to persuade.</p><p><strong>Why Persuasion Feels So Essential (and So Elusive)</strong></p><p>Persuasion is supposed to be that key that unlocks closed doors, right? In a technical environment, where every change has ripple effects, it’s about more than just getting a “yes.” Persuasion means inspiring a sense of responsibility, of shared goals, of pride in our work. But it feels so intangible — how do you get someone to truly care, especially when they seem intent on brushing things off?</p><p>What I’m coming to realize is that persuasion isn’t about lecturing or debating. It’s about reaching people where they are, helping them see the bigger picture, and finding ways to make our values overlap. But feeling that and actually doing it? That’s where I feel I’m falling short, and it’s frustrating, especially when I know that making these changes could make us all better developers.</p><p><strong>Where to Begin: Developing Persuasive Techniques</strong></p><ol><li><strong>Connect to Shared Goals</strong>: One way I’ve found to start building influence is by framing improvements as a shared mission. Improving build times doesn’t just benefit one person; it impacts everyone’s productivity. If I can make this connection clear, it’s a start in getting others to see why it matters.</li><li><strong>Use Hard Data</strong>: Indifference often comes from a lack of tangible proof. By bringing in specific metrics — like build times and productivity loss — I can root my argument in concrete data. Numbers don’t lie, and sometimes showing the impact visually can spark interest where words alone fall short.</li><li><strong>Encourage Accountability</strong>: I’ve also found that a little transparency can go a long way. When others realize that their decisions affect more than just themselves, they might start to care more. My goal isn’t to shame anyone but to make it clear that we’re all part of a larger ecosystem, and every choice has a ripple effect.</li><li><strong>Leverage Peer Influence</strong>: There’s a unique power in collective opinion. If others on the team recognize and promote efficient workflows, it’s possible that peer influence might encourage a shift. Sometimes, people need to feel that they’re part of a standard worth maintaining.</li><li><strong>Give Constructive Feedback and Celebrate Wins</strong>: Celebrating improvements — no matter how small — helps reinforce a culture of growth. It’s easy to get frustrated, but I’m learning that positive reinforcement might be more effective than any argument I could make.</li><li><strong>Conclusion: Accepting Frustration as Part of Growth: </strong>Learning how to persuade is as much about personal growth as it is about changing others. I don’t have all the answers — I’m just starting to scratch the surface here. But one thing I’m coming to accept is that this frustration, this feeling of “I hate that I can’t persuade,” is actually what’s pushing me to improve.</li></ol><p>Persuasion isn’t easy, and maybe it’s never going to be second nature for me. But by recognizing my own limitations and seeking ways to work around them, I’m finding that the very struggle with persuasion is teaching me more than I expected.</p><p><strong>Key Points to Take Action:</strong></p><ul><li>Connect individual actions to team-wide goals.</li><li>Use data to illustrate the tangible impact of decisions.</li><li>Foster a culture of shared responsibility through transparency.</li><li>Encourage positive influence within the team.</li><li>Reinforce and recognize small improvements.</li></ul><p>Through these steps, maybe I can transform my frustration into progress — turning that “I hate I can’t persuade” into “I’m learning how to make change happen.” It’s not perfect, but it’s a start. And for now, that’s enough to keep pushing forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jrsU8gQ73aftcCmB" /><figcaption>Photo by <a href="https://unsplash.com/@jda_buzz?utm_source=medium&amp;utm_medium=referral">Julian Ackroyd</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e607f728111" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SHIPPING C/C++ APPS & BUILDING STUFF THE HARD WAY:]]></title>
            <link>https://cpp-dvl.medium.com/shipping-c-c-apps-building-stuff-the-hard-way-3b39e9711052?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b39e9711052</guid>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Fri, 10 May 2024 23:25:04 GMT</pubDate>
            <atom:updated>2024-05-10T23:45:27.439Z</atom:updated>
            <content:encoded><![CDATA[<h3>PART 1. OPENSSL FOR NON PRODUCTION STUFF (X86_64 and Apple Sillicon).</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y78xwh63nQGK-LIb" /><figcaption>Photo by <a href="https://unsplash.com/@kintecus?utm_source=medium&amp;utm_medium=referral">Ostap Senyuk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A pretty common place, you can find yourself when compiling complex C/C++ application …. well maybe not so complex, yet the dependencies the app uses are installed in your system. So you link against the libs installed in your machine, and use the headers stored in your machine to create the application. Great. It works (I’m avoiding all the sweat and blood).</p><p>Problem with this is shipping the app. You can’t expect your users will have all the stuff you had in the first place in your machine.</p><p>A poor solution to this problem is to ship the source code. I think is not necessary to explain the issue entailed: your users are not necessary the kind of persons who like to go thru the nitty gritty of compiling and linking an application.</p><p>So what do you do? A cool hard way solution is to download all your dependencies compile and link them <em>statically</em>. This will assure the package you distribute WILL HAVE all the code needed within itself.</p><p>Easier said than done. Of course. So today we will bring what I would think is the most common package for applications that use networking in a safe way: OPENSSL.</p><p>The plan is the following:</p><ol><li>download the source code.</li><li>build it statically, x86_64.</li><li>build it statically, apple sillicon.</li><li>embed it in you application. part 2 of the series.</li></ol><p><strong>Download The Source Code.</strong></p><p>Using wget let’s download the last stable version and create a folder to install the result:</p><pre>root_folder$ wget https://openssl.org/source/openssl-3.2.1.tar.gz<br>root_folder$ tar -zxvf openssl-3.2.1.tar.gz<br>root_folder$ mkdir -p lib/x86_64<br>root_folder$ cd openssl-3.2.1</pre><p>If you want other version rather than 3.2.1, go to openssl.org/source and copy the link of the version you want to use and the type the wget command in your terminal.</p><p><strong>Build Statically, x86_64.</strong></p><pre>openssl-3.2.1$ ./Configure x86_64 no-shared --prefix=/where/you/want/to/install/lib/x86_64<br>make -j<br>make install </pre><p><strong>Build Statically, apple sillicon.</strong></p><pre>openssl-3.2.1$ ./Configure arm64 no-shared --prefix=/where/you/want/to/install/lib/x86_64<br>openssl-3.2.1$ make -j<br>openssl-3.2.1$ make install</pre><p>There, there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b39e9711052" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is it GPT4 poisoning itself and started providing false information by association?]]></title>
            <link>https://cpp-dvl.medium.com/is-it-gpt4-poisoning-itself-and-started-providing-false-information-by-association-5a80e9571a3d?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a80e9571a3d</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 17:21:21 GMT</pubDate>
            <atom:updated>2024-01-22T22:21:30.120Z</atom:updated>
            <content:encoded><![CDATA[<p>In my brief encounters with ChatGPT-4 regarding C++ queries, I’ve noticed a peculiar trend. The bot -as time passes with more frequency- responds with answers that, on the surface, appear remarkably coherent and convincing. Yet, beneath this veneer of truth, they are often misleading. For example, when I recently asked for a method to retrieve the process ID in C++20, the bot provided an answer that seemed plausible at first glance, but was actually incorrect.</p><p>It answered the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vm9sexGU9IeSBtQH4h0pJw.png" /></figure><p>The answer pattern is pretty familiar if you have experience writing system code, not only in C++ but other languages (Java, Python, C, Rust).</p><p>However it jumped right into my eye as I never had used the header &lt;process&gt;. I realized immediately this was a false answer.</p><p>Using last decade technology, I googled for std::process and the first entry of the search response was RUST’s std::process, mmmmm. As I was expecting no std::process in any C++ major reference page, say cppreference.com for example, I confronted the bot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzGLOvsqZ1IheFdr5gnU4g.png" /></figure><p>It apologized. And then it went for something more 70s flavored: unistd.h, immediately you know now it’s the right answer.</p><p>This happens with more frequency as time passes. I think I would start documenting this, and checko how often this happens.</p><p>The lesson here is:</p><ol><li>It seems slowly but steadily GPT4 is poisoning itself with popular terms and it is associating them with right answer patterns, however, this will lead to incorrect answers. I could be wrong as Im not an expert in anything at all.</li><li>GPT bots answers ARE REQUIRED to be tested for verification and validation of the answers such technologies provide.</li><li>You still need to understand and know what you are doing, you can’t trust 100% a bot. Not even with the simplest examples (like the one provided here).</li></ol><p>I am the cpp.dvl and I’m a C++ freelancer software engineer. You can contact me at cpp.dvl at gmail.com. Clap if you liked it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a80e9571a3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Pointers. Part 1, What is it a pointer anyway?.]]></title>
            <link>https://cpp-dvl.medium.com/smart-pointers-part-1-what-is-it-a-pointer-anyway-1dea23a9d7a8?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dea23a9d7a8</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[c-language]]></category>
            <category><![CDATA[noscript]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 22:46:08 GMT</pubDate>
            <atom:updated>2023-08-12T22:46:08.563Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By the cpp dvl a human writer dilettante.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dc-jSzjS2sP4c0yc.png" /></figure><p>A pointer is a data type supported in various low level languages. In particular, for the case of this article the subjects are C &amp; C++.</p><p>This data type supports the storage of <em>memory addresses</em>. That’s all in terms of what they are. Literally pointers are nothing more than that. So what about them?</p><p>Is what you do with them. Pointers are interfaces to write or read data into address mapped hardware. That’s all you can do with pointers: to interface a pool of addresses that are mapped directly to hardware connected to your compute resource, being the general case the CPU (Central Processing Unit) a.k.a processor.</p><p>Of all this mapped hardware, the most common case you can think of, it’s of course RAM memory. It’s not common to think about other type of peripherals such as let’s say video displays, GPUs, sound cards, networking interfaces etc.</p><p>Of course this peripherals are managed by the OS (Operative System), but then again, thru operative system calls, these -external to the CPU- peripherals are abstracted as addresses.</p><p>Well C and C++, provide you with pointers, as the data type to access these abstractions of external to the CPU hardware.</p><p>How do you use this so-called interface, these pointers? Here is, if not yet boring, when the read becomes incredibly boring. But here we go anyway: you declare your pointer like this:</p><pre>T* nameOfPointerVariable = nullptr;  </pre><p>This means the following: there’s a variable storing an address, however the value of this address is nullptr. So, first <strong>nullpt:</strong> <strong>nullptr </strong>is the way C++ has to express an invalid, non-existant, address value. It’s the way the language syntax expresses “nothing valid to point, or nothing to point at all”. Then we have <strong>nameOfPointerVariable, </strong>no surprisingly this is the name of the pointer. And last the most important part we have <strong>T*</strong>. This token is indicating the compiler about a pointer (*) and the type of data the pointer intends to interface.</p><p>Ok let’s do the easier example now (last one was pretty general a non significant). Consider:</p><pre>int someInteger = 33;<br>int* pointerToSomeInteger = &amp;someInteger;</pre><p>So <em>pointerToSomeInteger</em> is a pointer to interface the value stored in <em>someInteger.</em></p><p>It’s trivial to understand 33 is an integer and resides in the right side of an assignment expression, as well as <em>someInteger </em>is a variable of integer type as well and is written in the left side of the assignment expression (an l-value)</p><p>The second expression, is not that trivial, but it’s easy to understand. The right side of it, <strong>&amp;someInteger</strong>, is the <em>address </em>where the variable <em>someInteger</em> value, 33, resides at and <em>pointerToSomeInteger</em> is this data type that stores memory addresses.</p><blockquote>Note this #1: no matter what type of pointer we are talking about, the size these pointers occupy is the same no matter the pointer type. In modern architectures (2023) the usual size of a pointer would be 64 bits (8 bytes).</blockquote><blockquote>Note this #2: for the purposes of this article, we are going to assume int or unsigned int are 32 bits wide (4 bytes) variables, also we are going to assume the address bus is 32 bit wide, this means in general terms, our pointers are 32 bits wide (4 bytes).</blockquote><p>Now let’s illustrate what’s going on with <em>someInteger </em>and <em>pointerToSomeInteger:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*YPKFMezcAU7gwK664WmMkA.png" /></figure><p>The purple blocks denote the addresses of the blue block which are the actual stored values in memory. You can see we have two blocks <em>pointerToSomeInteger </em>and <em>someInteger. </em>Blue blocks are 4 bytes sized. The first address of someInteger is 0xdeadbeeb.</p><p>Let’s zoom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUm4lsy0GM3IiTTtzdIgmQ.png" /></figure><p>For the purpose of this example, I have placed the two variables in contiguous, adjacent places. So the initial address of the 4 blocks to store the pointer <em>pointerToSomeInteger </em>is <strong>0xdeadbee7 </strong>and the start address is 4 directions forward: <strong>0xdeadbeeb </strong>and is the initial address of <em>someInteger.</em></p><p>So there, you have declared a pointer. You now have a notion of how it is stored in memory, and how is the variable it points to stored as well. Now for the fun part, let’s read and write the variable <em>someInteger </em>using the pointer as an interface:</p><pre>int someInteger = 33;<br>int* somePointerToInteger = &amp;someInteger; <br><br>int anotherGivenVariable = *somePointerToInteger; //we read 33 and copy it<br>                                                  //into anotherGivenVariable<br><br>*somePointerToInteger = 40; //we write the value 40 in someInteger.<br><br>//print (someInteger, anotherGivenVariable) =&gt; 40, 33. <br></pre><p>So here is what that code did: we are using the * operator along with the pointer we will be reading or writing, the variable the pointer points at. When the <strong>*somePointerToInteger </strong>expression is at right side of any given assignment, you are performing a read operation, and any left sider will perform a write operation.</p><p>And that’s for part 1. We have clarified a pointer is a variable to store memory addresses and it’s main utility is to serve as an interface to write and store variables.</p><p>In the Next Part we will talk about memory allocation and how pointers are instrumental to handle it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dea23a9d7a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make Your (Presumably Bug-Free) Merge Request / Pull Request Approved 99% of the Time, With…]]></title>
            <link>https://cpp-dvl.medium.com/how-to-make-your-presumably-bug-free-merge-request-pull-request-approved-99-of-the-time-with-87c569b453ba?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/87c569b453ba</guid>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 23:43:39 GMT</pubDate>
            <atom:updated>2023-07-07T23:43:39.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Make Your (Presumably Bug-Free) Merge Request / Pull Request Approved 99% of the Time, With No Major Objections.</h3><h3>PART 0. YOU WHISH &amp; TLDR.</h3><p>You whish: there are no process, results of human activity, with 99% of result at any trait.</p><p>Treat MR/PR as showcase of your work as sw engineer, for a particular feature/bug fix. Stop indentifying yourself thru your code, as you are a coder, not the code itself. Every MR/PR is also a good opportunity to grow if you are open to it.</p><h3>PART 1. THIS IS NOT PERSONAL. PLEASE ISOLATE YOUR CODE FROM YOUR OWN IDENTITY.</h3><p>Ladies and gentlemen, allow me to introduce a unique character, an individual of particular distinction, the embodiment of logic, precision, and efficiency — a programming virtuoso of the finest caliber who has but one true nemesis in their digital adventures: in the colorful tapestry of the digital world, woven with precision and logic, this programming ninja seeks to avoid an element that can interrupt this performance — not syntax errors, nor runtime exceptions, but objections….. objections in his code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NhRzRl9BPQiQ4scd.png" /><figcaption>Coding Virtuoso — Midjourney 5.2</figcaption></figure><p>Our protagonist sees these objections as unruly intruders, crashing an otherwise meticulously planned party of protocols and parameters. Each one is a bitter reminder of a discrepancy in the beautiful, seamless world they’ve carefully constructed. In his heart, there’s a fervent longing to rid the universe of every single objection, making his code a haven of harmony and flawless function calls.</p><p>Yes folks, you’ve got it right absolutely, positively, and without the shadow of a doubt, this accolade HATES to be objected in his code by his peers. To him, an objections is an attack to his core beliefs and coding craft, an confrontation to himself at core.</p><p>-Enough.-, true is we all have felt that way, like this absurd engineer persona in the introduction, in a minor or major extent, <em>but you have and you know it</em>. This is because we feel (and experience will help you overcoming this feeling) objections are an attack to our own identity.</p><p>How can we surpass this difficult emotion? I help myself with this problem by remembering everyday I’m not (and I never will be) the best crafter I could possibly be and, — really and — by <em>stop identifying myself thru my code.</em></p><blockquote><em>Stop identifying yourself thru your code</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ri-oEPxpu2hTQUXy.png" /><figcaption>You are not what you code</figcaption></figure><p>This means you need to understand programming is a craft, but also a professional career. This is something we do, not something we are. Take that and carry it with you maestro.</p><h3>PART 2. A METHODOLOGICAL FRAMEWORK, TO REDUCE POSSIBLE OBJECTIONS TO YOUR MR/PR.</h3><p>The dynamics of software development are continuously evolving, yet one constant remains — the pull request (PR) or merge request (MR). These are crucial for integrating changes into an existing codebase, but getting them approved without major objections can be challenging. This article delineates an effective approach that will heighten your chances of approval by 99%, while ensuring your code is free from significant bugs.</p><p>The contention here is straightforward: A MR or PR is less likely to face major objections if the following conditions are met:</p><ol><li>Brief and clear scope: There should be a lucid overview of what changes you’ve made (the solution), why these were necessary (the context), and how you implemented these changes (the code). For instance, if a PR aims to fix a bug that was causing system crashes, the description should explain the bug’s nature, the chosen solution, and the code changes made to implement that solution.</li><li>The presentation is structured: This includes beginning a title with the ticket’s name, followed by a header with a link to the ticket (be it Jira, Trello, or Bugzilla). Next a comprehensive overview section (explaining why, what, and how), to get climax and finally ordered list of commits presented in a table. Next you present the result of your changes: that would be evidence of the result of your testing.</li><li>The number of commits and changes should be limited: This reduces the complexity of your PR/MR, thus facilitating the review process.<br>The number of altered files is also curtailed: Akin to limiting commits and changes, this makes the MR/PR less overwhelming and easier to comprehend.</li><li>Avoid Hard “No”s: Avoid clever code — code that is overly complex or obscure may seem smart, but it is difficult to understand and maintain. Gold plating (adding unnecessary features or enhancements) and code out of guidelines (not adhering to the project’s coding standards) should also be avoided as they lead to unnecessary complexity and inconsistency.</li><li>An added bonus would be to use GitLab/GitHub dialogues to comment on the code and highlight the key changes in your work.</li></ol><p>Conclusion.</p><p>Creating a MR or PR that is both bug-free and rapidly approved requires a little bit of planning. It should be a guideline to showcase your work to your peers. Taking it with an open mind about objections and a pinch of salt, defining the scope of it, structuring the presentation of the MR, minimizing commits and changed files, adhering to guidelines, and utilizing dialogues for commenting, are tools to increase the likelihood of approval.</p><p>The goal is to make the review process as easy as possible for your peers, leading to swift approval and less time spent on revisions. However, remember objections are wonderful opportunities to improve your craft, not your own self at core.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>For any further queries or discussions, feel free to reach out to Julian Andres Guarin at <a href="/service/mailto:cpp.dvl@gmail.com">cpp.dvl@gmail.com</a>. Thank you for your time, and happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87c569b453ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My only resolution ever as developer.]]></title>
            <link>https://cpp-dvl.medium.com/my-only-resolution-ever-as-developer-dd0349d7e6e4?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd0349d7e6e4</guid>
            <category><![CDATA[nostalgia]]></category>
            <category><![CDATA[vintage-computing]]></category>
            <category><![CDATA[80s]]></category>
            <category><![CDATA[personal-computer]]></category>
            <category><![CDATA[vintage-video-games]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Sat, 09 Jan 2021 14:55:06 GMT</pubDate>
            <atom:updated>2021-04-28T04:50:24.938Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reinvent the wheel. A small nostalgia trip to a no internet era.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UDljfS0LSMajm7wa.jpg" /></figure><p>I really need to think about the pleasure embedded in the process of doing things, rather than the result of seeing things already finished, composed.</p><p>I remember being a kid, in a summer camp, we put up a play, a theatrical play. I remember the day of the debut and unique presentation, it was kind of sad. You see, I recall the process of being there, rehearsing, getting to know people and <strong><em>that </em></strong>was the experience — the process of setting the play up — rather than presenting it finally to the public.</p><p>I like to think about the mindset I used to have, back when I wrote basic code using GW-Basic interpreter (by the way <a href="https://github.com/microsoft/GW-BASIC">https://github.com/microsoft/GW-BASIC</a>). I didn’t even speak English by the time (1987).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5qjHZ3xVAsppgFnt.jpg" /><figcaption>DOS and GW-BASIC were the <strong><em>killer </em></strong>applications shipped with “IBM Compatible” computer brands in the early 80&#39;s.</figcaption></figure><p>I remember, particularly in the language, I had to use this keyword called <strong><em>gosub </em></strong>in combination with <strong><em>return </em></strong>in order to rustically implement functions. And <strong><em>that </em></strong>was a meaningful experience, as I can’t remember something like that in any other language (leave assembly out of this).</p><p>I remember the day I painted a pixel with GW-Basic as well. I remember painting in graph paper, an entire 320x200 — or maybe less — scene for the adventure games I coded by the time. This, I remember, took place on a time where I played Sierra Games and other DOS games, oh boy, <strong><em>those were</em></strong> the days I enjoyed computing the most. Internet was still 6 or 5 years away and anything you learned was a difficult triumph to achieve — remember I didn’t speak a word of English, and the documentation shipped with my EPSON EQUITY+ was English of course — learning in those days was something incredibly fascinating and difficult. To stare at a green / orange phosphoric or a CGA display, was like to stare an alien. <strong>It was the experience of my life, </strong>to learn programming by myself, being a Latin American kid, on a Latin American country, with no English, with no internet, just the desire of seeing colors blotted in the screen, using this spellcasting called programming and GW-Basic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/0*SRB_63Ynzz9V6qJg.jpg" /><figcaption>Microsoft Corp. Donkey.</figcaption></figure><p>And that’s what I miss. That magic. Today, for me, that magic is gone, there’s internet, and engines, and Spotify and all the social networks, you name it. Those are not close enough to lift up any emotion, as that 80286 computer did, with no network whatsoever attached to it. Nothing feels like to list a program and see all the tricks behind the magician.</p><p>I’m taking a risk, the risk of being drove by nostalgia. Where I want to be driven at? I wish, I could be in that place where nothing was known, where no one was to be asked, where no repository of infinite information was at hand to query.</p><p>You see, I prefer the mystery, the uncertainty, the experimentation and the error. I prefer hard things done on ignorance and reached out by discovery, rather than the easiness of the result on anything rather normal and expected. Somehow the later not the former it’s what is expected by this — so called — <strong><em>humanity </em></strong>of us.</p><p>I don’t see nothing embraceable or human in just reusing what others did. So this is my purpose and my endeavor: <strong><em>I will reinvent the wheel:</em></strong></p><ul><li><strong><em>I will write a clone of pacman.</em></strong></li><li><strong><em>I will make http requests but I will recreate by hand the entire protocol.</em></strong></li><li><strong><em>I will learn javascript out of a book — NO INTERNET IN THE PROCESS. Who am I fooling… I won’t.</em></strong></li><li><strong><em>I will make a clone of Wolfenstein 3D (third try).</em></strong></li><li><strong><em>I will write about this. I will video log about this.</em></strong></li><li><strong><em>I will pardon myself if I don’t achieve my resolutions. I will be more than Ok with it.</em></strong></li><li><strong><em>I will try to find out the fascination in simple things, I will see the big win in small steps. I will remember my state out of fascination.</em></strong></li></ul><blockquote>I WILL REINVENT THE WHEEL, I WILL REMEMBER MY STATE OUT OF FASCINATION.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd0349d7e6e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FFMPEG ready for CMAKE compilation.]]></title>
            <link>https://cpp-dvl.medium.com/ffmpeg-ready-for-cmake-compilation-d6830da2d6e7?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6830da2d6e7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[ffmpeg]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 00:24:51 GMT</pubDate>
            <atom:updated>2019-11-14T00:26:53.564Z</atom:updated>
            <content:encoded><![CDATA[<p>I dislike cmake. However once you are used to work with it you will try to go with it as much as you can.</p><p>CMake has a find_package function. It has two modes module and config. Here we are using config mode… at least I think so. CMake’s documentation it’s a great effort, however it is not accompanied with good examples, so everything ends being a test and error game with it.</p><p>So what we are trying to achieve here is to install ffmpeg using brew / yum / apt-get etc., and then we want your build script to detect them:</p><p>So install ffmpeg:</p><p>{brew install |sudo apt-get} ffmpeg</p><p>Now go to this gist, -thanks to my friend cppdvl- and copy it the contents of the file ffmpeg-config.cmake, no worries it’s 10 lines or so.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f9505e5c3fdc892093eb54e755833cc/href">https://medium.com/media/9f9505e5c3fdc892093eb54e755833cc/href</a></iframe><p>So now we have a script to determine the localization of the headers and lib of your ffmpeg installation. Please check line number two and change it to your host machine configuration.</p><p>Now you need to export FFMPEG_DIR environment variable:</p><p>export FFMPEG_DIR=/usr/local/Cellar/ffmpeg/4.2.1_2</p><p>You now can include in you cmake script:</p><p>find_package(FFMPEG REQUIRED)</p><p>It will set the variables:</p><pre>#  FFMPEG_INCLUDE_DIRS  - Include directory necessary for using the required components headers.<br>#  FFMPEG_LIBRARIES     - Link these to use the required ffmpeg components.<br>#  FFMPEG_DEFINITIONS   - Compiler switches required for using the required ffmpeg components.</pre><p>And there you have it!</p><p>Enjoy</p><p>dvl.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6830da2d6e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 Days of Code: I’m making a Clone of Wolfenstein 3D using OpenGl and Qt.]]></title>
            <link>https://cpp-dvl.medium.com/100-days-of-code-im-making-a-clone-of-wolfenstein-3d-using-opengl-and-qt-334594ac83f1?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/334594ac83f1</guid>
            <category><![CDATA[qt]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[pc-gaming]]></category>
            <category><![CDATA[graphics]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 00:13:02 GMT</pubDate>
            <atom:updated>2019-04-04T21:56:24.564Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@julian.guarin.2010/100-days-of-code-im-making-a-clone-of-wolfenstein-3d-using-opengl-and-qt-7a10c7c9e3e4?source=your_stories_page---------------------------">100 Days of Code: I’m making a Clone of Wolfenstein 3D using OpenGl and Qt. Playing with Textures and Palettes when memory is scarce.</a></h3><p>Welcome to the part four of this series. I’m trying to make a GPU ray caster to remake wolfenstein 3d.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfDhap13zZntRoW7jySJDg.png" /><figcaption>Me, finding out my old mac book pro (Mid 2013) Doesn’t support much uniform buffer object memory.</figcaption></figure><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/3bba63926e6399d3ec9c269b4eb3882837028598"><strong>Day 33–39</strong></a><strong>: So I realize I’m making this the wrong WAY!.</strong></p><p>Yep, If you look into my commit history you will see I’m not doing this ok in terms of data buffer management. So I will go back to the intro scene and retake from there. I would use the fixes I did for the shader stability and inject those in the introscene.</p><p>I will take this from here on…. sorry not being that constant, but you know, I working my code every day. It’s the update on what I’m doing which I’m not finding the time to report.</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/164239481c8871b26d689a5f9b06f48986320e31"><strong>Day 32</strong></a><strong>: Life it’s hard.</strong></p><p>So the past days baby got sick, no time for doing stuff. However I’ve started small again. I started making an implementation of a compressed atlas for my first level.</p><p>The plan is to have the following wall patches:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*tXDEwH_YU7XGbwxK9u3p2w.png" /><figcaption>9 wall patches and 2 door patches.</figcaption></figure><p>Also I’ve been working trying to understand how the GPU manages the memory, in particular the Uniform Buffer Object. By doing this I now understand I have 64k bytes to store assets. The wall patches will ocupy 45k so we should be fine.</p><p>Ok that’s all for now! See you!</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/6330b6ffee8b130448525b9beed4c40cfbb2d1b4"><strong>Day 30, 31</strong></a><strong>: I found out that my texture memory is rather small.</strong></p><p>So I was excited getting my atlas texture (a part of it in the screenshot). However the shader program started crashing when I allocated 192x192x12 (440kBytes) of uniform buffer memory. I started making my due dilligence on how much my machine would support… well it feels back then on the time when I used to program microcontrollers: I don’t have much memory, I only have 49152 bytes which should be instantiated on an array of 4096 unsigned int 3D vectors.</p><p>So 440k bytes would be need with no compression at all using a RGB float format to handle the following atlas:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*9Y02kcUyHIAc_WLTLb_Xuw.png" /><figcaption>9 walls atlas.</figcaption></figure><p>I have to start thinking about a more compressed format: byte integers rather than floats. It would use a 4th part of the memory I’m using. Still this would not suffice as it would require 110k.</p><p>Ok so a byte represented pathc would need 12288 bytes (12k). So the max number of bytes represented patches would be 4 patches per atlas. That’s quite too much. It would make levels too plain….</p><p>Maybe it’s time to think about making this raycast outside the GPU and execute it in the CPU as in there I have tons of memory…. nah. I will come up with something tomorrow.</p><p>Thanks on following me!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334594ac83f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 Days of Code: I’m making a Clone of Wolfenstein 3D using OpenGl and Qt.]]></title>
            <link>https://cpp-dvl.medium.com/100-days-of-code-im-making-a-clone-of-wolfenstein-3d-using-opengl-and-qt-7a10c7c9e3e4?source=rss-6b4d3cf4a717------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a10c7c9e3e4</guid>
            <category><![CDATA[wolfenstein]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[retro-gaming]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[The CPP Devil]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 06:43:26 GMT</pubDate>
            <atom:updated>2019-03-26T23:30:01.178Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@julian.guarin.2010/100-days-of-code-im-making-a-clone-of-wolfenstein-3d-using-opengl-and-qt-2a14e316b401?source=your_stories_page---------------------------">100 Days of Code: I’m making a Clone of Wolfenstein 3D using OpenGl and Qt.</a> Data Buffering with Textures.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*V9WIHDAYMWq1FWfVPzbrVA.png" /><figcaption>King´s Quest IV. The perils of Rosella.</figcaption></figure><p>The following 10 days I will try to load on GPU texture data via shaders. So far I have load textures into the GPU, however these textures are rather sampled than randomly accesed…. what I mean is, I do not have access to a particular <em>pixel </em>on the texture, by column or row, I only have access to the sampled pixel.</p><p>To have random access to a texture pixel is key for raycasting. That way I might calculate the color of the section a ray is hitting, when hitting a wall wrapped by a particular texture.</p><p>This is where I want to start heading to, we’ll see.</p><p><strong>Day 25, 26, 27, 28, 29: Sorry guys, a sick baby boy it’s flushing my ‘free time’ nonetheless here are my commits.</strong></p><p>To summarize I’ve added code to paint the rectangle we use for the intro scene not with a wrapped texture, but rather with a function. The function Im trying to paint is left,bottom: black, closer to right border: red, closer to the top border: green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*5GrIMuydtwTEhGx2zvpZ_g.png" /><figcaption>Closer to the right: red-er, closer to the top: green — er.</figcaption></figure><p>The fragment shader to got this result is:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44fad95e618fa83dd64e2c8924ec3bfb/href">https://medium.com/media/44fad95e618fa83dd64e2c8924ec3bfb/href</a></iframe><p>What we have managed is to define the colors as functions of <em>TexCoord 2</em>d vector input which has a domain of [0.0,1.0],[0.0,1.0].</p><p>Now we may have any other function of R(TexCoord), G(TexCoord) and B(TexCoord). And yes TexCoord could be the representation of a…..<strong>RAY!</strong></p><p>Thank you on following me!.</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/bf3db53719551a5a0640d95033f0c0d69e993a08"><strong>Day 24</strong></a><strong>: My old mac and newer and the newest, they all support GLSL 410!.</strong></p><p>Nothing much than just that!. This is important because it means I´m not going to be able to use big textures and just randomly pick texels as my random access texture memory is 64k, this is because MacOS doesn´t support SSBOs (Shader Storage Buffer Objects) which are really big. I would have to come with a plan for this…..</p><p>Ok thanks for following!</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/e6dac2cfaa6c67f605b68b972947f7d3f55d5947"><strong>Day 23</strong></a><strong>: Nothing much than…. adding a gamescene out of the introscene.</strong></p><p>Well I have stripped out somethings from the intro scene. It will use the texture atlas but no code has been added for that. I also need to include the files in the .pro and .pri files…..</p><p>That´s all, not much, but you know I got a job….. see ya! Thanks for following up.</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/fe388b45c974c15831b73b9d0137bb316a2f8e0b"><strong>Day 22</strong></a><strong>: Movin with keys… (alas, not much of textures being loaded into GPU..)</strong></p><p>So I just wanted to move the rectangle we have so far, back and forth, so check the commited code and you will got this (pressing key and down arrows):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*c9-U799KqAoW_I2kxqPaBw.gif" /></figure><p>Not much, I know but enough for me today! See you!!!</p><p><a href="https://github.com/IndieLightAndMagic/wolf/commit/62a16ab9722db337063161e34f080066863e7e9e"><strong>Day 21</strong></a><strong>: Code to abstract the movement of the camera.</strong></p><p>This is a super simple code to initialize and set a camera position in world coordinates:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61e12c85eb0850f9c64e33a30d20c18e/href">https://medium.com/media/61e12c85eb0850f9c64e33a30d20c18e/href</a></iframe><p>Very simplistic and naive. I always aim to functional naive code, so I can optimize it from there on. What do you think of this approach? Let me know!</p><p>Thanks a lot for the follow!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a10c7c9e3e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>