<?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 Andy on Medium]]></title>
        <description><![CDATA[Stories by Andy on Medium]]></description>
        <link>https://medium.com/@onlyliuxin?source=rss-5fa30a3e12cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ANsgL0Ubu0LXsOUvpDqq5w.jpeg</url>
            <title>Stories by Andy on Medium</title>
            <link>https://medium.com/@onlyliuxin?source=rss-5fa30a3e12cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 08:56:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@onlyliuxin/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[IDEs, IDEs on the wall, which is the best of them all?]]></title>
            <link>https://medium.com/better-programming/ides-ides-on-the-wall-which-is-the-best-of-them-all-26a462222726?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/26a462222726</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 15:33:18 GMT</pubDate>
            <atom:updated>2022-03-14T15:33:18.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="in ancient times, programming was a chore.
 first open the text editor, type, close.
 second, run the compiler, write compilation errors on paper.
 then open text editor again, locate error code." src="https://cdn-images-1.medium.com/max/1024/1*kmvyqLv4gSnSDZg0B9V6sw.png" /></figure><figure><img alt="fortunately, programmers weren’t comfortable with the status quo.
 they obsessed with writing better software to benefit others.
 anders hejlsberg — bro, the programmers are too hard
 philippe kahn — yeah, we gotta save them!" src="https://cdn-images-1.medium.com/max/1024/1*VtWovzv26N4Ou22zBh0UpQ.png" /></figure><figure><img alt="anders hejlsberg — well, i have a lighting fast pascal compiler
 philippe kahn — i have a useful editor here" src="https://cdn-images-1.medium.com/max/1024/1*Or0nF0SlIOeHn9YfKdfXCw.png" /></figure><figure><img alt="anders hejlsberg — what are you waiting for? our software is revolutionary.
 philippe kahn — click the compile error to find the position of the code. Let’s call it TurboPascal.
 
 Later TurboPascal was officially launched in 1983. Programmers flocked, selling 250,000 copies in two years." src="https://cdn-images-1.medium.com/max/1024/1*5ItEqiKxawVbQ0AXcE598Q.png" /></figure><figure><img alt="anders hejlsberg and philippe kahn talking
 philippe kahn — I didn’t expect TurboPascal to become so popular. Seems we can make persistent efforts and make a Turbo C!" src="https://cdn-images-1.medium.com/max/1024/1*J4KbqRqbmAK7rz1OZ_L8Kg.png" /></figure><figure><img alt="Surprisingly, Turbo C was even more popular. Sold 100,000 copies in the first month." src="https://cdn-images-1.medium.com/max/1024/1*V1IrLf0tsr_gufjSSad0kg.png" /></figure><figure><img alt="Alan Cooper — It’S a GUI era, and you’re still using a text interface like Turbo C and Turbo Pascal? Outdated! Check out my new IDE: Visual Basic. Apps can be made by dragging and dropping controls." src="https://cdn-images-1.medium.com/max/1024/1*BqbsSCfNBbMDm-WfUyqV1g.png" /></figure><figure><img alt="Visual C++ — Basic language is old fashioned; it’s C++ era! I come with an easy to understand MFC that can quickly develop C++ desktop programs and run 10 times faster than your VB!" src="https://cdn-images-1.medium.com/max/1024/1*kjNvvBxLboK784vQE3AdMA.png" /></figure><figure><img alt="VB — calm down, bro. we’re from the same company. our enemies are Turbo Pascal and Turbo C.
 Visual C++ — Oh, yes!
 They’re holding hands." src="https://cdn-images-1.medium.com/max/1024/1*t0MHrpqXIlmtt1yj2s4V2A.png" /></figure><figure><img alt="VB and Visual C++ kick out the Turbos." src="https://cdn-images-1.medium.com/max/1024/1*OZMf7X35BeugSDhumAEsZg.png" /></figure><figure><img alt="anders hejlsberg — bro, the Turbos have been beaten badly by those other IDEs. We can’t sit back and do nothing.
 
 philippe kahn — we have to upgrade Pascale to Object Pascal. It will have its own VCL components that can quickly develop GUI programs and become the VB terminator. Why not name it Delphi?
 
 Delphi is the VB killer." src="https://cdn-images-1.medium.com/max/1024/1*kA_HvNVE-C_d48OgMfsQ0A.png" /></figure><figure><img alt="Delphi and C++ builder talking.
 C++ builder — You’re the VB killer, and I’m the VC++ killer. Let’s fight Microsoft. We can work well together. Bring your VCL, and let me use it." src="https://cdn-images-1.medium.com/max/1024/1*GJNjm-Kro-F9FiwVuRkkPw.png" /></figure><figure><img alt="Borland and Microsoft’s IDE war kicks off
 
 Netbeans and Java holding hands.
 Java — what are they doing? Don’ they know Java will become the master of the Internet age?
 Netbeans — yes, i’m the best ide for writing Java." src="https://cdn-images-1.medium.com/max/1024/1*u8xPhIhDYwJn0oy-HEYEVw.png" /></figure><figure><img alt="C++ builder, Delphi, Visual C++, and VB put down their weapons.
 Visual C++ — there’s no point playing like this.
 Delphi — C++ builder, we have to hurry back to base camp and call our Java brothers to fight!" src="https://cdn-images-1.medium.com/max/1024/1*YTt-0xcBFCVXK-_UmR8IDA.png" /></figure><figure><img alt="Soon, Microsoft launched VJ++, Borland launced JBuilder." src="https://cdn-images-1.medium.com/max/1024/1*-h2Gr_pzyDZJuLhPNjXGRA.png" /></figure><figure><img alt="JBuilder — Java bro, come here. My IDE is written in pure Java, and my gui is developed in swing.
 
 Java — better than netbeans?
 
 jbuilder- look at my features. i support various development such as applet, jsp, ,servlet, awt/swing, etc. and i can integrate with tomcat, websphere, weblogic, jboss, etc." src="https://cdn-images-1.medium.com/max/1024/1*-Tag3q1p5JuIaus1k0MltA.png" /></figure><figure><img alt="visual j++ — that’s not a big deal. java bro, i can compile your Java code into an .exe on Windows.
 
 Java- What? doesn’t this violate my write once, run anywhere guidelines? i will ask my dad Sun to sue you!" src="https://cdn-images-1.medium.com/max/1024/1*rRdC0yMg-3LxesfQK8XL0A.png" /></figure><figure><img alt="As the battle worsened, Microsoft made an unexpected decision to stand out." src="https://cdn-images-1.medium.com/max/1024/1*ljis2ayQ6z4FCahG0gpCYA.png" /></figure><figure><img alt="Visual c++ talking to visual interdev, visual j++, and vb — we’re all in the same company. we can’t fight on our owon. let’s work together.
 They agree." src="https://cdn-images-1.medium.com/max/1024/1*VJGuehsLWF5J953wfNAg2g.png" /></figure><figure><img alt="Visual Studio “the first IDE in the universe” was officially born" src="https://cdn-images-1.medium.com/max/1024/1*Wmia5_5u-1SCVj6u5Eyddw.png" /></figure><figure><img alt="in another corner of the world, IBM sees a thriving java market" src="https://cdn-images-1.medium.com/max/1024/1*c5dYH91atskLUp-u0fIPkA.png" /></figure><figure><img alt="ibm ceo: louis v. gerstner = time to switch to java and launch an e-commerce strategy. all kinds of software will transition to java." src="https://cdn-images-1.medium.com/max/1024/1*YVXM1naZyQ9t2gHLYps48w.png" /></figure><figure><img alt="erich gamma — i heard we are building java ide? we can’t use swing. it sucks. let’s develop a new set of ui components: swt. and it must be open source." src="https://cdn-images-1.medium.com/max/1024/1*MHSh_-E6HNUPssMbYE2zBA.png" /></figure><figure><img alt="eclipse was born. free, open source, extensible, and has a plugin system. other java ides have almost no power to fight back." src="https://cdn-images-1.medium.com/max/1024/1*MCINo2NkyASvUeZaCmS5IQ.png" /></figure><figure><img alt="ibm — take a look at our rad — rational applciation developer, wid, websphere integration developer, developed in eclipse. very powerful, and they have our ibm technical support. much better than open source" src="https://cdn-images-1.medium.com/max/1024/1*wBynziX4p5O5-wfNVOfnVw.png" /></figure><figure><img alt="eclipse ruled. when it say intellij idea, it didn’t take it seriously." src="https://cdn-images-1.medium.com/max/1024/1*tbMi1vCYRF2dxrfOhKj-RQ.png" /></figure><figure><img alt="xcode poured cold water on eclipse.
 
 xcdode — it’s the mobile age. eclipse dude, can you develop apps?" src="https://cdn-images-1.medium.com/max/1024/1*ra-hfeTkB1qQOn8PHSsN1w.png" /></figure><figure><img alt="eclipse — easy, just install an androd plugin. look at my android dev tools!
 xcode — don’t you know it yet? google developed android stuido based on intellij idea and abandoned you" src="https://cdn-images-1.medium.com/max/1024/1*aEkRHaezqDLXDJ9t1YC-rw.png" /></figure><figure><img alt="xcode and android studio leave eclipse behind" src="https://cdn-images-1.medium.com/max/1024/1*zgiC7YWdejRO-cnK6-um1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sSoq5Rs35nTViR_tLgMkw.png" /></figure><figure><img alt="intellij to eclipse — you underestimated me? are you afraid now.
 eclipse is." src="https://cdn-images-1.medium.com/max/1024/1*baOGwj7R6hGNAadN-k6uLQ.png" /></figure><figure><img alt="erich gamma — i have been working on ides for smalltalk, c++, and java before. time to change my taste. try javascript and play with monaco, an online editor." src="https://cdn-images-1.medium.com/max/1024/1*LOXlMZVkF_22WaS6C_DHQQ.png" /></figure><figure><img alt="gamma — monaco is packaged to a desktop called vscode, which supports multiple programming languages. simple, smooth, and coming quickly. 
 people want it." src="https://cdn-images-1.medium.com/max/1024/1*rr19sPAPg9Gy2EEQiIa3Yg.png" /></figure><figure><img alt="two guys are watching this happening silently…" src="https://cdn-images-1.medium.com/max/1024/1*Rn8Pa0LzKLP2EQL-I1_ILg.png" /></figure><figure><img alt="vi and emacs.
 vi- emacs, tell me. aren’t they all rubbish? we are the best!" src="https://cdn-images-1.medium.com/max/1024/1*Lq3sbOrYA4ShY2N7fWZlBA.png" /></figure><figure><img alt="emacs — the two of us? i’m the best!" src="https://cdn-images-1.medium.com/max/1024/1*bF8dQQuyP7riJOcFjA6SOQ.png" /></figure><figure><img alt="vi and emacs fighting!" src="https://cdn-images-1.medium.com/max/1024/1*BI5nNPRUCrgnatd4vl0CAw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26a462222726" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/ides-ides-on-the-wall-which-is-the-best-of-them-all-26a462222726">IDEs, IDEs on the wall, which is the best of them all?</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If CPU Was Forrest Gump?]]></title>
            <link>https://medium.com/better-programming/what-if-cpu-was-forrest-gump-3d79cd1ba6d6?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d79cd1ba6d6</guid>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 18:06:07 GMT</pubDate>
            <atom:updated>2022-02-28T18:06:07.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3oqZ_tJIHTOwSz_hEwK50g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*823OWkKW9YmMxAarTSz-5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwzkzjQvy4lSNWPHspJW7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCJtg2GuPFlZdoJZqqhB-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BdDyqCIezMAPA2xTW8w95A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPHRlA6qBT1pCaTqFH6Xzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbYWmmWkS7QZKN3qX6CzyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UObjee8rcnaxnFEPZsYdRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgjsRcwIfb0ivHV12Vflnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHNi8I5tCidw9MgwVG84mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUgmxeqU-6ks80vAwDDqMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CTdcQ8pvVut3ddoOwe42qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fhtU9dvCWi72OWgzaEUow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfyT2_w3EgcbS9ig3Rhcmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6SzqcTJJjO8SVqi8Dp3gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSEu06wuuYbmw6Ztw9JGhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqGhTmymJ_-8Zjct1B6u5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2aXWpUeWJQrVPE5uoxJqDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50J5Zs-G3picsYeTehF55A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OUqhtXj6XSilinwZ7UUwcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_rbCzVYTUDMiWXSUnvH1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XVPbicSHRnPq1d-nMyF7wA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yjosh_54cl9jBCFzhPMzcQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qifWkGXK8rFl_jbQQTIyPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6XmNWGz-GlEbhdfX9YVsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvsjxHEKYCQ0KM-FTaFpkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*am4gX0ryICkk3qQw3jqhlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rq8BPVMNsi8YNwkm51kU9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yKc1pr9P2fOY-fXwC509A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UEzk3HQEEefSxaLnURYJ3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bsD9KxVvcU7E9OG4CUkvEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zudruVDLBUVZLcdxzHnO4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XHkldrJZcdngBnKVnpfMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PaG5kf43x2tJlHn68YZug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrIothKjbjd4fEdlr4P72Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wV3DXgrFcsjQSekAxRdQBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQgMQufdpWmfjOlxwIRGSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qczffBWLdR-yFAzbcTX6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0z-_MOHZGocrXkVLFe4NHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uD_XV6O8JOJpD0QBhBfg2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I18O1ZrKH-BvItxGf1qRXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTPRKwfpdf8-6sDSuKuEGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZU7FKXECJWOfBB5xvRqGgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jP96HeI0lsup58dcuF4KEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CD5yz5xtucET_62NG6e9Gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KeqBbodcgOYz2lgMOWFs7w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d79cd1ba6d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/what-if-cpu-was-forrest-gump-3d79cd1ba6d6">What If CPU Was Forrest Gump?</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I’m your forgotten network interface card! And this is my memoir!]]></title>
            <link>https://medium.com/better-programming/hello-im-a-network-interface-card-5dd6f861adc2?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dd6f861adc2</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 17:27:33 GMT</pubDate>
            <atom:updated>2022-02-28T08:40:21.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hP11vvPb9NKVFQsNWrXqNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbw7vyobwm5Of2J9POQhyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iu9qGSaeEbP4zCPkMorIcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WzoS78CpbNMovJHxghJww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1W_35KWoB8lbbDtASVWzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCZW9Y53Ogydk_waPm_-KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUFsZoKBqcI-fqr1q_lKCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymhQIDY1YgfafadTroGDRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txkxrdyGm6cKN_CltNr00A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvg_z0HqK-7g9YJcR2QL8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wmreytXzJlKPu9kYVd9Ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NR0s0LxzxMQRTtWzQ4Vn6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n7yHONea76FiACzb2CY8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qg5qUvAFJnND61mhW5r4Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XefRJyc8GYGv4Nli9O4gFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3T43aGEQxtBfbPv8Mvkbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwOsT2c1YwGqWQBt6nNHiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBTE6ypNc1378PET9kOpSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xm31FmyojZvNJGrqyppvgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XqfabmmjAyEBWKUUxssV7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouE56Zla8pGErLzXFPw5LA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*peCZ0s24DOaLuXQznUabIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyMqhjgaDnPLK2N4cEfXsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m60WSYGcCh7TceRAkBl2gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J-iKTVxuIoIJOQumIQwJGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQnWwKRIp0VutLXBkAmhQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CDkRoVE0znoNzASEO-djg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jkr5pQvDKXFsvdkhlOfT0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5Ik_vj_36IGETmBegLi5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqZ2Fxk85yOcvb8tSA53og.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2kSj8DOCW6a_hriaJSndw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVqvIsN-pGenQcQCmvQIiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycGaAO3k6PHJWwBVUOzcSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3I_YkLX_d940rbLp6NgpHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqY8BKbsb9kI6hUBdb951w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kItql5Z_FN4tTfaolbJzKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Qz9TQnwD5otJrKXn7wc3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omxoR0JYfqgWyZXV9Ql3AQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3rMlDnCaDkBC9NoG_ewbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gl4H64nRqzb-DjuauCmBMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKQ4DAC5z0hwJsry3kJ-_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kC3fnkEUo53KJm-6mzwxdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8PqqvY96MW4V0dxKn425Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwV7UOLc5kdhjlNTWJYFiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJvOWojD334p7sJWn5OP5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I2hwWvbsig64K-sVqglbZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cgVu1E2c3n1U8-JzqcnzMw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dd6f861adc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/hello-im-a-network-interface-card-5dd6f861adc2">I’m your forgotten network interface card! And this is my memoir!</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Die! you python heretic!]]></title>
            <link>https://medium.com/better-programming/die-you-python-heretic-c249030b65af?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c249030b65af</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[humor]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Tue, 22 Feb 2022 18:38:28 GMT</pubDate>
            <atom:updated>2022-02-22T18:38:28.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*sL63-ix3jC6BbSvo_1txGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*pIK7HIewXUCZCe2EAeHUIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-Gt5nyw9_ukdEqztnhs7Yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*IjbnimHCpeVNSdso6npayQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JrvJMPzbraJES8ekseNSMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_4Wuq4j0GS5ooCm30tNjQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*dxgO1hmQxEUE1df0X2vuqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XtW2cZflkzHZN6B8gWMVjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*cFGDwLJaTqdwIrfKy1KJqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*d8Czd7x4rZDTuAlYcm_O_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*fVs4wV-aZRFY0BZoO1twQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*eTh4BbE6OD4kB4GO_k0uhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*huhRtjuZi1TttZvH5cHsGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*0u4Qnr8AL-U0QwS9BlSxxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*oad8nTKaSHdU90rUCTiTRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*NnqwjKy87LnBnCnTy-dWqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*xfKVNLXUtBIcevLF3w1QNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OvW5UxlxU_naTo8541f-cA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*HOYLuYM2HVPE_khIFml6FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*scqqCa19LzhIM4SP2otFvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vLtwWAeIucRWMBdhVElqTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*fB0fSGXz1XA2FvCfIG6Phg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c249030b65af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/die-you-python-heretic-c249030b65af">Die! you python heretic!</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In two years, I learned all programming languages！]]></title>
            <link>https://medium.com/better-programming/in-two-years-i-learned-all-programming-languages-f374891605e?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f374891605e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 18:09:07 GMT</pubDate>
            <atom:updated>2022-02-21T18:09:07.089Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNoT3gGfI2oba6qzfbxMBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOlA2wV7Zx88gOJLeug3dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4AbtDzWskUlZMpPMslr6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cksodbece4NsBgJZHsfWOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWZaHl8X9cjeqyGT6ZUAzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UexTZ7thRUTRclM0L6Rgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SpZ5-Mlj581wzcgiclhkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cp4Q08c93Z1NZzV4URhWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oBp0Kf2ZsAL-c7yFamLXtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7klyejlsDFyePnmzDjdTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0fuGZb-JE70Mo8wrDM1kpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jluSh4hyFZpLfX8cBRXh9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxErLWW0zOoMrS79S0vv1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MimaPa9pS8mO_O_Onwzzog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29_N0-zdOzjyKkssnOst2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvOiwPPmKyYJhp-XECc8Tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rE-yghy6MICWlgSz0k4v_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ay8-qFu_Bs8zLweEIrjkZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaZt0wGaCRKOXkDQ_r47FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09xVWYfr35cQuCcvethoRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WeK4AHeE4e-TMyCp21BNJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnUNbShMCE6k6m7bg_82Ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0NP_sj8o52YRlGYR17PLrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k88Q3-9Nsh6O8DCpeSpxdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uNL7dd9uiaQK5oSNG_mD0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vA87ri7_fcDIOWcopFqyYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d17InphT2cKPhlzICJq9ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odR2elWGSFhtQbOGBGflXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KP1OHN-sLfkfs6kLocdejA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6zw_8r5Lc_6erJVBpR1xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J33bMhfYf6ZBvpih2VZXFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sLbEV8hqn0EGcqA7X39uzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0OcNwfbM5Uq9HPwfYGcow.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f374891605e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/in-two-years-i-learned-all-programming-languages-f374891605e">In two years, I learned all programming languages！</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello,I’m a computer thread]]></title>
            <link>https://onlyliuxin.medium.com/hello-im-a-computer-thread-fea92e65ae6?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fea92e65ae6</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 12:56:30 GMT</pubDate>
            <atom:updated>2022-02-21T12:56:30.935Z</atom:updated>
            <content:encoded><![CDATA[<p>the autobiography of a thread：birth,death and rebirth</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aFwIsNXCBip3rpq8.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@justinlim?utm_source=medium&amp;utm_medium=referral">Justin Lim</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>1. A newbie</strong></p><p>I am a thread. I was born with a number 0x3704, and then led to a dark room where I found a lot of friends just like me.</p><p>My companion 0x6900 stayed here for a rather long time. He said to me in a sophisticated tone: “ The destiny of us thread is to deal with packages. You have to come back here as soon as you finish handling the package, or you may never come back.”</p><p>I asked innocently: “ Package ? What package? ”</p><p>“ Don’t worry, you’ll soon find out. We don’t raise idle ones here.”</p><p>It wasn’t long before the door opened. A ferocious guy yelled, “ 0x3704, come out! ”</p><p>A heavy package was pressed on me. There was also a paper listing operation steps.</p><p>“Go, deal with this package.”</p><p>“But where to? ”</p><p>“ Follow the instructions. First to the Runnable workshop.”</p><p>I found an arrow on the ground. It led me to a bright house, which already accommodated some threads. Everyone seemed nervous, ready to dash forward at any moment.</p><p>As soon as I came in, I heard the radio saying, “0x3704, enter the Running workshop.”</p><p>I walked faster. Someone was talking behind me.</p><p>“Such a luck dog! He can run right after being runnable! ”</p><p>“ Maybe he knows SOMEONE.”</p><p>“No. He has higher priority. Alas!”</p><p>Running workshop was right in front of me. It was so beautiful. No wonder the old thread kept nagging about how he wanted to stay here forever.</p><p>The room was bigger and had nicer views. The air was fresh and fragrant. There were many workers waiting to serve me.</p><p>They all had numbers. More importantly, they had tags saying “hard disk”, “database”, “memory”, “network card” and so on.</p><p>Just then I did not know about their job. Let’s check the operation steps.</p><p><strong>Step one: Unpack the parameter.</strong></p><p>There was a HttpRequest object inside, including two parameters: userName and password.</p><p><strong>Step two: Perform login operation.</strong></p><p>Well, someone was trying to login. I handed userName and password to the database waiter. He left slowly.</p><p>But why was he so slow? Anyway, I could stay here longer since the third step is not operable.</p><p>Just at this moment, the broadcast said “0x3704, this is CPU. Remember the step you are taking, and then leave with the package right away!”</p><p>I slowly began to clean up my things.</p><p>“Hurry up, the other thread is about to enter.”</p><p>I left this workshop and entered another big room, where many threads were drinking tea and playing cards with laziness.</p><p>“ Dude, you have nothing to do now?”</p><p>“You must be new here. I am waiting for the database waiter to give me my data. It is said that they are hundreds of thousands of times slower than us. Let’s have a good rest here.”</p><p>“How slow they are! I have someone here waiting to login, can they wait that long?”</p><p>“ Relax, don’t you know that a day in reality is equal to a year in CPU? Our time is counted by nanosecond and millisecond. As a result, a second in reality is equal to a couple of days in our world. We can definitely make it.”</p><p>Maybe I could get some sleep. Some time later, the loudspeaker started to work again: “0x3704, your data is coming, go and execute it!”</p><p>I turned and ran to the CPU workshop, only to find that it is a one-way door. I cannot get <em>into</em> the workshop through this door.</p><p>There was a roar of laughter from behind. “He is a newbie for sure. He doesn’t even know that we need to wait in the Runnable workshop!”</p><p>I hurried to the Runnable workshop. Being unlucky this time, I waited a long time before entering the CPU workshop.</p><p>While I was waiting, I heard people whispering.</p><p>“You know what, a thread was killed recently.”</p><p>“But why? ”</p><p>“That guy refused to leave the CPU workshop, causing the CPU utilization to remain 100%. So he was killed.”</p><p>“Where was he then? ”</p><p>“Maybe he was collected as a garbage.”</p><p>I secretly gave a shudder and worked faster. The second step was done.</p><p><strong>Step three: Build the home page after successful login</strong></p><p>This step was a bit time-consuming because there were a lot of HTML to deal with. Whoever wrote the code made it an annoying job for me to process.</p><p>While I was busy operating the HTML, CPU began to yell again.</p><p>“0x3704, this is CPU. Remember the steps you are taking, and then leave with the package right away!”</p><p>“Why should I? ”</p><p>“Each thread can only run on CPU for a while, and then it will be others’ turn. So go to the Runnable workshop and wait for your turn. ”</p><p>Then I have been switching among “runnable”, “waiting” and “running” for many times, and finally completed the work following the step list.</p><p>Finally, the package containing HTML was successfully sent back. As for what’s going on after login, I don’t care. It’s about to get back to my dark room. I felt a little unwilling.</p><p>But compared with some other threads, I am lucky enough. They are completely destroyed after operation, and I am still alive!</p><p>Back to the little black house, I was asked by the old thread 0x6900.</p><p>“How’s your first day?”</p><p>“The rules in our world are complex. First of all, you don’t know when is your turn; secondly, you may be interrupted at any time in the course of execution and asked to leave the CPU workshop; thirdly, once there are a time-consuming operation involving hard disk or database, you need to leave the CPU and wait; and fourthly, the chances are that you cannot start to work right away even if you have the data . You’ll have to wait for the CPU to pick.”</p><p>“Well enough, dude.”</p><p>“I just don’t understand why some threads died right after they complete their work, while we are still alive.”</p><p>“You know what, eternity is our prerogative. And we have an official name for our place: thread pool.”</p><p><strong>2 . Making progress</strong></p><p>As a thread, my daily life was made up by picking up packages, processing packages, and going back to thread pool, my dark home.</p><p>One day when I came back, I heard a brother saying, “Take a good rest today. Tomorrow will be a crazy day.” I checked the calendar, it is the fourth Friday of November tomorrow.</p><p>Sure enough, when the midnight bell rang, those human beings began to deliver packages crazily. In order to cope with the huge influx of packages, no one in the thread pool could idle down. All of us went out to deal with packages. The utilization rate of CPU workshop is super high. Hard disk was buzzing, network card lights flashing crazily. Although we worked very hard, packages still piled up quickly.</p><p>We can’t help it either. There are too many packages, mostly browsing pages, placing orders, buying, buying and buying.</p><p>The package mountain gradually disappeared. I could finally take a breath. I guess I will never forget today.</p><p>Through this, I realized that the world I live in is an electronic business network.</p><p>The job I do everyday is to deal with the login, browsing, shopping cart, orders and payment.</p><p>I asked the old worker 0x6900: “How long should we work? ”</p><p>“Until the system restarts.” said 0x6900.</p><p>“Have you ever been through system restart?”</p><p>“No. System restart will be our funeral elegy. It is the apocalypse. Once the system restarts, the whole thread pool will be destroyed. Time and space will all fade away. Everything starts all over again.”</p><p>“So when is it?”</p><p>“I cannot tell. Just enjoy your days.”</p><p>Life was in fact quite colorful. My favorite package was pictures uploading. Since the network was slow, I could stay in the CPU workshop for a long time and meet a lot of interesting threads.</p><p>For example, I met thread Memcached. He told me that with his help, the electronic business network saved many user data, and they are distributed in many machines.</p><p>I asked him, “No wonder the login operation becomes faster. It will be unnecessary to extract data from the database because you already have it. Oh, by the way, since you’re distributed, have you ever been to other machines?”</p><p>“No, I can only send a GET and PUT command to that machine through network to access the data. I know nothing else.”</p><p>Last time, while I was waiting, I met a thread working for database connection. Only by then did I realize that there was also a connection pool, almost exactly the same as our thread pool.</p><p>“Some packages are just so sick. They ask to look at the order data of a whole year, which is killing me,” he told me.</p><p>I said: “Come on, that is pure data for you. After you send those data, I have to build that into HTML, which is a lot sicker than your job!”</p><p>He then gave me an advice: “You must maintain a good relationship with Memcached so that we can take the data directly from him. Let’s try not to call the database so often. The life of us JDBC Connection will then be much easier.”</p><p>“Absolutely. The point is that you need to save the data in cache in advance, or I have to ask cache, find no data, and then turn to you again.”</p><p>This is life. If you don’t go and have some fun, how can your life become meaningful?</p><p><strong>3 .Narrow escape</strong></p><p>A few days ago, I experienced something terrible. I almost died outside the thread pool. In fact, I should have been able to anticipate that. I was very careless.</p><p>That day I dealt with some deposits and withdrawals from HTTP, and the old thread 0x6900 specifically told me: “You need to be very careful when dealing with these packages. You must get a lock first. Remember to lock the account when you deposit or withdraw money from it. Otherwise, other threads will break in and cause some damage. When I was young, my carelessness caused great trouble.</p><p>In order to “intimidate”, the kind-hearted 0x6900 gave me two tables as follows:</p><p>Bank account: Account A, the balance is 1000 $</p><p>Thread 1: Deposit</p><p>Thread 2: Withdraw</p><p><strong>Table 1–1 The unlocked multithread</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DLvX5b59u0icmEsp.png" /></figure><p><strong>Table 1–2 The locked multithread</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IVtw2CGdXBirB8c_.png" /></figure><p>I was shocked: forgetting to lock the account can cause such a serious accident. From then on, whenever I saw the deposit and withdrawal package, I would deal with it with extreme carefulness. Luckily, there was no accident.</p><p>Today, I received a package for transferring money from a famous actor’s account to a famous director’s account. I would not disclose the name, but I could tell you that the amount of money was really huge.</p><p>As ordered by the old thread, I locked the account of the actor and then the account of the director.</p><p>But much to my surprise, there was another thread, yes, 0x7954, transferring money from the director’s account to the actor’s account at the same time.</p><p>Here’s the current situation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wA8trTiHzrsNMpQu.png" /></figure><p>At first I did not know what was going on. I waited and waited. Dozens of seconds went by and nothing happened. I had never experienced such an event before.</p><p>At this point I saw thread 0x7954. He sat there leisurely drinking coffee. I asked him:</p><p>“Dude, I see you drinking your eighth cup of coffee, why don’t you go and get your work done?”</p><p>“Well, you are having your ninth cup of tea. Why don’t you work?”</p><p>“I am waiting for a lock. Some asshole just won’t release it.”</p><p>“I am waiting for a lock too. If I know who is keeping it, I will beat him to death. ” 0x7954 replied fiercely.</p><p>I took a peek at him, only to find that HE is holding the lock of the director. It was exactly what I had been waiting for!</p><p>Obviously, 0x7954 also found that I was holding the lock that HE had been waiting for.</p><p>Soon the two of us got into a fight.</p><p>“Give me your lock and let me finish first!”</p><p>“No way. I will not release the lock until I finish my job. You cannot have it now!”</p><p>It only took few milliseconds for a quarrel to become actual fight.</p><p>More importantly, the two of us held not only the locks of this famous director and actor, but also many other locks. More and more threads joined the queue of waiting, and the onlookers packed the house. In the end, it became really a big deal. Our Big Boss “operating system”, who I had never seen before, was here. After all, Big Boss knew more. He looked at us, hummed, and said disdainfully:</p><p>“Dead lock again.”</p><p>“One of you will be killed. You two come here and draw lots.”</p><p>It just freaked me out. I drew lots in trepidation. Luckily, I survived.</p><p>After being forced to hand over all his resources, poor 0x7954 was unfortunately killed and vanished. I got the director’s lock and could get to work now. The Big Boss “operating system” disappeared like a gust of wind, only his voice followed:</p><p>“Remember, in our place, Director &gt; Actor, which means that you need to get the director’s lock in the first place.”</p><p>Since there were not only director and actor here, but also many others, Big Boss left a table with an algorithm for calculating the size of the resource. After calculation, we need to get the lock from big to small:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KjgUfvIh6aF_xW5N.png" /></figure><p>(<em>p.s.The calculation of the “size” of resource refers to making comparison between resources by turning them into numbers. For example, we can make comparison by the hascode of string.</em>)</p><p>I went back to the thread pool. Everyone has heard about my adventure and kept asking me about details.</p><p>The evil-looking thread dispatcher put Big Boss’s algorithm on the wall.</p><p>Every morning, we had to stand right in front of the door, reciting out loud in a hilarious manner:</p><p>“Remember the order of resource locking. Remember to make comparison according to Boss’s algorithm. Remember to lock from the biggest to the smallest.”</p><p><strong>4. Goodbye</strong></p><p>Many days later, I and the other threads found a strange thing: the processing of packages was getting easier and easier. No matter it was login, browsing or saving money, the steps were the same. Everything will be returned to a fixed HTML page.</p><p>Once I glanced secretly and saw it reading: “ The system will be maintained and upgraded from 00:00 to 4:00 tonight. We are deeply sorry for the inconvenience.”</p><p>I told 0x6900 about it. He sighed:</p><p>“Alas, our life is at an end. The system will soon restart and we will disappear. Goodbye my brother.”</p><p>Then the moment finally came. I saw the things in the room disappeared one by one: the waiting workshop, Runnable workshop, and even the CPU workshop. There are fewer and fewer thread brothers around me. Finally, I am the only one left.</p><p>I yelled on the empty ground: “Is there anyone else?”</p><p>No reply.</p><p>This generation of thread pool has completed its mission.</p><p>However, the next generation is about to be reborn!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fea92e65ae6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[After reading this comic, you will definitely understand HTTPS]]></title>
            <link>https://medium.com/better-programming/after-reading-this-comic-you-will-definitely-understand-https-c509cd063010?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c509cd063010</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[comics]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Wed, 02 Feb 2022 17:38:26 GMT</pubDate>
            <atom:updated>2022-02-02T17:38:26.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xk9f8pwMJUBwsiFzh0EZng.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wfg4AMCeEpskg35uVrNwpA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2p90Kst-WrQ7gDzc7qXBQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zl6RGU49NzTlGgHqjVPNCQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apwr4C6gy5ygtaFkCO49ZQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1zCkvLo6POWcQV4jSzi8w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVrPHpW18AGNIUb8wwmCdw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dc4mcgLSVvxSXu1HQD5qTA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfF1WbNRybogBZKkM0PTNQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqhuNefzPTm1xkRPHq5Sag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYcSd859vCHmSZebkMuM1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FN4jX9sFn_66O5_f7QAUDQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5b-rTPpBQM0kTJxYNFT_tQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJhVtyzAYtmdX0HUC_Ohow.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QY0EEaIiyAgtB0uksRmEkg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gDyqF90-nF9L30sqv-lQPw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_d0zoEjKhUj_SFkeTfzqw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8SCluUDOHs5qa77_UHBrQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltyZwNDRNGEOswMRi0IA7Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WPX2eDV6B-SjKAqvVQUHvg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhPlZ6BMLFMbmGgeKkP-rw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zwM0CHkjzp295KImaJ5fg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHpJZ79RPYXHZ2oyYDfQ6g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utnCa8LKiZ0Ia0bdVNQWtQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQp1uvf6lTa1l_LalrLoKA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-537AiF4gwYTiu--CJ7EIw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuRIBOraAou-Vk0b9W9yBg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AO-BemG6g1RMwssjpSyMUw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZbOml2z4hMfPYBK-uVAZQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4XyuUB8QEfR9YsFX9qxaw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kn3Q_Y_VvI3adcsY_7zGWw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdzoRwtDua8nKGZHKlKeag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NZGiTLBaedy2PgbmyHIZ_w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5aQ6pWIJtNbqawtGZR5zQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTdWvapi8HIkppszvD66Pg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ErDIs2y15ZNyk1U8ycHvw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvFp6JvuOZwc0q9Ka2V_DA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c509cd063010" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/after-reading-this-comic-you-will-definitely-understand-https-c509cd063010">After reading this comic, you will definitely understand HTTPS</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript: The Rise of a Loser]]></title>
            <link>https://javascript.plainenglish.io/javascript-the-rise-of-a-loser-f19b9de2029f?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f19b9de2029f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 07:18:17 GMT</pubDate>
            <atom:updated>2022-01-25T07:18:17.364Z</atom:updated>
            <content:encoded><![CDATA[<h4>From loser to winner — how did JavaScript make it?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Icz2Mfk_e-60SXl_.jpeg" /></figure><p>Yes, I am the famous Javascript, a typical Winner, the king of front-end programming. Millions of programmers use me to program. If you have never used me before, you are definitely an old fogey.</p><p>But when I was a loser, I did not expect myself to reach this height…</p><h4><strong>1. Birth</strong></h4><p>I was born in the ancient browser Netscape. At that time, web pages were just so boring: it was made up of some ugly static texts and simple pictures. Difficult to imagine, right? It was far worse than the fancy pages today. Just take a look at the famous Yahoo website at that time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/0*4Bj4Q5y6YOgKPMkm.jpeg" /></figure><p>In those days, people still needed to use dial-up service with the help of Modem. What’s worse, people had no choice but to tolerate the creaking sound every single time. It was like an iron sheet scratching the bottom of a pot, trying hard to drive people crazy.</p><p>The was just the beginning of torture. The Internet speed was only 28.8 kbit/s, which means that downloading a page can take a very long time.</p><p>Once, my creator Brendan Eich wanted to buy something through Netscape, a browser of his company. So he registered, filled in a form, clicked the submit button, waited for 38 seconds, and was told by the server that he forgot to choose sex.</p><p>He was so mad. “Fuck! Why can’t the browser just tell me this idiot shit! Are you telling me that I have to submit the data to a server site thousands of kilometers away for an easy check?”</p><p>It is imperative to reform the browser.</p><p>Brendan Eich went to the boss and said, “I can’t stand it. I need a script language that can run in the browser to help me do what I’m supposed to do in the browser.”</p><p>Boss said, “Netscape also had this idea, why don’t you design one?”.</p><p>Brendan Eich said, “Well, have you ever heard of LISP (Scheme, to be exact), the best programming language ever? Why don’t we run Scheme in the browser?”</p><p>Boss said, “Is there anyone who can use LISP in our company?”</p><p>Brendan Eich was speechless.</p><p>Boss said, “We’re now working with Sun company. Have you heard of Java, something they just invented? Applet is just awesome when running in the browser. Java must be the future web language. So if you come up with a new language, make sure it is similar to Java but much easier, those web developers will then be able to use it.”</p><p>My creator Brendan Eich was very depressed, but there was no other way. He had absolutely no interest in Java. As a result, he only spent 10 days on my design. By the way, my original name was LiveScript, but in order to cater to the “evil” Java, I was changed into JavaScript!</p><p>Because the time was too limited, some of the details were not rigorous enough. As a result, in a long period of time, the program produced by JavaScript was in total chaos. If the creator had foreseen that it would become the number one language on the Internet in the future and that it would have thousands of learners around the world, would he spend a little more time?</p><h4><strong>2. Development</strong></h4><p>Java was the star language of that time. He was young and energetic. He often laughed at me, “Are you really a computer language?”</p><p>I said, “Of course, my grammar is similar to yours.”</p><p>Java asked, “Why do you run in the browser only? Can you write a program and run it by yourself? Oh, by the way, can you read a file?”</p><p>Of course, I couldn’t read files. I lived in a browser. The programs I wrote can only be embedded in HTML pages and executed by browsers. They gave the execution module a very dynamic name: the JavaScript engine.</p><p>So I fought back, “You know what, I have an engine!”</p><p>“I have a virtual machine!” Java struck back effortlessly.</p><p>The elder brother C also asked me, “Why don’t you try to compile and run a program? Look, after compiling, I became a machine language. A lot faster!.”</p><p>I said, “Forget it. If JavaScript needs to be compiled on every single page, it will be very slow.”</p><p>Not only Java and C but also popular languages such as VB and Delphi looked down on me and secretly called me a loser.</p><p>Well, it makes sense. I couldn’t run on my own, and I couldn’t draw a beautiful interface like VB and Delphi. All I could do is operate HTML’s DOM and browser.</p><p>You may not know what DOM is, so let’s put it this way: when the browser gets the HTML page from the server, it will be displayed as a page for you to see, but internally, it actually organizes HTML into a tree for me, which can be called DOM. For example:</p><p><strong>Hello World HTML version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/0*IXWjYc2RWZwjyYLw.png" /></figure><p>DOM tree will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*YAlzRRH_KBTH4_re.png" /></figure><p>With this tree, I could do my best. I could locate any node in the DOM tree and operate on it. For example, I can hide nodes, display nodes, change colors, get text values, change text values, add a function in response to click events, and so on. I could almost do whatever you want.</p><p>More importantly, these operations could immediately take effect so that you don’t need to refresh the web page.</p><p>Note that these operations were completely internal, and the HTML source code did not change. Sometimes when you take a look at the HTML source code, you would find that these source codes are not consistent with the thing you saw in the browser. That is me who changed the DOM tree from behind.</p><p>The first problem my creator Brendan Eich encountered was a piece of cake. It was just a simple form verification.</p><p>Not only can I operate on DOM, I can also control the browser and perform acts like opening a window, moving forward and backward in a window, getting the name and version of the browser, etc.</p><p>You may want to ask, why do we need to get the name and version of the browser?</p><p>During the browser war between Netscape and IE, the two sides scrambled to support JavaScript in their own browsers. In order to target different programmers, they developed a lot of unique features of their own browsers. Some features could only be used in IE, others only in Netscape. As a result, people needed to identify the browser before taking specific acts.</p><p>In any case, my skills made the web pages in the browser more dynamic and more interesting.</p><p>But that’s all. I was stuck in the browser and web pages. There’s nothing else I could do.</p><p>In Java’s words, these were all trivial tricks, and I was just a loser who has no real value.</p><h4><strong>3. The first bucket of gold</strong></h4><p>The development of the Internet has exceeded everyone’s expectations. I was used on almost every website. But I had always been depressed: as a language, I run in a browser. I could not access a network like Java. What’s more, there was no way for me to call the server-side interface to get data.</p><p>Users could only send requests to the server through GET or POST. The data returned by the server was the entire page, not a fragment of the page. That is to say, the entire page has to be refreshed, even if there is only one text change on the page.</p><p>In 1998, I had a meeting with the ambitious IE5. The two sides had an in-depth exchange of views on topics of common concern and finally agreed on introducing a new feature into IE5: XMLHttpRequest. It would allow me to make interface calls directly to the server!</p><p>Every time when I made a call, IE5 would say:</p><p>“Come on little JS, take this user name and password to access the interface where the server-side processes login. This process is very time-consuming, I won’t wait for you. I will do something else first. After getting the data returned by the server-side, you must remember to call the function I gave you.”</p><p>I knew it was called an asynchronous call, so I accessed the URL of the login through the XMLHttpRequest, waited patiently for the server to finish the job, got the data back, and then called that function. Basically, I needed to update a node of the DOM tree. For example, I need to make the login box that contains the user name and password disappear, and then add a prompt message: Login Successful! I was good at this.</p><p>If the network speed and the processing speed of the server were fast enough, the users would find that they made a successful login without refreshing the whole page.</p><p>Neither IE nor I had anticipated that this feature could bring about a revolution: in this way, the pages can be refreshed locally thus producing an excellent experience. Apps such as Google Maps and Gmail made Internet applications popular.</p><p>Other browsers followed up quickly and implemented similar features. A variety of interactive sites mushroomed.</p><p>VB and Delphi stopped laughing at me because they desperately found that all the desktop apps they were good at were slowly moved onto the Internet. No one liked them anymore.</p><p>I, JavaScript, earned my first bucket of gold and marched to the top.</p><h4><strong>4. The Invention of JSON</strong></h4><p>Then someone called the approach above AJAX, or “Asynchronous JavaScript And XML” (asynchronous JavaScript and XML). Actually, asynchronization is good, but XML is upset.</p><p>For example, the server returns the following XML:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1YzZoRYfkjNdyhlX.png" /></figure><p>There is very little real data, and tags (such as &lt; name &gt;) take up large spaces and the data are hard to find.</p><p>I said to XML, “Aren’t you a little too big? It can be very tiring to transfer.”</p><p>XML said, “Ha, you didn&#39;t get it. It is elegant, well-formed, and readable for ordinary people. It runs well anyway.”</p><p>“Elegant? Are you kidding? There are so much useless data. Anyway, I have to use XML resolver to analyze you. Too tiring!”</p><p>“Loser! You cannot even deal with that. Look, Java is more than willing to use me. Spring, Struts, and Hibernate — nearly all configuration files were made by me!”</p><p>Java added, “Right. I even use DTD to see whether XML data are legal.”</p><p>I was speechless.</p><p>I remembered Forrest Gump’s words: if you cannot change others, change yourself first.</p><p>I looked at my grammar. There was a thing called an object, which had a curly brace. Inside the curly brace, the properties of the object were defined in the form of (name : value), and the properties were separated by commas, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/45/0*vUpuE9XMKhYyUhx4" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*pe5Zw7qH-PaoMHbN.png" /></figure><p>This kind of structure can fully realize the XML content!</p><p>My grammar also supports arrays, which means that more objects can be realized.</p><p><strong>JSON array</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/45/0*QX7VXOyA_dYXA-cF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*v20UuTExsDgbJFYZ.png" /></figure><p>Arrays and objects support nesting, and all complex structures can be saved!</p><p>More importantly, if this structure is applied, I don’t need any XML resolver to analyze the data. It’s a part of my language, and I can just use it directly.</p><p>books[0].name → return “The three body problem”</p><p>books[1].introduction →return “the autobiography of a thread”</p><p>Life is fabulous! :-)</p><p>I called this simple pattern JSON and reached an agreement with the server: let’s use JSON to transmit data.</p><p>As for XML, let old pedant Java use it!</p><h4><strong>5. The Mountaintop</strong></h4><p>HTML is in charge of the structure; CSS is in charge of presentation; and I (plus AJAX, JSON)) am responsible for logic.</p><p>So this is our front-end programming team.</p><p>Frameworks like ExtJS, prototype, and JQuery pushed front-end programming to another peak.</p><p>There is our amazing AngularJS who realized SPA(Single page application). It is beyond imagination.</p><p>I said to Java, “Brother, now I can realize MVC on the browser side. You just need to provide data to me through the interface on the server-side. ‘’</p><p>But Java didn’t give up on upsetting me, “Don’t be so proud. The server side is the core. Why don’t you have a try on the server-side?”</p><p>I was surprised. “The server side? I have never thought about that. What is it like to live in a CPU with 64 gigabytes of memory and a 32 core processor?”</p><p>“It is not that interesting as you imagined.” said Java impatiently, “multithread programming calls for locks on many things. You may fall at any step. For me, each request needs a thread. When it comes to database, even if it is slow, the thread has to wait.”</p><p>“Can’t we use asynchronous operation just like my AJAX? It can inform me when the data come.” I asked Java.</p><p>“No, I was designed this way. I cannot change now.”</p><p>What if we put JavaScript on the server-side? It is surely a crazy idea.</p><p>First, we need to move the operating environment of the browser (JavaScript engine) to the server-side. This engine needs to be fast, or Java must laugh at me.</p><p>The initial engines were unqualified. It was not until Chrome V8 did we really solve the problem.</p><p>Secondly, we need to bypass the java server problem: when the thread encounters some time-consuming operation like IO/database/network, it cannot wait. It needs to be changed into asynchronous processing.</p><p>But someone really made it. A decade after my birth, another genius Ryan Dahl put me onto the server-side in 2009. That is Node.js.</p><p>Now Java had nothing to say. While he was still skeptical about my execution on the server-side, more and more Node.js sites proved that JavaScript did have a foothold on the server-side and that it had a huge advantage: both the front end and the back end use the same development language: that’s me, JavaScript!</p><p>The original front-end developers can now write the back-end program without hindrance, making them the so-called “full-stack engineers”!</p><p>This is my story, the rise of a loser. My creator has never expected that I could be a Winner years after. I guess he may keep wondering at night, “I was too impatient at that time. Why didn’t I make JavaScript something better? ”</p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f19b9de2029f" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/javascript-the-rise-of-a-loser-f19b9de2029f">JavaScript: The Rise of a Loser</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Life of a Bytecode Language]]></title>
            <link>https://medium.com/better-programming/the-life-of-a-bytecode-language-fca666928e7b?source=rss-5fa30a3e12cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fca666928e7b</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Andy]]></dc:creator>
            <pubDate>Mon, 10 Jan 2022 17:35:10 GMT</pubDate>
            <atom:updated>2022-01-11T04:50:33.173Z</atom:updated>
            <content:encoded><![CDATA[<h4>As explained through funny comics: interpreter vs. compiled vs. bytecode languages</h4><p>What would happen if programming languages were kingdoms? Will there be a war between them? Who will win?</p><p>If you want to know, here’s a look at the comics I drew：</p><figure><img alt="Once upon a time, there were two kingdoms in the programming world. One is: the Interpreted Kingdom." src="https://cdn-images-1.medium.com/max/1024/0*M8HY8Gp0fTGRSRSc.png" /></figure><figure><img alt="Our residents basically look like this: source code, parser, abstract syntax tree and interpreted execution" src="https://cdn-images-1.medium.com/max/1024/0*lPWERK3YhnDSngH7.png" /></figure><figure><img alt="The other kingdom is compiled kingdom" src="https://cdn-images-1.medium.com/max/1024/0*p9PE1ulkpAwMK9n1.png" /></figure><figure><img alt="Compiled residents look like: Source code, compilation and linking, machine instructions, execute directly on the hardware" src="https://cdn-images-1.medium.com/max/1024/0*oevP7CTvBXwlEGB1.png" /></figure><figure><img alt="Two kingdoms lived in peace for years, with new languages coming in from time to time." src="https://cdn-images-1.medium.com/max/1024/0*dyqkh4ePrMCThvgD.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b9T7MCAeS2brMHwH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t1f8N3H80uz2F3jO.png" /></figure><figure><img alt="One day, a young man named Java reached a fork. He had to make a choice between two directions." src="https://cdn-images-1.medium.com/max/1024/0*dPaVB_qxTD7hgubj.png" /></figure><figure><img alt="He was immersed in thought: to choose compiled kingdom where there’s a cross platform challenge or the interpreted kingdom where the execution speed is slow" src="https://cdn-images-1.medium.com/max/1024/0*3hIRrfnCQynrXJVs.png" /></figure><figure><img alt="Suddenly Java heard someone calling: Young man, how about join my Bytecode tribe? We can do compilation and interpretation" src="https://cdn-images-1.medium.com/max/1024/0*Ns-w1MLOTcgh3UZe.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s8rVrLtnK9KSzzhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zifft9f1vRBzUbHZ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7GxcoMmwplIk4wVd.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A2ixlfpMrJ_hdWal.png" /></figure><figure><img alt="After that, the Byte-code Tribe went to war with the Interpreted Kingdom. They pinpointed the weakness of Interpreted Kingdom: interpreters had to go through AST for Interpreted execution, which is quite inefficient. The Byte-code Tribe launched a fierce attack." src="https://cdn-images-1.medium.com/max/1024/0*9Vzh4OGdmyjupaeF.png" /></figure><figure><img alt="The Interpreted Kingdom failed to defend itself and was losing ground." src="https://cdn-images-1.medium.com/max/1024/0*RpiN11-uYpsEMeXm.png" /></figure><figure><img alt="The programming languages switched sides and joined the Bytecode kingdom." src="https://cdn-images-1.medium.com/max/1024/0*pPxDQXvS7hDhDLxT.png" /></figure><figure><img alt="Among them, languages like Clojure, Scala, Jython, JRuby, Grooby and Kotlin embraced Java bytecodes directly" src="https://cdn-images-1.medium.com/max/1024/0*BGBpolLZ16iWNwOf.png" /></figure><figure><img alt="Ruby PHP Perl Python and Lua created their own bytecodes" src="https://cdn-images-1.medium.com/max/1024/0*fe_UUvzeuPPbXzLh.png" /></figure><figure><img alt="JavaScript was first brought to the Compiled Kingdom and then to the Byte-code Kingdom by V8 JavaScript engine." src="https://cdn-images-1.medium.com/max/1024/0*YQfG-Wy9HWpaDD5z.png" /></figure><figure><img alt="The Microsoft Empire smelled danger, so it created its own byte-code MSIL and then ask C#, VB.NET and others to compile themselves: into byte-codes." src="https://cdn-images-1.medium.com/max/1024/0*IXaUi-aEKdrKvuaS.png" /></figure><figure><img alt="As the territory of the Byte-code Kingdom got larger, the Interpreted Kingdom had to face its decaying future." src="https://cdn-images-1.medium.com/max/1024/0*Cz2GMHUJQVQ6CzxM.png" /></figure><figure><img alt="The Byte-code Kingdom tried to keep on fighting to conquer the Compiled Kingdom. It wanted to be the only ruler. However, the Compiled Kingdom took hold of System Level Programming firmly. Key areas such as the OS (Operating System), the Internet, the database and Virtual Machine all belonged to the Complied Kingdom." src="https://cdn-images-1.medium.com/max/1024/0*5NkJ9aJDMiOavMFf.png" /></figure><figure><img alt="The walls were solid, the army was strong, The troop of the Byte-code Kingdom was no match for that!" src="https://cdn-images-1.medium.com/max/1024/0*jSg7_I7_f6iVoolR.png" /></figure><figure><img alt="Even worse, the foundation of the Byte-code Kingdom, Virtual Machine, was provided by the Compiled Kingdom. Once the supply was cut, the consequence could be fatal." src="https://cdn-images-1.medium.com/max/1024/0*lvHY1O0NqRJKf2lh.png" /></figure><figure><img alt="In the end, the Byte-code Kingdom decided to sue for peace with the Compiled Kingdom. They reached a peace agreement and split the territory." src="https://cdn-images-1.medium.com/max/1024/0*QPhVO3M9Fev934zc.png" /></figure><p>Since then, the programming world became peaceful again. But will the peace be eternal? Which could be the next balance-breaking language (or kingdom)? Let’s wait and see.</p><p>Long live Byte-code!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fca666928e7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/the-life-of-a-bytecode-language-fca666928e7b">The Life of a Bytecode Language</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>