<?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: Jason Reed</title>
    <description>The latest articles on DEV Community by Jason Reed (@jrsofty).</description>
    <link>https://dev.to/jrsofty</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%2F114939%2Fddd2e67d-5d4f-41aa-bdda-1aea081dd267.jpeg</url>
      <title>DEV Community: Jason Reed</title>
      <link>https://dev.to/jrsofty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jrsofty"/>
    <language>en</language>
    <item>
      <title>CORS Problem Workaround for Consuming DEV.TO API on Your Website</title>
      <dc:creator>Jason Reed</dc:creator>
      <pubDate>Sat, 14 Dec 2019 20:47:39 +0000</pubDate>
      <link>https://dev.to/jrsofty/cors-problem-workaround-for-consuming-dev-to-api-on-your-website-44jb</link>
      <guid>https://dev.to/jrsofty/cors-problem-workaround-for-consuming-dev-to-api-on-your-website-44jb</guid>
      <description>&lt;p&gt;Ok recently while updating my website to pull my blog posts from DEV.TO instead of WordPress I kept getting a CORS failure in my browser. So I started investigating and found that DEV.TO's TLS Certificate is malformed, in that it is not issued to DEV.TO but to the server on which DEV.TO runs. This is enough to prevent a browser from accessing when making asynchronous calls. Now I've already &lt;a href="https://dev.to/jrsofty/having-problems-cors-with-the-dev-to-api-6f"&gt;asked about this problem&lt;/a&gt;, and &lt;a href="https://dev.to/ben/comment/illf"&gt;I've been informed&lt;/a&gt; that it is on the "TODO" list. Since the API is still in beta, I figure it's not too urgent. Yet I still wanted to have my posts displaying on my website! So how did I get around the CORS protection of my browser? Simple, I built a small PHP script that when called makes a call to the DEV.TO API, and the returns the result with the correct headers. Since it is located on my website's server, CORS is not a problem.&lt;/p&gt;

&lt;p&gt;To help others I've provided the PHP script below, all you need to do is modify the URL portion to the correct DEV.TO API endpoint.&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="nb"&gt;header&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Content-Type: application/json; charset=utf-8'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nv"&gt;$curlHandle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;curl_init&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nb"&gt;curl_setopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$curlHandle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CURLOPT_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"https://dev.to/api/__ENDPOINT__"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nb"&gt;curl_setopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$curlHandle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CURLOPT_RETURNTRANSFER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;curl_exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$curlHandle&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nb"&gt;curl_close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$curlHandle&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

</description>
      <category>cors</category>
      <category>devtoapi</category>
      <category>php</category>
    </item>
    <item>
      <title>Having Problems CORS with the Dev.to API</title>
      <dc:creator>Jason Reed</dc:creator>
      <pubDate>Tue, 10 Dec 2019 19:29:04 +0000</pubDate>
      <link>https://dev.to/jrsofty/having-problems-cors-with-the-dev-to-api-6f</link>
      <guid>https://dev.to/jrsofty/having-problems-cors-with-the-dev-to-api-6f</guid>
      <description>&lt;p&gt;I'm trying to use the DEV.to API via a request from my personal webpage using JavaScript, and the browser is constantly blocking the request. I believe the problem is that with the CORS security that the certificate is not considered valid by the browser. This is specifically because the certificate is not issued to "dev.to" but to the actual server under the "fastly.net" domain. Will this continue, or will there be an eventual valid certificate for the "dev.to" domain to allow use without CORS violations in a browser?&lt;/p&gt;

</description>
      <category>help</category>
      <category>restful</category>
      <category>api</category>
      <category>cors</category>
    </item>
    <item>
      <title>The Best Interview Process I've Experienced</title>
      <dc:creator>Jason Reed</dc:creator>
      <pubDate>Tue, 10 Dec 2019 18:08:12 +0000</pubDate>
      <link>https://dev.to/jrsofty/the-best-interview-process-i-ve-experienced-3ona</link>
      <guid>https://dev.to/jrsofty/the-best-interview-process-i-ve-experienced-3ona</guid>
      <description>&lt;p&gt;I want to start this article first with the acknowledgement that I was not and am not actually looking for a new position. In this case a "once in a lifetime opportunity" arose and I just had to try. In actuality I'm very happy with my current employer and team. As with many of these types of chances, if I hadn't at least tried or made an effort I would never have forgiven myself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Opportunity
