<?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>Forem: Shanice</title>
    <description>The latest articles on Forem by Shanice (@codeteasleep).</description>
    <link>https://forem.com/codeteasleep</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%2F887512%2F767a9674-35ea-4cf4-97e8-a89570226615.jpg</url>
      <title>Forem: Shanice</title>
      <link>https://forem.com/codeteasleep</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/codeteasleep"/>
    <language>en</language>
    <item>
      <title>How to answer programming challenges</title>
      <dc:creator>Shanice</dc:creator>
      <pubDate>Fri, 12 Aug 2022 14:11:30 +0000</pubDate>
      <link>https://forem.com/codeteasleep/how-to-answer-programming-challenges-3ac8</link>
      <guid>https://forem.com/codeteasleep/how-to-answer-programming-challenges-3ac8</guid>
      <description>&lt;p&gt;When tackling a problem, many of us like to go straight into working toward a solution. This may not be the best approach. Just like when we had to write an outline before we wrote our essays, we must also outline our solution to each coding challenge. Let's take a look at 5 steps we can take to prepare for solving a challenge.&lt;/p&gt;

&lt;p&gt;Sample Coding Challenge:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;I need to know how long each student's name is so that I can know how much space I will need to reserve on my board for each name. Write a function that takes in a student name and returns how long each name is. I will need the result as a number.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Rewrite the problem in your own words.&lt;/p&gt;

&lt;p&gt;For this challenge, I would write something like:&lt;br&gt;
&lt;code&gt;Return the length of a string&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Recognize and note whether or not there are any parameters&lt;/p&gt;

&lt;p&gt;For this challenge, I would write something like:&lt;br&gt;
&lt;code&gt;String name&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;What I'm saying here is that the function will take in a string and the string will be a name.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Recognize and note what needs to happen to the result.&lt;/p&gt;

&lt;p&gt;For this challenge, I would write something like:&lt;br&gt;
&lt;code&gt;Return an integer/number&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;: Write some pseudocode&lt;/p&gt;

&lt;p&gt;For this challenge, I would write something like:&lt;br&gt;
&lt;code&gt;take input from function&lt;br&gt;
count the characters in input&lt;br&gt;
display the count&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Writing out the pseudocode gives you a chance to work through the logic of the problem in a nontechnical way.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Write out an example&lt;/p&gt;

&lt;p&gt;For this challenge, I would write something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function findNameLength(name){
    let count //variable to hold count of characters
    name.length //string property to find length of strings
    return integer/length
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Every person's problem solving processes are different, so you might include more or less in these steps.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before you tackle your next challenge, give these steps a try. If you have steps that aren't listed above, list them below :)&lt;/p&gt;

&lt;p&gt;Have a great day!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Learning Resources (JS and more)</title>
      <dc:creator>Shanice</dc:creator>
      <pubDate>Fri, 05 Aug 2022 15:18:17 +0000</pubDate>
      <link>https://forem.com/codeteasleep/learning-resources-js-and-more-20ld</link>
      <guid>https://forem.com/codeteasleep/learning-resources-js-and-more-20ld</guid>
      <description>&lt;p&gt;Salutations &lt;a href="https://i.giphy.com/media/C46EeKCUKxU3e/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/C46EeKCUKxU3e/giphy.gif" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Are you feeling a bit discouraged? Have you been putting in the effort but still feel like you can't understand? &lt;/p&gt;

&lt;p&gt;Well worry no more because I'm here to help you. First, I want to tell you that everyone learns differently, and there's no ONE way to learn. Now, I want you to think about your training. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Which areas are not your strongest? &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Where would you like to see the most improvement? &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do you just feel like you need something to solidify the information? &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How do you learn? &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After you've taken the time to reflect, browse the resources below and see if there is one that will positively add to your learning journey.&lt;/p&gt;

&lt;p&gt;Happy Learning :)&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML/CSS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.shayhowe.com/html-css/"&gt;Shay Howe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flexboxfroggy.com"&gt;Flexbox Froggy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mastery.games/flexboxzombies/"&gt;Flexbox Zombies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/"&gt;CSS Tricks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.frontendmentor.io"&gt;Frontend Mentor&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Projects
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/florinpop17/app-ideas"&gt;App Ideas&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Problem Solving
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.hackerearth.com/practice/"&gt;Hacker Earth&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.codewars.com/dashboard"&gt;Codewars&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://leetcode.com/explore/"&gt;Leetcode Explore&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Programming
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://javascript30.com"&gt;JavaScript 30&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.codingame.com/home"&gt;Coding Game&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.frontendmentor.io"&gt;Frontend Mentor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learnjavascript.online"&gt;Learn JavaScript Online&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Git and Open Source
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://lab.github.com"&gt;Gitlab&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.firsttimersonly.com"&gt;First-timers Only&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://opensource.guide/how-to-contribute/"&gt;Open Source Guide&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://syknapse.github.io/Contribute-To-This-Project/"&gt;Syknapse&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://firstcontributions.github.io"&gt;First Contributions&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://goodfirstissues.com/index.html"&gt;Good First Issues&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://gitexplorer.com"&gt;Git Command Explorer&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Simple Swift Challenges (2)</title>
      <dc:creator>Shanice</dc:creator>
      <pubDate>Fri, 29 Jul 2022 15:23:00 +0000</pubDate>
      <link>https://forem.com/codeteasleep/simple-swift-challenges-2-323n</link>
      <guid>https://forem.com/codeteasleep/simple-swift-challenges-2-323n</guid>
      <description>&lt;p&gt;Greetings 👋,&lt;/p&gt;

