<?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 Shail Bhatt on Medium]]></title>
        <description><![CDATA[Stories by Shail Bhatt on Medium]]></description>
        <link>https://medium.com/@shail.bhattt?source=rss-537a1abe0565------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*j8DwypKux-LRZRd0zilllA.jpeg</url>
            <title>Stories by Shail Bhatt on Medium</title>
            <link>https://medium.com/@shail.bhattt?source=rss-537a1abe0565------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 13:47:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shail.bhattt/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[Unlocking the Power of Rust: An overview of the Language, Ecosystem, and more…]]></title>
            <link>https://medium.com/@shail.bhattt/unlocking-the-power-of-rust-an-overview-of-the-language-use-cases-ecosystem-and-more-60df0518e3ea?source=rss-537a1abe0565------2</link>
            <guid isPermaLink="false">https://medium.com/p/60df0518e3ea</guid>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Shail Bhatt]]></dc:creator>
            <pubDate>Sun, 19 Mar 2023 15:11:27 GMT</pubDate>
            <atom:updated>2023-03-25T06:22:51.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xzXQBkhJ1YxJkw2Zq5inA.png" /><figcaption>rust-lang.org website home page</figcaption></figure><p>Rust is a modern systems programming language that aims to provide the safety and performance of low-level languages like C and C++, while also offering the high-level abstractions and ease of use of modern programming languages like Python and Ruby.</p><p>Rust was <strong>developed by Mozilla</strong> and first appeared in 2010, with the first stable release in 2015. The language is designed around the concept of ownership and borrowing, which ensures memory safety and prevents common programming errors such as null pointer dereferences, buffer overflows, and data races.</p><p>Rust also features a powerful macro system and an expressive type system that enables advanced programming techniques such as functional programming, <a href="https://doc.rust-lang.org/book/ch16-00-concurrency.html">concurrency</a>, and metaprogramming.</p><p>Rust is <strong>open-source and has a </strong><a href="https://www.rust-lang.org/community"><strong>vibrant and growing community</strong></a> of developers and contributors.</p><h3>Rust Basics</h3><ol><li>Syntax: Rust syntax is similar to C and C++, with curly braces and semicolons used to denote code blocks and statements.</li><li><a href="https://doc.rust-lang.org/book/ch03-02-data-types.html">Data Types</a>: Rust has a number of built-in data types, including integers, floating-point numbers, booleans, and characters. Rust also has compound data types, such as arrays, tuples, and structs.</li><li><a href="https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html">VariableI and Mutability</a>: Rust variables are declared with the ‘let’ keyword and are <strong>immutable by default</strong>. However, variables can be made mutable using the ‘mut’ keyword. The compiler forbids the use of uninitialized variables, as this would lead to undefined behavior.</li><li><a href="https://doc.rust-lang.org/book/ch03-03-how-functions-work.html">Functions</a>: Rust functions are defined with the ‘fn’ keyword and can take arguments and return values. Rust functions can also have optional parameters and default values.</li><li><a href="https://doc.rust-lang.org/book/ch03-05-control-flow.html">Control Flow</a>: Rust has control flow statements like if/else, for loops, and while loops. Rust also has pattern matching, which allows for powerful and concise control flow constructs.</li><li><a href="https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html">Ownership and Borrowing</a>: Rust’s ownership and borrowing model is a unique feature of the language that provides memory safety and prevents common programming errors. In Rust, every value has an owner, and values can be borrowed temporarily by other parts of the code.</li><li><a href="https://doc.rust-lang.org/book/ch10-00-generics.html">Lifetimes</a>: Lifetimes is a concept in Rust that allows the compiler to reason about the lifetime of values and ensure memory safety.</li><li><a href="https://doc.rust-lang.org/book/ch09-00-error-handling.html">Error Handling</a>: Rust has a robust error handling system that uses the ‘Result’ and ‘Option’ types to handle errors and unexpected situations.</li></ol><p>These are just some of the basic features and concepts of Rust. Rust also has many advanced features, such as <a href="https://doc.rust-lang.org/book/ch19-06-macros.html">macros</a>, <a href="https://doc.rust-lang.org/book/ch10-02-traits.html#traits-defining-shared-behavior">traits</a>, and <a href="https://doc.rust-lang.org/book/ch13-01-closures.html">closures</a>, that enable powerful programming techniques.</p><p>Rust Online Playground: <a href="https://play.rust-lang.org/">https://play.rust-lang.org/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2Q4aGKYqOHMUf2GnwokgA.png" /></figure><h3>Rust Ecosystem</h3><ol><li><a href="https://doc.rust-lang.org/cargo/">Cargo</a>: Cargo is Rust’s package manager and build tool. It is used to manage dependencies, build projects, and run tests. <a href="https://crates.io/">https://crates.io/</a> is the official package registry for Rust crates. Crates.io is managed by the Rust community and is tightly integrated with the Cargo package manager.</li><li><a href="https://rustup.rs/">Rustup</a>: Rustup is a tool for managing Rust installations and updating between different Rust toolchains.</li><li>IDEs and Text Editors: Rust has a number of IDEs and text editors with support for Rust development, including Visual Studio Code, IntelliJ IDEA, and Atom.</li><li><a href="https://lib.rs/std">Libraries and Frameworks:</a> Rust has a growing collection of libraries and frameworks for a wide range of use cases, including web development, game development, machine learning, and networking. Some popular Rust libraries and frameworks include Rocket, Actix, Tokio, and Serde.</li><li><a href="https://rust-analyzer.github.io/">Rust-analyzer</a>: Rust-analyser is a powerful, fast, and reliable language server for Rust that provides code analysis, auto-completion, and other advanced IDE-like features to Rust developers. It is designed to be lightweight and easy to use and can be integrated with a variety of text editors and IDEs.In <a href="https://rust-lang.github.io/rfcs/2912-rust-analyzer.html">RFC 2912</a> rust-analyzer was adopted as the official replacement for RLS. [Good To Know]The Rust Language Server (RLS) is being deprecated in favor of the rust-analyzer. Current users of RLS should migrate to using rust-analyzer instead. Builds of RLS will continue to be released until at least the Rust 1.64 release (2022–09–22), after which no new releases will be made.</li><li><a href="https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html#automatic-formatting-with-rustfmt">Rustfmt</a>: Rustfmt is a tool for formatting Rust code according to a consistent style, which can help improve code readability and maintainability.</li><li>Rust Documentation: Rust has excellent documentation, including the Rust Programming Language book, which provides a comprehensive introduction to Rust and its concepts, and Rust by Example, which provides a collection of Rust code examples. I have added all official documentation links to explore Rust concepts mentioned in this article.</li></ol><h3>Get started with Rust</h3><p><a href="https://www.rust-lang.org/learn">Learn Rust</a></p><p><a href="https://www.rust-lang.org/tools/install">install Rust locally</a> and check out the <a href="https://doc.rust-lang.org/std/">official docs</a></p><p><a href="https://doc.rust-lang.org/stable/rust-by-example/">Checkout the rust by example</a>- a collection of runnable examples that illustrate various Rust concepts and standard libraries.</p><h3>You know what?</h3><p>Rust is a favorite programming language for the last 7 years in stackoverflow survey.</p><p><a href="https://survey.stackoverflow.co/2022/#section-most-loved-dreaded-and-wanted-programming-scripting-and-markup-languages">Stack Overflow Developer Survey 2022</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aev78EkT66uusGZ1yOjM4w.png" /></figure><p>But, its professional adoption is still at 8.8%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_vItE9tYit6k0H5m9TjqA.png" /></figure><p>So this open-source community language is developer-centric and quite efficient. You may find it difficult at first to run the code but once it&#39;s up you can see its benefits.</p><h3>You can explore Rust advance and more interesting topics…</h3><p>I really enjoyed exploring these topics and learning about Rust.</p><h4>Explore Rust compiler!!</h4><p>For full details check out <a href="https://rustc-dev-guide.rust-lang.org/overview.html#overview-of-the-compiler">this</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*6iqMux70R7KgDqX87tyBug.png" /></figure><p>rustc uses <a href="https://llvm.org/">LLVM</a> for code generation. The first step is to convert the <a href="https://rustc-dev-guide.rust-lang.org/mir/index.html">MIR</a>[stands for <em>mid-level</em> IR] to LLVM Intermediate Representation (LLVM IR). This is where the MIR is actually monomorphized, according to the list we created in the previous step. The LLVM IR is passed to LLVM, which does a lot more optimizations on it.</p><p>This topic is quite lengthy so if you are interested then checkout. I am keeping this discussion out of the scope of this article.</p><h4><a href="https://news.ycombinator.com/item?id=29311709">Hacker News article</a> — Rust-CUDA: Fast GPU code fully in Rust</h4><h4>Check out <a href="https://en.wikipedia.org/wiki/Rust_%28programming_language%29#Adoption">Rust&#39;s adoption </a>in industry projects.</h4><h4>Youtube videos</h4><p>Few youtube videos which I will insist you check out. It will help you ramp up quickly on Rust.</p><ol><li><a href="https://youtu.be/WgLlwjZNEtY">Ready for Rust • Erik Doernenburg • GOTO 2021</a></li><li><a href="https://youtu.be/BT2Cv-Tjq7Q">LLVM in 100 Seconds</a></li><li>FreeCodeCamp -<a href="https://youtu.be/MsocPEZBd-M">Rust Programming Course for Beginners — Tutorial</a></li><li><a href="https://youtu.be/DL9LANLg5EA">Learning Rust a wrong way — NDC TechTown 2022</a></li></ol><p>Thank you for reading my article. Let me know what you like about it in the comments. Let&#39;s share out passion for technology :)</p><p>Keep Learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60df0518e3ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Useful MacBook shortcuts for beginner]]></title>
            <link>https://medium.com/@shail.bhattt/10-useful-macbook-shortcuts-for-beginner-d6fa1a83c443?source=rss-537a1abe0565------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6fa1a83c443</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[quick]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <dc:creator><![CDATA[Shail Bhatt]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 13:14:41 GMT</pubDate>
            <atom:updated>2019-09-04T09:19:47.897Z</atom:updated>
            <content:encoded><![CDATA[<h3>15 Useful MacBook shortcuts for beginner</h3><p>I recently started using MacBook Pro with the Touch Bar. Here are some shortcuts help me everyday bases.</p><ol><li>Open Spotlight search — C<strong>ommand+ Space</strong></li><li>Show or hide the Dock — <strong>Command + Option +D</strong></li><li>Open application switcher — <strong>Command + Tab</strong> (<em>keeping Command pressed, use Tab to navigate to the app you hope to use.</em>)</li><li>Take screenshot — C<strong>ommand + Shift + 4</strong> and C<strong>ommand + Shift +5</strong></li><li>Open previously closed window in <em>Chrome</em>— <strong>Command + Shift + T</strong></li><li>Hide the windows of the front app — <strong>Command + H</strong></li><li>Lock the screen — <strong>Command + Control + Q</strong></li><li>Terminal screen clean up — <strong>Command + k</strong></li><li>Open multiple tab in the <em>terminal</em> — <strong>Command + T</strong></li><li><em>Terminal</em> reverse-i search — C<strong>ontrol + R</strong></li><li>Regular Delete key — <strong>Fn</strong> + <strong>delete </strong>or<strong> Control + D</strong></li><li>Delete the entire word behind the cursor by pressing — <strong>Fn + Option + delete</strong></li><li>Delete the entire word front the cursor by pressing — <strong>Option + delete</strong></li><li>Delete the entire line of text behind the cursor — <strong>Fn +</strong> <strong>Command + delete</strong></li><li>Delete the entire line of text front the cursor — <strong>Command + delete</strong></li></ol><p>These are the useful shortcuts for starting with mac. Most of the shortcut are same as other OS. Share other frequently used general shortcut in comment. See you. Happy Learning !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6fa1a83c443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You can be more efficient while using Chrome!]]></title>
            <link>https://medium.com/@shail.bhattt/you-can-be-more-efficient-while-using-chrome-e0ad7082fc97?source=rss-537a1abe0565------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0ad7082fc97</guid>
            <category><![CDATA[effectiveness]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Shail Bhatt]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 20:11:49 GMT</pubDate>
            <atom:updated>2018-11-16T20:11:49.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Ekmxed5a0uraXJ1EcQJjw.jpeg" /><figcaption>Practice this shortcuts everytime you get a chance.</figcaption></figure><p>When I start my work laptop if it was not in sleep mode, I have a specific order to open a few applications. One of the applications is a chrome browser.</p><p>I set up my chrome window in specific order for my convenience like the first tab will always Gmail and second flock and later on as per usage GitHub or phpMyAdmin or StackOverflow etc.. I think this much we all might have common among us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBoyFouRcQ7fJvWk56Kvtw.png" /><figcaption><em>Tabs, tabs, and more tabs</em></figcaption></figure><p>A few days back at one point of time my chrome browser had more than 10 phpMyAdmin tabs were opened for some investigation. And suddenly I found myself unmanageable to fast traverse across tabs in left to right, reopen the closed window, closing current tab using a mouse.</p><p>Then I just found below chrome shortcuts very useful and handy. These have really improved my productivity.</p><p><strong>Alt+F4 </strong>Close current window</p><p><strong>Ctrl+T </strong>Open a new tab</p><p><strong>Ctrl+Shift+T </strong>Reopen the last tab you’ve closed. Google Chrome remembers the last 10 tabs you’ve closed.</p><p><strong>Ctrl+9 </strong>Switch to the last tab</p><p><strong>Ctrl+Tab or Ctrl+PgDown </strong>Switch to the next tab</p><p><strong>Ctrl+Shift+Tab or Ctrl+PgUp </strong>Switch to the previous tab</p><p><strong>Ctrl+W or Ctrl+F4 </strong>Close current tab or pop-up</p><p><strong>Ctrl+1 through Ctrl+8 </strong>Switch to the tab at the specified position number. The number you press represents a position on the tab strip.</p><p><strong>Ctrl++ </strong>Make text larger</p><p><strong>Ctrl+- </strong>Make text smaller</p><p><strong>Ctrl+0 </strong>Return to normal text size</p><p>This will not help you when your browser condition is as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9AvT79khooqV3sFgykPIQ.png" /><figcaption><em>Tabs, tabs, and more tabs. When you can’t see the site’s favicon anymore, it’s time for an intervention</em></figcaption></figure><p>In this case, you can refer <a href="https://zapier.com/blog/chrome-firefox-tab-extensions/">this</a> tips and tools.</p><p>I will share my other experience which helped me to improve productivity. You can comment any suggestion for improvement or just can Say Hello! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0ad7082fc97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Thrift : In microservices API world]]></title>
            <link>https://medium.com/@shail.bhattt/apache-thrift-in-microservices-api-world-ee7b3fd0ad71?source=rss-537a1abe0565------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee7b3fd0ad71</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[adopting-microservices]]></category>
            <category><![CDATA[apache-thrift]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Shail Bhatt]]></dc:creator>
            <pubDate>Sat, 23 Jun 2018 18:01:07 GMT</pubDate>
            <atom:updated>2018-06-23T18:53:23.100Z</atom:updated>
            <content:encoded><![CDATA[<p>The world of APIs is changing. While developing APIs, it is important to take into consideration, the architecture upon which the system is being built. Choices made in the design phase could make or break the entire system. Wrong API design selection can turn useful concepts and smart applications into useless chunks of code. This happens to many start-ups.</p><p>Most architectures fall broadly into two categories- SOAP or REST. For a long time, the two were dominant in the API market. Common thought among designers was that you were either RESTful or SOAP in orientation; this mindset changed with one significant development. In 2007, social media juggernaut Facebook released a technical paper detailing an internal architecture system upon which the bulk of their system operated, and that marked the birth of ‘Thrift’.</p><p>‘Thrift’ is a software library and set of code-generation tools developed at Facebook to accelerate development and implementation of efficient and scalable backend services.</p><blockquote>It’s primary goal is to enable efficient and reliable communication across programming languages by abstracting the portions of each language that tend to require the most customization into a common library that is implemented in each language.</blockquote><h3>Specifically, Thrift allows developers to define datatypes and service interfaces in a single language-neutral file and generate all the necessary code to build RPC clients and servers.</h3><p>Thrift takes care of all the challenging cross-language interaction in a networked environment. The key pre requisites for this to funtion properly are:</p><ol><li>Types : A common type system must exist across programming languages.</li><li>Transport : Each language must have a common interface for bidirectional raw data transport.</li><li>Protocol : Datatypes must have some way of using the Transport layer to encode and decode themselves.</li><li>Versioning : For robust services, the involved datatypes must provide a mechanism for versioning themselves. Specifically, it should be possible to add or remove fields in an object or alter the argument list of a function without any interruption in service (or, worse yet, nasty segmentation faults).</li><li>Processor : Finally, we generate code, capable of processing data streams to accomplish remote procedure calls.</li></ol><h3>Benefits and drawback of thrift:</h3><p>While both REST and SOAP are wonderful architectures, they are limited in the languages they speak; Thrift functions in binary and has support for common languages such as C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and more. Thrift is open source, meaning it is monitored, changed, and tracked by many groups, making it more secure and up to date.</p><p>But, the biggest drawback of Thrift is the fact that it is relatively new, and thus is fighting a crowded field to build a solid user base.</p><p>Currently I am working on a project implementing a thrift API for communication between PHP, Java, &amp; Node.Js services. We have acheived a massive gain in performance by utilizing binary serialization to handle data and the results are amazing.</p><p>If you decide to get started with thrift. Please visit <a href="https://thrift.apache.org/">https://thrift.apache.org/</a>.</p><p>Happy Learning!</p><p>reference: <a href="https://thrift.apache.org/static/files/thrift-20070401.pdf">https://thrift.apache.org/static/files/thrift-20070401.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee7b3fd0ad71" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>