&lt;/h2&gt;

&lt;p&gt;It wasn't long ago I found out that a very well known and respected gaming company was looking for a new java developer. I'm happy to admit that this company's game is one of my all time favorite games to play. I have played this game for many years, and to think that there was a chance for me to join such a team was exciting. Naturally, as a husband and father, before I could talk myself into such an opportunity I had to discuss it with my family. I broached the subject with my children first. They, also being big fans of the franchise, were nearly begging me to apply. They had dreams of what it would be like for them running through their heads, as children will do. So the next hurdle was to get my wife's reaction. I like to think that my wife is the practical one in our family. She's the one that keeps me grounded, as I am a dreamer (much like my children). So when she arrived home, I brought up the subject, and all the reasons why I figured she would say no. At this point I can't say if I wanted her to say yes or no. Just the idea that it would be possible was both exciting and very scary. Yet I wanted her true feelings about the matter. Her answer was, "Well if we have to move to another country then we have to move to another country. If you don't take the chance you won't be happy." She knows me so well. So I took the chance and that's what the meat of this article, the whole process, and what I could learn from this process.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Experience
&lt;/h2&gt;

&lt;p&gt;The first step for me was to make sure my CV was up-to-date. It had been a couple of years since I searched for a job, and since I don't usually look for work unless it is absolutely necessary, my CV needed a little clean up. Once that was done, I went to the company's online job portal. Now I can't say I'm a big fan of online portals, but this one was efficient. It didn't ask for a lot of detail that was already in my CV. It did ask if I have any game development experience (I don't). I uploaded my CV, and made sure my contact information was all correct and that was it. I can truthfully say that I figured that this would be the end of the process for me. I didn't have game development experience and I figured developers with this experience would be prioritized over those without. &lt;/p&gt;

&lt;p&gt;So I was pretty surprised when a couple of weeks later I received a call. The person on the phone was very polite and friendly. I was asked a few questions, checking on my availability, if I understood that if I got the position that I would have to move to another country, and why I wanted to work for their company. I was then informed about how the process would continue. I would receive a small game related project to code. This would allow them to see my coding experience. I would need to turn it in 24 hours before my interview the next week. &lt;/p&gt;

&lt;p&gt;Now I won't go into detail about the project they gave me, suffice it to say that it was a small game based on a classic game. I found the task challenging, mostly due to my inexperience with gaming. I focused mostly on my strengths with the coding but never was really satisfied with the game play. I'm not ashamed of the work I produced, and actually found that I had fun with the project.&lt;/p&gt;

&lt;p&gt;The day of the interview came and I was really excited. Partially because the two people conducting my interview are really well known in the game's community. I've heard plenty of times the old adage "Don't meet your heroes", as a warning that people you only know by reputation are nothing like that in person. In this case the adage was completely wrong. The interview started out with a rereading of the job description to make sure that we were all on the same page. They then asked questions about my experiences, how I became a developer. What sort of work have I done. They asked very good questions on my interpersonal skills, and how I have dealt with different scenarios in the past, and most importantly what I learned from these. I found this line of questioning right on the money for a company who values teamwork. I was also asked how I would handle hypothetical situations where I made a change to the game and the community were less than happy. I find this also important for dealing with customer reactions, something I've never been asked before in a job interview. Later we did a dive in on my code project. Here, the questions were sharp, but still extremely positive. We discussed why I made the decisions I made, and if I knew how to make it better in the future. I was never made to feel inferior due to a design decision. Finally there was time given for me to ask questions, about the process, the company, the city. I was informed at the end that they still needed to interview other applicants and I would receive feedback in about a week.&lt;/p&gt;

