<?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 Project Kenneth on Medium]]></title>
        <description><![CDATA[Stories by Project Kenneth on Medium]]></description>
        <link>https://medium.com/@projectkenneth?source=rss-ab504b6b6f19------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UVe2hX64dtWNAo0xA_gzzQ.jpeg</url>
            <title>Stories by Project Kenneth on Medium</title>
            <link>https://medium.com/@projectkenneth?source=rss-ab504b6b6f19------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:55:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@projectkenneth/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[A Topic-centric Approach To Organizing Content using Notion]]></title>
            <link>https://projectkenneth.medium.com/a-topic-centric-approach-to-organizing-content-using-notion-4b0826e67d8a?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0826e67d8a</guid>
            <category><![CDATA[notion]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[content-strategy]]></category>
            <category><![CDATA[content-creation]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Fri, 08 Oct 2021 08:22:51 GMT</pubDate>
            <atom:updated>2021-10-08T08:22:51.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gfx7svRi2eA5647Ihw0wQw.png" /></figure><p>When I create content, I start with a topic. Then, I create different content pieces revolving around that topic targeting different platforms like <a href="http://hashnode.com/">Hashnode</a>, <a href="http://dev.to/">Dev.to</a>, or <a href="https://twitter.com/">Twitter</a>.</p><p>Content creation nowadays is about creating content once and distributing it everywhere. I recently <a href="https://twitter.com/ProjectKenneth/status/1444278643853774850?s=20">Tweeted about this</a>.</p><p>When I started using <a href="https://www.notion.so/">Notion</a>, my first idea was to apply this approach to my workspace. Here’s how I did it.</p><h3>The Databases</h3><p>The first things I created in Notion are 2 databases:</p><ul><li><strong>Topics</strong></li><li><strong>Content</strong></li></ul><h3>Topic Database</h3><p>This is the database that will contain all of my topics &amp; ideas. In this database, I only have one 1 template and it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*w6tl-dYFUwWD-Mgxuh-FdA.png" /><figcaption>The Topic Template</figcaption></figure><p>The 2 major fields in this template are:</p><ul><li><strong>Tags</strong> — a multi-valued field that I can further use to classify my ideas</li><li><strong>Related to Content Calendar (Topic)</strong> — this is an auto-generated field because of a Relation field added in the templates under the Content database. We&#39;ll discuss this further later.</li></ul><p>This database is using a Table view and it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apDBT5MpUh3jAKaJlZrEWA.png" /><figcaption>The Topics Table View</figcaption></figure><h3>Content Database</h3><p>This database will contain all of my actual content pieces.</p><p>I created 2 templates under this:</p><ul><li><strong>Tweet </strong>— for posting on, well, Twitter</li><li><strong>Article </strong>— for posting on blogging platforms</li></ul><p>Both templates have this structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*tqId-QwDz1WlANr-ytgpcw.png" /><figcaption>Generic Content Template Structure</figcaption></figure><p>The major fields for these templates are:</p><ul><li><strong>Type</strong> — this is the type of content piece (Article or Tweet). Though, this is already predefined by the templates.</li><li><strong>Topic</strong> — this is the Relation field I mentioned earlier. This allows me to define which topic this piece of content is related to.</li><li><strong>Status</strong> — specifies the state of this content piece. It has the following possible values:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*qN-dQ_KjFbA9ZzTh7rT7Yw.png" /><figcaption>Content Status List</figcaption></figure><ul><li><strong>Publication Date &amp; URL</strong> — to allow me to specify the publication info once the content piece is published.</li></ul><p>Lastly, the main body content of the template will be where I put in the actual content.</p><p><strong>Assets Sub-page</strong></p><p>As you may have noticed, there’s a default sub-age in these templates named Assets. This sub-page allows me to upload the assets that I&#39;ll embed in the content piece.</p><p>Based on its parent template, this sub-page will have a different default value under it.</p><ul><li>For Tweets, it’ll look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*y8BJ5Bu-GSkuh6MstvV2kw.png" /><figcaption>Default Asset List for Tweets</figcaption></figure><ul><li>For Articles:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*LwYSWJaYplWXzAm7fPzSPw.png" /><figcaption>Default Asset List for Articles</figcaption></figure><p><strong>Board View</strong></p><p>For this template, I used a Board view so I can easily track the individual status of my content pieces:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*thfyrW3aSEhV1Hqbe6sNMQ.png" /><figcaption>The Content Board View</figcaption></figure><h3>Wrapping Up</h3><p>So, this is how I organize my content using Notion!</p><p>Now, every time I think of an idea, I first log it in the Topics database. With Notion’s mobile apps, I can even do this while on the go.</p><p>Then, I’ll create the related content pieces depending on which platforms I’m targeting.</p><p>I’m also planning to create more Content templates to handle publishing to different platforms like Facebook or even YouTube.</p><p>Do you have any suggestions or comments on how I can improve this? I would love to hear your thoughts so leave them in the comments section below!</p><p>Hey, you! Follow me on <a href="https://twitter.com/projectkenneth">Twitter</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0826e67d8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing a JavaScript Function: The Usual, The Okay and The Complicated]]></title>
            <link>https://projectkenneth.medium.com/writing-a-javascript-function-the-usual-the-okay-and-the-complicated-929657035c91?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/929657035c91</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 18:36:27 GMT</pubDate>
            <atom:updated>2021-08-14T18:36:27.501Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This post is part of a new series that explores how flexible programming languages and frameworks can get. We all know that with any given task, there are several approaches available to achieve it. This is very much true in the software engineering world. In this series, I’d be talking about 3 different approaches to some of the most common dev tasks. We will start with the usual approach followed by a slightly different one (the okay). Lastly, we’ll look at something that’s out of the ordinary. Excited? So am I!</em></p><p>In this post, we will look at the different approaches in implementing one of the basics in JavaScript: declaring functions. There’s probably more than 3 ways to declare functions in JavaScript, it’s a fairly flexible language, but, I carefully selected three unique ones that better matches the ff. categories: The Usual, The Okay, and The Complicated.</p><h3>The Usual</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be122435ec8734b7489412760fa20a99/href">https://medium.com/media/be122435ec8734b7489412760fa20a99/href</a></iframe><p>We all know about this one. This is simply following the very basic function declaration syntax. Easy to understand and very straightforward. I don’ think I need to explain this further. Let’s step it up a bit.</p><h3>The Okay</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3c434fd03c8753ca541759fdc592844/href">https://medium.com/media/e3c434fd03c8753ca541759fdc592844/href</a></iframe><p>Now we’re onto something. This approach introduces a new layer of scope. A wrapper anonymous function accepts the windowobject. Inside the anonymous function, the actual multiplication function is assigned to the multiplyNumbers variable of the windowobject. Since the inner function is attached to the window object, anyone outside of the anonymous function will still be able to access it by simply using the normal syntax:</p><p>multiplyNumbers(5, 6);</p><p>One benefit of this approach is that we can limit the scope of certain variables. Here’s another example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8675898fea48b4f51c48b056b7f4f460/href">https://medium.com/media/8675898fea48b4f51c48b056b7f4f460/href</a></iframe><p>In this example, a constant variable is introduced to represent the value of PI. Again, the getCircumference function is still accessible to everyone, but no one will have access to the PIConst variable.</p><p>Now, let’s move to something more exciting.</p><h3>The Complicated</h3><p>We’ve looked at the basic function declaration syntax as well as the anonymous approach. What will happen if we combine both? Let’s go crazy!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6997d5d8688aa36d236b8d6fc813d8d/href">https://medium.com/media/e6997d5d8688aa36d236b8d6fc813d8d/href</a></iframe><p>The above approach is pretty much the same as <em>The Okay</em> one. But, instead of an anonymous function wrapping the actual function, I inverted it.</p><p>The getCircumference function is not performing the work. It’s merely returning an anonymous function that is the one who will do the computation. In terms of the execution, everytime thegetCircumference function is called, the internal anonymous function will be executed first. Then, the anonymous function’s result will be bubbled out. Looks fun right?</p><h3>The End</h3><p>There’s most likely lots of approaches to declaring functions in JavaScript. Feel free to share them by responding to this post.</p><p>I hoped you enjoyed exploring these different approaches with me. I’ll be posting more in this series (covering other programming languages too!) so make sure you keep an eye!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=929657035c91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Siri Control Your TP-Link Kasa Smart Devices]]></title>
            <link>https://projectkenneth.medium.com/make-siri-control-your-tp-link-kasa-smart-devices-2a6583700aa7?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a6583700aa7</guid>
            <category><![CDATA[apple-homekit]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-shortcuts]]></category>
            <category><![CDATA[home-automation]]></category>
            <category><![CDATA[siri]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 06:31:15 GMT</pubDate>
            <atom:updated>2021-08-01T06:59:33.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Connect Siri to IFTTT to TP-Link Kasa" src="https://cdn-images-1.medium.com/max/1024/1*3C93-tDTeJRjNQCCpgJUWg.png" /></figure><p>I’ve had a couple of TP-Link Kasa Smart Light Bulbs for the past 2 years. Configured them to be controlled by Google Home and I’ve been lazy to turn our lights on using a switch since then! This has been the setup for 2 years but last week, I wondered if there’s a way for my iPhone to natively support controlling these smart light bulbs</p><p>A little bit of research here and there and officially, iOS cannot natively support this. Then I found out that if there’s a will, there’s a way! It turns out I can achieve this by combining the powers of IFTTT and iOS Shortcuts. Here’s how I did it.</p><h3>IFTTT</h3><p>My goal here was to create an applet that exposed a Webhook as its trigger. The main action in this applet will then be to integrate with the TP-Link Kasa service to control my light bulb. Let’s go through the steps to achieve this.</p><p>1. I started creating a new applet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*zSMUWoWkIv-evN17LophfA.png" /></figure><p>2. For the <strong>If This</strong> panel, I used the Webhooks service and configured it to listen to the event “bedroom_light_on”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*_N4IBvve4wTgg00mbyrHRw.png" /></figure><p>3. For the <strong>Then That</strong> panel, I used the <strong>TP-Link Kasa</strong> service and chose the <strong>Turn on</strong> action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*czmFa-i0UmfY0m9w2zxOvg.png" /></figure><p>4. Since this was the first time I used this service, IFTTT asked me to authorize the integration with my <strong>TP-Link Kasa</strong> account. I just keyed in my Kasa account credentials and it’s good to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*ew2ZXDu6w19JnIsHQQH9EA.png" /></figure><p>5. Once the integration has been authorized, I was now able to select which device will be turned on by this applet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*y6BugWaWUk1RZSq0XGXe9Q.png" /></figure><p>6. This is how my applet looks like at this stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*0hoTY56OG4X-LIrD0pGizA.png" /></figure><p>7. I clicked <strong>Continue</strong> then specified the Applet title. After which, I clicked on <strong>Finish</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*UDwnz0Iw3HyJMGhssTqYLQ.png" /></figure><p>That’s it! I now have an applet that can be triggered to turn my smart light bulb on. I also created an applet to turn off the light bulb by just repeating the above steps. Only difference is I changed the Webhook event name and the TP-Link Kasa action accordingly. If you’re an IFTTT Pro user, then you can further condense all of these into a single applet using the more advanced features available to you.</p><p>Now, we’re ready for the steps on the iOS Shortcuts side. Not yet. There’s still one last step left to complete the configuration on the IFTTT side — to identify the Webhook URL for this applet. This URL will be used by iOS Shortcut to trigger this IFTTT applet. More on that later.</p><p>Here’s how I identified the Webhook URL:</p><p>1. On my IFTTT dashboard, I clicked on <strong>Explore</strong>.</p><p>2. I searched for the <strong>Webhooks</strong> service then clicked on the <strong>Documentation</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*TKWtGW2cbN4BVnu6DYUVqg.png" /></figure><p>3. I was brought to the documentation page where my API key was indicated. Additionally, the URL to trigger my webhook events is also indicated here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*hNi5WVyLbi6Xs_-8WiO5Ew.jpeg" /></figure><p>4. I replaced the <strong>{event}</strong> part of the URL to match the event names I specified when I created the on and off applets.</p><p>Now that I had the Webhook URLs (one for each event), I set it aside first and went on to configure the iOS shortcuts on my phone.</p><h3>iOS Shortcuts</h3><p>At this point, I now need to configure iOS to integrate with the IFTTT applets I created earlier. More specifically, I need iOS to be able to trigger the Webhook events I defined. It’s quite simple. I literally created 2 shortcuts that each calls the 2 Webhook URLs I set aside earlier.</p><p>I defined the shortcuts by doing these steps:</p><p>1. I created 2 new iOS Shortcuts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*CA-e7ZGxhO6BveLkSKcU2A.png" /></figure><p>2. I added the <strong>URL </strong>action and defined it to contain the Webhook URL set aside earlier. One defined with the Webhook URL for the “turn on” applet and the other with the Webhook URL for the “turn off” applet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*L_ImnSDByiZwSNJIhpeWnA.png" /></figure><p>3. I then added the <strong>Get Contents of URL</strong> action. By default, this will automatically use the <strong>URL</strong> defined in Step 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*LdodZwlBlNesZrtNRzyI0w.png" /></figure><p>4. I clicked on the <strong>Next</strong> button at the top right and then specified the name for the shortcuts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*TWxwkg4IcVTEa4KZy_iFyg.png" /></figure><p>5. At the end, I had the ff. shortcuts created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*UgaeGycUY-H-CTsXU1iGCg.png" /></figure><h3>Testing It Out</h3><p>Now that I had the iOS shortcuts and IFTTT applets set up, I can just go and activate any of the turn on/off shortcuts by simply talking to Siri. In my case, my shortcuts are named “Turn Bedroom Light On” and “Turn Bedroom Light Off” respectively. I can just say “Hey Siri, please turn the bedroom light on.” and Siri will automatically identify the correct shortcut to activate.</p><p>Now, even if my Google Home can’t hear me, I can still control my bedroom light hands-free just by using my phone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a6583700aa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“What do I want to do?” — Ask this the next time you want to organize your apps]]></title>
            <link>https://projectkenneth.medium.com/what-do-i-want-to-do-ask-this-the-next-time-you-want-to-organize-your-apps-cae6087bbcb4?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/cae6087bbcb4</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[efficiency]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 04:07:56 GMT</pubDate>
            <atom:updated>2021-07-11T04:07:56.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypcSCrvBbWpMW-i6Fb9Opw.png" /></figure><h3>“What do I want to do?” — Ask this the next time you want to organize your apps</h3><p>Up until recently, my mobile apps have been grouped by categories but I realized that some of these apps do not technically fall under one category. Eventually, I had a difficulty fitting in some of these applications to the “correct” category.</p><h4>Blurred Lines, Blurred Purposes</h4><p>Let’s take a look at lifestyle or mall membership apps. In the simplest sense, these apps should fall under the “Shopping” category which is also the category for online shopping apps like Amazon. In today’s world where online shopping is the go-to combined with the fact that some users love earning points (totally not referring to myself), this “Shopping” category can eventually get crowded making it difficult to navigate.</p><p>This is when it hit me. I realized that this experience needs to be improved! I’ve given it several tries. I tried moving the points-earning apps to a “Lifestyle” category which clearly separated them from the “just-for-shopping” apps. But then came the video and audio apps. On the audio side, I’ve used Audible to study while Spotify to, well, listen to music. On the video side, should Udemy, LinkedIn Learning and Netflix be really under one folder? I don’t think that I use these apps in the same way.</p><h4>Asking The Right Question</h4><p>This is when I realized that I’ve been looking at this problem the wrong way. I’ve been trying to group my apps by asking “What type of app is this?” instead of asking a more relevant question: “What do I want to do with this app?”.</p><p>So, I started asking this question for each app. Eventually, I came up with the groupings as seen on my screenshot. Udemy and LinkedIn Learning goes to the “Learn” group while Netflix goes to the “Watch” group. The original “Shopping” group was renamed to “Buy” and the points-earning group to “Earn Points”. Fun fact, the “Authenticate” group was previously named “Security” and honestly, I didn’t really think that was a good group name at all.</p><h4>What do I want to do? I want to close this article.</h4><p>This grouping style gave me a way to better navigate my apps. When I open my phone, I just ask myself “What do I want to do?” and immediately find the group and app I need to use.</p><p>Additionally, I don’t need to have several conflicting thoughts on where I need to put my next app download is. Even if this new app was developed with the intention of allowing users to buy and earn points at the same time, I can just place it in the group that’s more relevant to how I’m going to use this new app.</p><p>Do you have other tips on how we can better organize our mobile apps? Share them with me in the responses!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cae6087bbcb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical interview on algorithms: Where should I begin?]]></title>
            <link>https://projectkenneth.medium.com/technical-interview-on-algorithms-where-should-i-begin-7be348dd430c?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/7be348dd430c</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[technical-interview-tips]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Sat, 05 Dec 2020 11:12:45 GMT</pubDate>
            <atom:updated>2021-07-03T18:04:17.680Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3RgmHzgaK-oqpOv3vQH3g.jpeg" /><figcaption>Photo from <a href="https://unsplash.com/@linkedinsalesnavigator">LinkedIn Sales Solutions</a> on <a href="https://unsplash.com/photos/nPy0X4xew60">Unsplash</a></figcaption></figure><p>Picture this. You’re in your 3rd job and your career has progressed a lot. In a software developer’s life, that would mean you’ve learned lots of different technologies and gained lots of experiences working with various platforms. This might also mean you’ve gained non-technical experiences like leading teams or client interaction.</p><p>Then one day you wake up and decide that it’s time to move on. It’s time to go and look for a new job. You submitted your resume to several companies and scoured LinkedIn for interesting job postings. Eventually you got some favorable responses and after a few emails, you’re now in line for a couple of interviews.</p><p>Depending on the role you’re applying for, the questions will primarily be focused on your target role and technology which is most likely closely related to your latest experience. But as developers, we all know that there a category of questions that will almost always be asked regardless of the role you’re applying for — <em>algorithms</em>.</p><h3>Don’t lose them. Let them linger at the back of your minds.</h3><p>Let’s face it, with all the development worked you’ve done for the past years, did you really have the time to actually implement and use your own sorting algorithm for a live project? Let’s say that once in a while you had to implement your own custom sorting algorithm for very special circumstances. How many times did you actually have to do that?</p><p>I’m not saying these concepts are useless. What I’m trying to say is that with years of experience and years of translating high-level business requirements into code, there is a high chance that developers get out of touch with these core concepts.</p><p>But in reality, as developers, we should always keep these concepts very close to us. In fact, based on my own experience, I often apply these concepts in my daily work. I just don’t realize that I’m doing so.</p><p>This is why technical interviewers want to ask you about them. They want to know if you’re still able to explain the concepts. Ideally, interviewers shouldn’t expect you to memorize names. They should be able to extract your understanding of some of these concepts. At least that’s how I did it when I became a technical interviewer myself.</p><h3>But there are lots of them!</h3><p>Let me reiterate. Interviewers just want to get a glimpse of your understanding of <em>some</em> of these concepts. As you can see, I’m not using the word “all” here. No one should expect something like that from you.</p><p>Honestly, if your interviewer seems like he knows all the algorithms in the world, there are 2 possibilities to it. First is either he really practices using all of them in his daily routine (good for him!). Second is he’s been doing interviews for quite a while, so he regularly brushes up on them.</p><p>Either way, regardless of wherever your interviewer falls in the above two possibilities, their whole strategy will most likely revolve around this: “How comfortable is this candidate when it comes to explaining or discussing algorithms?”</p><p>My suggestion is for you to ensure that prior to going to these types of interviews, you brush up on your algorithm knowledge. Pick a few that you can have a comprehensive understanding of. Then, do a high-level review of a couple more.</p><h3>Which ones should I select?</h3><p>This next part is based on my experience as an interviewee and of course, as an interviewer. I’ll share with you how I choose which algorithms I usually review before going for an interview.</p><p>Technical interviewers may ask you to write pseudocode, or even use a specific algorithm to solve a problem on the spot. Based on my experience, the test for algorithm knowledge usually revolves around the ff. categories: Sorting, Path Finding and Text Parsing.</p><h4>Sorting</h4><p>I always have <a href="https://medium.com/human-in-a-machine-world/quicksort-the-best-sorting-algorithm-6ab461b5a9d0#:~:text=The%20time%20complexity%20of%20Quicksort,the%20%E2%80%9Cfastest%E2%80%9D%20sorting%20algorithm.">Quick Sort</a> ready. Regardless of your choice, the idea is to have a sorting algorithm ready when tackling technical interviews. Sorting-related technical problems are always around the corner. Honestly, with all the out-of-the-box sorting functions we use in our daily lives, studying algorithms under this category is very, very vital. You don’t want to be known as “that candidate who just uses functions without understanding how they work”.</p><h4>Path Finding</h4><p>There are lots of algorithms for path finding out there. I personally review BFS, DFS and <a href="https://briangrinstead.com/blog/astar-search-algorithm-in-javascript/">A*</a> before any interviews. For BFS and DFS, note that it will be better if you’re able to implement them in either a recursive or iterative approach. In other algorithms (like A*), there’s a concept of a heuristic. For these, make sure you understand how to identify the correct heuristic for a given problem.</p><h4>Text Parsing</h4><p>This can include manipulating strings or implementing your own Regular Expression engine. I personally believe this category is the trickiest among the 3. In fact, with text parsing, you’re often required to mix and match other algorithms in your solution.</p><h3>Finally, practice!</h3><p>Let me emphasize one thing. Whatever set of algorithms you pick, <em>always </em>practice! It is very important to know the ins and outs of each algorithm. In some cases, you may even be asked to combine or expand existing algorithms to solve particular problems. Other interviewers may even ask you to compare the pros and cons for different algorithms.</p><p>Additionally, you can primarily focus on the algorithms you pick based on the categories I mentioned above; but, also ensure that you get a chance to have a high-level understanding of other algorithms as well.</p><p>Remember, it’s your understanding that’s being tested and not your memorization skills. It doesn’t matter if you can write the pseudocode perfectly. If you’re not able to explain it, then that’s not going to reflect well for you.</p><p>Lastly, if you’re asked about an algorithm you don’t know anything about. Don’t lie. Don’t make up an algorithm just based on the name. In this situations, it’s better to be honest. Interviewers are trained to dig deeper especially on answers they feel are untrue. The more they dig up, the more you get in trouble. Just say you don’t know that specific algorithm. More often than not, your interviewer will ask you about another algorithm or let you pick which one you want to discuss.</p><p>Anyway, here’s to hoping for a successful next technical interview for you! Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7be348dd430c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OutSystems: Let’s talk about a naming convention]]></title>
            <link>https://projectkenneth.medium.com/outsystems-lets-talk-about-a-naming-convention-aa11a3427545?source=rss-ab504b6b6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa11a3427545</guid>
            <category><![CDATA[naming-conventions]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Project Kenneth]]></dc:creator>
            <pubDate>Sat, 28 Nov 2020 16:33:06 GMT</pubDate>
            <atom:updated>2020-11-28T16:37:37.645Z</atom:updated>
            <content:encoded><![CDATA[<p>So, quick introduction first. OutSystems. Low-code. Done!</p><p>Very quick indeed right? Well, introducing OutSystems is not the goal of this article but rather, I want to touch on one aspect in using it that I think can still be improved — naming conventions.</p><p>Well, OutSystems already has their recommended naming conventions listed <a href="https://success.outsystems.com/Documentation/Best_Practices/Development/OutSystems_Platform_Best_Practices#Naming_conventions">here</a>. One thing I believe is lacking in this are the conventions related to variable names. In fact, based on my experience in the past few years developing in OutSystems, I found that having naming conventions for variable names will be beneficial. This is why I came up with my own version which I’ll be sharing with you in a bit.</p><h3>Text can be visual cues too</h3><p>Before we delve on my proposed naming convention, let me answer a question that most people will probably be asking right about now: <em>Why?!</em></p><figure><img alt="A sample action containing 2 input parameters, 1 output variable and 1 local variable" src="https://cdn-images-1.medium.com/max/191/1*wejtjiflR_Kbeb37hgqWEg.png" /></figure><p>In the action shown above, we have 4 variables. Two inputs, one local, and one output. They can easily be identified by looking at the variables’ respective icons. But, when you start using them in the action itself, these visual cues don’t really show up. At the very least, you’d have to cross-check it every time against the logic tree.</p><p>This is the kind of experience I wanted to avoid. That’s why I started thinking of defining my very own naming convention. I wanted everyone in our team to be able to understand the context of a variable just be looking at its name.</p><h3>Or is it just a prefix convention?</h3><p>So, with that out of the way, I present to you my very own naming convention for OutSystems!</p><p>Actually, it’s not really a full-blown naming convention. My proposal here is more on adding prefixes to variable names so their context can easily be understood.</p><p>Here’s the different prefixes I used for action variables:</p><ol><li>Input parameters — prefix with “In_”</li><li>Output parameters — prefix with “Out_”</li><li>Local variables — prefix with “Local_”</li></ol><p>So in the above example, the action will look like this when this convention is used:</p><figure><img alt="A sample action containing 2 input parameters, 1 output variable and 1 local variable — this time using the prefixes proposed" src="https://cdn-images-1.medium.com/max/209/1*2uTfI8RttK5zppHWMhORrA.png" /></figure><p>I started off with the above. Then, I realized we that can still expand this convention to cover screen action names as well.</p><ol><li>Normal actions triggered by page interaction — prefix with “Action_”</li><li>Event handlers for web blocks — prefix with “Event_”</li></ol><p>Here’s how it looks like for a sample screen:</p><figure><img alt="Sample screen following the proposed action name prefixes" src="https://cdn-images-1.medium.com/max/209/1*tQmxfL-dKzX38h8Sug0S2g.png" /></figure><p>Basically, that’s it. For anything after the prefix, I still follow the base naming convention defined by OutSystems. So for a button click action, instead of “SubmitOnClick”, I’ll name it as “Action_SubmitOnClick”.</p><p>As another benefit, the prefixes will also help you in sorting screen actions making it easier for developers to locate them in the tree.</p><h3>Let’s close this</h3><p>I understand that with this convention, there’s more typing involved. But in my opinion, I’d rather sacrifice typing a bit more characters to ensure an even understanding in the team in terms of code we write — or in this case, code we don’t write (Low code right?).</p><p>To anyone who has reached this point in this article, you may or may not use this convention. In fact, you may or may not like it. But if you do feel that it’s something that you can use or improve on, then great! But if you have any reservations or concerns, just feel free to leave your comments below. Hoping to hear from you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa11a3427545" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>