<?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: Fris</title>
    <description>The latest articles on DEV Community by Fris (@ogfris).</description>
    <link>https://dev.to/ogfris</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%2F74269%2F4051b48a-f671-49dd-9bdd-47b12cb0f6a3.jpg</url>
      <title>DEV Community: Fris</title>
      <link>https://dev.to/ogfris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ogfris"/>
    <language>en</language>
    <item>
      <title>This Why You Should Start doing Code Reviews</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Mon, 11 Mar 2019 18:33:38 +0000</pubDate>
      <link>https://dev.to/ogfris/this-why-you-should-start-doing-code-reviews-3dih</link>
      <guid>https://dev.to/ogfris/this-why-you-should-start-doing-code-reviews-3dih</guid>
      <description>&lt;h4&gt;
  
  
  &lt;strong&gt;&lt;em&gt;There are three main reasons why everyone should start doing code reviews today in my opinion:&lt;/em&gt;&lt;/strong&gt;
&lt;/h4&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1) Improves your code's efficiency and performance. ⚡&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;First of all, when you're writing codes, you tend to always chose the simplest and fastest way. For example, I'm currently writing a new search engine for the site &lt;a href="https://twist.moe"&gt;Anime Twist&lt;/a&gt; because the one we have right now is running on the browser side and has really bad performance which leads to users with bad devices to have freeze. And I chose to do this task with Elasticsearch, so while I while I was working on the migration function, I was adding each entry by sending a new insert request to the database until my team mate gave me a code review and told me that I should use bulk instead, I knew it but I didn't apply it until someone else told me about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2) Enhances your code's quality. 👌&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Generally, when we're writing code alone, we don't care much about the quality of the code as long as it works, no tests and no documentation. That's how I always end up doing which is terribly bad especially when you're a back-end engineer like me, you don't know if your code works right without tests. But, when I ask for code reviews and they compliment my code, It gives me a lot of motivation and makes me want to write the best code I've ever written.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3) Security. 🛡&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Usually, when you write your code, you think about how it should work but never how it shouldn't work which leads to more vulnerabilities. I'd advice for this one, getting code reviews from the opposite field of development that is going to use your work. For example, back-end developers may not know exactly how their API is going to be used on the front-end so they end up most of the time, making huge mistakes for cause of lack of experience.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;&lt;em&gt;In conclusion, I don't know if you saw it or not but Github has a feature to add comments to code.&lt;/em&gt;&lt;/strong&gt;
&lt;/h3&gt;

</description>
      <category>security</category>
      <category>beginners</category>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What it's like being a developer with Schizoaffective disorder</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Tue, 09 Oct 2018 21:09:45 +0000</pubDate>
      <link>https://dev.to/ogfris/what-its-like-being-a-developer-with-schizoaffective-disorder-1ei</link>
      <guid>https://dev.to/ogfris/what-its-like-being-a-developer-with-schizoaffective-disorder-1ei</guid>
      <description>&lt;h1&gt;
  
  
  Brief introduction to Schizoaffective disorder
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;Schizoaffective disorder is a chronic mental health condition characterized primarily by symptoms of schizophrenia, such as hallucinations or delusions, and symptoms of a mood disorder, such as mania and depression.&lt;/code&gt; - &lt;a href="https://nami.org"&gt;nami.org&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What it's like
&lt;/h1&gt;

&lt;p&gt;Schizoaffective disorder won't let you work, No matter how much you try but you'll always feel like you don't want to work even if you like what you're doing, You'll open your code editor and then stare at it for hours, Talk with yourself about stuff that doesn't even matter like for example, Thinking about what people will tell you or told you and answer them in your head, And even forget that what you were trying to do. When you'll finally get your brain to focus on work, You'll feel the need to stop working every 15 - 30 minutes and walk around for totally no reason, Tease people around you until you make them angry. You'll check your online accounts and emails everytime you stop thinking about your work. And everytime you find an opportunity, You'll stop working and convince yourself that it's fine even if it's not, Not after the 19th break.&lt;/p&gt;

&lt;p&gt;Schizoaffective disorder won't let you finish your books, You'll always get distracted by pointless events like people walking around you and when you're alone, you might just stare at the book for several hours or minutes thinking about other things.&lt;/p&gt;

