<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Alex Baban</title>
    <description>The latest articles on Forem by Alex Baban (@alexbaban).</description>
    <link>https://forem.com/alexbaban</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F177894%2F1de59f28-5ad2-4116-a3e6-12dfb35c7690.png</url>
      <title>Forem: Alex Baban</title>
      <link>https://forem.com/alexbaban</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/alexbaban"/>
    <language>en</language>
    <item>
      <title>Useful Visual Studio Code Extensions</title>
      <dc:creator>Alex Baban</dc:creator>
      <pubDate>Sat, 29 Jun 2019 02:27:07 +0000</pubDate>
      <link>https://forem.com/alexbaban/useful-visual-studio-code-extensions-4h6d</link>
      <guid>https://forem.com/alexbaban/useful-visual-studio-code-extensions-4h6d</guid>
      <description>&lt;p&gt;A list of Visual Studio Code extensions I found to be most useful.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;1. Live Server&lt;/strong&gt; by Ritwick Dey
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer"&gt;https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;It's an HTTP server with live browser reload, and your can start or stop the server by a single click from the status bar.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;2. REST Client&lt;/strong&gt; by Huachao Mao
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=humao.rest-client"&gt;https://marketplace.visualstudio.com/items?itemName=humao.rest-client&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;With this extension you can create regular HTTP requests in plain text and run them then view the response directly in Visual Studio Code. Also you can put multiple HTTP commands in a single file and save them for future use. Has authentication support for "Basic Auth" among others.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;3. Better Comments&lt;/strong&gt; by Aaron Bond
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments"&gt;https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;This extension adds "visual distinction" to code comments. You can "tag" (categorize) your comments with certain characters to make them stand out better so when you're looking for a particular type, you can easily find it.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;4. Bracket Pair Colorizer 2&lt;/strong&gt; by CoenraadS
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2"&gt;https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Adds extra colors (blue, yellow, purple, etc.) to matching braces in your code and gives you one more clue to help you understand faster what's going on in your code editor.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;5. XML Tools&lt;/strong&gt; by Josh Johnson
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml"&gt;https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;When you're working with XML (doesn't get much love these days) this extension adds a formatting feature and enhances the explorer with an "XML tree view". Also you can minify (turn it into a single line) your XML.&lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;6. vscode-icons&lt;/strong&gt; by VSCode Icons Team
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons"&gt;https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Adds icon images to the files which have different extensions. It has a different icon for each file extension. It makes it much easier to differentiate between file types in the files structure.   &lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;7. Encode Decode&lt;/strong&gt; by Mitch Denny
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=mitchdenny.ecdc"&gt;https://marketplace.visualstudio.com/items?itemName=mitchdenny.ecdc&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Allows you to quickly convert one or more selections of text to and from various formats.  &lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;8. DotENV&lt;/strong&gt; by mikestead
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv"&gt;https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Adds syntax highlighting when editing &lt;em&gt;.env&lt;/em&gt; files.  &lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;9. Vagrantfile Support&lt;/strong&gt; by Marco Stazi
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=marcostazi.VS-code-vagrantfile"&gt;https://marketplace.visualstudio.com/items?itemName=marcostazi.VS-code-vagrantfile&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;It provides syntax highlighting support for &lt;em&gt;Vagrantfile&lt;/em&gt; files.  &lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;10. Markdown Preview Enhanced&lt;/strong&gt; by Yiyi Wang
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced"&gt;https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Shows the rendered HTML markdown to the side of the current editor's pane.  &lt;/p&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;11. GitLens — Git supercharged&lt;/strong&gt; by GitKraken
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens"&gt;https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Shows who changed each line of code. Also, it shows when code was changed and the related commit message.  &lt;/p&gt;





</description>
      <category>vscode</category>
      <category>codequality</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to install Kotlin/Native on Windows</title>
      <dc:creator>Alex Baban</dc:creator>
      <pubDate>Thu, 20 Jun 2019 04:16:17 +0000</pubDate>
      <link>https://forem.com/alexbaban/how-to-install-kotlin-native-on-windows-346g</link>
      <guid>https://forem.com/alexbaban/how-to-install-kotlin-native-on-windows-346g</guid>
      <description>&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;By the end of this guide, you will have all what is needed to convert a &lt;code&gt;hello.kt&lt;/code&gt; file containing this code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, World!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;to &lt;code&gt;hello.exe&lt;/code&gt;, a CLI (command-line interface) executable, which you can run and have "Hello, World!" printed in the terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Note
&lt;/h2&gt;

