<?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: DanilJames</title>
    <description>The latest articles on DEV Community by DanilJames (@daniljames).</description>
    <link>https://dev.to/daniljames</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F286557%2F052df859-64e2-4a28-87aa-fd26f194ef2e.png</url>
      <title>DEV Community: DanilJames</title>
      <link>https://dev.to/daniljames</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daniljames"/>
    <language>en</language>
    <item>
      <title>Improving Web Portfolio</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Tue, 14 Jan 2020 07:07:56 +0000</pubDate>
      <link>https://dev.to/daniljames/improving-web-portfolio-2ef5</link>
      <guid>https://dev.to/daniljames/improving-web-portfolio-2ef5</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;br&gt;
Hello guys, I just created this portfolio recently. The issue I am facing is that when you click the hamburger icon, a portrait overlay should appear on the left-hand side, but it is not showing.&lt;br&gt;
I would like the help of my fellow DEVIAN's.&lt;br&gt;
Here is the link to my Github repository.&lt;br&gt;
&lt;a href="https://reversephonelookup.onl/"&gt;https://reversephonelookup.onl/&lt;/a&gt; &lt;a href="https://curated.onl/nba-reddit/"&gt;https://curated.onl/nba-reddit/&lt;/a&gt; &lt;a href="https://pcbuilder.onl/pcpartpicker/"&gt;https://pcbuilder.onl/pcpartpicker/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the deployed version link&lt;br&gt;
&lt;a href="https://smammar.github.io/my_portfolio/"&gt;https://smammar.github.io/my_portfolio/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Makers Week 4: Databased on a True Story
</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Tue, 14 Jan 2020 07:02:38 +0000</pubDate>
      <link>https://dev.to/daniljames/makers-week-4-databased-on-a-true-story-ekb</link>
      <guid>https://dev.to/daniljames/makers-week-4-databased-on-a-true-story-ekb</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;/p&gt;

&lt;p&gt;We started on using databases this week. We are using a SQL database called postgres. It's all new but also it's nice to be able to store data. Although it is a lot to learn in a week hopefully I'll manage.&lt;/p&gt;

&lt;p&gt;Day 1 &lt;a href="https://openweb.vip/whatsapp-web/"&gt;https://openweb.vip/whatsapp-web/&lt;/a&gt; &lt;a href="https://19216801.onl/"&gt;https://19216801.onl/&lt;/a&gt; &lt;a href="https://routerlogin.uno/"&gt;https://routerlogin.uno/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We started on databases and learning how to use them. It was a slow start trying to wrap our heads around them. The challenge was to build a bookmark app that stored URLs. We had to set up the database first which wasn't hard because the documentation was clear. The main issue is how to write the tests for the database which used capybara which I'm not too confident about but we were able to get it started.&lt;/p&gt;

&lt;p&gt;Day 2&lt;/p&gt;

&lt;p&gt;The next day we learned how to interact with postgres within ruby which was similar to normal postgres. All you needed to do was use the exec command before using the same code you'd use in postgres. It was interesting to see the databases in use and how we could alter them to add info to the website.&lt;/p&gt;

&lt;p&gt;Day 3&lt;/p&gt;

&lt;p&gt;We were shown a new tool to use called TablePlus which seemed to be more of a visual interface for sql databases. It was definitely nicer to look at than the terminals psql so I could see it being useful. After seeing that wee had to set up a testing environment. We needed to set up a test database so we don't mess up the database for the active site. We also had to reset our database every time so we used TRUNCATE to clear the database.&lt;/p&gt;

&lt;p&gt;Summary&lt;/p&gt;

&lt;p&gt;I really enjoyed this week mainly because we got to build apps that actually run. It was quite irritating since I had to use walkthroughs a lot. even though we were told we'd probably have to use them it would’ve been nice to have been able to figure it out by myself.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why Should You Care About Loose Coupling?</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Thu, 09 Jan 2020 08:26:05 +0000</pubDate>
      <link>https://dev.to/daniljames/why-should-you-care-about-loose-coupling-4e6l</link>
      <guid>https://dev.to/daniljames/why-should-you-care-about-loose-coupling-4e6l</guid>
      <description>&lt;p&gt;Have you ever been in a situation where a change in your application has caused a strange bug in a completely different part of your application? Or have you at least experienced an API breaking?&lt;/p&gt;