&lt;p&gt;A week later and I received a call from the same person who contacted me to set up the appointment. I was informed that I didn't make it to the next level, but that I had did well. The main reason  for missing out was my lack of gaming experience. I was invited to apply again in the future. Again I was never made to feel bad that I didn't make the grade. I was even told that there were over 400 applicants for the position, and that not all of them made it to the interview. Which of course helped me feel good about the entire process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Now I admit that much of this process was probably colored by the fact that I indeed had nothing to lose when it came to applying for this job. If, as happened, they said no; I didn't lose anything, I still work for a company with a team that I absolutely adore. I do not need to go through the stress of uprooting my family and moving them across Europe. Would I have accepted the job if it were offered, that I can't answer even now. The final decision would have been made by not only me but my entire family.&lt;/p&gt;

&lt;p&gt;So if I didn't lose anything, did I gain anything from the process? Of course I did!. I gained an insight on how a good interview process is performed. I learned about how to ask the kind of questions that matter. I also realized that there are companies who think more about how a potential member will fit into a team than what skills they have. &lt;/p&gt;

</description>
      <category>personaldevelopment</category>
      <category>jobsearch</category>
      <category>interview</category>
      <category>positivity</category>
    </item>
    <item>
      <title>Moving My Programming Blog Posts from WordPress to Dev.To</title>
      <dc:creator>Jason Reed</dc:creator>
      <pubDate>Tue, 10 Dec 2019 10:14:10 +0000</pubDate>
      <link>https://dev.to/jrsofty/moving-my-programming-blog-posts-from-wordpress-to-dev-to-3199</link>
      <guid>https://dev.to/jrsofty/moving-my-programming-blog-posts-from-wordpress-to-dev-to-3199</guid>
      <description>&lt;p&gt;I've been using WordPress for a while now for various blogging purposes. I've started and closed more programming blogs on the platform than I can remember. I've tried self-hosting (never again), I've used their hosted blog system. In any case I was never really satisfied. If I what I blog about is simply my experiences in living in Europe, or something silly like my love of Minecraft, then WordPress is fine. However, when I want to write about what I've learned as a developer, or anything where I need to post code snippets, then WordPress just doesn't work for me. I need a better tool for this. So along came Dev.to. At first I admit I wasn't sure what it was all about. I figured it was just a social media service for developers, which is fine within itself as we always need to network, but then I realized people were posting blogs there. So I started thinking, and after my last post on my WordPress blog I realized that I need to make a move. So I'm beginning to work on moving things from my WordPress.com account to here. This is probably going to take some time but I'm determined that this is where I want to start posting my blogs. So how will I do this? Well let me explain how I have my personal website setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Site
&lt;/h2&gt;

&lt;p&gt;So my personal site I've done as a mostly static webpage, using some bootstrap css and a little jQuery work. The JavaScript part is simply to display my most recent posts from my blog. I accomplished this with the use of WordPress' API. So what will I need to do? I'll need to make this small dynamic portion of my website support the Dev.to API. Honestly that was the deciding factor for this change. Dev.to provides a RESTful API that I can use to request my posts and display links.&lt;/p&gt;

&lt;h2&gt;
  
  
  Goals
&lt;/h2&gt;

&lt;p&gt;So here is what I'm currently working on for updating my website to work with Dev.to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update the icon set to Friconix (Done)&lt;/li&gt;
&lt;li&gt;Update the dynamic blog post display&lt;/li&gt;
&lt;li&gt;Adding content to Dev.to&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As for the last one I'm not sure if I should move all my older posts from WordPress, or if I should just start with new content here. I think if I do move things over I will only move some of the posts that seem relevant. I'll have to really think that over.&lt;/p&gt;

&lt;p&gt;I really want to have this all done by the end of the year. I think it is doable even with all the holidays. &lt;/p&gt;

</description>
      <category>devto</category>
      <category>wordpress</category>
      <category>blog</category>
    </item>
  </channel>
</rss>