&lt;p&gt;Schizoaffective disorder won't let you study, You'll start getting bored of school that you'll stop going to school, You'll not pay attention in class because you convinced yourself that it's easy and you'll learn it when the exams start.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to deal with it
&lt;/h1&gt;

&lt;p&gt;I found many ways to deal with my schizoaffective disorder, they are:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Coffee
&lt;/h3&gt;

&lt;p&gt;It helps alot to focus on work and giving energy but it's bad for your health, i became addicted to it that I'd get bad headache if I don't take my regular cup of coffee everyday, My heart hurts sometimes and feel likes it's beating too fast that it might stop at anytime.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Music
&lt;/h3&gt;

&lt;p&gt;Music makes your daily tasks, I recommend lo-fi music for reading books and studying.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Motivation
&lt;/h3&gt;

&lt;p&gt;Fake motivations doesn't help me, I'd rather be motivated by the idea that people would appreciate what I'm putting efforts in than thinking about money.&lt;/p&gt;

&lt;h1&gt;
  
  
  How do i know if i have schizoaffective disorder
&lt;/h1&gt;

&lt;p&gt;Schizoaffective is hard to diagnos because it's like a mix between Schizophrenia and Bipolar mood, and it comes different on each person, you might get only delusions but no hallucinations just like you might get them both. There are also two types of bipolar mood symptoms in schizoaffective disorder, either depression only or mania and depression. If most the following symptoms applys to you, then you should see a doctor to get a real diagnostic. &lt;strong&gt;Symptoms:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hallucinations: Seeing or hearing things that are not real.&lt;/li&gt;
&lt;li&gt;Delusions: Having fixed and false beliefs or feeling like you're unique and can make big changes in the world.&lt;/li&gt;
&lt;li&gt;Disorganized thinking: A person may switch very quickly from one topic to another or provide answers that are completely unrelated.&lt;/li&gt;
&lt;li&gt;Depression: Sadness, emptiness and worthlessness...&lt;/li&gt;
&lt;li&gt;Manic episodes: They are periods when you'd feel elevation, euphoria, racing thoughts and increased risky behavior...&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>productivity</category>
      <category>schizoaffective</category>
      <category>disorder</category>
    </item>
    <item>
      <title>Advices for building a Rest API</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Mon, 03 Sep 2018 15:44:53 +0000</pubDate>
      <link>https://dev.to/ogfris/advices-for-building-a-rest-api-51no</link>
      <guid>https://dev.to/ogfris/advices-for-building-a-rest-api-51no</guid>
      <description>&lt;h1&gt;
  
  
  Chosing the language:
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XfauJiaM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.talentinternational.com/wp-content/uploads/2017/03/NewsJack-Image.png%3Fx96169" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XfauJiaM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.talentinternational.com/wp-content/uploads/2017/03/NewsJack-Image.png%3Fx96169" alt="languages"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're already familiar with a particular language then just go with it, but what i recommend is Go, because Go was built for this purpose and you don't need any framework when using Go.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other language you can use:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PHP (Laravel/Symfony/Zend)&lt;/li&gt;
&lt;li&gt;Java/Kotlin (Play/Spring)&lt;/li&gt;
&lt;li&gt;Ruby (Ruby on rails)&lt;/li&gt;
&lt;li&gt;Python (Django)&lt;/li&gt;
&lt;li&gt;Javascript (Node.js)&lt;/li&gt;
&lt;li&gt;C# (.NET)&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Database:
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PX4T32qd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://yaffetidbits.typepad.com/.a/6a00d8347d063969e201bb091e1152970d-800wi" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PX4T32qd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://yaffetidbits.typepad.com/.a/6a00d8347d063969e201bb091e1152970d-800wi" alt="database"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are multipule choice, i recommend maria-db which is basically mysql but whatever you chose, don't use SQLite3  for this purpose because you'll find yourself trapped when you want to host your back-end in multiple servers.&lt;/p&gt;

&lt;p&gt;To manipulate it there are two choices, Whether you use an ORM (i recommend &lt;a href="http://gorm.io/"&gt;GORM&lt;/a&gt; for Go) or raw sql which is faster but harder for beginners.&lt;/p&gt;

