<?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[Childhood Hacks - Medium]]></title>
        <description><![CDATA[War stories from childhood hacking - Medium]]></description>
        <link>https://medium.com/childhood-hacks?source=rss----cf350deb571f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Childhood Hacks - Medium</title>
            <link>https://medium.com/childhood-hacks?source=rss----cf350deb571f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 15:52:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/childhood-hacks" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Fell in Love With the Web]]></title>
            <link>https://medium.com/childhood-hacks/how-i-fell-in-love-with-the-web-4865786864d6?source=rss----cf350deb571f---4</link>
            <guid isPermaLink="false">https://medium.com/p/4865786864d6</guid>
            <category><![CDATA[flash-player]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Rajika Imal]]></dc:creator>
            <pubDate>Sun, 26 Jun 2016 21:32:30 GMT</pubDate>
            <atom:updated>2016-06-26T21:34:51.714Z</atom:updated>
            <content:encoded><![CDATA[<p>Remember that sweet <a href="https://www.dialupsound.com/">sound</a> your dial-up modem makes when you were trying to connect to this fascinating thing called the Internet. Connecting to the Internet wasn’t easy. We didn’t have broadband connections which would just connect you instantly to the internet like nowadays, no mobile devices with WiFi. But with so much effort trying again and again connections were made. Once connected suddenly the world around you becomes dazzled with the power of information flowing through your computer.</p><p>As kids we were always trying to explore something new, something exciting. While browsing the internet I used to play lots of flash based games. Trust me they were one of the coolest things in early 2000 s. I used to play different kinds of flash games. And then there were Mini-clip games which were also based on flash. But most of them had something in common. Keys were used for playing the game. I wondered how these games were created. How do we control these characters.</p><p>So like everyone else I started doing some research on how the creation of Mini-clip games took place at that time. Then I found out about <a href="https://en.wikipedia.org/wiki/Adobe_Flash">Macromedia flash</a>. The software which made was used to create flash based games. Lucky for me I had few versions of Macromedia flash in my disc collection. So I took the liberty of installing the latest one I had at the time and take a peek and see what I could do with it. Once installed, I tried to do few hacks. Made few interesting animations, with the help of the tutorials sections which was inbuilt to Macromedia flash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Px62NqEieLTsAI4vvKjig.jpeg" /></figure><p>After few days I learned to handle the options available in the software. But I really wanted to create something more interactive and interesting, like the games I used to play when I got connected to the internet once in a while. Even though I wanted create something, I didn’t have any idea on how to accomplish such a creation. As I pointed earlier, most of the games had few things in common which made them interesting to play. Among those on-screen keys played a major role, at least for myself. I needed to replicate the functionality of on-screen keys.</p><p>But I had no idea. Since I was going to replicate the whole controlling thing, what I did was opening one of the games with Macromedia flash. After doing some hacks I made a great discovery. I found out that, in order to control a certain object with keys I needed to wire up the keys with the respective objects so that I needed to code on Macromedia flash. But back then I had no clear idea. So I replicated a game which was already made, just the skeleton functionalities. I was impressed, that I could move a beetle around the screen with keys. It looked pretty much like this as far as I can remember <em>ps: this is not a screenshot of what I created</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*2wO0Z1b5EyH9lX823E7MMw.jpeg" /></figure><p>Since then I got interested in creating more cool stuff and it was a great experience since I self taught most of the features. Web was a great deal for me to get into flash and since then the web has evolved in an extreme rate. At present it’s something people can’t live without. Messaging, sharing information, e-commerce have become critical among people and web plays the major role. So who doesn’t love the web.</p><p>Have any thoughts ? Share on the comments section below. Ciao !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4865786864d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/childhood-hacks/how-i-fell-in-love-with-the-web-4865786864d6">How I Fell in Love With the Web</a> was originally published in <a href="https://medium.com/childhood-hacks">Childhood Hacks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Invented Databases]]></title>
            <link>https://medium.com/childhood-hacks/how-i-invented-databases-89dfa563b65?source=rss----cf350deb571f---4</link>
            <guid isPermaLink="false">https://medium.com/p/89dfa563b65</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Amjad Masad]]></dc:creator>
            <pubDate>Sun, 19 Jun 2016 20:21:44 GMT</pubDate>
            <atom:updated>2016-06-19T20:21:28.083Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning how to code as a child with no internet connection; you are forced to invent everything from scratch. I have many stories about this but the one that I keep coming back to is how I invented databases.</p><p>In 1999, I was around 12 years old and had been programming in some capacity for half of my life. Mostly games and small hacks. Now, I was ready to build something useful. Something that could solve a real problem and would hopefully make money. At the time I was obsessed with LAN gaming centers and saw that they were in desperate need for software to manage their stores. They kept track of user accounts using pen and paper. When someone paid to play for a certain amount of time the store manager would write that down and then keep looking at their watch and their notebook to see if someone ran out of time. After the time is up, they would physically go tap them on the shoulder and ask them to logout. I thought this was the perfect problem waiting to be solved. Everyone already used computers to play the games then why not use the same computer to manage the entire thing?</p><p>I had a big piece of the puzzle figured out. It had to be a client/server architecture and I knew how to do networked applications using WinSock (I used it in my various escapades into the world of hacking remote computers which I’ll talk about in later stories). The big thing that was missing is how the hell do you save the data on disk and fetch it the next time the program starts?</p><p>At the time I used Visual Basic 4 and as you can tell from the name it was a GUI-centric development tool. It was either not supported or incredibly hard to write code that wasn’t tied to a UI element (they made it easier in later versions). All the applications that I built in the past kept all their state and data in the UI and I never needed to persist data between program runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*vUMvpLGz8rAWnDy5lGzB_g.png" /></figure><p>So the problem was two parts:</p><ol><li>How do you keep data in your program that isn’t currently used on the screen? (Also known as data in memory)</li><li>How do you save and fetch the data between program runs?</li></ol><p>For the first problem — I decided that a good enough solution was to mark the UI elements that kept the data as hidden. So in effect if I had hundreds or even thousands of user accounts they needed to live in textboxes on the screen but marked as hidden (sounds terrible, and it is but in my defense this is not very different from how the web development community — until very recently — stored all their data in the DOM).</p><p>Every row was an array of textboxes with the following naming scheme: `accounts_{row number}_{field name}`. So to get the username for the first row: all I had to do was something like`Form1.accounts_1_username.text`. I also had all sorts of math tricks to get information about my data quickly. E.g. If I wanted to get the row count I would count the text boxes and then divide by the number of fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*BAwJYYOXJp_DAh83OeRWdw.gif" /><figcaption>A VB TextBox</figcaption></figure><p>I also made up the concept of indices to make certain lookups faster. For example looking up a user record by username is one of the most common operation so it needed to be fast. So I had a giant textbox that was basically a comma separated `username: row_number` string. So I would use `InStr` to get the index of the username and then get the row number to lookup the entire record.</p><p>Now came the time to save it and loaded up from disk. This, I had to cheat for. Since I had the vocabulary to search for this I went to the internet cafe and looked up how do I save the contents of a textbox to a text file and how I can loaded back in again. Turns out it’s a pretty common use case and there is tons of code examples about this. So I named the text files exactly after the text boxes and the rest was easy. The challenge came when I was testing and figured out that when I get to hundreds of rows the program starts taking up minutes to boot. So I also invented lazy loading. I would load a big chunk of the data upfront and then use that until I hit a case where I couldn’t find a record. Then I would load another chunk and so on until I get all my data in memory (and by memory I mean ‘on screen’).</p><p>This hack unblocked me and allowed me to iterate on my product. I built the client side which talked to the server to persist data from counting down the time in — ahem — textboxes. And also figured out a security model around getting windows to boot up to my client application and nothing else. But luckily before I went out to start selling my program I came up on a discovery that would change my life: Microsoft Access. This delayed shipping my product for a year but in the end I did ship in 2002 and made a lot of money for a 15 year old.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89dfa563b65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/childhood-hacks/how-i-invented-databases-89dfa563b65">How I Invented Databases</a> was originally published in <a href="https://medium.com/childhood-hacks">Childhood Hacks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>