&lt;p&gt;I've constructed 3 Swift challenges and listed them below. First, you'll find the challenges and further down the page you'll find the solutions. If you aren't able to solve them, before looking at the solutions, try to find some help through a Google search or at &lt;a href="https://developer.apple.com/documentation/swift"&gt;https://developer.apple.com/documentation/swift&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I struggled a bit coming up with creative ways to write the challenges 😅. Please bear with me :) &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Have fun :)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Help! I have a list of people and I need to quickly find a certain person. This person's name starts with "Is" and ends with "h". What two methods can you use check a string for these values?&lt;/p&gt;

&lt;p&gt;let personOne = "Isaac"&lt;br&gt;
let personTwo = "Isiah"&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a variable for an integer with the value of one million and make it reader friendly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I have 12 pieces of candy and I have 3 students. Will I be able to split the candy evenly? (Hint: Use a method to see if the 12 is a mulitiple of 3)&lt;/p&gt;

&lt;p&gt;let candy = 12;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Help! I have a list of people and I need to quickly find a certain person. This person's name starts with "Is" and ends with "h". What two methods can you use check a string for these values?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;.hasPrefix("Is")&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;.hasSuffix("h")&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;for instance:&lt;/strong&gt;&lt;br&gt;
   let personOne = "Isaac"&lt;br&gt;
    let personTwo = "Isiah"&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;personOne.hasPrefix("Is")
personOne.hasSuffix("h")
personTwo.hasPrefix("Is")
personTwo.hasSuffix("h")
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;these methods will return a Boolean, either true or false, based on whether the string starts/ends with the specified string or not.&lt;/em&gt; &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a variable for an integer with the value of one million and make it reader friendly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;var million = 1_000_000&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In Swift, you can insert an underscore in the place of a comma to help with readability&lt;/em&gt;&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;I have 12 pieces of candy and I have 3 students. Will I be able to split the candy evenly? (Hint: Use a method to see if the 12 is a mulitiple of 3)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;let candy = 12;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;candy.isMultiple(of: 3)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;can also be written as: 12.isMultiple(of:3)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This method returns a Boolean value-true if it is a multiple,false if it is not a multiple&lt;/em&gt;&lt;/p&gt;


&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>swift</category>
      <category>mobile</category>
      <category>programming</category>
    </item>
    <item>
      <title>Simple Swift Challenges</title>
      <dc:creator>Shanice</dc:creator>
      <pubDate>Sat, 23 Jul 2022 18:48:13 +0000</pubDate>
      <link>https://forem.com/codeteasleep/simple-swift-challenges-26ad</link>
      <guid>https://forem.com/codeteasleep/simple-swift-challenges-26ad</guid>
      <description>&lt;p&gt;Greetings 👋,&lt;/p&gt;

&lt;p&gt;I've constructed 5 basic Swift challenges and listed them below. First, you'll find the challenges and further down the page you'll find the solutions. If you aren't able to solve them, before looking at the solutions, try to find some help through a Google search or at &lt;a href="https://developer.apple.com/documentation/swift"&gt;https://developer.apple.com/documentation/swift&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Have fun :) &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a variable named greeting, assign it to the String hello, and print it to the console&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a constant named pi and assign it to the Double 3.14, and print it to the console&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a multiline string with the sentence - I love to eat, eat, eat, apples and bananas&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Count the amount of characters in the multiline string&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Print the multiline string in uppercase letters&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;br&gt;
*&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a variable named greeting, assign it to the String hello, and print it to the console&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;var greeting = "hello"&lt;br&gt;
    print(greeting)&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a constant named pi and assign it to the Double 3.14, and print it to the console&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;let pi = 3.14&lt;br&gt;
print(pi)&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a multiline string with the sentence - I love to eat, eat, eat, apples and bananas&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;var eatWhat = """&lt;br&gt;
    I love to&lt;br&gt;
    eat, eat, eat,&lt;br&gt;
    apples and bananas.&lt;br&gt;
"""&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Count the amount of characters in the multiline string&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;print(eatWhat.count)&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Print the multiline string in uppercase letters&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;print(eatWhat.uppercased())&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>swift</category>
      <category>beginners</category>
      <category>programming</category>
      <category>ios</category>
    </item>
    <item>
      <title>Programming Challenges</title>
      <dc:creator>Shanice</dc:creator>
      <pubDate>Thu, 14 Jul 2022 15:11:00 +0000</pubDate>
      <link>https://forem.com/codeteasleep/programming-challenges-2187</link>
      <guid>https://forem.com/codeteasleep/programming-challenges-2187</guid>
      <description>&lt;p&gt;I've taken the challenge! &lt;/p&gt;

&lt;p&gt;Hi, I'm Shanice and I'm currently completing the #100daysofcode challenge. I'm also working through the #100DaysofSwiftUI program. As a reinforcement for my learning, I'm going to (attempt to) make some challenges with the topics or concepts I've learned. The challenges may be either in Swift, JavaScript, CSS, or HTML. They'll start off simple and increase in difficulty as I continue to learn. If you're learning any of these technologies, feel free to join me by working the challenges or even adding your own 😊. &lt;/p&gt;

&lt;p&gt;✨ Happy Studies ✨&lt;/p&gt;

</description>
      <category>swift</category>
      <category>100daysofcode</category>
      <category>beginners</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
