<?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>DEV Community: Serkan Algur</title>
    <description>The latest articles on DEV Community by Serkan Algur (@serkanalgur).</description>
    <link>https://dev.to/serkanalgur</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%2F300605%2F92f942c4-75e6-4895-8990-99eb1b7e13a4.jpeg</url>
      <title>DEV Community: Serkan Algur</title>
      <link>https://dev.to/serkanalgur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/serkanalgur"/>
    <language>en</language>
    <item>
      <title>PHP Functions for Golang - phpfuncs</title>
      <dc:creator>Serkan Algur</dc:creator>
      <pubDate>Wed, 25 Nov 2020 21:02:10 +0000</pubDate>
      <link>https://dev.to/serkanalgur/php-functions-for-golang-phpfuncs-59hf</link>
      <guid>https://dev.to/serkanalgur/php-functions-for-golang-phpfuncs-59hf</guid>
      <description>&lt;p&gt;Hello, Serkan is here.&lt;/p&gt;

&lt;p&gt;This is my second post in the DEV community. Currently, I am making monthly earnings with websites developed with PHP and Python. But I am sympathetic to Golang. And I'd created a module for Go :)&lt;/p&gt;

&lt;h1&gt;
  
  
  Why I created this module?
&lt;/h1&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/serkanalgur" rel="noopener noreferrer"&gt;
        serkanalgur
      &lt;/a&gt; / &lt;a href="https://github.com/serkanalgur/phpfuncs" rel="noopener noreferrer"&gt;
        phpfuncs
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      PHP functions implementation to Golang. This package is for the Go beginners who have developed PHP code before. You can use PHP like functions in your app, module etc. when you add this module to your project.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;While trying to learn Go, I realized that I was not able to reach the speed I used to be. I think this was due to the fact that I could not break the habit of coding with PHP for about 15 years.&lt;/p&gt;

&lt;p&gt;After realizing this, I asked myself if I could write a module that could speed the transition from PHP to Go for both myself and beginners. So I could have speed up my learning process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is the starting spark of phpfuncs module :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The module is 4 days old and I chose the MIT license. I rebuilt some PHP code with Go. During naming, I tried to use the same patterns as possible. For now, there are 93 functions (math, file system and general functions), 2 types and one constant depending on these functions.&lt;/p&gt;

&lt;p&gt;You can check all functions on modules &lt;strong&gt;&lt;a href="https://pkg.go.dev/github.com/serkanalgur/phpfuncs" rel="noopener noreferrer"&gt;pkg.go.dev&lt;/a&gt;&lt;/strong&gt; page.&lt;/p&gt;

&lt;p&gt;I take care to use the explanations and definitions available on PHP.net. I want to complete this module as fast as I can and provide convenience to software developers like me who switch from PHP.&lt;/p&gt;

&lt;p&gt;You can also review and contribute to the module if you wish. I add an example of reading a file below. We can do this in the same way as we do with PHP (I haven't added the file writing function to the module yet).&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go get github.com/serkanalgur/phpfuncs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  File Read Example
&lt;/h2&gt;

&lt;p&gt;As you can see in the example below, the plugin allows someone who has used PHP to use almost the same function structure in a very simple way.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;h6&gt;
  
  
  Note: This example not suitable for Go Playground.
&lt;/h6&gt;

&lt;p&gt;I organized the function names with underscores according to Go. I created some normal function names differently in order to avoid possible errors. For example, the name &lt;code&gt;fread()&lt;/code&gt; should normally be &lt;code&gt;Fread()&lt;/code&gt; but I created it as &lt;code&gt;FRead()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I hope I can help developers with this module.&lt;/p&gt;

&lt;p&gt;Thank you for your reading.&lt;/p&gt;

</description>
      <category>go</category>
      <category>php</category>
      <category>functional</category>
      <category>module</category>
    </item>
    <item>
      <title>Gist Test Based on Question</title>
      <dc:creator>Serkan Algur</dc:creator>
      <pubDate>Fri, 24 Jan 2020 14:11:00 +0000</pubDate>
      <link>https://dev.to/serkanalgur/gist-test-based-on-question-2ac3</link>
      <guid>https://dev.to/serkanalgur/gist-test-based-on-question-2ac3</guid>
      <description>&lt;p&gt;Here is my first post based on this question;&lt;/p&gt;


&lt;div class="ltag__link"&gt;
  &lt;div class="ltag__link__content"&gt;
    &lt;div class="missing"&gt;
      &lt;h2&gt;Article No Longer Available&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Trying for my old Gist from Github...&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Please check Editor Guide... &lt;a href="https://dev.to/p/editor_guide"&gt;https://dev.to/p/editor_guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading...&lt;/p&gt;

</description>
      <category>github</category>
      <category>question</category>
    </item>
  </channel>
</rss>