&lt;p&gt;You can reduce the chance of these problems by having different parts of your application know as little as possible about each other as possible. This an architectural design called loose coupling.&lt;/p&gt;

&lt;p&gt;A loosely coupled application is also a lot easier to split into smaller services if you ever need it. This will be helpful if you ever consider splitting your monolith into microservices.&lt;/p&gt;

&lt;p&gt;I have found it a bit hard to find some good practical examples on how to build a loosely coupled application. So here are a few tips you can follow to make your application more loosely coupled.&lt;/p&gt;

&lt;p&gt;Folder structure &lt;a href="http://tradevenue.se/"&gt;http://tradevenue.se/&lt;/a&gt;&lt;br&gt;
Imagine you have a folder structure like this&lt;/p&gt;

&lt;p&gt;With a folder structure like this, you need to open several folders to understand how each of the features works. And when the list of features increases, I find it hard to navigate, since I am forced to have several folders open at once. Although most of it is irrelevant at the given moment since I am usually working on only one feature at a time.&lt;/p&gt;

&lt;p&gt;And also if we ever want to split this into several services, we have to sort through several different folders to connect the parts we need.&lt;/p&gt;

&lt;p&gt;An alternative way is to group the folders by feature, like this.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS Colours Explained</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Thu, 09 Jan 2020 07:05:12 +0000</pubDate>
      <link>https://dev.to/daniljames/css-colours-explained-56og</link>
      <guid>https://dev.to/daniljames/css-colours-explained-56og</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;br&gt;
Colours in CSS can be applied in a variety of different ways; predefined colour names, rgb, rgba, or using Hexadecimal colour values. The below piece of CSS shows using a predefined colour name, the background colour will be set the colour 'purple'.&lt;/p&gt;

&lt;p&gt;There are lots of predefined colours in CSS, that can all be applied using just their predefined name as shown above. Below is a list of some of the predefined colours, this is not all of the predefined colours. These names are not case sensitive, so they can be written all uppercase or lowercase it doesn't matter.&lt;br&gt;
&lt;a href="https://mobdro.bio/"&gt;https://mobdro.bio/&lt;/a&gt; &lt;a href="https://luckypatcher.tips/"&gt;https://luckypatcher.tips/&lt;/a&gt; &lt;a href="https://kodi.bio/"&gt;https://kodi.bio/&lt;/a&gt;&lt;br&gt;
Black, White, Grey (or Gray), Silver&lt;br&gt;
Blue, Aqua, Cyan&lt;br&gt;
Crimsom, Red&lt;br&gt;
Green, DarkGreen, Lime&lt;br&gt;
Gold, Yellow&lt;br&gt;
Pink, HotPink, Magenta&lt;br&gt;
Brown, Maroon&lt;br&gt;
Purple, Violet&lt;br&gt;
Red, Green, Blue, or 'rgb' is another way in which colours can be set within CSS. The rgb function takes three parameters the represent the red, green, and blue sections of the colour. The values of each colour component can be any integer (whole number) between 0 and 255 inclusively. The value 0 is the lowest value, and therefore none of that colour will be applied. The below code has a 0 value for the blue component, so no blue will be added to the colour. We have set the red component to the brightest value, and the green component to around half (125). This will set the colour to a shade of orange. &lt;/p&gt;

&lt;p&gt;Alpha is another thing you can apply to colours within CSS. By using the 'rgba' function you can add an additional parameter which sets the alpha value. The alpha is how see-through the colour will be. The numeric value is a decimal number from 0 to 1, so 0.5 is half alpha. The below code takes the same orange colour from above but sets the alpha value to half, making it somewhat see-through.&lt;/p&gt;

&lt;p&gt;Hexadecimal values are the last way you can set colours in CSS. Hexadecimal values range from 0 to F and give each colour component two parts, and starts with a hashtag '#' symbol. The letter parts of Hexadecimal values range from A to F and stand-in for the number 10 to 15. The below CSS code shows the same orange colour from the other examples but in Hexadecimal. The red part is represented by 'FF', the green bit is '76', and the blue component is set to '00'. The green component is not the number 76, it is two parts, the number 7 and the number 6.&lt;/p&gt;

