<?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: _jcyber</title>
    <description>The latest articles on DEV Community by _jcyber (@jcyber101).</description>
    <link>https://dev.to/jcyber101</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%2F564992%2Fed1479a3-d755-434b-8307-d4a995d3e5e8.jpg</url>
      <title>DEV Community: _jcyber</title>
      <link>https://dev.to/jcyber101</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jcyber101"/>
    <language>en</language>
    <item>
      <title>Django Class Views vs Function Views</title>
      <dc:creator>_jcyber</dc:creator>
      <pubDate>Thu, 25 Mar 2021 23:26:08 +0000</pubDate>
      <link>https://dev.to/jcyber101/django-class-views-vs-function-views-4gnm</link>
      <guid>https://dev.to/jcyber101/django-class-views-vs-function-views-4gnm</guid>
      <description>&lt;p&gt;Hello everyone and thank you for stopping by to see what it is I have to say. This is a topic I hear a lot about regarding to Django and I would just like to put my 2 cents in. &lt;/p&gt;

&lt;h1&gt;
  
  
  The DRY Concept
&lt;/h1&gt;

&lt;p&gt;I'm starting off with this topic because it sets the tone for what I speak on next. A lot of you well developed developers know exactly what this means, but for those who don't... DRY - "Don't Repeat Yourself". Definition of insanity plays well with this concept if you'd ask me. I bring this topic up because its self explanatory. Don't repeat yourself when you are developing code if you can avoid it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Class Based Views
&lt;/h1&gt;

&lt;p&gt;At the core, class based views are simply python classes. Django does an amazing job shipping a variety of "template" class based views that have configured functionality that you can reuse as much as you want. When creating forms in Django, especially if it is a form that's being used multiple times, there's no reason to recreate something you can make once. This approach also helps with responding to different https requests with different class instances instead of using conditionals inside a single function based view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class Based Views Example&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VZiuO2tM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mn7z9rtn5t7z8sfxdr84.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VZiuO2tM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mn7z9rtn5t7z8sfxdr84.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Function Based Views
&lt;/h1&gt;

&lt;p&gt;I won't rule out function based based views too much. Some people are more comfortable with writing their own functions instead of writing classes essentially. I will say function views are easy to implement, but that's about all I can really say about it. The main disadvantage is if you are working on a large project then you will see a lot of repetitive code within your views. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Function Based Views Example&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TTUyIEIl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08w48uru35dedbfmd3g8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TTUyIEIl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08w48uru35dedbfmd3g8.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Now I know I can go deeper into this conversation with explaining pro's and con's using either method of creating your Django views, but I wanted to just point out the obvious that will be brought up in a conversation. As a junior developer I've always been told to keep things simple, but don't repeat yourself. When you keep things simple and create re-usable code you open up the door to having the flexibility to increase or decrease functionality. &lt;/p&gt;

&lt;p&gt;I hope you guys enjoyed this quick snippet and I thank you for taking the time out to see what I have to say. Let me know if you guys agree or disagree in the comments and let's talk more about it or hit me up on twitter(&lt;a class="mentioned-user" href="https://dev.to/jcyber101"&gt;@jcyber101&lt;/a&gt;
). Cheers!&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>functional</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Just keep coding</title>
      <dc:creator>_jcyber</dc:creator>
      <pubDate>Sun, 28 Feb 2021 05:24:52 +0000</pubDate>
      <link>https://dev.to/jcyber101/just-keep-coding-j5b</link>
      <guid>https://dev.to/jcyber101/just-keep-coding-j5b</guid>
      <description>&lt;h1&gt;
  
  
  I'm Nervous
&lt;/h1&gt;

&lt;p&gt;Hello Everyone. My name is Joshua Covington and I've been a Software Engineer for a year now. This is my first post, so thank you all for taking the time to read what I have to say. I told myself that I would start jotting down my thoughts, so here I go. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AuEDlHwq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0qiik4uf2bw537qiynjf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AuEDlHwq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0qiik4uf2bw537qiynjf.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Starting The Journey
&lt;/h1&gt;

&lt;p&gt;Before I got 100% serious about my journey as a developer I was consistently on and off with my production towards accomplishing my goals. There were a lot of courses I watched on YouTube. There were a lot of subscriptions to various open source learning programs like CodeAcademy for example. I also have a load of courses on Udemy that I still to this day have not completed. I just could not figure out what I wanted to do. I wanted to know it all. &lt;/p&gt;

&lt;p&gt;With that being said, I started somewhere. Yes I was all over the place trying to learn different languages and frameworks to see what I feel most comfortable with and I think it took me getting my first break as an engineer with the company I'm with now to focus on one language until I got it down packed. &lt;/p&gt;

&lt;h2&gt;
  
  
  The Switch
&lt;/h2&gt;

&lt;p&gt;I started off as a Network Engineer II because that was the extend of my experience while I was serving in the US Army. As a Network Engineer I wanted to automate small tasks like backing up my switch/router configs every month or run scripts to troubleshoot various things. What better language to do that with?... Of course Python. &lt;/p&gt;

&lt;p&gt;The company I am employed by had a pathways program for their employees to step into a realm that they had interest in. I loved being a Network Engineer, but I saw where the job market was going and decided to switch to Software Engineering and luckily the program needed a young engineer with some Python experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finally Finding My Happy Place
&lt;/h2&gt;

&lt;p&gt;For the past year in this position I've developed in Python and its been great. There are a lot of things I still have yet to learn, but over this past year being thrown into the fire I've learned a lot.&lt;/p&gt;

&lt;p&gt;With programming in Python I started to pick up Django. The best decision of my life to be honest. I love everything Django has to offer. I know there are fans out there of Django and others who prefer other frameworks. While working on my masters one of my courses caused me to dive even deeper with finishing solutions to very detailed projects that we have to turn in. &lt;/p&gt;

&lt;h2&gt;
  
  
  Moral Of The Story
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d_FZWGOM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5c3wyes6a16tgdv1z3oj.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d_FZWGOM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5c3wyes6a16tgdv1z3oj.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With telling a small snippet of my story and where I am today, I am saying all of this to say... Just Keep Coding...&lt;/p&gt;

&lt;p&gt;Yes, for the senior developers who may have better things to say than I do... Just hear me out. If someone was to ask me what language or framework they should learn, I would tell them to experiment. I was all over the place until an opportunity knocked me inline with the language/Framework that was comfortable for me to learn. &lt;/p&gt;

&lt;p&gt;I was stressed out, frustrated and was fed up with trying to pursue this dream that I thought I wasn't good enough for. Just keep coding... You will find that language/framework you enjoy learning and it will come naturally. Things take time for folks like me who wasn't born with the brain of a computer science major (no disrespect).&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>impostersyndrome</category>
      <category>productivity</category>
      <category>patience</category>
    </item>
  </channel>
</rss>
