<?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: DAPHNEY NEPTUNE</title>
    <description>The latest articles on DEV Community by DAPHNEY NEPTUNE (@daphneynep).</description>
    <link>https://dev.to/daphneynep</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%2F1551670%2F405ac8f5-0500-4a48-a3f8-2da55365721f.png</url>
      <title>DEV Community: DAPHNEY NEPTUNE</title>
      <link>https://dev.to/daphneynep</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daphneynep"/>
    <language>en</language>
    <item>
      <title>How Flask Benefits Python Development</title>
      <dc:creator>DAPHNEY NEPTUNE</dc:creator>
      <pubDate>Fri, 13 Sep 2024 14:05:14 +0000</pubDate>
      <link>https://dev.to/daphneynep/how-flask-benefits-python-development-19m8</link>
      <guid>https://dev.to/daphneynep/how-flask-benefits-python-development-19m8</guid>
      <description>&lt;p&gt;There are many ways Flask benefits python development. During phase 4 project, I was able to see some of the usefulness and benefits of using Flask in python. Below are a few reasons why Flask benefits python development:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Makes Web Development Easy:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Flask is an easy-to-use framework that helps you build web applications quickly. For example, below is an example of a few lines of code for beginners like myself, who is learning to create web app.&lt;/p&gt;

&lt;p&gt;from flask import Flask&lt;/p&gt;

&lt;p&gt;app = Flask(&lt;strong&gt;name&lt;/strong&gt;)&lt;/p&gt;

&lt;p&gt;@app.route('/hello/')&lt;br&gt;
def greet(name):&lt;br&gt;
    return f"Hello, {name}!"  &lt;/p&gt;

&lt;p&gt;if &lt;strong&gt;name&lt;/strong&gt; == '&lt;strong&gt;main&lt;/strong&gt;':&lt;br&gt;
    app.run(debug=True)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Flask Allows Python Handle Web Requests:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Using Flask, Python will be able handle web requests directly. Through @app.route('/') line you will be able to define what happens when someone visits the homepage, making it easy to map URLs to specific functions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Keeps Code Clean and Simple:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Sometimes when we get into writing our codes it can get chaotic really quick because some code components can be very long. This is where Flask encourages writing clean and simple codes. With decorators such as the @app.route makes it easy to see which functions are connected to which URLs.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Works Well with Other Python Tools:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   A great advantage to using flask in python is that Flask works seamlessly well other Python libraries and tools, like data processing, machine learning, or database management. Because of python vast ecosystem, it will allow developer to add more features to their web applications. SQLAlchemy is an example of a python tool that works with well flask, see the example below:&lt;/p&gt;

&lt;p&gt;from flask import Flask&lt;br&gt;
from flask_sqlalchemy import SQLAlchemy&lt;/p&gt;

&lt;p&gt;app = Flask(&lt;strong&gt;name&lt;/strong&gt;)&lt;br&gt;
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'&lt;br&gt;
db = SQLAlchemy(app)&lt;/p&gt;

&lt;p&gt;class User(db.Model):&lt;br&gt;
    id = db.Column(db.Integer, primary_key=True)&lt;br&gt;
    username = db.Column(db.String(80), unique=True, nullable=False)&lt;/p&gt;

&lt;p&gt;if &lt;strong&gt;name&lt;/strong&gt; == '&lt;strong&gt;main&lt;/strong&gt;':&lt;br&gt;
    app.run(debug=True)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Comes with built-in tools for Development:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Having a software that already comes with built-in tools is already a plus for me. For example, the app.run(debug=True) line starts a development server with live reloading and a built-in debugger, which helps you quickly test and fix issues in your app.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Supports Front-end Frameworks:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Because Flask is a great support for creating back-end APIs that works will with front-end frameworks like React or Angular, it is a good choice for full-stack development.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Has a Strong Community and Many Extensions:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   During the project I was able to experience the usefulness of different extensions in Flask. For example, the SQLite3, debugging or the ERROR LENS was a great use for me while working on my project. Because of the large community and the many plugins/extensions available, you will be able to add more features to your web application, which saves time and effort for developers.&lt;/p&gt;

&lt;p&gt;Summary&lt;br&gt;
Overall, Flask benefits Python development by making it easy, fast, and flexible to build web applications. It’s a great pair with other Python tools, supports clean coding practices, and provides helpful built-in features for development and debugging.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Many To Many Relationships</title>
      <dc:creator>DAPHNEY NEPTUNE</dc:creator>
      <pubDate>Sun, 28 Jul 2024 02:29:13 +0000</pubDate>
      <link>https://dev.to/daphneynep/many-to-many-relationships-42gf</link>
      <guid>https://dev.to/daphneynep/many-to-many-relationships-42gf</guid>
      <description>&lt;p&gt;So my current situation is Many to Many Relationships in the Flask programing. Many to Many relationships or one to Many relationships can get very confusing and the latest school project I worked on, taught me that I still need to practice more coding scenarios to better understand these relationships. I mean for example, here's what I am currently working on: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34bt88mc7t7lpy2h2a8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34bt88mc7t7lpy2h2a8y.png" alt="Image description" width="800" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let me know what you think is wrong and if I need to remove or add anything. I am focusing on creating a book club for members to write reviews and comments.&lt;/p&gt;