&lt;p&gt;Converting Hexadecimal values to normal decimal values can be complicated, as hex values are base 16 and decimal numbers are base 10. To convert the Hexadecimal colours to normal decimal numbers we must multiply each number by 16 to the power of the digit location. The below shows how Hexadecimal values convert to normal decimal numbers.&lt;/p&gt;

&lt;p&gt;FF = (15 * 160) + (15 * 161) = 15 * 1 + 15 * 16 = 15 + 240 = 255&lt;br&gt;
76 = ( 7 * 160) + ( 6 * 161) = 7 * 1 + 6 * 16 = 7 + 96 = 103&lt;br&gt;
00 = ( 0 * 160) + ( 0 * 161) = 0 * 1 + 0 * 16 = 0 + 0 = 0&lt;/p&gt;

&lt;p&gt;To simplify the calculation we can just take the first number of a hex colour and multiply it by the second number multiplied by 16. This is shown below, using the same numbers as above. This is because any number to the power of 0 is equal to the number 1 and 16 to the power of 1 is equal to the number 16.&lt;/p&gt;

&lt;p&gt;FF = 15 + (15 * 16) = 255&lt;br&gt;
76 = 7 + ( 6 * 16) = 103&lt;br&gt;
00 = 0 + ( 0 * 16) = 0&lt;/p&gt;

&lt;p&gt;This article was originally posted on my website: &lt;a href="https://acroynon.com/"&gt;https://acroynon.com/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Best practice for syncing todo list with server
</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Wed, 08 Jan 2020 14:17:40 +0000</pubDate>
      <link>https://dev.to/daniljames/best-practice-for-syncing-todo-list-with-server-4o06</link>
      <guid>https://dev.to/daniljames/best-practice-for-syncing-todo-list-with-server-4o06</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;br&gt;
I am building a sample todo list using flutter. Currently when a check box is checked, I am making a backend call to the server to update the state and then upon successful response, I am updating the local state. The issue here is, when the server response is slow, from the UI perspective, when a checkbox is checked, nothing happens for few seconds and then gets checked. Ideally, I would like to update the UI first and then make a call to backend. But then with this approach, I have to deal with unchecking the box again if the call to server is unsuccessful or retry again after sometime. I am actually looking for patterns for variant of a second approach. i.e. When a checkbox is checked, the UI state updates and is stored locally. Then in an asynchronous manner, update the server. Are there some patterns in flutter community to achieve this? &lt;a href="https://showbox.bio/"&gt;https://showbox.bio/&lt;/a&gt;  &lt;a href="https://tutuapp.uno/"&gt;https://tutuapp.uno/&lt;/a&gt;  &lt;a href="https://vidmate.vet/"&gt;https://vidmate.vet/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS: I am using Redux &amp;amp; Redux thunk to talk with my backend..&lt;/p&gt;

</description>
      <category>devops</category>
    </item>
    <item>
      <title>I'm curating a daily Frontend dev stuff, would you read it?
</title>
      <dc:creator>DanilJames</dc:creator>
      <pubDate>Fri, 06 Dec 2019 10:37:12 +0000</pubDate>
      <link>https://dev.to/daniljames/i-m-curating-a-daily-frontend-dev-stuff-would-you-read-it-3i83</link>
      <guid>https://dev.to/daniljames/i-m-curating-a-daily-frontend-dev-stuff-would-you-read-it-3i83</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;br&gt;
I have this crazy fear that writing lots of JavaScript would make my other Frontend skills suffer.&lt;/p&gt;

&lt;p&gt;I asked a few people how they stayed on top of core web stuff (CSS Grids, browser support, Accessibility, etc). I was hoping I would find something more focused on core web stuff. I didn't find any.&lt;a href="https://portchecker.pro/"&gt;https://portchecker.pro/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After a few months of thinking through it, I decided to curate one myself. &lt;a href="https://reverseimagesearch.onl"&gt;https://reverseimagesearch.onl&lt;/a&gt; &lt;a href="https://emailchecker.vip/"&gt;https://emailchecker.vip/&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;I started betterweb.xyz as an attempt to stay on top of core web stuff by curating every day. I've been doing this for a week or so.&lt;/p&gt;

&lt;p&gt;I would love you guys to check it out, possibly suggest ways I could focus more on core web stuff.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

</description>
      <category>css</category>
    </item>
  </channel>
</rss>
