<?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 Jack Tiong on Medium]]></title>
        <description><![CDATA[Stories by Jack Tiong on Medium]]></description>
        <link>https://medium.com/@jacktiong?source=rss-7180c8d93a38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hLs02D7y8kgMfQwW9cBsbA.jpeg</url>
            <title>Stories by Jack Tiong on Medium</title>
            <link>https://medium.com/@jacktiong?source=rss-7180c8d93a38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:58:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jacktiong/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[6 different ways to loop through an array in JavaScript (with examples)]]></title>
            <link>https://medium.com/byprogrammers/6-different-ways-to-loop-through-an-array-in-javascript-with-examples-10a65e604b8?source=rss-7180c8d93a38------2</link>
            <guid isPermaLink="false">https://medium.com/p/10a65e604b8</guid>
            <category><![CDATA[loop]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Jack Tiong]]></dc:creator>
            <pubDate>Sat, 19 Oct 2019 10:05:45 GMT</pubDate>
            <atom:updated>2019-10-19T10:05:45.990Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9H5rmyp3MgrcA8i1emsJPg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tine999?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tine Ivanič</a> on <a href="https://unsplash.com/s/photos/loop?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Handling an array of data is unavoidable and it’s very common when it comes to building any sort of application. In this article, I’m going to show you 6 different approaches to how you can loop through an array of data in Javascript together with examples so that you can relate and later apply it in your development.</p><h3>1. for Loop</h3><p>The basic for loop has the following syntax:</p><pre>for (initialization; condition; update statement) {<br>    // code block to be executed<br>}</pre><p>The for loop statement basically uses three expressions:</p><ul><li><strong>Initialization</strong> — to initialize the loop variable with a starting value and it will only be executed once</li><li><strong>Condition</strong> — defines when the loop will stop looping</li><li><strong>Update Statement</strong> — is executed every time after the code block within the loop has been executed. Normally it’s being used to increment the loop variable</li></ul><blockquote><strong>Note:</strong> <em>break</em> statement can be used to “jump out” of a <em>for</em> loop.</blockquote><p><strong>Example of using </strong>for<strong> loop:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad4d7a0752b35e07d4a8be3f0321ec2c/href">https://medium.com/media/ad4d7a0752b35e07d4a8be3f0321ec2c/href</a></iframe><h3>2. for/of Loop</h3><p>The for/of loop has the following syntax:</p><pre>for (<strong><em>variable</em></strong> of <strong><em>iterator</em></strong>) {<br>    // code block to be executed<br>}</pre><ul><li><strong>Iterator</strong> —refers to the array to be iterated</li><li><strong>Variable</strong> — The value of the next iteration (if any) will be assigned to the variable. Variable has to be declared with either const, let, or var to hold the value.</li></ul><blockquote><strong>Note:</strong> <em>break</em> statement can be used to “jump out” of a <em>for/of</em> loop.</blockquote><p><strong>Example of using </strong>for/of<strong> loop</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d2ba925d52cdbb2a1aa777e45e56593/href">https://medium.com/media/1d2ba925d52cdbb2a1aa777e45e56593/href</a></iframe><h3>3. forEach()</h3><p>The forEach() is an array’s method that uses a callback function to include any custom logic to the iteration. In other words, forEach() will execute the provided callback function once for each array element.</p><p>The forEach() method has the following syntax:</p><pre>array.forEach(<strong><em>callback</em></strong>(currentValue [, index [, array]])[, <strong><em>thisArg</em></strong>]);</pre><ul><li><strong>callback</strong> — refers to the callback function that takes up 3 arguments:<br>1. <strong><em>currentValue</em></strong> — the data/value of the current element<br>2. <strong><em>index (optional)</em></strong> —the array index of the current element<br>3. <strong><em>array (optional)</em></strong> —the entire array object</li><li><strong>thisArg (optional) — </strong>Value to be passed to the callback function which will be used as its this value.</li><li><strong>Return </strong>— undefined</li></ul><blockquote><strong>Note:</strong> There’s no way we can break a <em>forEach()</em> loop.</blockquote><p><strong>Example of using </strong>forEach()<strong> loop</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fb2cb1c1fc73c3042d346bec1d586bc/href">https://medium.com/media/2fb2cb1c1fc73c3042d346bec1d586bc/href</a></iframe><h3>4. while Loop</h3><p>The basic while loop has the following syntax:</p><pre>while (<strong><em>condition</em></strong>) {<br>    // code block to be executed<br>}</pre><ul><li><strong>condition — </strong>defines when the loop will stop looping</li></ul><blockquote><strong>Note:</strong> <em>break</em> statement can be used to “jump out” of a <em>while</em> loop.</blockquote><p><strong>Example of using </strong>while<strong> loop</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/151e005c27f76fb8ae28cc71865c6e79/href">https://medium.com/media/151e005c27f76fb8ae28cc71865c6e79/href</a></iframe><h3>5. do/while Loop</h3><p>The do/while loop is in fact very similar to while loop. The only difference is that do/while loop will be triggered at least once regardless of the condition.</p><p>The basic do/while loop has the following syntax:</p><pre>do {<br>    // code block to be executed<br>} while (<strong><em>condition</em></strong>)</pre><ul><li><strong>condition — </strong>defines when the loop will stop looping</li></ul><blockquote><strong>Note:</strong> <em>break</em> statement can be used to “jump out” of a <em>do/while</em> loop.</blockquote><p><strong>Example of using </strong>do/while<strong> loop</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b57ca2be207a16bbea86483427339835/href">https://medium.com/media/b57ca2be207a16bbea86483427339835/href</a></iframe><h3>6. map()</h3><p>At first glance, map() method is in fact very similar to forEach() method as it will also execute the provided callback function once for each array element. The only major difference is that map() method will create and return a new set of arrays based on the result of the callback function.</p><p>According to the documentation, one should use forEach() or for/of loop instead of map() method if <strong><em>you’re not using the newly created array it returns and/or you’re not returning a value in the callback function </em></strong>or else it will be considered as an anti-pattern.</p><p>The map() method has the following syntax:</p><pre><strong><em>var new_array</em></strong> = array.map(function <strong><em>callback</em></strong>(currentValue[, index[, array]]) {<br><strong><em>    // Return element for new_array</em></strong><br>}[, <strong><em>thisArg</em></strong>])</pre><ul><li><strong>callback</strong> — refers to the callback function that takes up 3 arguments:<br>1. <strong><em>currentValue</em></strong> — the data/value of the current element<br>2. <strong><em>index (optional)</em></strong> — the array index of the current element<br>3. <strong><em>array (optional)</em></strong> — the entire array object</li><li><strong>thisArg (optional) — </strong>Value to be passed to the callback function which will be used as its this value.</li><li><strong>Return </strong>— a new set of array based on the return result of the callback function</li></ul><blockquote><strong>Note:</strong> There’s no way we can break a map() <em>method.</em></blockquote><p><strong>Example of using </strong>map() <strong>method</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/293145531e9cbd6729b856a6f79f3e5d/href">https://medium.com/media/293145531e9cbd6729b856a6f79f3e5d/href</a></iframe><p>So there you have it, I have already listed down all the 6 different approaches (together with somewhat detailed explanation) on how you can loop through an array in JavaScript.</p><p>I hope that this article will be able to assist you in building your awesome applications!</p><h3>If you liked this article, you can also check out our latest posts:</h3><ul><li><a href="https://medium.com/byprogrammers/top-10-worst-nightmare-for-programmers-72730a0ee5b8">Top 10 Worst Nightmare For Programmers</a></li><li><a href="https://medium.com/byprogrammers/how-to-create-multiple-targets-in-xcode-bf922a1828de">How to create multiple targets in XCode?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10a65e604b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/byprogrammers/6-different-ways-to-loop-through-an-array-in-javascript-with-examples-10a65e604b8">6 different ways to loop through an array in JavaScript (with examples)</a> was originally published in <a href="https://medium.com/byprogrammers">byProgrammers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are you a decent Project Manager?]]></title>
            <link>https://medium.com/byprogrammers/are-you-a-decent-project-manager-52fd439df75a?source=rss-7180c8d93a38------2</link>
            <guid isPermaLink="false">https://medium.com/p/52fd439df75a</guid>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[management-and-leadership]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[project-manager]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Jack Tiong]]></dc:creator>
            <pubDate>Wed, 16 Oct 2019 16:54:22 GMT</pubDate>
            <atom:updated>2019-10-18T03:17:28.579Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l556EAT1fDUMw1YixRBOJQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">JESHOOTS.COM</a> on <a href="https://unsplash.com/s/photos/businessman?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote><strong>If you’re a Project Manager, please don’t be offended by this article as I’m just giving some ideas and suggestions in a very peaceful manner so that you will be able to understand our thoughts and perhaps you can make a point or two as a reference to be incorporated into your daily life.</strong></blockquote><p>In my humble opinion, project management is an art that can’t be taught and learn solely from books. It doesn’t matter how many PM certificates you have, it takes years of experience to reach a certain level of expertise. To put it simply, the life of a project manager can be tough and being a decent project manager isn’t all about managing projects and meeting deadlines, it’s also about managing the entire project team and bringing out the best in each individual.</p><p>Here’s a list of dos and don’ts that any decent project manager should adhere to which I have discussed with numerous programmers from different parts of the world to ensure that the content of this article is unbiased.</p><h3>1. Don’t check for update too frequently</h3><p>It’s fine to have a couple of short meetings depending on the project needs throughout the day for us to update our progress, but there’s no need to check for updates too frequently or to remind us the minute after a new issue is being logged. This is because it will certainly give us additional pressure to deal with which will later result in more harm than good.</p><p>We understand that the client might be putting a lot of pressure on the project manager. However, a decent project manager should be able to handle the client by providing them a temporary workaround solution so that we programmers can shift our focus entirely on getting the job done.</p><h3>2. Do understand the system thoroughly</h3><p>As a decent project manager, you should be able to understand the software that we built for our client thoroughly. We don’t expect you to understand every single detail but you should at least know how the software works overall. That way, you will not only be able to communicate more effectively with our clients but you can also help to reduce our burden to a certain degree especially when it comes to answering the client’s question.</p><h3>3. Don’t commit to a timeline without checking with the development team (doer)</h3><p>We understand that sometimes you have no choice due to client’s demand but do check with your developers whenever it’s possible upon committing to a timeline, or else, we might need to work overtime just to fulfill your promise which is really not cool and could be possibly avoided in the first place.</p><h3>4. Don’t play the blame game</h3><p>There are times when things don’t go as smooth. For example, when we can’t meet the deadline or when a project has failed to deliver. It doesn’t matter how bad the situation is, a project manager should never play the blame game as in pointing fingers because not only it doesn’t help, it might even worsens the situation. As a decent project manager, you should always maintain professionalism and focus on resolving the issue with your team instead.</p><h3>5. Do be more appreciative</h3><p>We are aware and prepared for the times where we might need to work twice as hard to catch up on a project timeline. However, for cases like this, a project manager should at least be thankful for the effort that we have put in and also the brain cells that we have tortured. There are a lot of ways to do this, it can be as simple as just saying thank you, it can be in the form of giving compliments or it would be even better if you can give us some credits after we have completed some certain tasks. Trust me, it means a lot to us.</p><h3>6: Motivate your team members</h3><p>Like I have mentioned earlier, a project manager shouldn’t only be able to manage a project but it is also necessary to influence and motivate others especially your team members from time to time. This is mainly because a poorly motivated team is one of the leading factors that will impact the overall team’s productivity which might lead to project failure even if you have the best project plan in place.</p><h3>Conclusion</h3><p>To sum up, project management can mainly be divided into 2 major categories which are to manage the project itself and also to manage the entire project team. For that reason, the project manager is indeed a very challenging role as it involves a wide range of different skillsets. However, if you managed to adhere to most of the points mentioned above, I’m pretty sure you can become a decent project manager in no time.</p><blockquote>“The key to successful leadership today is influence not authority.” ~ Kenneth Blanchard</blockquote><p><strong>P.S.: If you have more tips for project management, please feel free to drop a comment below.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52fd439df75a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/byprogrammers/are-you-a-decent-project-manager-52fd439df75a">Are you a decent Project Manager?</a> was originally published in <a href="https://medium.com/byprogrammers">byProgrammers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create multiple targets in XCode?]]></title>
            <link>https://medium.com/byprogrammers/how-to-create-multiple-targets-in-xcode-bf922a1828de?source=rss-7180c8d93a38------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf922a1828de</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[target]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Jack Tiong]]></dc:creator>
            <pubDate>Mon, 14 Oct 2019 11:16:32 GMT</pubDate>
            <atom:updated>2019-10-14T11:16:32.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvGVuXVvbbNlHh4OdfDMoA.png" /></figure><p>If you are currently working for a company as an iOS developer, chances are you might need to prepare your app to be run on different environments (e.g. Development, Testing, and Production). Different environments will usually run on a different set of data such as the initial setting data or more specifically the API URL might be different.</p><p>One of the best ways to handle this situation is to create multiple targets in your project.</p><h3>1. Duplicate Target</h3><p>Navigate to your .xcodeproj file, right-click on your target and select “Duplicate”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*hfUZNiw65K-aSRAJIYjiEA.png" /></figure><p>Once you’ve done that, you can see the new target has been created together with an associated Info.plist file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*LBcGK_TMqpSsAu2c_V6dtw.png" /></figure><h3>2. Change the names</h3><p>We will need to first rename the scheme by tapping on the “Manage Schemes…” option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*Lo2SbBTjTxa7p2S5948xtg.png" /></figure><p>Tap on the scheme name and change to a name that best represents your environment. In this case, I will just put “MultipleTargets_Dev” which basically means a target that’s meant for Development environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*agTZV1_RLPMZ-HujiGfDnQ.png" /></figure><p>Next, change the name of both the newly created Target and info.plist file to the same name as well which is “MultipleTargets_Dev” in this case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*zSX8W12le_ho9w0xvghTfw.png" /></figure><p>After you’ve changed the name of the info.plist file for the newly created Target, you need to also make sure that you have updated the “Info.plist File” property in the .xcodeproj file as shown below.</p><p><strong>Note: Make sure the new target is being selected (“MultipleTargets_Dev” in this case) upon changing the name for Info.plist file property</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbNM3RkUcxgmUX4BRNvYug.png" /></figure><h3>3. Add Compiler Flag</h3><p>Navigate to your .xcodeproj file, select the newly created Target (“MultipleTargets_Dev” in this case), select “Build Settings” and search for “other swift flags”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_EhPFjDF2IAxjXP6t2cnzg.png" /></figure><p>In the “Other Swift Flags” section, add the name that best represents this particular targets/environment. In this case, I’m going to set the name as “-DDEV”</p><p><strong>Note: It’s mandatory to include “-D” as a prefix for Custom / Swift Flags.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*531-VrbhOBOkbHXe7ZtRzA.png" /></figure><h3>4. Time to Code</h3><p>That’s it! All that’s left to do is to write the code based on the format below and you should be able to run certain codes depending on the selected scheme during run time.</p><p><strong>Note: There’s no need to include the prefix “-D” for the Custom / Swift Flag in the source code.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/03dc098c7679534a6e843d73504fc726/href">https://medium.com/media/03dc098c7679534a6e843d73504fc726/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf922a1828de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/byprogrammers/how-to-create-multiple-targets-in-xcode-bf922a1828de">How to create multiple targets in XCode?</a> was originally published in <a href="https://medium.com/byprogrammers">byProgrammers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Worst Nightmare For Programmers]]></title>
            <link>https://medium.com/byprogrammers/top-10-worst-nightmare-for-programmers-72730a0ee5b8?source=rss-7180c8d93a38------2</link>
            <guid isPermaLink="false">https://medium.com/p/72730a0ee5b8</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programmers-life]]></category>
            <category><![CDATA[nightmare]]></category>
            <dc:creator><![CDATA[Jack Tiong]]></dc:creator>
            <pubDate>Sun, 13 Oct 2019 09:39:15 GMT</pubDate>
            <atom:updated>2019-10-14T02:01:34.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*62rooBZ8Q9clTcvkkECvNg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@caleb_woods?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Caleb Woods</a> on <a href="https://unsplash.com/s/photos/afraid?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I’ve been in the software industry for more than 5 years. During these 5 years or so, I’ve worked for both big and small companies, did a couple of interesting stuff in between and of course I’ve been through a lot of nightmares as well. Because of that, I’ve compiled a list of my top 10 worst nightmares that I’ve experienced and been through myself over the years which I’m pretty sure most of you guys will agree as well.</p><h3>№10 — Project Handover</h3><p>There are definitely times where you will need to pick up a project that was being developed by someone else. This can be due to many reasons such as resignation, team restructuring and so on. The reason why project handover is so frightening is because you are about to maintain a project that you know nothing about, as in you don’t know how the software works, not sure if the documents are up to date, naming conventions might be different and the list goes on and on. From my experience, the worst project handover that I have ever had was totally no project handover at all as they literally expect me to stand on the front line fixing bugs and developing new features right after they gave me the access to their GitLab or source code.</p><h3>№9 — Bug appears at the worst possible time</h3><p>Imagine you have worked really hard with your team for the past couple of months and finally the app that you have been building is now ready to be presented to your client. You are super excited and everything went well until some nasty bugs decided to show up in the middle of the demo despite the fact that you have already tested the app for hundreds and thousands of times. I’m not sure why but it happens to me all the time and trust me the best thing you can do is to remain calm and inform your client that this is completely normal, everything is under control and you will look into it ASAP even if you totally have no idea what went wrong behind the scene.</p><h3>№8 — Critical bug that can’t be reproduced</h3><p>Normally before we can fix a bug, we need to be able to first replicate or reproduce the bug in another environment or what we called the test environment. It’s kind of like our Standard Operating Procedure (SOP). Chances are, you might not be able to trigger the bug and when that happens, there’s really nothing much you can do other than just keep trying on all sorts different possibilities hoping that you can get something meaningful in return. To spice things up a little bit more, you can try to picture yourself in a crime scene where you’re the detective and that nasty bug is the serial killer. It works for me :)</p><h3>№7 — Fix a bug causes a new bug</h3><p>This is definitely one of the many moments that you will question yourself why did I choose to become a programmer in the first place. Nothing is more frustrated than finding yourself to have more bugs to be fixed after you have deployed the fixes for the initial bug right before you call it a day. As far as I’m concerned, this usually happens when you are maintaining someone else’s work. Don’t get me wrong, it’s not because the code base is not up to par but because we just don’t know how different parts of the software are being connected which is why proper project handover is very important.</p><h3>№6 — Data loss without any backup</h3><p>This is definitely one of the worst nightmares I’ve ever had. Trust me, whenever I bring up this topic I got goosebump all over my body. I remember when I was working for a previous company (it was a huge company with over 300,000 employees worldwide), I was given a task to patch a couple of rows of records in the production database or what we called the production environment. It was a very easy task, nothing fancy. So I wrote a couple of update statements and I hit the execute button. Right after I did that, I noticed I’ve updated hundreds and thousands of records just because of some minor query mistakes. The entire table was messed up but I was very lucky that someone has made a backup of the database beforehand if not the consequences will be way too severe. Therefore, it doesn’t matter what sort of data it is, as long as it is important, please remember to keep a backup because it’s really better to be safe than sorry.</p><h3>№5 — The Library that you rely on has bugs</h3><p>To be honest, I don’t really feel comfortable to use libraries or plugins in my project because I prefer to have more control over the stuff that I am building especially when it comes to the UI related libraries. However, it doesn’t matter whether you like or not, we still need to rely on some certain libraries or plugins at some point in time. However, one of the downsides of utilizing a library is that it may come with some nasty bugs and when that happens, you can try to fix it yourself which tends to be quite difficult or you can log an issue and wait for the community to fix it for you. For that reason, my advice to you is that try not to rely too much on the library as it will definitely do more harm than good in the long run.</p><h3>№4 — Change of requirement</h3><p>“That’s not what we wanted” or “That’s not what we meant” are the phrases that you will hear a lot in the software industry, especially if you are a programmer. Imagine you’ve been working on a complicated feature day and night non-stop, you’ve put in a lot of effort, you’ve put in a lot of hard work and finally, you have completed the task within the given timeframe. However, when you show it to your clients with a big smile on your face, all you got in return is complaints from your clients for not being able to deliver the project based on their requirements (I know this is very disappointing). One way to get around with this is that you need to first make sure your clients understand what they want or what they expect the system to do for them before you proceed to the next phase. I’m pretty sure this will reduce the chances of changing the requirement to a certain extent.</p><h3>№3 — Back-to-back meetings</h3><p>Meeting is for sure one of the most crucial activities in a project lifecycle but it is also one of the worst because it can be very exhausting especially if you’re having a back-to-back meetings as you will need to pay attention at all times, giving solutions and basically everything is in a very fast pace. On top of that, we still need to jump right back to continue to write our code right after the meetings. Sometimes we might even need to work overtime just because we had way too many meetings.</p><h3>№2 — Couldn’t find the answer anywhere</h3><p>Have you ever promised your client that you will deliver certain stuff but then, later on, you realized you couldn’t find any solutions on the internet? If you did, I am pretty sure this is definitely one of the times where it will make your blood runs cold. Although we have a strong community that got our backs most of the time, there are still some certain topics that no one really talks about. Because of that, you need to do enough research first before you promise your client so that you won’t end up in an awkward situation as I did previously.</p><h3>№1 — Internet is down</h3><p>It doesn’t matter how many years of experience you have as a programmer, you can never deny the fact that we still need to rely on the internet every single day to do our work. I am the kind of developer that I can hardly remember the syntax as I am currently working on multiple different languages concurrently. Therefore, if the Internet is down, I most probably won’t be able to do anything until I can connect back to the internet.</p><h3>Conclusion</h3><p>To conclude, I have pretty much listed down all the nightmares that I have been through in the past 5 years working as a programmer and also some advice on how you can get around with it. Now it’s your turn to tell me what’s your worst nightmare as a programmer in the comment section and perhaps share some tips and tricks on how did you overcome them.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72730a0ee5b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/byprogrammers/top-10-worst-nightmare-for-programmers-72730a0ee5b8">Top 10 Worst Nightmare For Programmers</a> was originally published in <a href="https://medium.com/byprogrammers">byProgrammers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift: Switch between Storyboards]]></title>
            <link>https://medium.com/byprogrammers/swift-switch-between-storyboards-7034da37eff4?source=rss-7180c8d93a38------2</link>
            <guid isPermaLink="false">https://medium.com/p/7034da37eff4</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Jack Tiong]]></dc:creator>
            <pubDate>Tue, 25 Dec 2018 02:50:02 GMT</pubDate>
            <atom:updated>2018-12-25T02:50:02.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fc2fqHs9TICvpP0qoIUx9g.jpeg" /></figure><p>Assuming you’ve created a storyboard called “<strong>SettingControllerSB.storyboard</strong>“. Next, you will need to give the View Controller a name via <strong>“Storyboard ID”</strong> as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ckO7deXfpNlgs8HpVYtLrg.png" /><figcaption>SettingControllerSB.storyboard</figcaption></figure><p>Now you should be able to switch/navigate to the view controller (<strong>SettingController</strong>) in this storyboard (<strong>SettingControllerSB</strong>) via the code snippet below.</p><pre>let settingController = UIStoryboard(name: &quot;SettingControllerSB&quot;, bundle: nil).instantiateViewController(withIdentifier: &quot;Setting&quot;) as! SettingController<br><br>self.present(settingController, animated: true, completion: nil)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7034da37eff4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/byprogrammers/swift-switch-between-storyboards-7034da37eff4">Swift: Switch between Storyboards</a> was originally published in <a href="https://medium.com/byprogrammers">byProgrammers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>