<?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 Ricky Y. on Medium]]></title>
        <description><![CDATA[Stories by Ricky Y. on Medium]]></description>
        <link>https://medium.com/@rickyxiaoyang?source=rss-515c28cbeb9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iC2HeL2qK-m03vxuURRYCg.jpeg</url>
            <title>Stories by Ricky Y. on Medium</title>
            <link>https://medium.com/@rickyxiaoyang?source=rss-515c28cbeb9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:41:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rickyxiaoyang/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[How To Get a Raise]]></title>
            <link>https://rickyxiaoyang.medium.com/get-a-raise-easily-99ffa3b133c0?source=rss-515c28cbeb9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/99ffa3b133c0</guid>
            <category><![CDATA[salary]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[career-growth]]></category>
            <category><![CDATA[manager]]></category>
            <category><![CDATA[salary-negotiations]]></category>
            <dc:creator><![CDATA[Ricky Y.]]></dc:creator>
            <pubDate>Mon, 06 Dec 2021 03:43:01 GMT</pubDate>
            <atom:updated>2021-12-06T13:09:27.710Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtFWpIsJ2n5wtg8mOJM26A.jpeg" /></figure><p>If you’re a <strong>driven</strong> and <strong>hungry</strong> individual looking to prove yourself and grow your salary, you’ve come to the right place. I want to share some ways you can accelerate growth, both professionally and financially.</p><p>Before we begin, I just want to note that this is geared for people who are just starting out their career, or people who feel they may not be growing as much as they should be, or both.</p><h3><strong>Three M’s</strong></h3><p>Career growth is tricky. When I first started my career, I was pretty lost. I wasn’t sure exactly what to do or how to do it. But over the years, I’ve realized there were some really helpful things that helped accelerate my career. While there are many factors involved in career growth, the ones I consider the most important are the <strong>Three M’s</strong>: <strong>Manager</strong>, <strong>Mentorship</strong>, and <strong>Mindset</strong>.</p><h4>Manager</h4><p>Your manager (or the person you report to) is an integral part of your job as they are, many times, your main point of contact. A good manager should always be thinking of developing their direct reports, ensuring they are growing at a healthy pace. Without a good manager, you are left to figure things out for yourself. But one of the most important parts is that they have a large say in determining promotions and calculating salary bumps. A good manager recognizes the work and effort that you’re putting in, and will reward you as such.</p><p>Fostering a relationship and building good rapport with your manager will make a huge difference in your career. In my experience, good rapport has earned me access to my CEO’s home, spontaneous bar hangouts, and extremely easy salary conversations.</p><h4>Mentorship</h4><p>If we’re going to talk about acceleration of career growth, there is no better way to grow than to be mentored by someone who’s further down the line in their career. Of all 3 M’s, I consider this one the <strong>hardest</strong> to find and <strong>most</strong> <strong>important</strong> for efficient career growth.</p><p>From personal experience: Spending 5 years learning on your own could’ve been condensed down to a year or two with proper mentoring.</p><h4><strong>Mindset</strong></h4><p>While manager and mentorship are partially out of your control, mindset is all about YOU. Ask yourself: how badly do you want to advance your career?</p><p>Having a healthy growth mindset is all about holding yourself accountable. You should set goals for yourself, and monitor them regularly. As a Software Engineer, I made sure to read, take courses, and build projects. This helped me stay up-to-date with latest technologies and on track with my learning. Later on, all of that extra studying would help me immensely on the job.</p><h3>So how does all of that get me a raise?’</h3><p>This quote has stuck with me throughout the years:</p><blockquote>“You are paid not by how hard you work, but by how hard it is to replace you.”</blockquote><p>This quote says a lot: it means to achieve a higher salary, your goal is to be as irreplaceable as possible. To be irreplaceable would mean you have critical functions in the company or that your skillset is extremely hard to find in the market. In the beginning of your career, this ultimately means that to get a raise, you have to demonstrate your ability to <strong>perform better than the rest.</strong></p><p>Let me walk you through a method I’ve used over the years. As a consistent high performer, this method works wonders.</p><p>Let’s say you just started a new job. In the first 3 months, your goal is to do your best to learn as much as possible. Imagine that you’re a sponge for knowledge: <em>absorb everything you can.</em></p><h4>The Initial Conversation</h4><p>At around 3 months, you do the 1st step: have a 1 on 1 with your manager. Many people should already have a cadence with their manager. If you don’t, then set one up (they are great for building rapport, too).</p><p>During this meeting, your goal is to have an open and honest conversation about job expectations and goals. <strong>How am I doing? How can I improve? What can I do to excel in my current position?</strong></p><p>These questions will not only allow your manager to give you some constructive criticism, but it sets up <strong>expectations</strong>. It’s crucial that you note these responses down. These expectations are important, because they now become your <strong>targets</strong>. They will later be used in your salary conversation.</p><h4>The Journey</h4><p>During the next few months, your goal is to continue learning, growing, and hitting your targets. Make sure you’re doing as much networking as you can, as well. This could mean joining happy hours, team bonding events, or just helping out a co-worker in their project.</p><p>As your targets should be somewhat quantifiable and achievable, it’s important to keep track of your them. Note that this plan will backfire if you can’t somehow hit these goals.</p><h4>The Conversation</h4><p>At about 9 months or a year in (or whenever you feel you’ve achieved your targets), this is a good time to schedule another 1 on 1 with your manager. This time, your goal is to convey to them, in a respectful and healthy manner, why you deserve a salary bump or promotion. Here are a few talking points and resources:</p><ul><li>Bring up your initial conversation about expectations/targets. Hopefully you’ve achieved these, so you can use them in your case.</li><li>Salary range — use sites like Glassdoor to compare salaries for your position. Use this range as a baseline for the “average” worker. You can even make the case that you are above average!</li><li>Future growth / goals — you can project what your contributions/growth might be going into the next year. This is a also good chance to mention any goals that you have in mind (a specialized path, certifications, management, etc.)</li></ul><p>There are a few takeaways from this.</p><ol><li>It’s important to use numbers and items that are quantifiable when having this conversation. It helps show your contributions in a more statistical manner, while also showing how much you can potentially do in the future.</li><li>Confidence is convincing! You are the one driving the conversation. Have confidence and be proud of what you accomplished.</li><li>Companies want to retain good talent. It’s tough, especially in today’s market. But knowing they have someone who can be efficient and (statistically) beneficial to the company will go a long way.</li></ol><p>I hope this article proves to be useful in your next (or current) role!</p><p><strong>Let me know what you think. Do you think this works? What are some other ways that people can use to grow their career professionally and/or financially?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ffa3b133c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Worst Software Engineer I’ve Ever Worked With]]></title>
            <link>https://rickyxiaoyang.medium.com/the-worst-software-engineer-ive-ever-worked-with-323e50b75add?source=rss-515c28cbeb9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/323e50b75add</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[worst]]></category>
            <dc:creator><![CDATA[Ricky Y.]]></dc:creator>
            <pubDate>Thu, 21 Oct 2021 16:24:26 GMT</pubDate>
            <atom:updated>2021-10-21T16:24:26.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJUlHkxtastAcsSSa6wNsw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@miteneva?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Maria Teneva</a> on <a href="https://unsplash.com/s/photos/bad?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In this piece, I will go over various experiences with a developer I had the opportunity of working with. In short,<strong> </strong>this person was the <strong>worst Software Engineer I’ve ever worked with.</strong></p><p>To hide the identity of this person, I will name this person <strong>John</strong>, and assigning a gender of male.</p><p>John is a very skilled Software Engineer. He has many years of experience and <em>can definitely get the job done. </em>Though, skill is not where his weakness lies.</p><h4>Handling of Critique/Criticism</h4><p>Every software engineer goes through code reviews. Whenever John received comments on his pull requests, he’d try to battle them — no matter what. This is not to say that challenging comments is wrong. It’s encouraged to have a discussion and ultimately come to a consensus. But in this case — John just <strong>hated being wrong</strong>.</p><p>For instance: there was a time when the entire team left comments on his pull request. He refused to update the code. We tried to speak to him about why we thought it should be implemented a certain way and did it in a very respectful way, I might add. A few days had gone by, and there was still no update to the code. At the end of the week, he ended up cancelling his pull request.</p><h4>Interfacing with Clients</h4><p>Speaking to clients and administering demo calls are an integral part of the job, especially in consulting. John was not a native English speaker — which was not the problem. The problem was that John had the worst <strong>word vomit</strong>.</p><p>By word vomit, I mean he would randomly bring up things totally unrelated to what was allocated for the sprint. This was not helpful, because it would inadvertently open up many cans of worms.</p><p>Our client, at the time, was not technical and would also ask a lot of questions which were out-of-scope for the conversation. Imagine putting two chatter boxes together in a meeting — it meant our conversations were constantly derailed. Many times, it also meant that more unnecessary work was added.</p><p>To work around this, the team would ask that he only brings up relevant items. We also gave explicit warnings on things NOT to mention. It was like it went in one ear and out the other because many times, he would still mention it. In the end, the team decided it was best to revoke his ability to demo.</p><h4>Their Way or No Way</h4><p>This goes hand-in-hand with the criticism part of the article. John did not believe there was a better way than his way to do things and that his way was the best.</p><p>For example, we used some libraries and packages that he did not <em>like</em>. These packages were already in the project well before he joined the team, and it was working great. Don’t get me wrong — there are many instances where there are sub-par packages, and those should be removed. In our case, we explained to him the reasoning behind picking the packages and that we would be happy to have an open discussion if he had a better suggestion. Again, the important part is to come to a consensus as a team.</p><p>He would make snide remarks all throughout the project. There were times when he wouldn’t be able to figure out how to do something, and he would blame it on the package/library’s limitations. I was quite familiar with the library, so I was able to show him how to achieve his desired result.</p><p>In summary, I always felt like he was trying to push back on everything he didn’t like, instead of trying to learn it.</p><h4>Go Rogue</h4><p>There were many instances when John would just pick what he wanted to work on. In our standups, we would find out what he was doing and would have to steer him in the right direction time and time again. It felt like we were babysitting. We had processes in places, and John would literally do everything but follow them.</p><h3>But, what could we have done better?</h3><p>It was a really tough time working with John. Even though he was skilled, his demeanor and approach to communication was poor.</p><p>While it’s not the goal to dwell on these bad experiences, it’s important to reflect. How could we mitigate similar situations or if we meet another person like John in the future?</p><p>Now to you: <strong>What was your worst experience with a teammate? How do you think you handled that situation, and how would you handle it in the future?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=323e50b75add" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transitioning from ServiceNow Developer to Software Engineer]]></title>
            <link>https://rickyxiaoyang.medium.com/transitioning-from-servicenow-developer-to-software-engineer-bdd8407d8779?source=rss-515c28cbeb9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdd8407d8779</guid>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[job-change]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[transitioning]]></category>
            <dc:creator><![CDATA[Ricky Y.]]></dc:creator>
            <pubDate>Sun, 17 Oct 2021 18:09:30 GMT</pubDate>
            <atom:updated>2021-10-17T18:09:30.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kz77FG4Q5qsjOUMvAS7IeA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@maxcodes?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Maxwell Nelson</a> on <a href="https://unsplash.com/s/photos/software?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Are you currently a <strong>ServiceNow Administrator or Developer</strong> with a background in Software Engineering?<strong> </strong>Are you looking to transition out of the low-code platform and into something more full stack?</p><p>You’re not alone. Across the industry, I hear about ServiceNow developers who wanted to get back into doing <em>more </em>coding (versus the drag-and-drop, clicking, and occasional scripts).</p><p><strong>For any ServiceNow developers looking to transition out: I’m here to share my experiences in the ServiceNow platform, the transition out of the platform, and future goals as a Software Engineer.</strong></p><p><strong>Disclaimer</strong>: I am in no way saying that ServiceNow is <em>not </em>coding. In this article, I’ll be referring to the <em>Software Engineering</em> world a lot. When I say this, think about work that Software Engineers at FAANG companies do, in comparison to being an in-platform developer (like ServiceNow or Salesforce).</p><h3><strong>My experience with ServiceNow</strong></h3><p>For years, I have worked in the ServiceNow platform. Don’t get me wrong. I am in love with the platform, but felt that my background in CS was slowly becoming unused and undeveloped. I felt like the platform was actually pigeon-holing me to the point that I would have to study a lot on my own time to catch up with the industry.</p><p>I learned about ServiceNow in 2018–2019, about a year after graduating from university. At the time, I was struggling to find a Software Engineer position. I had applied to over 500+ job listings, but only a handful had come back with an interview. Of that handful, one of them was for a Technical Consultant position in a small-mid size company that had been around for ~20 years.</p><p>I thought being a tech consultant would be the most efficient way to catch up with the industry. After all, I’d be dealing with clients across various industries, each with their own business model and their own set of problems to solve. So I got the offer and <strong>took the job</strong>. I later found that I’d be specializing in various platforms, the main one being <strong>ServiceNow</strong>.</p><h4>So what is so great about ServiceNow?</h4><p>For those who aren’t familiar with ServiceNow, it gained its fame for being a tool for IT Service Management. ITSM encompasses modules like Incident, Problem, Change, Request, etc. This is especially useful for enterprise and commercial clients looking to manage their IT assets and services. The platform is extremely robust and customizable, both in usage and interface.</p><p>At first, it was awesome. <strong>There’s no feeling better than having a job where you’re earning money and learning tons at the same time.</strong> I hit the ground running, doing various implementations and showing value really quickly. After all, the platform is designed so that you can leverage the existing tools to solve your problems, instead of building from scratch. I quickly learned best practices around various different modules. With my web development background, it was easy to do portal development — although, learning AngularJS was new to me (still, fun!).</p><h4>So what is not-so great about ServiceNow?</h4><p>After a few months of working in the platform, I realized that though I was <em>coding</em>, I wasn’t exactly doing what my other Software Engineer friends were doing. I was platform-focused, with <em>some </em>skills being transferable (ex: portal since that was using html/css/angularjs).</p><h3>Reasons to stay in the ServiceNow industry</h3><h4>The Pay</h4><p>This is a huge proponent of why many ServiceNow developers decide to stay. The pay is very good. In just a year of experience, you can switch jobs and earn 120k+ easily. This is not something that can be said about generic Software Engineering nowadays.</p><p>If you’re a ServiceNow developer with a background in coding, you’re actually very sought after. Many ServiceNow admins actually don’t have a background in coding and are unfamiliar with software engineering best practices and concepts.</p><h4>Platform Adoption and Growth</h4><p>There are more and more organizations switching their internal IT platform to ServiceNow. Some organizations are moving more than just their IT department — they could be shifting their entire business to the platform. That just goes to show how robust and customizable it is. With that being said, as more and more companies adopt the platform, there’s going to be a reliance on it. This eventually means that job security and job market will be better.</p><h4>Value Add</h4><p>In any organization/business, your priority as a team member is to show value. ServiceNow allows you to leverage their platform capabilities to show value very quickly.</p><p>This can, in turn, grant you more promotions and raises — related to <strong>The Pay</strong> section!</p><h4>Competition</h4><p>In comparison to the software engineering route, there are a lot less ServiceNow developers. What this ultimately means is that when you’re applying to ServiceNow jobs, you’ll have a much easier time landing that interview, thus you’ll have a much higher chance of getting the job.</p><h4>Work Life Balance</h4><p>In my experience, if a requirement is scoped out for 8 hours, it generally means it takes 8 hours for an average person to do it. If you’re experienced, it should take you a lot less. Please note, your mileage may vary depending on which company you’re in. I’ve worked in mostly consulting/contracting gigs, so it’s more about getting the work done rather than the time spent.</p><p>This ultimately means that you will have more time to yourself!</p><h3>The Transition Back to Software Engineering</h3><p>As I mentioned before, working in the ServiceNow world offers a lot of work-life balance. What you choose to do with that extra time is completely up to you. I decided to use my time to <strong>build projects </strong>and <strong>take courses</strong>.</p><p>I knew when the time came, I would have to demonstrate, through coding, that I have what it takes to compete with the rest of the software engineering world. See below for a list of technologies I learned</p><h4>Modern Technologies that I used/learned</h4><ol><li>Front-end: Angular 2+*, React, CSS/SCSS<br>*learning Angular/React will come in especially useful, since almost all companies will use one or the other.</li><li>Databases: MongoDB (mongoose), PostgreSQL (typeorm)</li><li>Back-end: NodeJS (Express, KOA), Python (Flask/Django)</li><li>Cloud: AWS Architecture (there is a lot to learn here)</li><li>Learn about Software Design and Software Architecture (yes, they’re different)</li></ol><h4>Build Projects</h4><p>It’s extremely important that you build projects. This will help you build up a portfolio and learn the actual technologies. Learning about source control (git), testing, and deployment (to the cloud, maybe?) will come a long way.</p><p>There are tons of recommended projects online. Take a stab at them. Be prepared to speak on them on your interview (reason for the app, the tech stack, and impact).</p><h4>Recommended Books/Courses/Websites</h4><ol><li>Udemy/YouTube</li><li>LeetCode / HackerRank<br>To be honest, I’m not a huge fan of this because I’m not great at algo questions. Recently, lots of companies acknowledge that being able to solve algo problems will not correlate to the quality of the engineer, and so they will take this part out. Though, it will never hurt to be good at them.</li><li><em>Book: Cracking the Coding Interview </em>by Gayle Laakmann McDowell</li><li><em>Book: Designing Data-Intensive Applications </em>by Martin Kleppmann</li></ol><h4>Transitioning On the Job (Internally-ish)</h4><p>After about 1.5 years working in my first ServiceNow-focused role, I decided to jump to another company, a much bigger one. In that role, I started out doing ServiceNow architecture and development. I made sure to mention to my manager that if any opportunity came up to get my hands dirty in a custom application <em>outside </em>of ServiceNow, I would love to participate.</p><p>About 4 months into the job, my manager actually pulled through. There was a custom application being developed using Angular (not AngularJS, btw), being deployed out on AWS. Seems simple! This was exciting because it was what I had been studying! There were more experienced engineers on the team, which I was glad about. This gave me an opportunity to grow and learn from people who were deeper in the industry than I was.</p><p>At last, that feeling came back. <strong>I was learning tons of new things. </strong>Nowadays, I spend most of my days knee-deep in code — and <strong>I love it</strong>.</p><h3>Future Goals</h3><p>As a Software Engineer, I am always trying to learn more. Some of these goals include:</p><ul><li>Back-end development (my current role is heavily focused on front-end)</li><li>Working with different architecture (like Microservices, Serverless)</li><li>Learning more about AWS Architecture and services.</li><li>Mobile Developement (iOS, Android)</li></ul><p>Overall, looking to build good habits and learn best practices. If you have any questions, please feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdd8407d8779" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discipline over Motivation]]></title>
            <link>https://rickyxiaoyang.medium.com/discipline-over-motivation-98da536d783b?source=rss-515c28cbeb9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/98da536d783b</guid>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[habits]]></category>
            <dc:creator><![CDATA[Ricky Y.]]></dc:creator>
            <pubDate>Tue, 18 May 2021 12:30:44 GMT</pubDate>
            <atom:updated>2021-05-18T12:30:44.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7YKToZ2eW2Sl457Tc6UMFw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@vsaravind007?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Aravind Vijayan</a> on <a href="https://unsplash.com/s/photos/motivation?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The Merriam-Webster dictionary describes discipline as <strong>training that molds and perfects, </strong>while motivation is the <strong>force, stimulus, or influence </strong>to do something.</p><p>Which is better?</p><p><strong>Motivation </strong>is many times driven by an external factor: a story you heard or an experience you faced. From these, we feel <em>jolts</em> of motivation: “I can do the same.” We all have had our fair share of <em>motivation jolts</em>.</p><ul><li>You watch someone’s YouTube video describing their fitness journey and you hit the gym super hard. You tell yourself you’re going to keep this up. One day, a rest day turns into a rest week, which turns into a rest month — which brings you back to square one.</li><li>You have an idea for an app. You then embark on the journey to build it. You’re working tirelessly one weekend, but as Monday hits… you’re back to your day job. As time passes, you find yourself working on this app less and less.</li><li>You start an Instagram to blog. Food? Travel? Maybe a new pet Instagram? You’re going to be the next big thing — as long as you put in the work to do it. A few months in, you find yourself not nearly as motivated to do it anymore.</li></ul><p>Have you experienced any of these? I know I sure have, and it’s okay. We’re not meant to pursue every single idea that pops up in our head. The smarter and more efficient way to operate is to pick the ones you will commit to. This leads me to the things that do actually stick — and the reason behind why: discipline.</p><p><strong>Discipline </strong>derives from <em>habit </em>— and habit is born from within. You are the one developing it for yourself. Developing good habits is a challenge faced all throughout the world. The reason why I think discipline is so hard is because people have wildly unrealistic expectations.</p><p>I’ve tried to work out for many, many years now. I always tell myself that I’m going to get six-pack abs and lose more weight — but the truth is… I have really bad habits. I love meeting with friends over a beer (or five) and eating all of the greasy and unhealthy foods you can think of. It’s harder to do something that you think you SHOULD do versus something you WANT to do.</p><p>Discipline is about small but consistent habits. It’s about doing something so consistently that it becomes routine. But many times, people ask: <em>“How long until I develop this habit?”</em></p><p><strong>21 days</strong>. That’s the sweet spot. 21 days is the amount of time I’ve learned it takes to build the foundation of a habit. Of course, depending on the activity, the time span can vary — and this does not mean you are now somehow disciplined. 21 days is the point when you’ve gotten over the hump. When you’re nearing the end of 21 days, you’ll start to think: <em>“Oh wow, that wasn’t so bad. This is feeling like a routine and I WANT to keep this up.”</em></p><p>Your mileage may vary — but give it a try! I hope this is helpful to you in developing discipline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98da536d783b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to ServiceNow’s Service Portal Widgets]]></title>
            <link>https://rickyxiaoyang.medium.com/a-beginners-guide-to-servicenow-s-service-portal-widgets-285843bcd49c?source=rss-515c28cbeb9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/285843bcd49c</guid>
            <category><![CDATA[client-and-server]]></category>
            <category><![CDATA[service-portal]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[guide-portal]]></category>
            <category><![CDATA[portal-beginner-developer]]></category>
            <dc:creator><![CDATA[Ricky Y.]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 17:08:54 GMT</pubDate>
            <atom:updated>2021-05-18T12:36:16.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ksHJZrrEf6cunGLbZ_plQ.png" /></figure><p>I look back to when I joined my first ServiceNow partner company. I asked my manager: “What kind of expertise are we missing? What holes could I fill to best benefit the company?” I’ve since added this to the bank of questions that I would ask when being interviewed. Among the answers, the most common is <strong>Service Portal.</strong></p><p>Disclaimer: I’m simply sharing my story on how I used portal to really show value quickly. This is in no way the bible for portal developers, but rather a good guide to get started.</p><p>It make sense. Service Portal is the part of ServiceNow that the customers &amp; end users interact with. It’s visual, interactive, and customizable. Companies want to ensure that the experience is seamless, beautiful, and most importantly, effective. As a developer or admin, portal is a great way to grow your skills in coding.</p><p>Service Portal leverages <strong>HTML, CSS, and AngularJS</strong>. You can also use jQuery on the client side, but I tend to not (also because I’m not that familiar with jQuery). The view itself is broken into a few components: HTML, CSS, Client Script, Server Script, Link Function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L7TNJNn_CLg5OxuIb7AN3Q.png" /><figcaption>Widget Editor View</figcaption></figure><p>As a beginners guide, we’re going into the following topics. This is my opinionated list of things to learn to show the most value</p><ul><li>HTML/CSS with Bootstrap</li><li>AngularJS Directives / Filters</li><li>Communicating from Client to Server</li></ul><h3><strong>HTML/CSS with Bootstrap</strong></h3><p>This one is going to be very short. If you’re unfamiliar with Bootstrap, it’s a library of components that come out-of-the-box with portal. It allows you to quickly design widgets that are responsive. Many of the existing widgets in your instance are already built on Bootstrap (version 3.3.7)</p><p>With Bootstrap, there are tons of built-in classes. Depending on the requirement, you’ll find yourself finding everything you need through the documentation. One of the most commonly used, in my experience, is the panel class (in later versions, renamed to card). See documentation <a href="https://getbootstrap.com/docs/3.3/components/#panels">here</a>.</p><h3><strong>AngularJS Directives / Filters</strong></h3><p>AngularJS directives are powerful. They’re essentially markers on DOM elements — and these flags help the compiler add the desired functionality. I’ll be going through a small subset of directives: the ones which I use regularly and remember off the top of my head. There are many many directives, and you should do your own research to find the one that fits your requirement.</p><h4><strong>ng-if</strong></h4><p>The super popular conditional directive. It evaluates an expression and if it is true, then the DOM element will be rendered. In the below example, the div is shown only if the expression isTrue is true (lol).</p><p>&lt;div ng-if=&quot;isTrue&quot;&gt;This text will show &lt;/div&gt;</p><h4>ng-repeat</h4><p>This directive is used to repeat DOM elements based on an array. See example below</p><pre>//HTML<br>&lt;ul&gt;<br>  &lt;li ng-repeat=&quot;<strong>person in people | orderBy: &#39;age&#39;</strong>&quot;&gt;<br>    {{person.name}}<br>  &lt;/li&gt;<br>&lt;/ul&gt;</pre><pre>//Client Script<br>api.controller=function($scope) {<br>  /* widget controller */<br>  var c = this;<br> <br> $scope.<strong>people</strong> = [{<br>  name: &#39;Bob&#39;,<br>  age: 27<br> },{<br>  name: &#39;Joe&#39;,<br>  age: 26<br> },{<br>  name: &#39;John&#39;,<br>  age: 28<br> },{<br>  name: &#39;Alex&#39;,<br>  age: 27<br> }]<br>};</pre><p>This will output &lt;li&gt; tags for each item in the specified array. You can access the object people and extract each item into person. As a little add-on, you can also add a filter to order the list. In this scenario, we’re ordering it by ascending age.</p><h4>ng-click</h4><p>This directive is similar to onclick but is more powerful. You can connect this to your client script to trigger functions. See below:</p><pre>//HTML<br>&lt;button <strong>ng-click=&quot;onClick(&#39;hello&#39;)&quot;</strong>&gt; Click Me &lt;/button&gt;</pre><pre>//Client Script<br>api.controller=function($scope) {<br> $scope.<strong>onClick</strong> = function(name){<br>  console.log(name);<br> }<br>}</pre><h4>ng-class</h4><p>This directive allows you to dynamically set CSS classes on an element by binding an expression. The documentation explains it really well and shows use-cases: see <a href="https://docs.angularjs.org/api/ng/directive/ngClass">here</a>.</p><h4>ng-model</h4><p>This directive allows you to bi-directionally bind a text element to a variable. See below</p><pre>//HTML <br>&lt;div&gt;<br>  &lt;input <strong>ng-model=&quot;name&quot;</strong> type=&quot;text&quot; id=&quot;name&quot;/&gt;<br>&lt;/div&gt;<br>&lt;div&gt;<br>  &lt;div&gt;<br>    <strong>{{name}}</strong><br>  &lt;/div&gt;<br>  &lt;button ng-click=&quot;onPress()&quot;&gt;<br>    Press Me<br>  &lt;/button&gt;<br>&lt;/div&gt;</pre><pre>//Client Script<br>api.controller=function($scope) {<br> $scope.<strong>name</strong> = <strong>&quot;Rick&quot;</strong><br> <br> $scope.onPress = function(){<br>  console.log($scope.name);<br> }<br>};</pre><p>Note the following:</p><ul><li>ng-model binds to name, which is found on the client script.</li><li>the function for onPress() accesses the $scope.name and will always get the most up-to-date value</li><li>The text in the second div will always match what is inside of the input box.</li></ul><h3>Communicating from Client to Server</h3><p>This topic is a big one. How do we communicate between the client, template, and server?</p><p>Your client-side needs to be notified when the an action is submitted and should send that data to your server to process.</p><p>To begin, we need to familiarize ourselves with the two objects: input and data.</p><p>input is the object that the client uses to communicate with the server.</p><p>data is the object that the server uses to communicate with the client.</p><h4>How do we send the data from client to server?</h4><p>On the client side, we’re able to call functions to update the server. The two I use are: server.get() and server.update(). This is called on your controller, so to use it you would use something like this.server.update() or c.server.update()</p><p>What’s the difference, you ask? this.server.get() allows you to pass in an object whereas this.server.update() takes what the ng-models are bound to. They essentially do the same thing, so use whichever one you believe to be best fit for the requirement. From these functions, you’ll receive a response which you can parse for the data object. See example below:</p><pre>//HTML<br>&lt;div&gt;<br>  &lt;input ng-model=&quot;name&quot; type=&quot;text&quot; id=&quot;name&quot;/&gt;<br>&lt;/div&gt;<br>&lt;div&gt;<br>  &lt;div&gt;<br>    {{name}}<br>  &lt;/div&gt;<br>  &lt;button ng-click=&quot;onSubmit()&quot;&gt;<br>    Press Me<br>  &lt;/button&gt;<br>  &lt;div&gt;<br>    {{c.data.message}}<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>//Client Script<br>api.controller=function($scope) {<br> /* widget controller */<br> var c = this;<br> $scope.name = &quot;Rick&quot;</pre><pre>var data = {<br>  name: &#39;Any data&#39;,<br>  power: &#39;9000&#39;<br> };</pre><pre>$scope.onSubmit = function(){<br>  <strong>c.server.get(data)<br>   .then(function(res){<br>   c.data = res.data;<br>  }) </strong><br> }<br>};</pre><pre>//Server Script<br>(function() {<br> data.message = &quot;Initial Message to Client&quot;<br> <strong>if(input){<br>  console.log(input);<br>  data.message=&quot;New Message from Server&quot;;<br> }</strong><br>})();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*lfWbOKpsi0aZQTd2dLxx2Q.png" /><figcaption>Before clicking the button.</figcaption></figure><p>Click the button, which should trigger a call to the server to update the data.message object. We then take this message and copy it to our c.data object, which will also update the HTML template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*OMK_JygRe2oJM5VvMwLoPA.png" /></figure><p>This example is super simple, but should give you an idea of how to pass data from the client to the server.</p><p>I hope you enjoyed this brief article! ServiceNow’s Service Portal is such a powerful tool to use. Understanding how to build custom widgets is not only fun but it will greatly help you fill the holes in your company.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=285843bcd49c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>