&lt;p&gt;As I am wrapping up phase 4 in my bootcamp software engineer program with Flatiron School, I look back from the very beginning in phase 1, how lost and confused I was. None of it made sense to me. I started to question my decision in entering this program. I can't believe I've made it through thus far and I am really happy that I didn't give up. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>PYTHON THE BEAST!</title>
      <dc:creator>DAPHNEY NEPTUNE</dc:creator>
      <pubDate>Fri, 05 Jul 2024 17:08:54 +0000</pubDate>
      <link>https://dev.to/daphneynep/python-the-beast-24mp</link>
      <guid>https://dev.to/daphneynep/python-the-beast-24mp</guid>
      <description>&lt;p&gt;Alright Python is an object-oriented programing language. It makes development of new applications useful for high-level built-in data structures and dynamic typing. Also, it’s useful for scripting or “glue” code to combine existing components written in different languages. Ok as I am diving more into python, learning the modules and doing some of the labs given I am getting nervous because it’s not clicking to me yet! I mean most people says python is their favorite program language. Maybe It could be because it’s “simple and easy to learn syntax emphasizes readability and therefore reduces the cost and complication of long-term program maintenance” (Flatiron School, Intro to Python).&lt;/p&gt;

&lt;p&gt;Why didn’t I know Python was so difficult? As much as it makes since it’s also confusing at the same time. Sounds crazy right? I just feel like there’s a lot of layers that just keeps coming one after the other as you finish one part, it’s like a mystery. It’s crazy but I really feel challenged to continue learning and having a more understand on how to code with Python. For example, below I am currently stuck on something like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;# Wrong:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;def foo(x):&lt;br&gt;
    if x &amp;gt;= 0:&lt;br&gt;
        return math.sqrt(x)&lt;/p&gt;

&lt;p&gt;def bar(x):&lt;br&gt;
    if x &amp;lt; 0:&lt;br&gt;
        return&lt;br&gt;
    return math.sqrt(x)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;# Correct:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;def foo(x):&lt;br&gt;
    if x &amp;gt;= 0:&lt;br&gt;
        return math.sqrt(x)&lt;br&gt;
    else:&lt;br&gt;
        return None&lt;/p&gt;

&lt;p&gt;def bar(x):&lt;br&gt;
    if x &amp;lt; 0:&lt;br&gt;
        return None&lt;br&gt;
    return math.sqrt(x)&lt;/p&gt;

&lt;p&gt;When I try to follow the correct way to write my code it doesn’t seem to work. Although What I am working on is a bit different from these codes above but the idea is the same. I’m not sure what I am doing wrong yet but I’ll keep running it again and again until I get it right.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>REACT features</title>
      <dc:creator>DAPHNEY NEPTUNE</dc:creator>
      <pubDate>Mon, 10 Jun 2024 20:40:41 +0000</pubDate>
      <link>https://dev.to/daphneynep/react-features-2kld</link>
      <guid>https://dev.to/daphneynep/react-features-2kld</guid>
      <description>&lt;p&gt;There are so much to learn about React, that I can’t even begin to explain. I am still trying to figure out if I like it better than JavaScript. But I do know I like the fact that you can use components in a specific way like building blocks to build our web application. We can write codes that looks similar to HTML. It makes it very convenient and easier to understand when it comes to writing codes. There are a lot of great aspect of React that I like so far but the one that I really find useful is being able to return more than one return within the function scope by using components. For example:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                   function multiply(){
                        return( 
                          10 * 2
                           2 * 5
                        )
                      }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;When we are using the regular function, you can only have one return.  The above example will not work. But when using React bellow you can see you can return multiple return statements by using components. With these components, it allows us to use the wrapping method by using a div tag and now you are able to return more than one return.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                     function App(){
                         return (
                            &amp;lt;div&amp;gt;
                              &amp;lt;h1&amp;gt;Hi&amp;lt;/h1&amp;gt;
                              &amp;lt;h3&amp;gt;Bye&amp;lt;/h3&amp;gt;
                            &amp;lt;/div&amp;gt;
                         )
                     }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This makes so much more sense to me, because I struggle a bit with JavaScript. In JavaScript, I have to wright so many function codes to get different returns and it can got a little confusing for me. &lt;br&gt;
Learning how to use react is still new to me and I Know with more practice I will have a better understanding of it. What is your favorite feature in React?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Beginners Coding Troubles</title>
      <dc:creator>DAPHNEY NEPTUNE</dc:creator>
      <pubDate>Thu, 30 May 2024 23:24:08 +0000</pubDate>
      <link>https://dev.to/daphneynep/beginners-coding-troubles-4481</link>
      <guid>https://dev.to/daphneynep/beginners-coding-troubles-4481</guid>
      <description>&lt;p&gt;I think the coolest function that I’ve learned and not struggle too much with is the fetch request function. I felt like with everything I had to learn and digest this was it for me. Below is what I was able to use to get some data that we need to work with.&lt;br&gt;
Fetch(“string representing a URL to a data source”)&lt;br&gt;
    .then(response =&amp;gt; response.json()&lt;br&gt;
    .then(data =&amp;gt; console.log(‘data’)&lt;br&gt;
You can also do:&lt;br&gt;
Fetch(“string representing a URL to a data source”)&lt;br&gt;
    .then(response =&amp;gt; {&lt;br&gt;
        Console.log(response)&lt;br&gt;
        Return response.json()&lt;br&gt;
    .then(data =&amp;gt; {&lt;br&gt;
        Console.log(data)&lt;/p&gt;

&lt;p&gt;There’s a lot I had to learned these past four weeks about coding and there’s more to come.  Although I had a lot of challenging moments where I was confused on what code to use or what certain verbiages mean, I was still able to understand a lot of information that wasn’t familiar with. Maybe I am over thinking it but I’m understanding it little by little, because this is all new to me. I’ve also realized that I need to practice and do more of coding samples, to increase the level of my understanding and get more familiar with coding. Going into this course I wasn’t sure what to expect but I do have an appreciation for those who are learning or who have already mastered this field. &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