&lt;p&gt;If you want to build with Gradle, this is not the guide you're looking for. This guide shows you how to build by calling &lt;code&gt;kotlinc-native&lt;/code&gt; from your terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Java JDK or JRE version 8 or higher to be installed on your system&lt;/li&gt;
&lt;li&gt;you know what "Kotlin/Native" is and does (&lt;a href="https://kotlinlang.org/docs/reference/native-overview.html"&gt;https://kotlinlang.org/docs/reference/native-overview.html&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;you have read "A Basic Kotlin/Native Application" (&lt;a href="https://kotlinlang.org/docs/tutorials/native/basic-kotlin-native-app.html"&gt;https://kotlinlang.org/docs/tutorials/native/basic-kotlin-native-app.html&lt;/a&gt;) but for whatever reason you don't want to build with Gradle and an IDE&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let's &lt;del&gt;Go&lt;/del&gt; Kotlin/Native
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;download "the Kotlin/Native compiler" from the GitHub repository (&lt;a href="https://github.com/JetBrains/kotlin-native/releases"&gt;https://github.com/JetBrains/kotlin-native/releases&lt;/a&gt;)

&lt;ul&gt;
&lt;li&gt;look for the "Latest release" and follow the link to "Download the binary distribution from..."&lt;/li&gt;
&lt;li&gt;scroll to the bottom of the page and locate the "Assets" section&lt;/li&gt;
&lt;li&gt;click on the &lt;code&gt;kotlin-native-windows-...zip&lt;/code&gt; link&lt;/li&gt;
&lt;li&gt;save the &lt;code&gt;.zip&lt;/code&gt; file on your computer&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;place "the Kotlin/Native compiler" in the right location

&lt;ul&gt;
&lt;li&gt;in your "home directory" (which you can locate if you run &lt;code&gt;echo %HOMEPATH%&lt;/code&gt; in a terminal (usually "C:\Users\YourName")) create a directory &lt;code&gt;.konan&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;from the contents of &lt;code&gt;kotlin-native-windows-...zip&lt;/code&gt; take the folder named something like &lt;code&gt;kotlin-native-windows-...&lt;/code&gt; and copy it in the &lt;code&gt;.konan&lt;/code&gt; directory&lt;/li&gt;
&lt;li&gt;inside the &lt;code&gt;kotlin-native-windows-...&lt;/code&gt; directory, there is a &lt;code&gt;bin&lt;/code&gt; directory, add the path to this &lt;code&gt;bin&lt;/code&gt; directory to your "Environment Variables..." &amp;gt; "System variables" &amp;gt; "Path" so that &lt;code&gt;kotlinc-native&lt;/code&gt; can be called from any location&lt;/li&gt;
&lt;li&gt;if you need help with what the "Path" environment variable is, here is a nice guide (&lt;a href="https://docs.telerik.com/teststudio/features/test-runners/add-path-environment-variables"&gt;https://docs.telerik.com/teststudio/features/test-runners/add-path-environment-variables&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;test

&lt;ul&gt;
&lt;li&gt;open a terminal, run &lt;code&gt;cd /&lt;/code&gt; then run &lt;code&gt;kotlinc-native -version&lt;/code&gt;, if all went well so far the version of the compiler should show and you are (almost) ready to compile&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  First compilation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;create a directory &lt;code&gt;mkdir C:\apps\kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;create a file &lt;code&gt;hello.kt&lt;/code&gt; inside &lt;code&gt;C:\apps\kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;with your text editor, edit &lt;code&gt;hello.kt&lt;/code&gt; and put this code in it:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, World!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;save &lt;code&gt;hello.kt&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;in a terminal &lt;code&gt;cd C:\apps\kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;run &lt;code&gt;kotlinc-native hello.kt -o hello&lt;/code&gt;

&lt;ul&gt;
&lt;li&gt;because this is the first run of the compiler, the "native dependencies" will be downloaded, extracted and saved to that &lt;code&gt;.konan&lt;/code&gt; folder from your "home directory" (this is a one-time operation which might take a few minutes)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;when the compiler is done, you'll find a &lt;code&gt;hello.exe&lt;/code&gt; in the same folder with the source file &lt;code&gt;hello.kt&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;run &lt;code&gt;hello.exe&lt;/code&gt; in the terminal to see the "Hello, World!" text&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;This guide showed you how to install and then create a "Hello, World" CLI executable with the Kotlin/Native compiler. &lt;/p&gt;

&lt;p&gt;Now that the toolchain is installed on your system, go ahead and create your "real" executable. &lt;/p&gt;

&lt;p&gt;The syntax to use the compiler is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kotlinc-native &amp;lt;file-name&amp;gt;.kt -o &amp;lt;file-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You can reach me on Twitter at: &lt;a class="comment-mentioned-user" href="https://dev.to/alexbaban"&gt;@alexbaban&lt;/a&gt;
 if you have any questions.&lt;/p&gt;

&lt;p&gt;Happy "Kotlin/Native" coding!&lt;/p&gt;

</description>
      <category>kotlinnative</category>
      <category>kotlin</category>
      <category>cli</category>
      <category>windows</category>
    </item>
  </channel>
</rss>
