<?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 chcepe on Medium]]></title>
        <description><![CDATA[Stories by chcepe on Medium]]></description>
        <link>https://medium.com/@chcepe?source=rss-11f4dc7da9c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vki4vb1njq3a0L_Ai1sSxQ.jpeg</url>
            <title>Stories by chcepe on Medium</title>
            <link>https://medium.com/@chcepe?source=rss-11f4dc7da9c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:45:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chcepe/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[10 things I learned in my first year working for a tech startup]]></title>
            <link>https://chcepe.medium.com/10-things-i-learned-in-my-first-year-working-for-a-tech-startup-d54a6aeb78d5?source=rss-11f4dc7da9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d54a6aeb78d5</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[prague]]></category>
            <category><![CDATA[startup-jobs]]></category>
            <category><![CDATA[tech-startups]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <dc:creator><![CDATA[chcepe]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 20:52:53 GMT</pubDate>
            <atom:updated>2020-12-14T11:35:03.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-dDIf5LIHpz6QpyzR2fVEA.jpeg" /><figcaption>Photo taken during Prague NodeSchool event hosted by <a href="https://medium.com/u/30d31da70486">OAK’S LAB</a></figcaption></figure><p>Last year, on July 8, 2019, I joined <a href="https://oakslab.com/">OAK’S LAB</a> — a tech startup based in Prague and San Francisco. It’s a well-known full-service digital development agency, specializing in product and project management, UX/UI design, and software engineering.</p><blockquote>A bit of my background: I am a 20-something-year-old software engineer, born and raised in the Philippines. I’ve been coding since 12, have worked on several side-projects, and have a 3 years of working experience in several multinational companies in Manila, Philippines. Right after finishing my bachelor’s in 2018, I started working on my first startup called <a href="https://www.google.com/search?q=Minerva+visually+impaired&amp;oq=Minerva+visually+impaired&amp;aqs=chrome..69i57j33.5624j0j7&amp;sourceid=chrome&amp;ie=UTF-8">Minerva</a>. Unfortunately, the execution of the project didn’t go well, so I tried to find scholarship opportunities in the EU to pursue my master’s degree. Again no luck, and I ended up accepting a job offer in Prague. Now I am living in this beautiful city.</blockquote><p>For many, startup is a buzzword. However, little by little, this type of company has been gaining more and more popularity among employees. It has won all kinds of minds — professionals fed up with traditional jobs in big corporations are engaging in this idea of ​​a disruptive space because it promises a different way of working.</p><p>Time flew incredibly fast, and it has been a very rewarding experience. I have never learned so much in such a short time. Today, I decided to reflect on some things I’ve learned over the past year.</p><p><strong>1. Surrounding yourself with professionals who are better than you can change you.</strong></p><p>On many occasions, you may feel like you’re professionally stagnant or you don’t grow at the pace you want. Perhaps, the most important thing I learned working for a startup is that surrounding yourself with professionals who are better than you makes you grow 10x faster.</p><p>One of the (many) reasons I’m grateful for working at OAK’s is that I’m surrounded by incredibly talented, diverse, and driven young professionals. They are the nicest, incredible, and simply the best people who give all their efforts to make our world a better place.</p><p>If you feel that you are confined at your work or lost interest in it, it is time to look for a new team and finally become the person you could never even imagine.</p><p><strong>2. If you work beyond your job description, it’s not bad, you’re learning along the way.</strong></p><p>As technologies are evolving, sometimes you feel overwhelmed and pressured by the necessity to learn and follow all the advancements to build new cool stuff, and this is how working for OAK’S helps me get up motivated every morning. In a startup, almost everyone is expected to work and collaborate on different projects, and it drives you to develop different sets of skills. It is an excellent opportunity to learn, accelerate, and acquire knowledge. You leave your comfort zone everyday because once you master and control something, a new challenge comes, and adaptation becomes a key aspect for both professional and personal development.</p><p><strong>3. It’s possible to work less, but do more.</strong></p><p>As I mentioned before, working in a startup helps you learn to take on more responsibilities, but, at the same time, it also gives you freedom and flexibility. Compared to working in a corporate job where you are strictly controlled, you generally don’t have your boss looking over your shoulder to track your work. You have the freedom to decide where, when, and what to work on. The only important thing is to do your tasks and do them well because the rest of the team depend on your work. Plus, you have more freedom when choosing your holidays or days off. Better to plan them ahead of time to avoid interference with your colleagues’ vacations.</p><p><strong>4. CEO, COO, CTO, and other more executives know how you work.</strong></p><p>It is difficult to stand out in a big corporation. There are so many departments that it is almost impossible to know every person who works there. Therefore, sometimes you don’t feel recognized or acknowledged. The same does not happen in a startup since it is generally a small and very cohesive team. This helps everyone know each other and what everybody does. Also, it is quite common to freely talk and work shoulder to shoulder with executives of the company.</p><p><strong>5. Team is everything.</strong></p><p>Since OAK’S LAB was established in 2016, we’ve expanded our team to over 70 people and together worked on 28 startups with a valuation of $700M.</p><p>Being a member of a developing and growing company, everything you do makes a difference and is reflected on the company’s products. The team you are working with is the main pillar to rely on and ensure that everything goes well. This carries a huge responsibility because everything you do helps contribute to the success or failure of the product. Each person is essential for the development of the company, if one fails, the rest suffer. You learn the difference between working in a department and working in a team. The best thing is that, unlike big and more traditional companies, your team becomes your family rather than co-workers over time. ❤️</p><p><strong>6. Measuring results is better than measuring hours.</strong></p><p>It seems quite common to measure the number of hours spent on a project than the amount of quality work being produced. It’s easier to track time, and time is easily understood and can be compared among various jobs.</p><p>Since I started working at OAK’S, I feel like I don’t only count the hours I’ve worked, but also measure how much quality work and results I’ve produced during that time. (I do recognize that it can be quite challenging to measure the amount of quality work, too).</p><p>If you could produce more quality work by working less hours, that’s great! I learned that after working beyond a certain number of hours, my productivity and quality of work drop and might even become negative — I make mistakes and have to redo the task again. I realized it is more useful to spend those extra hours resting or doing something else to recharge myself.</p><p><strong>7. It doesn’t feel like work if you love what you do.</strong></p><p>Working in a startup allows you to pick the things you’d like to learn, people you’d like to work with, and projects you’d like to work on. In most of the companies I worked for before, I never had this chance, so I stayed with them for a short time motivated just by money.</p><p>At OAK’S LAB, I discovered something different. Working on something that you really like makes your work 10x easier. Working on something that makes you feel excited and with people you admire makes your working experience incredible.</p><p><strong>8. Get used to stress because of constant innovation.</strong></p><p>Working in a startup is wonderful because you make things from scratch, but the same thing can also be an endless source of stress. At OAK’S LAB, we build <a href="https://en.wikipedia.org/wiki/Minimum_viable_product">MVP</a> applications for our stakeholders and later we improve their ideas more and more, and try new things afterwards. Constant innovation occurs because there is nothing done before. Everything has to be created, and this allows the members of the team to feel that they are really building something absolutely new.</p><p><strong>9. Startup culture creates fun at the workplace, and happy employees perform better.</strong></p><p>At OAK’S LAB, you get tons of clear information about their business. In most startups, the aim of the company is exposed, and you begin to feel the positive impact that the business generates for the world and society. Every member has individual goals aligned with the business purpose, we call them <a href="https://en.wikipedia.org/wiki/OKR">OKRs</a>. All achievements towards the company goals are celebrated and recognized. Parties, pizza nights, lots of food, and more parties. Celebrating results is a thing that startups value, which, in turn, generates engagement for those involved in the business.</p><p><strong>10. Regular check-ins are very helpful for personal and professional growth.</strong></p><p>Every three weeks, I have my 1-on-1 session with my team lead. Because we believe in bringing our whole self to work, we don’t only talk about work matters (including culture related discussions) in our 1-on-1’s, but often discuss our personal life too. Usually, I find this time to be the time when I grow the most on a personal and professional level.</p><p>Another reason I find 1-on-1’s very beneficial is that our company has created a very safe environment for us to share almost anything. When I face any challenges or difficulties at work or outside work, I feel comfortable to share these issues with my team leads and get their advice.</p><p>Working in a startup is not only an invaluable experience that helps you grow personally and professionally, it also gives you an opportunity to work with talented people from whom you always learn something new. I am not saying that working for a traditional company is wrong or it is not a comfortable environment to be, I only share my point of view after working in both. I feel that working in a startup is more fulfilling for a professional, and it is a new experience that I recommend you to have if you have the chance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d54a6aeb78d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An open letter to recent college graduates]]></title>
            <link>https://chcepe.medium.com/an-open-letter-to-recent-college-graduates-d91bfae2405f?source=rss-11f4dc7da9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d91bfae2405f</guid>
            <category><![CDATA[college]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[graduation]]></category>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[university]]></category>
            <dc:creator><![CDATA[chcepe]]></dc:creator>
            <pubDate>Thu, 27 Jun 2019 15:53:54 GMT</pubDate>
            <atom:updated>2019-06-28T07:12:55.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGft_aeszJhTQV1sPMzDWQ.jpeg" /><figcaption><a href="https://www.unpakt.com/blog/7-best-cities-for-young-college-grads/">https://www.unpakt.com/blog/7-best-cities-for-young-college-grads/</a></figcaption></figure><h3>Hey, congratulations!</h3><p>You spent a long four or five years in which you have shared great moments with other people. You have been through unforgettable experiences. You made friends that you will probably keep for the rest of your life. A whole host of moments that, without a doubt, have marked in your life.</p><p>You also had to go through some bittersweet circumstances during these years, such as those terrible exams and quizzes that you had to memorize; those boring internship tasks that you had to spend so many hours on and which unfortunately had little impact on your professional training; professors whose courses you had to catch up with and who made you think about the quality of schooling that cost you so much, and so on.</p><p>Not everything has been rosy.</p><p>But that’s all of your past already.</p><p>Now it’s time to start again.</p><p>Go back to that scenario when you turned 17 and made that decision to study this profession.</p><p>But now it’s not like before. These years have brought you to maturity and growth. You now have a different view of money and are very likely realized the difficulty of getting it today.</p><p>You may be staying at the house of your parents or have to come back, now that you have graduated from college, but then again, you are not the same person anymore. You are now independent.</p><p>You may not yet have a job or you don’t really know yet what to do in your life. You’re not alone in facing this experience, neither the confusion nor the feeling of depression nor even the delay in getting that dream profession.</p><p>You’ve now got something worth more than anything else. It’s <strong>F-R-E-E-D-O-M</strong>. The power to choose your path.</p><p>You’re now free.</p><p>This is your moment.</p><p>Do not be intimidated by social pressure or by your fears.</p><p>Create your own choices.</p><p>You did it four years ago when you chose to begin this journey that consumed you so much investment: sweat, money, and time. You completed high school and you were told by society that the immediate thing was to enroll in an in-demand profession in college, despite not being evident about your place in this life.</p><p>You might have decided right and you are now where you wanted to be, or maybe you might not be completely pleased with the results.</p><p>But that no longer matters.</p><p>Now you have to think about everything.</p><p>What’s the next step for you? The high unemployment rate and the pessimism that our society consumes are making things more torn apart.</p><p>Unless that Master’s Degree is the only way to accomplish your dream, do not enroll. Not today at least. Pause to reflect for a while before proceeding with the next phase of your career.</p><p>Your time is the most important thing, so try not to sell it to the first bidder.</p><p>You are now a man that is more mature and independent. It’s time to put the cards on the table, shuffle the various options and bet on the best one. Consider what your next step is going to be and make sure it is going to take you where you dream.</p><p>This is your moment, so do not waste it.</p><p>Take advantage of the end of this stage to relax, reflect and, above all, enjoy the most of each moment.</p><p>Just do not stop dreaming, and continue to make yourself eager to succeed, go for your dream and cheer for you in terms of success, and do not make anything stop you and hinder your insistence. Do not get carried away by the fear and insecurities of society and become the sole owner of your decisions.</p><p>After university life, it is time to put your fingerprints and make an impact in this life.<strong> </strong>Many lived for decades without being heard by their names, and some did not exceed 20 and have a resounding name in this world.</p><p>The greatest achievements began with an idea and with determination, and challenge turned into great achievements and changed the world. Look at the lives of the successful people and the simplicity of the ideas they started. You will know that you can achieve success. You will reach what you want and always remember that the most important reason for success is to convince you of your abilities and your determination to succeed. <em>Listen to yourself well and all the time that you are capable of success.</em></p><p>Without further ado, I want to congratulate you again for that long-awaited graduation. You finally made it!</p><p>Cheers,<br>Christian</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d91bfae2405f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Portfolio Challenge: From Flat UI to Gradients]]></title>
            <link>https://chcepe.medium.com/portfolio-challenge-from-flat-ui-to-gradients-7366ed83ac53?source=rss-11f4dc7da9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7366ed83ac53</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[semantic-ui]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[chcepe]]></dc:creator>
            <pubDate>Mon, 25 Feb 2019 15:03:13 GMT</pubDate>
            <atom:updated>2019-02-26T13:30:05.373Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgTVc-8IhuxfpDHzQgXX7Q.jpeg" /><figcaption>2016 vs 2019 Portfolio</figcaption></figure><p>Last week, I posted my first article here about my experience on using <a href="https://medium.com/@chcepe/i-used-next-js-semantic-ui-on-my-react-app-and-its-awesome-867e758fee57?">Next.JS + Semantic UI on React</a>. Today, I finished working on my latest online portfolio which is also made with these technologies.</p><p>It was 2012 when I created my first <a href="https://web.archive.org/web/20120223122856/http://chcepe.110mb.com/">online portfolio</a> — the same year when I studied HTML in my computer subject during high school. My first portfolio was just a plain website, it has a boring content — no CSS, no html font customization, no images, just paragraphs and headings.</p><p>After a year, a group of developers found my site and contacted me to help them develop their <a href="https://www.youtube.com/watch?v=zVMVxb4M_aM">Facebook Autolike</a> system which is an online tool that can increase likes on any public Facebook posts or even pages. It was the time when I started learning full-stack web development. After a while, I developed my <a href="https://www.youtube.com/watch?v=I1i0G5t0eJk">own Facebook Autolike website</a> which is made specifically for the students from my school. I became exposed in using HTML5, CSS, jQuery, PHP and Facebook Graph API.</p><p>Later on, together with my friend from Davao, we decided to establish a website called <a href="https://web.archive.org/web/20150705093207/http://funfunapps.com/">Wootrends</a>, a platform for quizzes and entertainment apps for Facebook. Our website was able to acquire an average of 1 million monthly active users in a year; got thousands likes on <a href="https://www.facebook.com/TheTrendingVideos/">Facebook</a> and achieved an average of 6 million monthly page views in our website.. Those were the days when earning US$1000+ per month is super easy. <a href="https://www.youtube.com/watch?v=XLeKkWY_VYE">Some of our apps</a> are even featured in the national TV. Unfortunately, after sometime, we had so many competitors and loss a large number of users. And so, eventually we closed the website.</p><p>But everything started from there.. I got client projects, learned new programming languages, created mobile-responsive sites, joined programming-related organizations, and finally redesigned my <a href="http://web.archive.org/web/20180807141845/http://chcepe.com/">online portfolio</a> which happened to be a Single Page Application (SPA).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Xiwgf8LfUcUlNVKXT7pykg.gif" /><figcaption>Back then, I was so inspired in the look of Microsoft’s Metro UI so I created the layout of my page together with <a href="https://metroui.org.ua/">Metro Flat UI CSS</a> and some CSS3 animations.</figcaption></figure><p>Developing this page wasn’t really hard as I made it with WordPress and MySQL. I used this portfolio for more than two years; its content is being updated from time to time, however, when I started working as a full-time, I never had a chance to edit it.</p><p>I remember one time when I was applying for a job, a recruiter told me that although I have great skills, the content of my portfolio isn’t enough for them to take my application move forward to their recruitment process. I get discouraged and later realized they’re right.. I guess I really have to update my “two-year” old portfolio.</p><p>And so I did!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*H_LlA2a_THc4bRuk2M1ojQ.gif" /></figure><p>I updated my projects and redesigned my portfolio using JavaScript and it’s worth it! From WordPress/jQuery to React, MySQL to NoSQL, and Metro Flat UI to Gradients!</p><p>Yes, this page can also be done in WordPress — but think it would be a headache for me to do so. I must say working in this SPA with JavaScript is more maintainable comparing to my old one which is developed using PHP and WordPress.</p><p>These tools and JavaScript frameworks made it possible:</p><ul><li><a href="http://uigradients.com/">uiGradients - Beautiful colored gradients</a></li><li><a href="https://github.com/zeit/next.js/">zeit/next.js</a></li><li><a href="https://github.com/negomi/react-burger-menu">GitHub - negomi/react-burger-menu: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations</a></li><li><a href="https://react.semantic-ui.com/">Introduction - Semantic UI React</a></li></ul><p>You can check my latest portfolio by visiting <a href="https://chcepe.github.io/">chcepe.github.io</a></p><p>If you want to know more about how I created this “new portfolio” of mine, please feel free to contact me using the links listed on my page. Thanks! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7366ed83ac53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing data with modern JavaScript: map, filter, reduce, find]]></title>
            <link>https://chcepe.medium.com/managing-data-with-modern-javascript-map-filter-reduce-find-6659a69c08d9?source=rss-11f4dc7da9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6659a69c08d9</guid>
            <category><![CDATA[ecmascript]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[chcepe]]></dc:creator>
            <pubDate>Wed, 20 Feb 2019 12:51:44 GMT</pubDate>
            <atom:updated>2019-05-06T06:07:46.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCTSrjA4HThSZKMTBtUkkw.png" /></figure><p>Knowledge about manipulating data in an array or object is very important if you’re working in a project that requires <a href="https://en.wikipedia.org/wiki/Create,_read,_update_and_delete">CRUD</a> functions, either with or without a database. Looking back on the days when modern JavaScript was not yet put into practice, it was so difficult to manage a data. Now, it’s super easy by using the built-in functions of ES6+.</p><p>Learning the modern JavaScript can be confusing if you don’t know what its history is and how its traditional syntax works. You might have seen the term “ECMAScript” somewhere else or heard about “Javascript ES6/7/8” and wondered what it actually means. I suggest if you’re a total beginner in JS and you’re curious about what these terms are for, you might consider reading <a href="https://medium.freecodecamp.org/whats-the-difference-between-javascript-and-ecmascript-cba48c73a2b5"><strong>What’s the difference between JavaScript and ECMAScript?</strong></a><strong> </strong>You are also encourage to brush up on the basics of JavaScript from <a href="http://javascript.info/#">here</a> and continue with this article when you’re all caught up.</p><h3><strong>.map()</strong></h3><p>Map function translate each item from an array into another form of array. Let me give an example. Say you have an array of numbers and you want to multiply every value of each item by 2.</p><pre>// Your array of numbers<br>let numbers = [12, 23, 8, 19, 10];</pre><p>Using the traditional way of writing a JavaScript code, you might create an empty array and use a loop to meet your goal.</p><pre>var numbers_m2 = [];<br>for (i = 0; i &lt; numbers.length; i++) {<br>  numbers_m2.push(numbers[i] * 2);<br>}<br>console.log(numbers_m2);</pre><p>However, with map function, your code will simply look like this:</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let numbers_m2 = numbers.map(function(number) {<br>  return number * 2;<br>});<br>console.log(numbers_m2);</pre><p>Did you notice how I eliminated the for loop? That’s because I stored the .map() to <em>numbers_m2 </em>which takes a function as its argument and runs that function on each item in the <em>numbers</em>. The function argument itself takes one argument which is the <em>current item</em> in the <em>numbers </em>— in the code above current item is <em>number</em>.</p><p>You can even make your code shorter by using an <a href="https://medium.freecodecamp.org/when-and-why-you-should-use-es6-arrow-functions-and-when-you-shouldnt-3d851d7f0b26">ES6 arrow function</a> which looks like this:</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let numbers_m2 = numbers.map(number =&gt; number * 2);<br>console.log(numbers_m2);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*P10HpjSWGqLOeu5gWR0qjQ.jpeg" /></figure><p>So how does .map() works? <strong>Map function returns a new array of equal length, containing <em>transformed </em>items.</strong> That is to say, the new array isn’t just a copy of the original array.</p><h3><strong>.filter()</strong></h3><p>Using also the array of numbers example above, what if you only want to get the numbers that is less than or equal to 15? That’s what filter function is for! <strong>It is used to remove unwanted items in an array. </strong>It returns a new array, but with fewer items than found in the original array.</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let numbers_less_15 = numbers.filter(function(number) {<br>  return number &lt;= 15;<br>});<br>console.log(numbers_less_15);</pre><p>Using ES6 arrow function:</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let numbers_less_15 = numbers.filter(number =&gt; number &lt;= 15);<br>console.log(numbers_less_15);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*fXIsi4BqUMPm0FqDqwULOg.jpeg" /></figure><p>In in other words, .filter() is basically just like a loop with an if-statement inside: only items that meet the if-condition can make it to the new array.</p><h3><strong>.reduce()</strong></h3><p>Reduce is quite difficult to understand but it’s simply just used to summarize an array into a single value, which can be of any datatype: number, string or even array. It’s like map and filter as it also takes a function as its argument and runs that function on each element, however, reduce needs at least two arguments in its call back function which is an <strong>accumulator </strong>and the <strong>current item in the array</strong>. An accumulator basically accumulates all of the callbacks’ returned values.</p><p>I’m guessing you’re confused. Just keep in mind that with reduce function, you only get one value returned, and it doesn’t need to be an array — it is frequently a number, since .reduce() is good for adding stuff up.</p><p>For example, you want to get the sum of our array of numbers above. If you’re coding with an old traditional way writing JS, you might write a code that is similar to this:</p><pre>var numbers = [12, 23, 8, 19, 10];<br>var total = 0;<br>for (i = 0; i &lt; numbers.length; i++) {<br> total += numbers[i];<br>}<br>console.log(total);</pre><p>With reduce function, your 6 six lines of code will only be 3. ;)</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let total = numbers.reduce((acc, cur) =&gt; acc + cur);<br>console.log(total);</pre><p>The code above iterates numbers with .reduce(), getting the sum of its items by storing it in <em>total</em>. To make it easier to read, we’ll keep the function curly brackets and return the sum of accumulator and the value of current item.</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let total = numbers.reduce(function(acc, cur) {<br>  return acc + cur;<br>});<br>console.log(total);</pre><p>The <em>acc </em>parameter is the variable that holds the accumulating total while <em>cur </em>is the current array item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*lK9ZpdwyfpnsUnLPyaMgDA.jpeg" /></figure><p>So how does .reduce() works? Reduce function basically combine several items from an array through some calculation which later will generate a single value.</p><h3><strong>.find() &amp; .findIndex()</strong></h3><p>Find function is very similar to .filter() and findIndex function is somehow like .reduce(), the difference is<strong> .find() returns only the item’s value while .findIndex() only returns the item’s index of the first element in the array that satisfies the provided condition</strong>, otherwise undefined or -1 is returned.</p><p>Say you want to get both value and index of an item in the array of numbers above with a condition number &gt;= 9 and number &lt;= 11. The way how you can do that with ES6 is:</p><pre>let numbers = [12, 23, 8, 19, 10];<br>let index = numbers.findIndex(number =&gt; number &gt;= 9 &amp;&amp; number &lt;= 11);<br>let val = numbers.find(number =&gt; number &gt;= 9 &amp;&amp; number &lt;= 11);<br>console.log(`${index} = ${val}`); // 4 = 10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*tKcsuf3hz5bcpib30cjHnQ.jpeg" /></figure><p>Both of these functions can be useful in cases where you need modify your array by Creating, Updating, Deleting, and Moving some elements and you want to keep the order of your initial array.</p><h3>Summary</h3><p>Modern JavaScript has introduced a bunch of syntax improvements.</p><ul><li>Map evokes a function on every item in an array and it can return anything. It can have something to do in the current item’s value either do a mathematical equation or concatenation.</li><li>Filter has a condition and only the items on which the condition returns true will be pushed to a new set of array.</li><li>Reduce has an accumulator and a current value and you can do something with these two parameters like add them together to combine all the values in the array which then results to a one big single value.</li><li>Find and findIndex is both used to find the first element that matches a condition.</li></ul><p>Using these built-in functions of ES5/ES6+ can help you work with complex data structure easily and develop your programs effortlessly without having lots of codes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6659a69c08d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I used Next.js + Semantic UI on my React App and it’s awesome!]]></title>
            <link>https://chcepe.medium.com/i-used-next-js-semantic-ui-on-my-react-app-and-its-awesome-867e758fee57?source=rss-11f4dc7da9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/867e758fee57</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[chcepe]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 12:49:25 GMT</pubDate>
            <atom:updated>2019-02-18T15:31:52.902Z</atom:updated>
            <content:encoded><![CDATA[<p>Whenever we start doing a web project we always think of what framework should we use to create a good-looking elements for our website. Each framework has its own pros and cons, allowing you to choose based on the needs of your project. For example, if your project is simple, then there’s no need to use a complex framework.</p><p>Most developers preferred on using popular UI frameworks such as <a href="https://getbootstrap.com/">Bootstrap</a>, <a href="https://foundation.zurb.com/">Foundation</a>, and <a href="https://material-ui.com/">Material UI</a>, however, others, including myself thinks that these frameworks are too overrated and many sites that are using these frameworks end up having a very similar look and feel. I personally like building my projects before with Bootstrap + jQuery, but lately I realized that part of me as a developer has grown tired of seeing sites using Bootstrap in its raw form — in a way, I feel it limits creativity.</p><h3><strong>Discovering Next.js</strong></h3><p>I used to be a developer who uses native PHP and HTML5 together with Bootstrap, CSS3, and jQuery to build full-stack and single page applications (SPAs). Two years ago, I decided to learn how to use <a href="https://reactjs.org/">React</a> and started experimenting with different frameworks to test its UI and UX capabilities. React was too confusing for me, I spent more than a month trying to solve rendering and configuration problems… And for that reason, I became impatient, so I started looking for an easy-to-use boilerplate for React. Eventually, I found what I was looking for. It’s a framework called <a href="https://nextjs.org/learn/">Next.js</a>.</p><p>As documentation says:</p><blockquote>Next.js a minimalistic framework for server-rendered React applications.</blockquote><blockquote>Think about how web apps are created with PHP. You create some files, write PHP code, then simply deploy it. You don’t have to worry about routing much, and the app is rendered on the server by default. That’s exactly what Next.js do. Instead of PHP, you will build your app with JavaScript and React.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4WytZLPdbUkBTYFKkrxNdQ.gif" /><figcaption>Some codes written in React with Next JS</figcaption></figure><p>Here are some cool features Next.js brings to the table taken from <a href="http://learnnextjs.com/">learnnextjs.com</a>:</p><ul><li>Server-rendered by default</li><li>Automatic code splitting for faster page loads</li><li>Simple client-side routing (page based)</li><li>Webpack-based dev environment which supports Hot Module Replacement (HMR)</li><li>Able to implement with Express or any other Node.js HTTP server</li><li>Customizable with your own Babel and Webpack configurations</li></ul><p>I believe anyone who has used this framework will tell you how easy it is to get started in building a react app with Next.js. You can have your react app running without configuring webpack, babel, and other tools and speed up your development workflow.</p><h3><strong>Playing around with Semantic UI for React</strong></h3><p>Another technology I discover while doing a react app was a UI framework called <a href="https://react.semantic-ui.com/">Semantic UI</a>. Just like Bootstrap and other popular frameworks, it’s also open-source and is already used in multiple large-scale production environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyYRL1miPHhRKQbAf4WPBQ.png" /><figcaption>Sample code of a Modal using Semantic UI</figcaption></figure><p>I already heard about this framework even before, but I was only able to use it when I started developing apps with React. One of the advantages of Semantic UI is it has a lot of UI components to offer. In just few lines of code, you can create beautiful and modern-looking elements just like Cards, Accordions, Modals, and other more that can benefit to the content of your website. Of course, you are free to modify some of its CSS properties if you need to. Also, what I like the most about this framework is it uses five descriptive categories to define re-usable UI components:</p><ol><li>A <strong>UI Element</strong> is a basic building block. It can appear alone or in uniform groups. For example, a button can be independent or put in a button group.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*j1HUFHws3CPz7dHRsfH-CA.gif" /><figcaption>Buttons can animate to show additional or hidden content.</figcaption></figure><p>2. A <strong>UI Collection</strong> is a group of different kinds of elements that are interdependent. For example, a web form can have buttons, inputs, checkboxes, icons, and so forth</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*_r7NexMCAqfSY73eO8Ys6g.gif" /><figcaption>A form on a dark background may have to invert its color scheme.</figcaption></figure><p>3. A <strong>UI View</strong> represents a common piece of website content. For example, a feed or comments section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*-49bTpv3yiYnKkAJBfc_hg.gif" /><figcaption>A basic list of comments</figcaption></figure><p>4. A <strong>UI Module</strong> is a component with interactive JavaScript-based functionality. Examples include an accordion, dimmer, modal, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*jt0NsCEjSmcrBDsgBVToFQ.gif" /><figcaption>A standard Accordion</figcaption></figure><p>5. A <strong>UI Behavior</strong> is a component that can’t exist independently, but instead is used to inject functionality into other components. For example, the Form Validation behavior provide validation functionality for the Form component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*i38OsPEcGBoxxVviKeX8Bg.png" /><figcaption>If a form is in an error state, it will automatically show any error message blocks</figcaption></figure><h3><strong>Working and Deploying a React app with Next.js and Semantic UI</strong></h3><p>This project that I built was developed just in less than two weeks while I was in the <a href="https://www.quora.com/What-is-the-bench-period-at-Accenture">bench</a>. I finished this SPA together with my colleague who I also helped to develop a chatbot using <a href="https://dev.botframework.com/">Microsoft’s Bot Framework</a>. The project is made for their team who are conducting internal workshops about AI-related stuff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Qr3m06ZE_DCL3EW6T5LwNw.gif" /><figcaption>Landing page built with fullPage.js</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nQkCjA0QOet2MhNu5ml2Rw.gif" /><figcaption>Learning Materials page built with Semantic UI Accordion</figcaption></figure><p>Setting up of this project was made with <a href="https://github.com/segmentio/create-next-app"><em>create-next-app</em></a> boilerplate and deployed on <a href="https://azure.microsoft.com/en-us/services/app-service/web/">Azure IISNode</a> Web Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JiOR6xSSW5EhdurXJWF21A.png" /><figcaption>Necessary files deployed on Azure</figcaption></figure><p>One of the challenges while working in this project is playing around with CSS3 animations as well as with <a href="https://github.com/react-spring/react-spring">Spring</a>. I would say creating fancy and smooth animations is harder than creating the whole website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XT82yqyeCc2TRlMZJC3xYA.gif" /><figcaption>Screenshot of Phoebe — the chatbot</figcaption></figure><p>Another challenge is the deployment of React app that is made with Next.js on Azure. It took me some time to be able to deploy it successfully. So, if you have a Next.js project and you’re planning to host it on Azure, you can use my created script below which compresses necessary files on your project. After the script is being executed, you can upload this compressed file and extract it on your web app server to start the deployment of your project in the cloud.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d698b0cb694c1ab83b240ec68557ccd6/href">https://medium.com/media/d698b0cb694c1ab83b240ec68557ccd6/href</a></iframe><p>Overall, my experience in working with Next.js and Semantic UI is very fulfilling. Both of these frameworks are very well documented, and their websites provides many examples for each component. All of this makes learning the framework a pain-free experience. So, if you’re new to React or planning to use it on your future project, the best way to learn it is to get started with Next.js and then later on, you can proceed on building your components with Semantic UI or your preferred UI framework.</p><p>Additional Resources</p><ul><li><a href="https://github.com/zeit/next.js">Next.js Repo</a></li><li><a href="https://learnnextjs.com/">Learn Next.js</a></li><li><a href="https://react.semantic-ui.com/">Semantic UI</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=867e758fee57" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>