&lt;h1&gt;
  
  
  Security:
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m0GKq7J_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.diony-security.com/wp-content/uploads/2016/08/Dollarphotoclub_52367572-1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m0GKq7J_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.diony-security.com/wp-content/uploads/2016/08/Dollarphotoclub_52367572-1.jpg" alt="security"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're planning to do explicit stuff like editing database or returning private data, you should use a private key that is passed throw header. Examples of errors that beginners usually do:&lt;/p&gt;

&lt;h3&gt;
  
  
  1)
&lt;/h3&gt;

&lt;p&gt;When making the "forget password" request, never return the key to front-end and just store it in the database.&lt;/p&gt;

&lt;h3&gt;
  
  
  2)
&lt;/h3&gt;

&lt;p&gt;When making the "login" request, make the front-end send the email/username and password to the back-end and in the back-end check if the user has made too many login attempts and then return as less informations as possible if the login is wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  3)
&lt;/h3&gt;

&lt;p&gt;Use &lt;a href="https://jwt.io/"&gt;jwt&lt;/a&gt;. It's super important to check if the token is right or not when manipulating the logged-in user's data.&lt;/p&gt;

&lt;h1&gt;
  
  
  Data:
&lt;/h1&gt;

&lt;p&gt;It's important to return a data that can be read by the front-end, most used are &lt;a href="https://www.json.org/"&gt;JSON&lt;/a&gt; (recommended) and &lt;a href="http://yaml.org/"&gt;YAML&lt;/a&gt;.&lt;br&gt;
 But you can simply all this query stuff for the user and the owner by using a query language like &lt;a href="https://graphql.org/"&gt;GraphQL&lt;/a&gt; which is trusted by many &lt;a href="https://graphql.org/users/"&gt;entreprises&lt;/a&gt;.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FKILcCkN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1000/1%2A49DDRZhUWvVnH-QNHuSUSw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FKILcCkN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1000/1%2A49DDRZhUWvVnH-QNHuSUSw.png" alt="GraphQL"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Contribution:
&lt;/h1&gt;

&lt;p&gt;Make you sure to give advices in the comments too!&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What do YOU think about edX ?</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Fri, 31 Aug 2018 19:35:03 +0000</pubDate>
      <link>https://dev.to/ogfris/what-do-you-think-about-edx--mc2</link>
      <guid>https://dev.to/ogfris/what-do-you-think-about-edx--mc2</guid>
      <description>&lt;p&gt;Everyone should know about edX, the open 'online course provider' with over 14 Millions users, created by Massachusetts Institute of Technology and Harvard University. (Provided by wikipedia)&lt;/p&gt;

&lt;p&gt;They claim that their certificates would help you get a better job, a promotion or even a college application. But what does the community think about it, is it worth it and did any body earn something with their certificates before.&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Would a compiled version of PHP be great</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Sun, 19 Aug 2018 03:38:33 +0000</pubDate>
      <link>https://dev.to/ogfris/would-a-compiled-version-of-php-be-great-3b3b</link>
      <guid>https://dev.to/ogfris/would-a-compiled-version-of-php-be-great-3b3b</guid>
      <description>&lt;p&gt;Would a compiled version of PHP be great, that's the question that i've asked myself alot. Perhaps making softwares in PHP is pointless because the language is very, very slow but some people who doesn't know other languages than PHP would find it useful, what do you think.&lt;/p&gt;

</description>
      <category>php</category>
    </item>
    <item>
      <title>How to compile non-go file into your binary</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Mon, 13 Aug 2018 13:19:57 +0000</pubDate>
      <link>https://dev.to/ogfris/how-to-compile-non-go-file-into-your-binary-4l49</link>
      <guid>https://dev.to/ogfris/how-to-compile-non-go-file-into-your-binary-4l49</guid>
      <description>&lt;p&gt;If you're new to compiled languages then you probably wondered "Will my .html or .png files compile into my binary", well to answer that it's not possible but there is a little 'hack' to do it, and im going to show you how to do it!&lt;/p&gt;

&lt;p&gt;First thing, make you sure that you already have &lt;strong&gt;Go&lt;/strong&gt; installed and also you'll have to install/download the software called &lt;strong&gt;"GoFiles"&lt;/strong&gt; made by me.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;to install GoFiles, follow these steps:&lt;/em&gt;&lt;/p&gt;


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


