<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sydney Munizaga on Medium]]></title>
        <description><![CDATA[Stories by Sydney Munizaga on Medium]]></description>
        <link>https://medium.com/@sydneybmunizaga?source=rss-9ece90cd5615------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VU82AkMVV6ZQzaTouDXRvg.jpeg</url>
            <title>Stories by Sydney Munizaga on Medium</title>
            <link>https://medium.com/@sydneybmunizaga?source=rss-9ece90cd5615------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:21:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sydneybmunizaga/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Writing Great Specifications: Chapter 1]]></title>
            <link>https://sydneybmunizaga.medium.com/writing-great-specifications-chapter-1-16f98e936370?source=rss-9ece90cd5615------2</link>
            <guid isPermaLink="false">https://medium.com/p/16f98e936370</guid>
            <dc:creator><![CDATA[Sydney Munizaga]]></dc:creator>
            <pubDate>Sat, 30 Jan 2021 05:04:22 GMT</pubDate>
            <atom:updated>2021-01-30T05:04:22.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction to specification by example and Gherkin by Kamil Nicieja</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*uJRYkNh7pgPw9LIHIhJucg.jpeg" /></figure><p>❗️ <strong>I did not write this book</strong>. These are my notes on each chapter.❗️</p><p>Developers have a hard time knowing if they are building the write thing. Business owners don’t always know how to tell developers what to make. Too often developers end up making the wrong thing or business owners don’t know how to describe what it is that they want from developers. The issue isn’t technology but communication between teams. That is where Specifications by Example comes in.</p><p>The point of this book is to help teams across the board talk to each other in a common language. There are things that developers know that business owners don’t and vice versa. Gherkin is a coding language designed to be the most human friendly but objective oriented language to help bridge this gap. It isn’t just write tests in a human friendly way — in requires an objective. It demands a beginning, middle and end result from your software. It accomplishes this using a Given, When, Then syntax, but how to properly use it will be the topic of the next chapter.</p><p>This chapter is what you need to understand<em> before</em> you start writing tests. 😊</p><p>When creating software, it has to <em>matter to someone</em>. In order to find that out you must be <em>empathetic</em> to other people’s problems. The most important objective is to 1. Make sure developers deliver the right software and 2. Deliver it the right way.</p><p>The obvious problem is that developers don’t have the time to find that out. It’s not their job to find out what clients want. That is the business owners job, but business owners don’t know what is possible with technology. So introduce the on-going development conundrum. How do you get both worlds to 1. Talk to each other and 2. Understand each other?</p><p>As defined by the book, it plans to introduce you to the SBE system, which stands for Specification By Example. This system is “a collaborative software development approach that facilitates collaboration by illustrating software requirements with concrete examples and automated acceptance tests.</p><p>All right. Sounds easy. But what does that mean exactly, and what does that look like? Some of that will be explained throughout the following chapters, but the introduction does cement some core vocabulary before moving on.</p><p>What is specification?</p><p><em>Specification</em> — is an analysis of a system and its design, made to plan and execute the implementation.</p><p>In order to make a specification you need to have a list of requirements.</p><p>What is a requirement?</p><p><em>Requirement</em> — is a capability or condition that must be met or possessed by a solution to satisfy market needs or a contract, a standard, a specification or other formality imposed documents.</p><p>The problem that most teams run into is that they start looking at these specification documents like a recipe for cooking. These are not that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*r9dJh4kj-sgNjHhgsf_zAQ.jpeg" /></figure><p>While projects remain small, the chances that specification documents become an issue remains really small, but as soon as the project gets bigger the specification documents quickly run away from the developers. It must be seen as a living document that can be updated as you go along, with <strong><em>EVERYONE</em></strong> who is involved. You can’t treat it like your grandmother’s recipe that can not be altered. You must infuse flexibility.</p><blockquote>“The main and only reason teams need specifications is information asymmetry. Teams need to distribute information evenly among the stakeholders to create the best possible product. If they don’t, they’ll miss critical requirements and make an incomplete product — or even a broken one.”</blockquote><p><em>Information asymmetry</em> — a situation in which one party has more information than another.</p><p>Specifications help address this information asymmetry through defining <em>what</em> and/or <em>how</em> it needs to be done.</p><p>One of the ways that you start setting abstract concepts into concrete measurements of what is wanted/needed is by inserting <em>acceptance criteria</em>.</p><p><em>Acceptance criteria</em> — A condition or quality measure that a software product must meet to satisfy requirements.</p><blockquote>“Acceptance criteria illustrates requirements. You should be able to use a criterion to evaluate the system and get an unambiguous confirmation that the system either passes or fails your test.”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16f98e936370" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything I learned after working a year in the industry after a boot camp!]]></title>
            <link>https://sydneybmunizaga.medium.com/everything-i-learned-after-working-a-year-in-the-industry-after-a-boot-camp-6368bd7033df?source=rss-9ece90cd5615------2</link>
            <guid isPermaLink="false">https://medium.com/p/6368bd7033df</guid>
            <category><![CDATA[software-industry]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[newbie]]></category>
            <category><![CDATA[one-year-later]]></category>
            <dc:creator><![CDATA[Sydney Munizaga]]></dc:creator>
            <pubDate>Wed, 05 Feb 2020 16:44:33 GMT</pubDate>
            <atom:updated>2020-02-10T21:46:23.628Z</atom:updated>
            <content:encoded><![CDATA[<h3>One year down as a Software Developer after a boot camp! Everything I’ve learned so far.</h3><p>There is so much to say about my first year. I’m having a hard time knowing where to start.</p><p>However, for an intro, I was a videographer/graphic designer that decided to switch careers into being a software developer. I had no idea what that would mean. I knew it would be hard, but I felt ready for that. I decided to switch my career because I was unhappy doing what I was doing and I was burnt out. I wanted a better work-life balance and I didn’t want something that could easily be replaced by a ‘know-nothing’, cheep intern. It was terrifying at first, but knowing that Software Development was a growing industry and that it required an expert that couldn’t be replaced by a local teenager, and that it paid well was enough to justify the gamble.</p><p>But enough of why. What did I discover? What happened?</p><p>After graduating from the in-person Flatiron School in Web Development out of the DC campus I had no idea what it would look like to work for a software company or what my actual day-to-day would be. However, about a month later (yes I said a month later — super duper fast) I got hired by a cybersecurity company out of Baltimore, MD. Here I learned so many things.</p><h3>1. Sometimes they put you in testing</h3><p>At the time I found it, it was a start-up (and still is technically speaking). I was someone that they hired to work on their end-to-end testing which was an area that was growing in their company. (Well, actually each and every team was growing at their company.) Since I was a recent boot camp graduate without any real-world experience, Testing is a common area for beginners since it’s a safer and less intimidating place to start and since it isn’t a skill that is taught anywhere really, people want to make sure that you learn good testing practices before you move on to working on real-world tasks. It helps you get your sea legs before sending you out to sea. And even though I said that each team was hiring — often the ‘new-to-coding’ or ‘fresh-out-of-college’ or ‘first-years’ (as we called them here) guy focuses on testing on whatever team it is. For me, my team was <em>thee</em> testing team for the entire app. But others were hired to focus on adding/fixing tests inside whatever team they were first sent to, which could be any team.</p><h3>2. There are more jobs, teams, and areas of expertise out there than I thought.</h3><p>I work at a cybersecurity company, so I can’t say that this applies to each company, but there are things, that I’m sure of, are fairly universal.</p><p>Outside of the teams that work on the app itself which (depending on how large) could either be full-stack or just front-end and back-end. We have all three here. Some teams are divided by each product that a company offers. But that was expected. Here is a list of other teams that I didn’t know were a thing.</p><ul><li>🔬 <strong>R&amp;D:</strong> Research and Development</li><li>🧪 <strong>SDET:</strong> Software Development Engineer in Testing (which is me)</li><li>🔐<strong> Security</strong> (here, we all have to learn about security — most places will have a designated team that specializes in it)</li><li>☁️ <strong>Ops:</strong> Operations</li><li>🤖 <strong>IT: </strong>Internet Technology</li><li>📝 <strong>Docs: </strong>Documentation</li><li>👩‍🎨 <strong>UI/UX:</strong> User Interface and User Experience</li><li>and lots of possible others</li></ul><p>How many teams and what everyone specializes in varies greatly! But eventually, as a company grows, tasks get sectioned off so that people can focus on growing issues.</p><p>Which brings me to the next point…</p><h3>2. It is amazing how many tools, apps, and general tech is out there for the regular average software developer just to do their job.</h3><p>Just to name a few (and not necessarily ones we use here either) there are…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*1jCr_oWPYakZNO0c31Wsuw.jpeg" /><figcaption>(I don’t even know what some of these logos are from this pic I stole from the internet. 😂)</figcaption></figure><ul><li><strong>Data visualization</strong>: Grafana, Sumologic, Tableau, D3, Leaflet, Vega</li><li><strong>Project planning</strong>: Kanban, Asana, Monday, JIRA, BaseCamp, Trello</li><li><strong>General Communication</strong>: Slack, Microsoft’s Outlook, Google Email and Hangouts, Confluence, HighFive, Zoom</li><li><strong>Coding Sharing and Management Tools</strong>: Bitbucket, Github, Gitlab, SourceTree</li><li><strong>Testing &amp; QA</strong>: Selenium, all the Smart Bear applications, Jest, Cypress, Sitespeed, Mabl, SonarQube, Postman, Percy, Screenr</li><li><strong>IDE’s</strong>: Atom, Sublime, VSCode, Eclipse (for Java), IntelliJ (for Java), and all the rest of the JetBrains stuff</li><li><strong>Other Tools</strong>: VictorOps, PagerDuty, Docker, AWS, Kubernetes, Azure, Okta, SequelPro, Sumo Logic</li><li><strong>JUST FOR JAVA</strong>: Jenkins, Hibernate, Spring, Maven, Apache, Tomcat, and Gradle</li></ul><p>The list goes on and on and on and on…</p><p>Also, there are new apps, and new tools designed around helping tech and tech workers work better every day. The sheer amount of technology out there is astounding.</p><p>One thing to note is that you don’t need to know all of them, but it is good to be familiar with as many as possible. As you go about your career and things fall into a rhythm, it is easy to get comfortable with what you know and have. However, if you stop paying attention to new tools that are out there, you might miss out on a tool that could make your daily life better. Not to mention your app work faster, safer, etc. You can’t possibly know it all, but fight the urge to nestle yourself into what you know. Don’t stop exploring the terrain.</p><p>Another thing that I’ve realized is that becoming an expert in a field can sometimes just mean that you know how to use one or more of these tools really well.</p><p>For instance, let&#39;s take AWS (or Amazon Web Services). AWS provides 165 services in a myriad of things. It can take so much time and effort to learn a handful of tools and to know it well enough for it to be meaningful to your work. It’s fairly typical for someone to become the designated AWS expert for a company or group or even have multiple tools experts.</p><h3>3. If you need something, you have to write a ticket.</h3><p>This was super weird for me at first. In the beginning, it came across as dismissive and kind of rude. I didn’t know what “tickets” were. It reminded me of when I first started my boot camp and the instructors warned us that often times their responses to most questions might end up being “Google it” and not to take that the wrong way. It’s just that sometimes they might not know and the best place to go would then be Google. I have since discovered that each task or to-do is called a ticket. It doesn’t matter how big or small the task might be, you have to write a ticket. Even if you are talking face-to-face with someone and the thing that you are asking them to do just requires to push a button for permissions — you have to write a ticket. This is not to make life harder, in fact, just the opposite. Companies try as much as they can (especially if teams are small) to know how much work each team/team member does, and <strong>unexpected work</strong> is one of them. They want to know how often developers get interrupted with work that is still ‘work’, but just not related to larger on-going projects. Being able to track this often gets used to justify where new hires need to go.</p><h3>4. You should learn Java. ☕️</h3><p>I’m not sure why but when I was at the boot camp, word on the street was that Java is a dying language. I don’t know where any of that comes from but at this point, I find that to be almost laughable. Java is everywhere and the biggest tech companies use it, like these here…</p><ul><li>Airbnb</li><li>Uber</li><li>Netflix</li><li>Spotify</li><li>Instagram</li><li>Google</li><li>Pinterest</li><li>Amazon</li></ul><p>Java isn’t going anywhere. It is a super steady and mature language and it’s been around for years. It may have its downs, but it certainly has its ups. At Flatiron they teach Ruby for the back-end and Javascript for the front-end. I’m not sure why they teach those languages over others, but my guess is that it would be too much work to teach Java in a three month (15 weeks) program. However, that is just a guess.</p><p>Also to consider is that companies are not as flexible and inventive as people might think. When a company picks a language or a framework or what have you, they use that until they MUST leave it. It’s a lot of work for companies to update, change or rebuild that most of the time they don’t.</p><p>Also, for Java to go away you would need to stop each and every college around the world from teaching it. Did you know that in the USA <em>alone</em> 41,000 students graduated with CS degrees speaking Java <em>last year</em>? Java isn’t going away! 🤣 It’s just not happening.</p><h3>5. You don’t need to know everything now.</h3><p>After the boot camp, I was panicked about knowing everything as fast as possible. And not only that but I felt overwhelmed and upset for all the new things that I learned in coding after my time there, thinking to myself, “How did they not tell us about this!”, “This should have been covered in the curriculum!”. The number of new words and acronyms never seemed to end! IAST, RASP, OWASP, KPI, POC, SDET, R&amp;D, ASG, ROI<strong>, </strong>XML, CI/CD, SAAS &amp; SASS (I mean really?!?!?!🤯🤬), parser, builder, injectable, lazy loading, monkey patching, duck typing, transpile, websockets, daemons, stubbing, fixtures, hooks, proxies, orbs, containers &amp; images, beans, type-casting, generics, race conditions, unit tests, integration tests, major, minor and patch. (Most of these have to do with security, testing, and learning Angular and Java.)</p><p>After working in a company for a year now, I have come to realize that you will never, ever know everything. If it isn’t a new tool or app to learn, there are new coding principles to learn all the time. If you speak one language, chances are, at some point, you need to learn another. Each language works differently because each language was written to solve specific problems. There are principles that are commonplace among many or most languages, but still, each language is different. Also, the languages are being updated all the time and tools around them are developing all the time. You will never know it all because all of it is changing so often. A boot camp can’t possibly teach all of it to you. The point is that they teach you enough to do some damage and to understand the most important principles that are mostly universal — in regards to Object-Oriented Programming — but that’s all that they can do. The rest you are learning on your own, or with a team, or with friends/like-minded individuals.</p><h3>6. Read <strong><em>The Phoenix Project</em></strong> or <em>The Unicorn Project</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*WzGRG--D-i79JiU9xAmo9g.png" /></figure><p>These are great books to read if you are entirely new to the industry like I was. These are <strong><em>NOVELS</em></strong> so they are fun and engaging stories about the industry inside imaginary companies. They are a great and fun read! What was great about these reads is that they help you know more about the actual day-to-day life inside of a software company. But what is great is they come from the perspective of how not to do things. In these books, you watch how these characters fix and then save the companies that they work for. You learn alongside them how a company <em>should</em> work and how software developers <em>should</em> develop. It helped give me perspective about how things started and why things are the way that they are and I could not help but compare my own company with it and appreciate the things it was or was not doing by reading these books. I also greatly appreciated what I needed to do as a Software Developer in Test because, especially <strong><em>The Unicorn Project</em></strong>, it has some great stuff about how <em>that</em> job, in particular, <em>should</em> be done to be the most effective and helpful in a company. I learned so much from these books and newbies should read them too! I’m being dead serious!</p><h3>Closing Thoughts</h3><p>For me, the new normal was so radically different from my old normal that it took me some months to settle into my new role. Not just getting onboarded into the code base but new work expectations too. I never worked at a place where you were allowed to have a life and time to research and learning a thing was worked into the schedule of a project. In my previous life, there was a pressure to lie about what you knew. You never admitted to not knowing something. You never said, “I don’t know. Let me go find out.” You just said, “Yeah I can do that” and then you spent the next how-many-hours-you-had-before-doing-the-thing researching, in secret, before show-time. It wasn’t ever said out loud, but it was heavily implied that you lied your way to the top. You never let anyone know what you didn’t know. You had to look like you knew the answer all the time. Because in the end, these companies didn’t hire you to learn the thing. They hired you to do the thing, which you should know before showing up. Learning, researching, experimenting — that’s done on your own time. They aren’t paying for that. Besides, most of the deadlines that you are working with don’t allow for enough time to experiment anyway, so what’s the point!</p><p>Now not all people working in the digital arts have the same experience as I do. Some people get hired by studios that negotiate deadlines, money, schedules, expectations, and rights. As for me, I worked mostly for small companies as an all-in-one shop and I worked doing their social media campaigns. Being so inexperienced, I didn’t know how to negotiate, do contracts, or set reasonable expectations. But the most frustrating thing about all of this is that people didn’t want to pay me for my work. Too many people saw my work as being easily replaced by their teenage kid, or (to my extreme annoyance) a company would hire an intern with no video or photographic experience and then ask them to learn on the fly because hiring a digital media student that knew how to do all of that already was too expensive. I too often found myself overqualified for the job that people didn’t want to pay me for. And the hustle to find new clientele was enough to be its own separate job that I didn’t have the energy for.</p><p>So from this life, I started a new life, with the most stable work/life balance that I ever had and got paid good money to do it too. I wasn’t replaceable anymore.</p><p>But with that said, I had PTSD from those days that I brought with me into this new life. I had days to work on something, which I was not used to. My first assignment was to research for as long as I needed a new tool that the company wanted to try out. I was so overwhelmed with all the new things in general that I felt like I didn’t do anything for the first month and I was constantly terrified that I was going to get fired. The second month wasn’t that much more productive either, but my manager kept assuring me that I was doing fine. “But that can’t be true”, I thought. I was too slow! I had a task that they needed me to do some research on and then fix. I did my research on it. I concluded that it wasn’t possible to fix going the route that we were going; a senior engineer looked at it and found a solution to it in minutes! A half-hour later I found myself crying in front of my boss. I felt like crap. Like a huge pile of crap. I thought for sure that I wouldn’t last long here. But I never was fired. I never got yelled at. They told me I was doing good work and that I was fine. Those first 6 months were the hardest for me and I still can’t say how grateful I am to have found a company that values the work I am doing even more than I am. With time I have come to understand a lot more about how everything works with each other. How smaller pieces fit in with the bigger pieces and how the company works itself. I’ve even learned, little by little, more of what the industry is like outside of the headlines, tv shows, or movies that I had been exposed to before.</p><h3>The Real Conclusion</h3><p>Software Development is all about research, experimenting, and learning. That will never go away and will never stop. It will become the defining part of your life. Even when I felt like the crappiest developer in the whole world, I still taught new things to senior developers without really meaning too. No one knows everything. No one. The most brilliant engineers here at my company who are doing things that no one else is doing in security, still get really shaken having to speak in front of others because they are nervous of looking stupid.</p><p>Don’t get frustrated! Don’t give up! Keep going and learn all that you can. You can do this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6368bd7033df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous and Synchronous Code in Javascript Explained]]></title>
            <link>https://sydneybmunizaga.medium.com/asynchronous-and-synchronous-code-in-javascript-explained-95dd5e44f307?source=rss-9ece90cd5615------2</link>
            <guid isPermaLink="false">https://medium.com/p/95dd5e44f307</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sydney Munizaga]]></dc:creator>
            <pubDate>Thu, 13 Sep 2018 15:00:50 GMT</pubDate>
            <atom:updated>2018-10-30T15:14:13.857Z</atom:updated>
            <content:encoded><![CDATA[<p>I had a hard time at first understanding what people were trying to explain to me when learning this subject, but I eventually was able to wrap my mind around it with the help of YouTubers and instructors and good old-fashioned drawing it out by hand.</p><p>Now let&#39;s get started!!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FYX630KYgbPi0zbsoL2%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FRosannaPansino-funny-lol-YX630KYgbPi0zbsoL2&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FYX630KYgbPi0zbsoL2%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/3774167bba5631645100cc7401e11d25/href">https://medium.com/media/3774167bba5631645100cc7401e11d25/href</a></iframe><p>Okay so what I have come to understand at the most basic, <em>basic </em>level of what asynchronous vs. synchronous code is as follows:</p><p><strong>Synchronous code is code we do now.</strong></p><p><strong>Asynchronous code is code we do later.</strong></p><p>Code that automatically makes a task asynchronous are:</p><pre>setInterval functions, setTimeout functions, EventListeners, and callback functions</pre><p><em>These are just a few, but the most common.</em></p><p>Now imagine that as your computer looks through your lines of code, it asks your code one question: <strong>Do you want me to do this now or later?</strong></p><p>As it asks that questions it creates two different lists of tasks to run. A now list, and a later list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8Z6HP6WN78P2M2i5RH3QA.png" /></figure><p>And after the lists are done being created — THEN it goes through and executes the tasks themselves starting with the <strong>NOW</strong> list.</p><p>When it gets to the <strong>NOW</strong> list it goes in order. It will invoke the first function, then the second, then the third, on down the line for as far as the list goes.</p><p>When it gets to the <strong>LATER</strong> list, things are a little different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yunBEF5yDWNLVbshe9ngjw.png" /></figure><p>Asynchronous code runs all of the code at <em>pretty much</em> the same time. All of the code is running at the same speed too. In this example — what determines who finishes first is NOT THE ORDER OF THE CODE but <strong><em>how long it takes for the code to run.</em></strong></p><p>To further drive this point home, let me use an analogy of runners in a race. Imagine that <strong><em>all</em></strong> and I mean <strong><em>ALL</em></strong> of the <strong>LATER</strong> functions are Usain Bolt.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxT0BKAB7vMb10rfnvG%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxT0BKAB7vMb10rfnvG%2Fgiphy-downsized.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxT0BKAB7vMb10rfnvG%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/836baef6e3422fa272695561adc99602/href">https://medium.com/media/836baef6e3422fa272695561adc99602/href</a></iframe><p>This is not where Usain Bolt is function one and some other regular guy is another function and so one for all the rest of the functions. <strong><em>ALL OF THE LATER FUNCTIONS ARE USAIN BOLT. Meaning that the speed of each function is running at the SAME SPEED. </em></strong>The difference as to which one ends has to do with how long you are telling the function to run.</p><p>All of these setTimeout functions are set to timers. The first is set to go off in 3 seconds, the second set to go off in 8 seconds and the third is set to go off in 5 seconds. The computer <strong>does not go</strong> — Execute function 1, then function 2, then function 3. It goes — <strong>whoever finishes first wins</strong>, <em>no matter the order</em>!</p><p>So who wins has to do with where you placed the finish line!</p><p>Another way of showing the difference between synchronous code and asynchronous code I found here at phpmind.com, which I also think is a great way of explaining the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*6YjH0YEvGBxhdOHb3FRfqQ.png" /></figure><p>Don’t forget — the order of the Asynchronous code that will be executed, according to this diagram is Function 2, then Function 4, then Function 3, then Function 1.</p><p><strong>Another website that slows down the process of your code is this one here: </strong><a href="http://latentflip.com/loupe/?code=CiAgICBjb25zb2xlLmxvZygxKTsgCiAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uIHNlY29uZHM4KCl7Y29uc29sZS5sb2coMil9LCA4MDAwKTsgCiAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uIHNlY29uZHMxKCl7Y29uc29sZS5sb2coMyl9LCAxMDAwKTsgCiAgICBjb25zb2xlLmxvZyg0KTs%3D!!!PGJ1dHRvbj5DbGljayBtZSE8L2J1dHRvbj4%3D">http://latentflip.com/loupe/?code=CiAgICBjb25zb2xlLmxvZygxKTsgCiAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uIHNlY29uZHM4KCl7Y29uc29sZS5sb2coMil9LCA4MDAwKTsgCiAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uIHNlY29uZHMxKCl7Y29uc29sZS5sb2coMyl9LCAxMDAwKTsgCiAgICBjb25zb2xlLmxvZyg0KTs%3D!!!PGJ1dHRvbj5DbGljayBtZSE8L2J1dHRvbj4%3D</a></p><p>When you go to the link above, there will automatically be a video that will explain the concepts that I have already expounded on above, but <em>here</em> you can put your own code in and see <strong><em>slowed down</em></strong> what is happening to your code.</p><p>I hope this helped someone. If anything it helped me. Good luck coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95dd5e44f307" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Semantic UI with HTML ‘form_for’ forms]]></title>
            <link>https://sydneybmunizaga.medium.com/using-semantic-ui-with-html-form-for-forms-2e1573d00fcf?source=rss-9ece90cd5615------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1573d00fcf</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Sydney Munizaga]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 01:11:10 GMT</pubDate>
            <atom:updated>2018-08-10T20:17:53.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Maybe I’m bad a searching the internet but there was<em> terrible</em> advice out there as to how to use <strong>Semantic UI</strong> with <strong>HTML ‘form_for’ forms</strong> and so I decided to explain it with the help of my friends here at Flatiron School (a.k.a. my instructor Hillary, who had to explain it to me) and now I’m paying it forward and explaining it to you.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oEduO4hD4KjTLlj2g%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fawkward-youre-welcome-sadie-3oEduO4hD4KjTLlj2g&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oEduO4hD4KjTLlj2g%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="197" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee757acee8323f66a47b80d355db2cde/href">https://medium.com/media/ee757acee8323f66a47b80d355db2cde/href</a></iframe><p><strong>DISCLAIMER:</strong> This is assuming that you <strong>ALREADY</strong> know what a form_for is and how to make it. This is article is <em>not</em> gonna explain what the form_for is and how it works. <strong>This is about getting Semantic UI to <em>work with it</em>.</strong></p><p><strong>Semantic UI is front-end development framework </strong>— which means that it makes your super ugly default html pages look <strong>AMAZE BALLS</strong>!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Finyqrgp9o3NUA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmrw-account-panties-inyqrgp9o3NUA&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Finyqrgp9o3NUA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac257ddc0543794522275d8e7c7ae4c5/href">https://medium.com/media/ac257ddc0543794522275d8e7c7ae4c5/href</a></iframe><p>So when dealing with a HTML ‘form_for’ forms your code will look something like this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdJJUUhHh02Wgdil82z09A.png" /></figure><p><em>I was trying to create a form that would add an animal to a shelter for adoption and I will be using this as an example.</em></p><p>Right now the form looks like this on your browser…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*fyeMg3uepydUyJUqm3AkzA.png" /></figure><p>You want something that will eventually look like this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8EbRHQY9iTGBKYpXfvO3Q.png" /></figure><p><strong>BEAUTIFUL!!!!!</strong></p><p>This is how you do it.</p><p>First you will need to add some code to either your HTML file directly or your <strong>application.html.erb</strong> file that is in your <strong>‘layout’ folder</strong> inside of your <strong>‘views’ folder.</strong></p><p>You will copy and paste this above your &lt;style&gt; stuff:</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;<a href="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.3/dist/semantic.min.css">https://cdn.jsdelivr.net/npm/semantic-ui@2.3.3/dist/semantic.min.css</a>&quot;&gt;<br>    &lt;script src=&quot;<a href="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.3/dist/semantic.min.js">https://cdn.jsdelivr.net/npm/semantic-ui@2.3.3/dist/semantic.min.js</a>&quot;&gt;&lt;/script&gt;</pre><p>Next, you will have to go to the Semantic UI website to look at what it is that you will need from Semantic UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83tnGiOPwfHmEQnVP6l4Dg.png" /></figure><p>You will then <strong>click</strong> on the ‘Menu’ button in the top left hand side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*cv9yQ0qduUjf4gzU13JZbQ.png" /></figure><p>After you click on it you will see a drop down menu with loads of options for you to pick from.</p><p>You will need to scroll down until you see the ‘<strong>Form</strong>’ option on the left side — somewhat farther down than what I have showing here in the pic.</p><p>After you click on the ‘<strong>Form</strong>’ link, you will be sent to a page that has several options for different form types.</p><p>Here I picked the ‘<strong>Shipping</strong>’ example because that form is closest to the raw skeleton that I want for my form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y79qB6SSjQMRan8yqpLsUw.png" /></figure><p>Click on the ‘<strong>&lt;&gt;</strong>’ button in the top right hand side and code that you will need to use will show up underneath the form example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGXdlwVcBoVmbH7ripkwEw.png" /></figure><p>^^^ This is what you will need to get this to work. ^^^</p><p>But before you do anything this is how Semantic works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*6eJj9SnaYRq_Nq9_yY61_Q.png" /></figure><p>It breaks down each part of your form into these &lt;div&gt;’s. You will want a &lt;div = “wrapper”&gt; for your ENTIRE form and the rest of you &lt;div&gt;’s will be based on how many you want side by side to each other.</p><p>If you want one than you will write a &lt;div = “wrapper”&gt;, then &lt;div = “field”&gt; and then have another &lt;div = “field”&gt; inside of that, because Semantic demands it.</p><p>If you want two fields next to each other, side by side, then you will need to place two additional &lt;div = “field”&gt;’s inside of a &lt;div = “two fields”&gt;.</p><p>I can’t show you <em>all</em> of the code but this is what it will look like for the sections that you want side by side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JsFpK6s3-XL8Z2bzkd__gg.png" /></figure><p>And this is all that you need if you want a single field to take up the entire length of the form from side to side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*cJXFTfVO1LGwHK6e-E1xjA.png" /></figure><p>You will of course end all of your &lt;div&gt;s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8EbRHQY9iTGBKYpXfvO3Q.png" /></figure><p>So you see, that Name and Type are on the same line and the rest stretch from side to side.</p><p>That’s how you do it.</p><p>And the rest is more of the same…</p><p>I hope this helped! Keep at it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1573d00fcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ULTIMATE EXPLANATION of Ruby Relationships (Belongs To, Has Many, and Has Many Through)]]></title>
            <link>https://sydneybmunizaga.medium.com/ultimate-explanation-of-ruby-relationships-belongs-to-has-many-and-has-many-through-10d34b0d9a66?source=rss-9ece90cd5615------2</link>
            <guid isPermaLink="false">https://medium.com/p/10d34b0d9a66</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[relationships]]></category>
            <dc:creator><![CDATA[Sydney Munizaga]]></dc:creator>
            <pubDate>Thu, 19 Jul 2018 03:42:24 GMT</pubDate>
            <atom:updated>2018-10-30T16:10:56.924Z</atom:updated>
            <content:encoded><![CDATA[<p>There will be times in coding when you will want to link classes together. These relationships are supposed to mirror real life, because things don’t sit there after being made; all things interact with other things around them. A car is driven by a driver. A passenger gets a ride from the driver. Restaurants have customers, that buy meals and eat them. Artists write songs and listeners listen to those songs. Everything is linked to each other and code is designed to reflect those interactions and relationships.</p><p>Here is a diagram of relationships between customers, credit cards and banks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IB5r6kXrAKQ8h5ZoXT2O8w.png" /></figure><p>Here we have some made up customers (Ann, Hillary and Rob), with made up credit cards (Quick Silver, Sapphire, Savor, etc. — with ridiculous limits on them) and a list of some well-known banks (Capital One, Chase and Bank of America). The Credit Card section is called the ‘single source of truth’ because it is the section that will connect both the customers and the banks to each other. It will hold on to the <strong>objects</strong> of both the customers and the banks. <em>This will be important later.</em></p><p>We will be using these customers, credit cards and banks to illustrate at three relationships of <strong>BELONGS TO, HAS MANY</strong> and <strong>HAS MANY THROUGH</strong>.</p><p><strong>BELONGS TO</strong>: is a one-way relationship between two classes and the simplest to link to code.</p><p>In ‘real life’ terms ‘<strong>belongs to’</strong> is supposed to say that this thing <em>belongs to</em> this other thing. Songs <strong>belong to</strong> an artist. A meal <strong>belongs to</strong> a customer. A car <strong>belongs to</strong> a driver.</p><p>So here we will look at an example involving credit cards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNssd6R2r-xPZhEKFeIgng.png" /></figure><p><em>We will only be focusing on the customer/credit card relationship right now. We will ignore the bank part, but BOTH are ‘</em><strong><em>belongs to</em></strong><em>’ relationships.</em></p><p>A customer has a credit card. So in this example, we want the credit card to <strong>BELONG TO</strong> the customer. In this example, the customer just has a name upon initialization and the credit card has a name and a limit upon initialization. After that, we will need to add something that will create a <strong>LINK </strong>between the two classes. <em>That</em> code will be added to the CreditCard class, which is highlighted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EAuSah0MdhRmv6u98JaayQ.png" /></figure><p>We added a customer to the initialize and to the attr_accesor to finalize that link. So <strong>NOW</strong> whenever you create a credit card instance — there will be a <strong>customer</strong> attribute that will act as the link between the two. This makes it so that the CreditCard class holds onto an <strong><em>object</em></strong> <em>of a customer</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdmb2zhkCu-L3Om-ioM_Rg.png" /></figure><p>Now we want to make sure that the customer can have as many credit cards as the customer wants. So here we want a ‘<strong><em>has many’</em></strong> relationship.</p><p><strong>HAS MANY: </strong>is a way to make sure that not only does a class <strong><em>belongs to</em></strong><em> </em>another class, but that there is a way to show that it can <strong><em>have many</em></strong> of that class instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDgf4HqITk_ffwzcAChMGg.png" /></figure><p><strong>STEP 1:</strong> Now inside of the CreditCard class we have to be able to store a list or<em> </em><strong><em>array</em></strong><em> </em>of all of the credit cards that will ever be made and have the ability to see that list as well. So that is why we must create a class variable, which can be called anything, but for this example we will call it ‘<strong>@@all</strong>’. We also need to make sure that each time a credit card is made that it then gets ‘<strong><em>shoveled</em></strong>’ into it — which is where <strong>self</strong> comes in. And then we have a class method where we are able to call that list whenever we want to!</p><p>So that was the first step! The second step requires going into the Customer class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4tfQvsrerN7VgdYEByJWw.png" /></figure><p><strong>STEP 2:</strong> Now that we are in the Customer class, we need to <strong><em>call on</em></strong> the CreditCards class and then iterate into it to get to the credit cards. When we compare the ‘<strong>cc.customer</strong>’ to <strong>self</strong> (<em>that is supposed to have three equals and look like this ‘===’, sorry about that guys</em>) we are making sure that we are only getting the credit cards that correspond with the customer that we care about.</p><p>We don’t want <strong><em>ALL</em></strong> of the credit cards. Right now we just want <strong><em>Rob’s</em></strong> credit cards. So we compare the ‘cc.customer’ to <strong>self</strong> because if the customer is Rob then it will only bring us Rob’s credit cards — not Hillary’s or Ann’s.</p><p><em>That array would look something like this…loosely…just the idea of it…… These objects create long strings of random numbers and I didn’t want to focus on that — but on the concept of what I was trying to explain. This is not what real objects look like and I know that.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyn8M8xbgOpeQXEIzF8loQ.png" /></figure><p>Now this is not all. We have one more relationship to go. That is the <strong><em>has many through</em></strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmylwS7OLueX8_E8kuXLNw.png" /></figure><p><strong>HAS MANY THROUGH: </strong>This is when you wish to get information of one class from another by going through the ‘<strong>single source of truth</strong>’.</p><p>Life would be too easy if everything were just a series of back and forth relationships, but we both know that we only relate to a thing because of the existence of another thing. In this example, we have a relationship with a bank <strong><em>because</em></strong> of our credit cards. Therefore, we have a relationship with banks <strong><em>through</em> </strong>our credit cards. And because a customer can have many credit cards with multiple banks — then customers <strong><em>have many</em></strong> banks <strong><em>through</em></strong> credit cards!</p><p>I wish to deviate from this walk-through to use a real world analogy that I hope will help drive home the true concept of what is happening for a <strong>has many through relationship</strong>.</p><p>I come from a large family and most of my siblings do not live nearby and all of them have cars. When Thanksgiving or Christmas comes around we have had to get creative about how to handle all of the new cars in our small driveway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/0*4om_cU-bCwLpWoVU.jpg" /></figure><p>At our house we have a bowl where we keep all of the keys to everyone’s car. So if I need to move Jessica’s car, I do not need to go to her directly. I go to the bowl and move her car myself.</p><p>Now back to the credit card example. We aren’t <strong><em>actually GOING</em></strong> all the way over to banks to get the bank information. We are going to the credit card to get what information the credit card has on the banks, like the bowl in the kitchen. <strong><em>The credit cards are the middle man</em></strong>. Everything that we need from the banks are inside the credit card. We do not need to go any farther. In reality we are stopping at the credit card.</p><p><strong>Step 1:</strong> We must make sure that our initial ‘<strong>belongs to</strong>’ connection with banks is established with the CreditCard class to begin with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04HfvgopRQdo9jcN1fyu6Q.png" /></figure><p>Now that has been done we can then go back to the Customer class.</p><p>In this example we are looking for all the banks that customer <strong>Rob</strong> banks with, and not any other customer. <strong>We just want Rob’s banks.</strong></p><p>Now, from our previous set up from the <strong>HAS MANY</strong> relationship — we <strong><em>already</em></strong> have all of Rob’s credit cards. We just need to add one more step to get to <strong><em>just his banks</em></strong>.</p><h3>Do not forget that inside of the Credit Card object are the objects of other things, and in this case the Bank object lives inside of the Credit Card object.</h3><p><strong>Step 2:</strong> Here we can iterate<strong> <em>even further</em></strong> into the credit card array because the credit card array has the banks objects stored inside!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*Nz1KHFCnWAfyzshLNzQJ9g.png" /></figure><p>The ‘<strong>#get_banks</strong>’ method calls on the previous ‘<strong>#get_creditcards</strong>’ method in order to use the array that was previously made when retrieving the credit cards.</p><p>Now that we have the ‘<strong>get_ creditcards</strong>’ <strong>array</strong>, we iterate into <em>that </em>array <strong>one more</strong> <strong>time</strong>!</p><p>The array that we would then get back after our second iteration in the ‘<strong>get_banks</strong>’ method would <em>loosely</em> look like this…<em>and I mean loosely</em>…….<em>remember I know these aren’t real examples of objects.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*uJcoUNMPiNMMhZ3hvBqsPw.png" /></figure><p><strong>Mission accomplished!!!</strong> We got the banks objects of our customer Rob by going through the CreditCards class from the Customer class!</p><p>And notice, we barely even touched the Bank class. That is because we didn’t need to go that far. Everything we needed we got from the Credit Card, aka. the middle man.</p><p>And that’s how that is done!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10d34b0d9a66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>