<?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 Shubham Basu on Medium]]></title>
        <description><![CDATA[Stories by Shubham Basu on Medium]]></description>
        <link>https://medium.com/@mrshubhambasu?source=rss-648747d4e784------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ND8aMqRLDxLdnXjvP1JtqQ.jpeg</url>
            <title>Stories by Shubham Basu on Medium</title>
            <link>https://medium.com/@mrshubhambasu?source=rss-648747d4e784------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:11:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrshubhambasu/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[Go — “Pass by reference” — a myth!]]></title>
            <link>https://medium.com/@mrshubhambasu/go-pass-by-reference-a-myth-c10ff28d7faf?source=rss-648747d4e784------2</link>
            <guid isPermaLink="false">https://medium.com/p/c10ff28d7faf</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[pass-by-value]]></category>
            <category><![CDATA[reference-type]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[pass-by-reference]]></category>
            <dc:creator><![CDATA[Shubham Basu]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 14:01:36 GMT</pubDate>
            <atom:updated>2022-03-17T14:01:36.946Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Go — “Pass by reference” — a myth!</strong></h3><p>If a language does not have reference variables, how can it have a pass-by-reference function-call semantics?</p><p>Reference variable — whats that?</p><p>In languages like C++ you can declare an alias, or an alternate name to an existing variable. This is termed a reference variable.</p><p><strong>Example:</strong></p><pre>#include &lt;stdio.h&gt;</pre><pre>int main() {</pre><pre>int a = 10;</pre><pre>int &amp;b = a;</pre><pre>int &amp;c = b;</pre><pre>printf(“%p %p %p\n”, &amp;a, &amp;b, &amp;c); // 0x7ffe114f0b14 0x7ffe114f0b14 0x7ffe114f0b14</pre><pre>return 0;</pre><pre>}</pre><p>A, b, and c all relate to the same memory address. The contents of b and c will be changed if you write to a. This comes in handy when you need to declare reference variables in many scopes, such as function calls.</p><p>There are no reference variables in Go</p><p>In contrast to C++, each variable defined in a Go program has its own memory location.</p><p>Example:</p><pre>package main</pre><pre>import “fmt”</pre><pre>func main() {</pre><pre>var a, b, c int</pre><pre>fmt.Println(&amp;a, &amp;b, &amp;c) // 0x1040a124 0x1040a128 0x1040a12c</pre><pre>}</pre><p>It’s impossible to write a Go programme that uses the same memory region for two variables. It is possible to construct two variables with the same storage location as their contents, but this is not the same as two variables with the same storage location.</p><pre>package main</pre><pre>import “fmt”</pre><pre>func main() {</pre><pre>var a int</pre><pre>var b, c = &amp;a, &amp;a</pre><pre>fmt.Println(b, c) // 0x1040a124 0x1040a124</pre><pre>fmt.Println(&amp;b, &amp;c) // 0x1040c108 0x1040c110</pre><pre>}</pre><p>In this example, b and c both have the same value–the address of a–but they are stored in different places. The contents of b would have no effect on c if they were updated.</p><p>What about Maps and Channels?</p><p>People often misunderstand Maps and Channels as references, but they are not!</p><p>Look at this program, if Maps and Channels were references, this would have printed ‘false’</p><pre>package main</pre><pre>import “fmt”</pre><pre>func fn(m map[int]int) {</pre><pre>m = make(map[int]int)</pre><pre>}</pre><pre>func main() {</pre><pre>var m map[int]int</pre><pre>fn(m)</pre><pre>fmt.Println(m == nil)</pre><pre>}</pre><p>The m defined in main and the m declared in fn would occupy the same storage address in memory, if the map m was a C++ style reference variable. We can see that maps are not referenced variables since the assignment to m within fn has no influence on the value of m in main.</p><p>So what is a Map then?</p><p>Let dig into this topic later, but for now, if you are being impatient, here is the answer -</p><p>It is a pointer to runtime.hmap structure.</p><p>Conclusion</p><p>Because Go doesn’t have reference variables, it doesn’t have pass-by-reference semantics, So we can safely say that pass-by-reference is a myth in Go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c10ff28d7faf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Golang’s Race Detection and ways to handle it.]]></title>
            <link>https://medium.com/@mrshubhambasu/golangs-race-detection-and-ways-to-handle-it-a6798fe40291?source=rss-648747d4e784------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6798fe40291</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[race-condition]]></category>
            <category><![CDATA[golang-tutorial]]></category>
            <category><![CDATA[golang-development]]></category>
            <dc:creator><![CDATA[Shubham Basu]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 13:48:15 GMT</pubDate>
            <atom:updated>2022-03-17T14:05:53.080Z</atom:updated>
            <content:encoded><![CDATA[<p>Golang, as we all know, is a strong programming language with built-in concurrency. We may run a function alongside other functions by using the go keyword to create a goroutine. When numerous goroutines exchange data or variables, race situations might be difficult to forecast.</p><p><strong>In this blog, I will discuss the following topics:</strong></p><ul><li>What is a data race condition, and how does it happen?</li><li>How can we tell whether there is a race going on?</li><li>Examples of typical data races and how to solve race situations</li></ul><p>What exactly is a data race condition?</p><p>A data race happens when two goroutines visit the same variable at the same time, and at least one of the accesses involves a write operation.</p><p>Here’s a simple illustration of a race condition:</p><pre>package main</pre><pre>import (</pre><pre>“fmt”</pre><pre>“sync”</pre><pre>)</pre><pre>func main() {</pre><pre>var wg sync.WaitGroup</pre><pre>wg.Add(5)</pre><pre>for i := 0; i &lt; 5; i++ {</pre><pre>go func() {</pre><pre>fmt.Println(i)</pre><pre>wg.Done()</pre><pre>}()</pre><pre>}</pre><pre>wg.Wait()</pre><pre>}</pre><p>You may have noted that in the preceding example, we initiated 5 goroutines and accessed the i variable within the goroutine, but we encountered a data race condition since all goroutines read data from the i variable concurrently and for loop put a new value into I variable at the same time.</p><p><strong>Output of the program: </strong><br>5 5 5 5 5 5 5</p><p><strong>How can we tell whether there is a race going on?</strong></p><p>Now that we’ve defined what a race condition is, let’s look at how to identify them in your Golang project. As a result, Golang has sophisticated race detection tools that may be used to check for potential race situations in a programme. <br> To utilise the built-in race detector, just include the -race parameter to your go run command:<strong><br> $ go run -race main.go<br> </strong>If there is a data race condition in the programme, this command will find it and print the error stack where the race condition is occurring.</p><p><strong>Sample Output:</strong></p><p>==================</p><p>WARNING: DATA RACE</p><p>Read at 0x00c000134018 by goroutine 7:</p><p>main.main.func1()</p><p>/home/shubhambasu/Desktop/prg.go:13 +0x3d</p><p>Previous write at 0x00c000134018 by main goroutine:</p><p>main.main()</p><p>/home/shubhambasu/Desktop/prg.go:11 +0xab</p><p>Goroutine 7 (running) created at:</p><p>main.main()</p><p>/home/shubhambasu/Desktop/prg.go:12 +0x8f</p><p>==================</p><p>3</p><p>4</p><p>5</p><p>Found 1 data race(s)</p><p>exit status 66</p><p><strong>What are our options for resolving it?</strong></p><p>Once you’ve discovered the race condition, you’ll be relieved to know that Go provides several options for resolving it.</p><p>The following phrase was very aptly stated by Rob Pike. This simple statement contains the solution to our problem.</p><p><em>“Do not communicate by sharing a memory; instead, share memory by communicating.” -Rob Pike</em></p><ul><li><strong>Use Channel to share data.</strong></li></ul><p>The goroutine in the following programme reads a variable defined in main, increments it, and then closes the wait channel.</p><p>Meanwhile, the main thread tries to increase the value of the same variable, then waits for the channel to shut before printing the value.</p><p>However, because main and goroutine are both attempting to increase the same variable, a race situation occurs.</p><p><strong>Problem example:</strong></p><pre>package main</pre><pre>import “fmt”</pre><pre>func main() {</pre><pre>wait := make(chan int)</pre><pre>n := 0</pre><pre>go func() {</pre><pre>n++</pre><pre>close(wait)</pre><pre>}()</pre><pre>n++</pre><pre>&lt;-wait</pre><pre>fmt.Println(n)</pre><pre>}</pre><blockquote>Let’s use channels to solve the above problem</blockquote><blockquote>Solution:</blockquote><pre>package main</pre><pre>import “fmt”</pre><pre>func main() {</pre><pre>ch := make(chan int)</pre><pre>go func() {</pre><pre>n := 0</pre><pre>n++</pre><pre>ch &lt;- n</pre><pre>}()</pre><pre>n := &lt;-ch</pre><pre>n++</pre><pre>fmt.Println(n)</pre><pre>}</pre><p>Here, the goroutine increments the variable, and the variable value passes across the channel to the main function, which performs the next action when the channel gets data.</p><ul><li><strong>Use sync.Mutex</strong></li></ul><p>The programme below will retrieve the total amount of even and odd numbers from an array of integers, numberCollection, and store them in a struct.</p><p><strong>Problem example:</strong></p><pre>package main</pre><pre>import (</pre><pre>“fmt”</pre><pre>“sync”</pre><pre>)</pre><pre>type Counter struct {</pre><pre>EvenCount int</pre><pre>OddCount int</pre><pre>}</pre><pre>var c Counter</pre><pre>func main() {</pre><pre>numberCollection := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}</pre><pre>fmt.Println(“Start Goroutine”)</pre><pre>var wg sync.WaitGroup</pre><pre>wg.Add(11)</pre><pre>for _, number := range numberCollection {</pre><pre>go setCounter(&amp;wg, number)</pre><pre>}</pre><pre>wg.Wait()</pre><pre>fmt.Printf(“Total Event Number is %v and Odd Number is %v\n”, c.EvenCount, c.OddCount)</pre><pre>}</pre><pre>func setCounter(wg *sync.WaitGroup, number int) {</pre><pre>defer wg.Done()</pre><pre>if number%2 == 0 {</pre><pre>c.EvenCount++</pre><pre>return</pre><pre>}</pre><pre>c.OddCount++</pre><pre>}</pre><p><strong>The output of the program: </strong><br>Total Event Number is 5 and Odd Number is 6</p><p>If the programme is verified by the race detector flag then we notice line c.EvenCount++ and line no 31 c.OddCount++ generates a race issue because every goroutine puts data into a struct object at the same time.</p><p><strong>Solution:</strong></p><p>To address this issue, we may utilise sync.Mutex to restrict access to the struct object, as seen in the following example:</p><pre><em>package main</em></pre><pre><em>import (</em></pre><pre><em>“fmt”</em></pre><pre><em>“sync”</em></pre><pre><em>)</em></pre><pre><em>type Counter struct {</em></pre><pre><em>EvenCount int</em></pre><pre><em>OddCount int</em></pre><pre><em>mux sync.Mutex</em></pre><pre><em>}</em></pre><pre><em>var c Counter</em></pre><pre><em>func main() {</em></pre><pre><em>numberCollection := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}</em></pre><pre><em>fmt.Println(“Start Goroutine”)</em></pre><pre><em>var wg sync.WaitGroup</em></pre><pre><em>wg.Add(11)</em></pre><pre><em>for _, number := range numberCollection {</em></pre><pre><em>go setCounter(&amp;wg, number)</em></pre><pre><em>}</em></pre><pre><em>wg.Wait()</em></pre><pre><em>fmt.Printf(“Total Event Number is %v and Odd Number is %v\n”, c.EvenCount, c.OddCount)</em></pre><pre><em>}</em></pre><pre><em>func setCounter(wg *sync.WaitGroup, number int) {</em></pre><pre><em>defer wg.Done()</em></pre><pre><em>c.mux.Lock()</em></pre><pre><em>defer c.mux.Unlock()</em></pre><pre><em>if number%2 == 0 {</em></pre><pre><em>c.EvenCount++</em></pre><pre><em>return</em></pre><pre><em>}</em></pre><pre><em>c.OddCount++</em></pre><pre><em>}</em></pre><blockquote><em>3) If possible, make a copy of the variable</em></blockquote><blockquote><strong><em>Problem example:</em></strong></blockquote><pre>package main</pre><pre>import (</pre><pre>“fmt”</pre><pre>“sync”</pre><pre>)</pre><pre>func main() {</pre><pre>var wg sync.WaitGroup</pre><pre>wg.Add(5)</pre><pre>for i := 0; i &lt; 5; i++ {</pre><pre>go func() {</pre><pre>fmt.Printf(“%v “, i)</pre><pre>wg.Done()</pre><pre>}()</pre><pre>}</pre><pre>wg.Wait()</pre><pre>}</pre><p>In the above scenario, five goroutines are called in a for loop, and the value of i is accessed from the goroutine. Every Goroutine is called asynchronously and enters the wait state until the for loop or any block action is done. <br>After the for loop execution is finished, all goroutines will begin execution and attempt to access the I variable. This will cause a race situation.</p><p>For this scenario, we may simply supply the copy parameter to the goroutine, and each goroutine will receive a copy of the variable. In the next example, we utilise argument j instead of accessing I from within the goroutine.</p><p>Solution:</p><pre>package main</pre><pre>import (</pre><pre>“fmt”</pre><pre>“sync”</pre><pre>)</pre><pre>func main() {</pre><pre>var wg sync.WaitGroup</pre><pre>wg.Add(5)</pre><pre>for i := 0; i &lt; 5; i++ {</pre><pre>go func(j int) {</pre><pre>fmt.Printf(“%v “, j)</pre><pre>wg.Done()</pre><pre>}(i)</pre><pre>}</pre><pre>wg.Wait()</pre><pre>}</pre><p>Conclusion:</p><p>The ideal approach to manage concurrent data access in Go is to utilise a channel and the -race flag to generate a data race report, which helps to prevent a race condition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6798fe40291" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go or Ruby — The fight]]></title>
            <link>https://medium.com/@mrshubhambasu/go-or-ruby-the-fight-3d919da98665?source=rss-648747d4e784------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d919da98665</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Shubham Basu]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 13:44:30 GMT</pubDate>
            <atom:updated>2022-03-17T13:44:30.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Go or Ruby — The fight</h3><p>Ruby and Go are extremely popular programming languages that stand out among the hundreds of computer languages that are currently in use. They are basic, straightforward to use, and come standard with the majority of operating systems.</p><p>But are they the same thing? What are the distinctions? This essay will offer you an overview of Ruby and Go, as well as the differences between the two programming languages.</p><p>What exactly are they?</p><p>Let’s begin with their definitions! Ruby is defined as “a dynamic, open-source programming language with an emphasis on simplicity and productivity.” The naturalness and explicitness of its syntax are referred to as simplicity. That is, you don’t need to think too hard about how to translate your ideas to the programming language; instead, use it naturally, as if you were talking to someone, so you can focus on the problem at hand.</p><p>Go is also an open-source programming language that is simple, dependable, and efficient. It is quicker, more dependable, and delivers higher-quality applications than Ruby. Another distinction is that Go is well-suited to tackling both complicated and simple multi-threaded jobs.</p><p>When were they made and who produced them?</p><p><strong>Ruby</strong> was designed by Yukihiro “Matz” Matsumoto in 1995. He argues that rather than adapting to technological demands, programming languages should focus on the human user experience. Matz’s inspiration for designing Ruby was to assist computer programmers enjoy writing while also reducing programming labor and potential misunderstanding.</p><p><strong>Go</strong> is newer than Ruby; it was created in 2009 by Robert Griesemer, Ken Thomson, and Rob Pike. They wanted to create a language that would simplify the development process and allow them to get results faster. The designers began their experiment as a Google project in order to produce a dependable, resilient, and efficient program. They were influenced by several other programming languages, including C, Pascal, Alef, and Oberon. As a result, Go is a more adaptable language that can collaborate with various stacks to improve overall app performance.</p><p><strong>Some other differences</strong></p><ul><li>Ruby is said to as a multi-diagram programming language, which indicates that it supports more than one diagram, allowing developers to choose the best style and language for the job at hand.</li><li>There is no preprocessing in Go. A preprocessor aids in the processing of input data so that it may be used as an input for another program. However, the preprocessor may modify the reasoning, so the final output may not be the one you wanted. Without the preprocessor, Go could prevent the possible systemic mistakes, which saves time and energy for the developers, so that they can spend more time by focusing on their responsibilities.</li></ul><p>Both Ruby and Go are famed for their simplicity and productivity, yet there are several distinctions between them:</p><p><strong>Compatibility</strong>:</p><p>In terms of compatibility, Go surpasses Ruby because Go, as a server-side language, interacts with practically all databases, whereas Ruby is confined to a few common databases. Furthermore, Go may be combined with several stacks such as Python and Go, PHP, and even Ruby to boost overall project speed.</p><p><strong>Speed</strong>.</p><p>Because Go does not need to be interpreted, it is quicker than Ruby in terms of processing speed.</p><p><strong>Object orientation</strong>.</p><p>Go is not an object-oriented language that you can apply it to most issues, while Ruby is an object-oriented language that regards anything that appears in code as an object.</p><p>As you can see, Go and Ruby each have their own set of qualities, and you can pick the one that best fits your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d919da98665" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The future belongs to Go, really?]]></title>
            <link>https://medium.com/@mrshubhambasu/the-future-belongs-to-go-really-169c450ed2cc?source=rss-648747d4e784------2</link>
            <guid isPermaLink="false">https://medium.com/p/169c450ed2cc</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[coders]]></category>
            <dc:creator><![CDATA[Shubham Basu]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 13:42:46 GMT</pubDate>
            <atom:updated>2022-03-17T13:45:04.902Z</atom:updated>
            <content:encoded><![CDATA[<p>Go is the language that we have been noticing for a few years. It is developed considering 21st-century machines — and their programmers. A new language will also need to answer challenges that matter to this expanding world. Could that new language be Go?</p><p><strong>Go — A brief introduction</strong></p><p>Google has been working on Go since 2007, and it has been available as an open-source project since 2009.</p><p>Unlike most other languages, Go was created with a large number of programmers, concurrent systems, and big-scale challenges in mind. Some languages, such as C, were simply not built for the widespread use of multi-core and multiprocessor computers. Some languages, such as Python, were never designed to scale effectively over many cores and have been sluggish to embrace techniques for doing so. These days, many languages lack networking libraries that are reliable and offer an easy-to-understand API. Many languages, especially those with operator overloading, need a thorough understanding of both the program’s architecture and the libraries used.</p><p>The Go programming language was created by Google researchers to assist them to overcome the following problems:</p><p>The language should be able to build software rapidly, perform effectively on current multi-core technology, operate well in a networked context, and be enjoyable to use.</p><p>Go is a dynamic language similar to Python or Ruby in appearance, but with the performance and security of languages like C or Java.</p><p>Python and Ruby programmers migrate to Go because it offers them more expressiveness while also allowing them to experiment with concurrency.</p><p><strong>Go — Who is using it as of now?</strong></p><p>Google has been using Go since May 2010 in production for back-end infrastructure, such as creating programs for administering complicated settings. Google wants to invest in it, and the language is ready for production.</p><p>Beyond Google, Go is utilized by a variety of enterprises, including BBC Worldwide, Novartis, bitly, Torbit, Conformal, and Heroku, to mention a few.</p><p><strong>Go — Why should you consider learning it?</strong></p><p>To be ready for me to devote time to learning a new language, it must answer at least one of the following two questions:</p><ol><li>Is this a language that I could use in a production environment?</li><li>Will learning this language improve my abilities to solve complicated issues in new ways?</li></ol><p>After crunching several of google’s official documents, it seems that the answer to both of these questions was yes.</p><p>What’s remarkable about Go is how much complexity and cruft has been removed from C and C++ while retaining their essential architecture and fundamentals. In Go, concepts like generics, polymorphism, and object orientation have been simplified to their most basic primitives. Go is so simple and well-thought-out that I’m amazed at how much I’m learning.</p><p><strong>All well, are there any super-cool features?</strong></p><p>Here’s a short rundown of some of the language’s features:</p><ul><li>Concurrency is built into the language through channels and goroutines.</li><li>Cross-platform AND cross processor</li><li>Open source, but with corporate support</li><li>Native compilation needs no runtime installation (a huge win)</li><li>A built-in package management system with C-based syntax (for different people, this has pros and cons).</li><li>Goroutines are used to perform synchronous but non-blocking IO.</li><li>Strong typing and duck typing at the same time</li><li>Compilation times are extremely fast–even quicker than JIT-based languages.</li><li>The speed of a compiled language combined with the feel of an interpreted language</li></ul><p>We discovered the community to be alive, engaged and rapidly increasing. The number of libraries available to do various tasks is rapidly increasing.</p><p><strong>So can we consider Go as a first language?</strong></p><p>So I make the case for “Go as a first language” because of the following reasons:</p><ul><li>Language simplicity: Go is not simply devoid of cruft, it is also extremely well-conceived.</li><li>Standard library: Go includes well-developed APIs for many of today’s requirements:</li><li>HTTP server and client,</li><li>JSON, Unicode,</li><li>Cryptography,</li><li>HTML and plain text template engine.</li></ul><p>If you are developing a web application that does not need a database, the standard library has you covered.</p><ul><li>Formatting and code style: This is a non-issue with Go. The only valid formatting is that produced by the go fmt command. There are no warnings known to the compiler; there are either errors or no messages.</li><li>Distributing binaries: Go creates stand-alone binaries.</li><li>Documentation: Everything about Go feels well-thought-out and well-crafted.</li></ul><p><strong>So what all can be the use cases of this language?</strong></p><ul><li>Can be used for systems programming</li><li>Is an excellent fit for game server development</li><li>Can be used for Complex event processing</li><li>It is also a broad programming language, helpful for tackling text-processing problems, making frontends, or even scripting-like applications</li></ul><p>However, Go is not ideal for real-time development because of its garbage collection and autonomous memory allocation.</p><p><strong>So, can Java be replaced with Go in Android development?</strong></p><p>Apple owns Objective-C. C# is owned by Microsoft. Google definitely does not own Java, which is a pity because they had their chance when Sun was moving into bankruptcy and they missed it. If Google makes the move from Java to Go for Android then Android developers will have to learn Go. In the long term, it definitely sounds like something that would be good for Google as they’d have full control over what happens with the language. Since it’s such a nice language they may even persuade developers to be interested in learning it, similar to what the majority of iOS developers had to learn Objective-C to produce iOS apps.</p><p><strong>Go and the new age cloud computing</strong></p><p>Although Java is a fantastic programming language, it predates cloud computing. In Go, designing and delivering high-performance programs in virtual environments is substantially easier.</p><p>Derek Collison (CEO of Apcera and prior architect/technical director at Tibco, Google, and VMware) is a big advocate of Go and believes it will become the backbone of cloud computing infrastructure.</p><p>Imagine what would happen to Oracle if Go could replace Java in cloud computing? It would eliminate a lot of connection to Oracle from the companies in the cloud area and would ignite a whole new set of advancements centered around Go libraries, frameworks, platforms, and services. The enterprise lock-in that Java has would also dissipate as companies moved core areas of development to Go.</p><p>So finally, does the future belong to Go?</p><p>So, does Go own the future or at least the next few decades? Your speculation is just as good as mine! and my guess is a big YES</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=169c450ed2cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>