&lt;p&gt;Now that you've installed &lt;em&gt;GoFiles&lt;/em&gt;, we can continue. Let's say you created a new go project stored at &lt;em&gt;$HOME/go/src/TestGoFiles&lt;/em&gt;, in your directory there is a file called &lt;em&gt;'test.txt'&lt;/em&gt; and you want to include it in your &lt;em&gt;'main.go'&lt;/em&gt; binary code. You'll have to add the following lines to your &lt;em&gt;'main.go'&lt;/em&gt; file:&lt;/p&gt;


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


&lt;p&gt;Then when you want to compile your code, you won't use the command &lt;em&gt;'go build'&lt;/em&gt; or &lt;em&gt;'go run'&lt;/em&gt; but instead you'll use &lt;strong&gt;'gofiles compile ./'&lt;/strong&gt; !&lt;/p&gt;

&lt;p&gt;Now try it by yourself and you'll see that the file got compiled, if you want more examples on how to host the file on a web server for example, see the examples at &lt;a href="https://github.com/OGFris/GoFiles/tree/master/example"&gt;https://github.com/OGFris/GoFiles/tree/master/example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you got any problem with the software, feel free to open an issue at &lt;a href="https://github.com/OGFris/GoFiles/"&gt;https://github.com/OGFris/GoFiles/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>go</category>
    </item>
    <item>
      <title>How i went from making php codes for fun to senior dev</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Mon, 13 Aug 2018 02:03:47 +0000</pubDate>
      <link>https://dev.to/ogfris/how-i-went-from-making-php-codes-for-fun-to-senior-dev-5e00</link>
      <guid>https://dev.to/ogfris/how-i-went-from-making-php-codes-for-fun-to-senior-dev-5e00</guid>
      <description>&lt;p&gt;It all started with 'minecraft: pocket edition', yes the mobile version of minecraft. 5 years ago i was playing alot on servers and was wondering how they make all the cool stuff, first i thought we had to do a ton of codes to check even a simple thing but then when i started looking into tutorials it seemed way easier than i thought. In fact, i remember the first ide i downloaded was NetBeans IDE, i was really confused with all the '{}' and ';' stuff because i was basically copying the examples and not learning it. But then after a few tries (actually alot), i found out alone how to write codes just by looking at open source examples on github. After 3 years i got bored of it and i even started making console apps using php (i'd never recommend it to anyone). And then while scrolling thought some facebook group, i found an article talking about how "Go is 1000 times faster than php 5" and that alone was enough to motivate me, the first thing i did was try to find a good book, the best one i could find was "the way to go", i recommend it! it took me a few weeks to finish it because i had school exams but i did finish it, and as soon as i did, i downloaded Jetbrains's IDE for Golang "Goland" and made a complicated program with ui and proxy and it worked just how i expected it, then the second thing i've done was getting hired into a site to re-write the back-end codes from NodeJS to Go (i actually didn't even look at the NodeJS app codes and did just what they told me) and it ended up being super good :D! and then learning Go opened alot of doors for me, i've now learned python, rust, C/C++ and Kotlin.&lt;/p&gt;

&lt;p&gt;Also in my opinion, Kotlin, Rust and Go are the languages that anyone must learn because they are the future of programming. (The community say Elixir, Crystal and Nim too but i've not tested them so i can't recommend them).&lt;/p&gt;

</description>
      <category>career</category>
    </item>
    <item>
      <title>Will there be more GoLang's jobs in the future or not.</title>
      <dc:creator>Fris</dc:creator>
      <pubDate>Fri, 22 Jun 2018 03:25:06 +0000</pubDate>
      <link>https://dev.to/ogfris/will-there-be-more-golangs-jobs-in-the-future-or-not-26i0</link>
      <guid>https://dev.to/ogfris/will-there-be-more-golangs-jobs-in-the-future-or-not-26i0</guid>
      <description>&lt;p&gt;Do you guys think that GoLang jobs will increase in the future because right now, it's pretty hard to get a job unless you start your own project to be honest!&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>go</category>
      <category>career</category>
    </item>
  </channel>
</rss>
