<?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[Codelitt - Medium]]></title>
        <description><![CDATA[Providing you the best possible products and solutions using cutting edge technology and genuine, personal connections. - Medium]]></description>
        <link>https://medium.com/codelitt?source=rss----ac51f56a4b70---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Codelitt - Medium</title>
            <link>https://medium.com/codelitt?source=rss----ac51f56a4b70---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:19:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/codelitt" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Best Business Advice I Ever Received]]></title>
            <link>https://medium.com/codelitt/the-best-business-advice-i-ever-received-1b5be8eaab32?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b5be8eaab32</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Codelitt]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 21:55:32 GMT</pubDate>
            <atom:updated>2019-11-21T17:48:15.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzfFMDCayjMQFmvfoTrvhg.jpeg" /></figure><p>The lessons and advice that have stuck with me over the years and proved themselves over and over have not come from the board room or on the internet. The best business advice I ever received came from little mountain towns in the Rocky Mountains. I’ve read a lot of advice over the years in different publications. In the tech world now, it’s hard to go one day without a new blog post coming across your screen. However, I’ve never come across any advice that has been better than what I learned inside my own family circle growing up. My great-grandfather and grandfather were both successful businessmen that I learned a lot from. Both successful in their own rights, they instilled a pursuit of entrepreneurship in me and taught me how to work smarter. My work ethic and leadership advice comes from years of working side-by-side with my father in the rural Rocky’s.</p><p>Why does that matter? A couple of these have been echoed with similar sentiments online as well, but these are bits of advice that I know have withstood at least a century and have worked for many people across at least 5 different industries <strong>(1)</strong> As I was responding to a request for advice the other day, I compiled this list and decided to share it here for those who are interested:</p><h4>1. Worrying is like paying interest on a debt that you don’t have.</h4><p>This is probably one of my favorites that I try to remember. Worrying fixes, literally, nothing. Nothing. If you’re worried about something, get busy. You solve a big problem by breaking it into a bunch of little problems. One foot in front of the other and press on. You can bury yourself with worry and anxiety to the point where you get paralyzed. On top of doing nothing to help your situation, it hurts you and usually is not based in reality but rather a set of hypotheticals that may or may not happen. You’re paying interest on a debt you don’t have yet.</p><h4>2. Work on the mine, not in the mine.</h4><p>It’s easy as entrepreneurs, small businesses, startups, and even in a small corporate team to want to do a lot of the day to day operations/services yourself. That’s working in the business. It can be easy to do for many reasons: saving money, doing it “right,” wanting to work side by side with the team, etc. Your main focus, however, should be working on the business. This would include stuff like building new business relationships, optimizing processes, talking with customers to improve your product, business development etc. Find the right people, trust them, and focus on your responsibilities which are to keep the company moving forward.</p><h4>3. Lead from the front.</h4><p>Now this is going to seem to counterintuitive to the previous advice, but it’s not. While you should always try to be working on your business and not in your business, it’s also important lead from the front. Another way to put this advice, is never ask your team to do anything that you wouldn’t do yourself. If you have a technology team largely involved in programming, learn a bit of code and their processes. If you have a bakery, work a full day with your team baking. If you expect your team to work 14 hour days on a deadline, then you damn well better be doing the same. This bit of advice foster mutual respect in your team, helps you understand their challenges and how to move obstacles out of their way, and helps foster a culture of collaboration.</p><h4>4. Persistence and hard work is 90% of success.</h4><p>The other 10% is a bit of luck and brains. The 4-hour work week was a book that spawned a bunch of praise and people looking for an easy fix. The book has good processes and solutions for efficiency, but I’ve yet to meet a real world entrepreneur that doesn’t have to work very hard day in and day out for a number of years before realizing a business that can operate with such little input. If success was easy, we would have an entire world filled with millionaires. As well as hard work, persistence is a common denominator of great people doing great things. Something I heard a while back from Jason Roks could be paraphrased by, “A hacker isn’t only a genius writing code. A hacker is defined by persistence — never giving up until you find your way through or around an obstacle.”</p><h4>5. The best investments free your time up for other investments/projects.</h4><p>I am not quite sure how to best summarize this advice, but the basic principles are working smarter and investing in processes and efficiencies. This goes hand and hand with the advice “Working on the mine, not in the mine.” Your time is your most valuable asset that you have to invest — more than capital that is being reinvested into the company. There are only so many hours in the day. Nearly every investment that you make with your time should be doing 1 of 2 things. #1, directly impacting revenue or #2, improving a process <strong>(2)</strong>. If you’re doing #2 then it should be a process that allows more of #1. 20% of your effort gets, 80% of the results. In your own business, find what that 20% is that works and maximize it.</p><ol><li>Probably more. Just 5 that I know of.</li><li>What about stuff like education and employee development? Happy employees impact revenue. You need processes and policies informing employees of their benefits as such. This rule isn’t meant to be ruthless. It’s meant to drive the question for everything you invest your time in, “How is this impacting revenue and business health?” The truth is many activities, if you asked that question, would not pass the test.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5be8eaab32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/the-best-business-advice-i-ever-received-1b5be8eaab32">The Best Business Advice I Ever Received</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to handle a client comparing your hourly rate to cheap overseas development]]></title>
            <link>https://medium.com/codelitt/how-to-handle-a-client-comparing-your-hourly-rate-to-cheap-overseas-development-3c3643938e90?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/3c3643938e90</guid>
            <category><![CDATA[offshore]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[freelancing]]></category>
            <dc:creator><![CDATA[Codelitt]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 21:41:19 GMT</pubDate>
            <atom:updated>2019-11-21T20:43:41.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BquyMoGG85gsvQNk9Tfc4A.jpeg" /></figure><p>How to handle a client comparing your hourly rate to cheap overseas development</p><p>There’s no worse feeling than feeling like someone is undervaluing your work. Don’t do it. Sometimes it can feel like “something is better than nothing.” It’s not. Not only is it bad for your mental health and well-being, but you’ll spend time doing something you resent instead of spending time building new business. In the end you’re shooting yourself in the foot, not “surviving.”</p><p>Regardless of how you deal with it, you should never go down on what you feel is a fair price for the value you bring just because they say, “I can get it cheaper in [insert common outsourcing location here].” <strong>1</strong></p><p>On occasion we get potential clients bringing this to our attention. We avoid discussing the price difference. Focus on the difference of value that they’re getting instead. This list, in no particular order, are the value you get when dealing with a competent developer vs. the lowest bidder:</p><p>1. If they want to write a perfect spec, design every possible outcome to the T, and are confident 100% that no documentation and stone is left unturned then fine. But if they made a mistake in the spec, the mistake will be replicated exactly in code.</p><p>2. Your thinking and ability to reason, interpret meaning, and make good decisions are an asset. You have the ability to know that just because no error was in the designs for a given exception, that it needs one because you think about the end user.</p><p>3. Likewise, the client won’t be paying an cheap outsource shop to solve problems. They’ll be creating more than they solve. Your ingenuity works in your favor here. Most customers/clients value input on their plan and idea. They want you to come to the table with ideas.</p><p>4. Maintainability. If it needs to be maintainable, it needs to be built right. Good documentation, automation where possible, proper subversioning, and well commented code. I spoke with a potential client for our corporate skunkworks program the other day who spoke with a developer who didn’t know what Git was. Regardless of your tool of choice (Git, Mercurial, or any other tool) — you should know what they all are and their importance.</p><p>5. Scalability. Quality of code could really cover these two, but they’re both important. Building code that runs != building code that runs well. If their app needs to hit any kind of scale, doing things right is important. Milliseconds add up faster than you can imagine. I’ve seen static sites that take +5 seconds to load, whole applications without any sort of rescues or error exceptions, and databases where <em>literally</em> EVERYTHING is a table and they were running JOINS between a first name table and a last name table.</p><p>6. QA. It’s not very flashy, but for a client and an end user it is important. Having decent processes in place and spending the tedious time with the app, makes all the difference in the work turned over.</p><p>7. Legal recourse is easier. Touch wood, they won’t ever have to deal with any issues, but a legal team is much more confident of their abilities on domestic soil than abroad.</p><p>8. Their data is safe. You likely have a good process in place to protect their data. The lowest bidder likely does not. Also, IP when crossing international borders is likely not honored in the same way as IP within your border. Even if the contractor does honor it to the best of their ability (of which I have my doubts), once it crosses borders foreign <strong>2</strong> (and even local <strong>3</strong>) governments certainly do not.</p><p>9. The IRS is much less wary of local transactions with domestic contractors.</p><p>10. Project/Product management. A dirty word for hackers and engineers sometimes, but another necessary piece when building something. Anyone who has tried to manage cheap labour can tell you that it comes with more headaches than I could list.</p><p>Regardless of how I approach this, I’ll never forget the advice given to me by a mentor and it’s something I always echo with others:</p><blockquote><em>It’s expensive to work with cheap people.</em></blockquote><p>Notes:</p><ol><li>It could be said, ANY cheap development. It certainly has no basis on location. We just hear the overseas argument most often.</li><li><a href="http://www.theguardian.com/technology/2014/may/19/us-chinese-military-officials-cyber-espionage">http://www.theguardian.com/technology/2014/may/19/us-chinese-military-officials-cyber-espionage</a></li><li><a href="https://www.eff.org/nsa-spying/timeline">https://www.eff.org/nsa-spying/timeline</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c3643938e90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/how-to-handle-a-client-comparing-your-hourly-rate-to-cheap-overseas-development-3c3643938e90">How to handle a client comparing your hourly rate to cheap overseas development</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The problem with corporate innovation]]></title>
            <link>https://medium.com/codelitt/the-problem-with-corporate-innovation-cb0a212a84e5?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/cb0a212a84e5</guid>
            <category><![CDATA[intrapreneurship]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[intrapreneur]]></category>
            <dc:creator><![CDATA[Codelitt]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 19:05:04 GMT</pubDate>
            <atom:updated>2019-11-21T00:16:29.963Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discovering the Problem</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vv4VNc_pira9aV1TPvv4Cg.jpeg" /></figure><p>Startups are swallowing corporations’ markets. This is mainly because corporations struggle with innovation, regardless of how much they use that word in press releases and PPT presentations. About 6 years ago we started <a href="http://www.codelitt.com/">Codelitt Incubator</a>, a corporate skunkworks and product incubator company. We build startups for corporations and invest 20% of our time in building products, tools, and <a href="https://github.com/codelittinc">open source projects</a> for the web.</p><p>We didn’t set out to discover a specific problem — or put in another way we weren’t being purposeful about searching for a problem to solve. This post is half about the problem with corporate innovation and half about our discovery process that led us to where we are today:</p><h4>Eye Opening</h4><p>In the beginning of my career, I worked for investors in Latin America building and helping launch startups before later moving to corporate America. Although I often am critical of corporate culture, it was really eye-opening and integral to my career. Really this is one of the best pieces of advice I can give to entrepreneurs looking for problems to solve:</p><blockquote><em>If you are smart and ambitious but can’t find a problem to solve, go work for a large (preferably traditional) corporation. You’ll find plenty there.</em></blockquote><p>Large enterprises succeed <em>in spite</em> of themselves. It really is a wonder they get anything done at all. I can’t speak for every single large company, but in one way or another I’ve worked with quite a few and they all have systemic issues. This is not to say that startups or more modern tech companies don’t have their own issues. We do. But the proof is in the pudding and startups are launching products monthly that will take a huge chunk of traditional companies’ markets or even completely render them irrelevant.</p><p>Some large enterprises have realized that their biggest threat isn’t always another corporate giant. Often the most dangerous competitor is the kid building something. In order to compete, they have to create new value, do a little disruption of their own, and start shipping.</p><blockquote><em>However, traditional companies spend millions of R&amp;D dollars and several years to come to market.</em></blockquote><p>So why are they at such a disadvantage when their seemingly endless budgets should afford them a solid advantage? The same tools, systems, and culture that they rely on to manage a large organization don’t work for innovation and skunkworks teams.</p><h4>Decisions by Consensus</h4><p>Traditionally the vast majority make decisions by consensus. Note, there is a difference between collaboration and consensus. Collaboration takes different points into account but can still have one decision maker, whereas consensus decision making requires every single person to have input and be onboard. This is cripling to organizations. Teams should have a single decision maker.</p><p>Any startup who has experienced the sales cycle of a large company can attest to this first hand. While many sales people focus on identifying “the decision maker level,” this person is rarely the only decision maker and you likely have an entire team to convince. When making a sales pitch (even for a $1,000 a month SaaS product) you’ll very likely spend time in a room of 12 or so people from different areas of the company ALL of whom have different needs and agendas. The same is true whether it’s developing new products, processes, or strategy. Decision making time is multiplied by an exponential factor.</p><blockquote><em>In the time it takes a large organization to make a decision just to move forward with something, a startup could have built, launched, and validated a new feature or model.</em></blockquote><h4>Corporate IT</h4><p>There are a number of reasons why normal innovation processes, product prototyping, and building a new business model inside a large organization is so costly. The above, time, being a large factor. A close second is the cost of actual development. As with everything, I’m sure there are reasons why things are done the way they are done. But from a product development perspective and coming from the startup world, they are near impossible to understand.</p><p>Corporate IT departments have a hard time looking at a product as something that develops. They see a project as having a start date, an end date, and a full set of features. There is no iterative development. They plan for every possible scenario and build to the full spec. Version releases begin with 1.0.0 launch and following releases are security patches at best.</p><p>Instead of using open source tools, large IT teams are locked in to Microsoft and Oracle products. I’ve never been able to understand why this is completely. It could be the fact that they spend a solid chunk of time earning Oracle or Microsoft Certifications. It could be the comfort of having support just a phone call away. Or it could even be an unwillingness to learn something new. Either way, I’ve never understood it.</p><p>From a security perspective, it’s like looking for a baby sitter to watch your kids, asking for her recommendations, and she tells you, “Just trust me. I promise your child is secure. But just so you know, we’ll be doing things my way; your house rules don’t apply.”</p><p>From a time perspective, there are open source technologies that allow you to whip up an MVP in much less time. Even with compaints about Rail’s “magic under the hood,” you can’t deny that it’s a powerful tool to quickly build a prototype.</p><p>From a cost perspective, licenses are expensive and they add up quickly. Millions of dollars are spent each year by an organization each year on IT licensing. Imagine if that money was spent on employeeing core devs for the respective clients like we’ve seen with <a href="http://jobs.redhat.com/jobs/descriptions/fedora-kernel-engineer-westford-massachusetts-job-1-5076703">Red Hat (hiring right now actually)</a>, <a href="http://blog.bitcoinfoundation.org/strengthening-the-core/">Bitpay,</a> and <a href="http://googlesystem.blogspot.com/2006/08/linux-kernel-developer-hired-by-google.html">Google.</a></p><blockquote><em>Developing a new product or business can often cost into the millions to develop with the traditional IT infrastructure and business processes. Timelines, again, are measured in years, not weeks.</em></blockquote><h4>Risk Averse</h4><p>The final piece to the puzzle which impedes progress and innovation is often a risk adverse nature. “Risk adverse” is akin to consultant speak inside a large organization. Entire teams’ entire purpose is to mitigate risk. I’ve heard a lot of different theories for why this is from insiders and outsiders over the years:</p><p>Job security is one that gets floated around a lot. The 25 year Rolex, the benefits, and the cushy salary really don’t require a whole lot. Don’t upset the status quo, don’t argue with the wrong people, play the politics, and work well with others. Do those 4 things and you have very little to worry about. Large companies rarely fire people who do those things. It’s easy for anyone to become complacent when basic needs are taken care of. Unfortunately for them, however, disruption requires risk. There’s always the risk of being wrong. Being wrong is rarely celebrated in corporate culture and that stigma can follow someone around for the rest of their career preventing any sort of upward mobility. In our world, many of us have failed a few times, succeeded a couple, and worked for several companies. Our entire attitude towards failure and opportunity is a completely different perspective.</p><p>Another is the high visibility that corporations have in the public eye. Because of their size, most things they do are considered <a href="http://www.mediacollege.com/journalism/news/newsworthy.html">newsworthy</a> because of the impact it could have on their customers, employees, or investors. In the startup world, we have the luxury of being able to fail relatively quietly. Our customers and beta users are usually very understanding of certain degrees of failures to the point they even expect them. Remember those corporate departments dedicated to risk management? These often include legal, public relations, and marketing communications teams. They all have the responsibility to keep the public face of the company as free from blemishes as possible.</p><blockquote><em>Disruption requires risk. No great invention, change, or innovation ever came from doing the same thing over and over. You have to be ready to break things along the way.</em></blockquote><h4>Their Disadvantage</h4><p>When you begin to understand the issues that faced by teams tasked with innovation projects, skunkworks programs, or disrupting old models you can see how simple objectives for us turn into difficult ones for them. While many of us perhaps envy their resources, they’re actually at a huge disadvantage to us in every other way. They have a massive problem, one that we set out to solve:</p><blockquote><em>For them innovation, product development, and skunkworks is expensive, slow, regulated, ineffective, and swimming against the current.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb0a212a84e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/the-problem-with-corporate-innovation-cb0a212a84e5">The problem with corporate innovation</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should give Rails a try in 2019]]></title>
            <link>https://medium.com/codelitt/why-you-should-give-rails-a-try-c0e5146f4b08?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/c0e5146f4b08</guid>
            <category><![CDATA[ruby-on-rails-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Remy Kaloustian]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 18:43:50 GMT</pubDate>
            <atom:updated>2019-07-05T18:45:55.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VA2RgwF0-ZKJYK7b.png" /></figure><p>In this article I want to present a couple reasons why Ruby on Rails is still a reliable and efficient framework.</p><h3><strong>Ruby is easy to learn, read and understand</strong></h3><p>One of the first things that you may notice while learning Ruby is that the syntax is extremely basic and simple. Indeed Ruby is a language that was made for simplicity and readability. Its own creator said that it was made for productivity and fun. If you try Ruby it is almost guaranteed that you will face no problems concerning code comprehension, and that is a (first) good reason to give rails a try. Just to give you an example, here is a class in C++ and Ruby:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%28171%252C%2520184%252C%2520195%252C%25201%29%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25250A%25252F%25252F%252520In%252520C%25252B%25252B%25250A%252523include%252520%25253Cbits%25252Fstdc%25252B%25252B.h%25253E%252520%25250Ausing%252520namespace%252520std%25253B%252520%25250Aclass%252520Human%252520%25250A%25257B%252520%25250A%252520%252520%252520%252520private%25253A%25250A%252520%252520%252520%252520string%252520name%25252C%252520bool%252520gender%25253B%25250A%252520%252520%252520%252520%25250A%252520%252520%252520%252520public%25253A%252520%25250A%252520%252520%252520%252520void%252520printname%28%29%252520%25250A%252520%252520%252520%252520%25257B%252520%25250A%252520%252520%252520%252520%252520%252520%252520cout%252520%25253C%25253C%252520%252522The%252520name%252520is%252520%252522%252520%25253C%25253C%252520name%25253B%252520%25250A%252520%252520%252520%252520%25257D%252520%25250A%25257D%25253B%25250A&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%28171%25252C%252520184%25252C%252520195%25252C%2525201%29%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525250A%2525252F%2525252F%25252520In%25252520C%2525252B%2525252B%2525250A%25252523include%25252520%2525253Cbits%2525252Fstdc%2525252B%2525252B.h%2525253E%25252520%2525250Ausing%25252520namespace%25252520std%2525253B%25252520%2525250Aclass%25252520Human%25252520%2525250A%2525257B%25252520%2525250A%25252520%25252520%25252520%25252520private%2525253A%2525250A%25252520%25252520%25252520%25252520string%25252520name%2525252C%25252520bool%25252520gender%2525253B%2525250A%25252520%25252520%25252520%25252520%2525250A%25252520%25252520%25252520%25252520public%2525253A%25252520%2525250A%25252520%25252520%25252520%25252520void%25252520printname%28%29%25252520%2525250A%25252520%25252520%25252520%25252520%2525257B%25252520%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520cout%25252520%2525253C%2525253C%25252520%25252522The%25252520name%25252520is%25252520%25252522%25252520%2525253C%2525253C%25252520name%2525253B%25252520%2525250A%25252520%25252520%25252520%25252520%2525257D%25252520%2525250A%2525257D%2525253B%2525250A&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c7b93ee9971824e178bdae6196f4072/href">https://medium.com/media/0c7b93ee9971824e178bdae6196f4072/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%28171%252C%2520184%252C%2520195%252C%25201%29%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%252523%252520In%252520Ruby%25250Aclass%252520Human%2525C2%2525A0%25250A%2525C2%2525A0def%252520initialize%28name%25252C%252520gender%29%2525C2%2525A0%25250A%2525C2%2525A0%252540name%252520%25253D%252520name%2525C2%2525A0%25250A%2525C2%2525A0%252540gender%252520%25253D%252520gender%2525C2%2525A0%25250A%2525C2%2525A0end%2525C2%2525A0%25250A%2525C2%2525A0%25250A%2525C2%2525A0def%252520printname%2525C2%2525A0%25250A%2525C2%2525A0puts%252520%252522The%252520name%252520is%252520%252523%25257B%252540name%25257D%252522%2525C2%2525A0%25250A%2525C2%2525A0end%2525C2%2525A0%25250Aend&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%28171%25252C%252520184%25252C%252520195%25252C%2525201%29%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252523%25252520In%25252520Ruby%2525250Aclass%25252520Human%252525C2%252525A0%2525250A%252525C2%252525A0def%25252520initialize%28name%2525252C%25252520gender%29%252525C2%252525A0%2525250A%252525C2%252525A0%25252540name%25252520%2525253D%25252520name%252525C2%252525A0%2525250A%252525C2%252525A0%25252540gender%25252520%2525253D%25252520gender%252525C2%252525A0%2525250A%252525C2%252525A0end%252525C2%252525A0%2525250A%252525C2%252525A0%2525250A%252525C2%252525A0def%25252520printname%252525C2%252525A0%2525250A%252525C2%252525A0puts%25252520%25252522The%25252520name%25252520is%25252520%25252523%2525257B%25252540name%2525257D%25252522%252525C2%252525A0%2525250A%252525C2%252525A0end%252525C2%252525A0%2525250Aend&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/9705aa458ac90b172092de7eecec51e5/href">https://medium.com/media/9705aa458ac90b172092de7eecec51e5/href</a></iframe><p>As you can see, in C++ we have a little more symbols than in Ruby. While this difference is not huge, in the long run it might make a difference, for example when you are on a 50+ files project. Not only that, but the code in those lines is less prone to confusion in Ruby, especially from a beginner’s viewpoint. A beginner may get confused when seeing #include &lt;bits/stdc++.h&gt;, using namespace std;, private or public, and the &lt;&lt; operator which will need its own explanation with streams in C++.</p><p>Of course there are other languages to choose from, not just C++, but that was just to give you an example between a not so straightforward syntax and a clear, simple, basic syntax, to demonstrate how Ruby tends to minimize the headaches.</p><h3><strong>It’s fullstack</strong></h3><p>One of the wonderful advantages of a Ruby on Rails project is that it is a fullstack technology, meaning, it takes care of the front-end AND back-end. The back-end is handled by Ruby files, and the front-end is made of HTML, CSS and JS files. This is definitely a plus because it keeps everything in the same ecosystem, thus avoiding having to use different libraries for just basic features (if your project is big you will probably need libraries at the end of the day anyway). What makes this fullstack aspect even more convenient is the mapping between the controllers from the back-end and the views from the front-end without any additional code. With rails, it feels like everything automatically clicks together.</p><p>Another great aspect is if you feel limited by Rails, you can add another technology on top of it, but that’s for the next part…</p><h3><strong>You can add a front-end framework</strong></h3><p>Imagine the front-end of your Rails app is significant, you have a lot of components you can reuse and you think JS is limited in that sense. Wouldn’t it be better if you could work with React, Angular, Vue? With Rails, you can. In fact I don’t even have to redirect you to some specific websites, through some forgotten article, just type “add React/Angular/VueJs to rails” and you will find a ton of articles telling you how to do that. Not a lot of frameworks allow you to do so and that is just another great plus of Ruby on Rails.</p><p>So far we have seen that a project on Rails is easy to start/grow/understand, is self-sufficient and has front-end/back-end mapping to make things simple, and can be improved with a front-end framework. This alone could be enough to make you lean towards Rails. If you are still hesitant, Rails has other advantages for you.</p><h3><strong>Selecting from DB is easy</strong></h3><p>You learned that Rails has a back-end part, but do you know if it’s convenient to interact with the database? Have you rehearsed your SQL requests yet? No? Perfect, you won’t need</p><p>them, because you can manipulate the DB directly from the back-end Ruby files WITHOUT having to write SQL requests. Let me show you how it looks.</p><p>Imagine you had a <strong>User </strong>table. Here are some operations you can do:</p><p>Creating a User</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%28171%252C%2520184%252C%2520195%252C%25201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%252540user%252520%25253D%252520User.new%28%25253Aemail%252520%25253D%25253E%252520%2527test%252540example.com%2527%25252C%2525C2%2525A0%25253Apassword%252520%25253D%25253E%252520%2527password%2527%25252C%2525C2%2525A0%25253Aname%252520%25253D%25253E%252520%2527User1%2527%29&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%28171%25252C%252520184%25252C%252520195%25252C%2525201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252540user%25252520%2525253D%25252520User.new%28%2525253Aemail%25252520%2525253D%2525253E%25252520%27test%25252540example.com%27%2525252C%252525C2%252525A0%2525253Apassword%25252520%2525253D%2525253E%25252520%27password%27%2525252C%252525C2%252525A0%2525253Aname%25252520%2525253D%2525253E%25252520%27User1%27%29&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ce89d84e4572ede6209d5d2c479eb44/href">https://medium.com/media/2ce89d84e4572ede6209d5d2c479eb44/href</a></iframe><p>Selecting a User:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%28171%252C%2520184%252C%2520195%252C%25201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DUser.find_by%252520name%25253A%252520%2527User1%2527&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%28171%25252C%252520184%25252C%252520195%25252C%2525201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DUser.find_by%25252520name%2525253A%25252520%27User1%27&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf0bd11888a466f1fa96f2630eb3e570/href">https://medium.com/media/bf0bd11888a466f1fa96f2630eb3e570/href</a></iframe><p>Updating a User</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%28171%252C%2520184%252C%2520195%252C%25201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Duser%252520%25253D%252520User.find_by%252520name%25253A%252520%2527User1%2527%25250Auser.update_attributes%28%25253Aname%252520%25253D%25253E%252520%252522MuchBetterName%252522%29&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%28171%25252C%252520184%25252C%252520195%25252C%2525201%29%26t%3Doceanic-next%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Duser%25252520%2525253D%25252520User.find_by%25252520name%2525253A%25252520%27User1%27%2525250Auser.update_attributes%28%2525253Aname%25252520%2525253D%2525253E%25252520%25252522MuchBetterName%25252522%29&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/712112c956bf67fa157882d5f5a1b071/href">https://medium.com/media/712112c956bf67fa157882d5f5a1b071/href</a></iframe><p>As you can see, no need to connect to the database beforehand, no long SQL requests, it is very short, easy to use and understand.</p><h3><strong>The console makes the DB interactions quick</strong></h3><p>Still with the database, let’s talk about the console. If your app has a database, you would want to have some kind of access to it right? Fortunately for you, Rails comes with a console that allows you to do all the operations you need in a DB. For example, if you want to add some Users, you don’t have to write this in one of your back-end files that will be executed after you launch the app, you can just do that from the console. All updates/insertions/deletions/selections are possible from the console and give you a much more direct way to interact with the database than having to integrate that in your app and then remove it when it’s done. It is also useful if you are joining a project and want to see the different tables and their attributes without having to go through every feature or every file.</p><h3><strong>A lot of stuff is generated</strong></h3><p>With Rails, you can generate a lot of files. For example, in the back-end we have what we controllers, which is a file dedicated to a specific route in the app (<a href="http://yourwebsite/feature">http://yourwebsite/myfeature</a> will be taken care of by the myfeature_controller). After executing generate controller myfeature, you will have created:</p><ul><li>A controller file myfeature_controller.rb</li><li>A view file myfeature.html.erb</li><li>A test file myfeature_controller_test.rb</li><li>A coffeescript file for dynamic front-end management myfeature.coffee</li><li>A sass file for front-end styling myfeature.scss</li></ul><p>And that’s just after running only one command!</p><p>Rails always has your back when it’s time to generate controllers or migrations (files for database modifications). In addition, the automatic mapping that is done behind the scene gives the rails ecosystem a great sense of cohesion, which, while it may seem confusing at first, will make sense later on and will help keep the project/naming coherent.</p><h3><strong>The documentation is well detailed</strong></h3><p>If you need help on anything concerning Rails I would suggest the documentation and the guide. The documentation is really helpful, with a lot of different examples to show the different use and parameters of functions (for example, here is the documentation on the <em>redirect_to</em> method <a href="https://api.rubyonrails.org/classes/ActionController/Redirecting.html">https://api.rubyonrails.org/classes/ActionController/Redirecting.html</a> ). The guides that help you start on Rails is also well done and will help you become efficient quickly with this framework. Here are some links to give you an idea:</p><p>The documentation: <a href="https://api.rubyonrails.org/">https://api.rubyonrails.org/</a></p><p>The guide: <a href="https://guides.rubyonrails.org/">https://guides.rubyonrails.org/</a></p><h3><strong>Fast implementation</strong></h3><p>All the previous points lead us to another advantage which is far from negligible: Fast implementation. The way Ruby on Rails is done, the way you use it, the language it uses, the tools around it, all of that is a great …when you want to implement features quickly without working 40 hours a day. The easiness of the syntax makes you learn, progress and add features faster. The fact that it’s fullstack means you don’t have to master another piece of technology and reduces your learning time. Adding a front-end framework will allow you to create more structured JS code(or even dynamic code) and you can have components that you reuse, thus limiting code creation/duplication. All the interactions with the database will be quick and simple thanks to the ActiveModel that Rails uses, which means no big requests embedded in strings. Encountering a bug? You can use the database console to check what is happening or look at the multiple online resources.</p><h3><strong>Conclusion</strong></h3><p>I had no idea Ruby on rails existed when I started programming as a job. However, without any knowledge of this framework or the Ruby language, I was able to quickly learn the paradigm and consider it to be one of my favorites (if not my favorite) tools (I’m no genius so I think you can do it too). It is one of the only tools I have worked with when on multiple occasions I said to myself “Woa, that stuff is neat.” But at the end of the day you use</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0e5146f4b08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/why-you-should-give-rails-a-try-c0e5146f4b08">Why you should give Rails a try in 2019</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Fortune 500, sorted by year founded]]></title>
            <link>https://medium.com/codelitt/the-fortune-500-sorted-by-year-founded-d811a96e477a?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/d811a96e477a</guid>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[fortune-500]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Codelitt]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 18:41:25 GMT</pubDate>
            <atom:updated>2019-11-21T19:40:00.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0hceAjrI2S5GEXTDgKElQ.jpeg" /></figure><p>Here at Codelitt Incubator, <a href="https://www.codelitt.com/blog/the-problem-with-corporate-innovation/">we talk a lot about innovation</a>. That’s not an accident. See, innovation is what fuels us. We obsess over it every day in both our products and our work with our partners. Why? Because we have to. All corporations have to. If they don’t, they stagnate and die. 89% of the Fortune 500 went out of business between 1955 and 2015. For startups, that’s great. For large corporations, that’s a pretty scary statistic. Everyone thinks they’re invincible until the day their company’s little arrow turns from green to red for the very last time. There are countless individual cautionary tales, but what if we took a broad look at the Fortune 500? Can we glean any insights by just looking at the year a group was founded?</p><p>*A note on data: I could not find any Fortune 500 lists that included the year the company was founded in, so I found the information myself. Some of the data is inaccurate, so for some companies I adjusted the year they were founded in.(e.g., Alphabet was founded in 2015, but I used Google’s founding year, 1998). Some companies did not have a concretely specified founding year.</p><p>Here’s a link to the PDF I made with the list of companies, and the year they were founded. <br><a href="https://www.codelitt.com/imports/Codelitt_Fortune500.pdf">Download it here.</a></p><p>So, what can we learn from this data set?</p><p>Let’s look at some of the simple facts we can extrude from it.</p><ul><li>23 of the Fortune 500 companies were founded in between 1950 and 1960.</li><li>38 of the Fortune 500 companies were founded in between 1960 and 1970.</li><li>51 of the Fortune 500 companies were founded in between 1970 and 1980.</li><li>63 of the Fortune 500 companies were founded in between 1980 and 1990.</li><li>69 of the Fortune 500 companies were founded in between 1990 and 2000.</li><li>43 of the Fortune 500 companies were founded in between 2000 and 2016, is hugely impressive, considering that companies don’t just magically appear on the Fortune 500, but instead take time to build up to Fortune 500 scale (the lowest spot on the list made $5.1 billion in revenue for the year).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gsVYF8NmL0g6AGby.jpg" /></figure><p>While it’s impossible to make fully fleshed out conclusions just from this data, we can make some strong assumptions. It seems as if since the Fortune 500 list debuted in 1955, new companies have been knocking out older, more established companies. What’s astounding is the constant growth of newer companies being added to the list, despite the fact that they’ve had less time to mature. 43 companies that are on the list were founded between the year 2000 and the year 2016. This is five more companies than were founded between 1960 and 1970, despite the 40-year head start.</p><p>Why is this happening?</p><p>Firstly, it’s impossible to tell exactly why companies have fallen out of the top 500 from only this data. Although it’s possible that companies made less revenue because of factors such as world finance, consumer spending, and even the weather, we can make assumptions as to why so many new companies are joining the ranks.</p><p>Startups act differently than huge, mature corporations. People in startups are laser focused on innovating in their field, learning quickly, and growing. People in mature corporations are focused on selling their current products, thinking about “version 27” of their core product, and maintaining the status quo. Startups are quick; corporations are slow. Startups innovate; corporations optimize P&amp;L’s. Startups grow; corporations die. Are these universal rules? Of course not. Some of the biggest corporations are great innovators. But the statistics do offer us a complete picture of one fact: New companies are quickly replacing old companies on the Fortune 500 list.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d811a96e477a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/the-fortune-500-sorted-by-year-founded-d811a96e477a">The Fortune 500, sorted by year founded</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating your task list building and focusing on what matters]]></title>
            <link>https://medium.com/codelitt/automating-your-task-list-building-and-focusing-on-what-matters-df07fd1280e8?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/df07fd1280e8</guid>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Kaio Magalhães]]></dc:creator>
            <pubDate>Tue, 02 Jul 2019 15:06:37 GMT</pubDate>
            <atom:updated>2019-07-04T22:28:03.280Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Automating your task list creation and focusing on what matters</strong></p><p>A major distinction from my previous engineering position to my current role as CTO is the number of small tasks I have. As an engineer, on any given week, I’d have two to three big tasks and about five to ten small ones. It was simple to track what I would be working on throughout the day, and I could generally trust my memory to remember everything. Currently, the number of tasks on my to-do list is more than fifty in total, twenty of which are due today. I can’t name more than five, which means that if I had to trust my wits with this, I would be in deep trouble.</p><p>With all of these new tasks, the challenge became prioritization and timeliness. Some of my core responsibilities include:</p><ol><li>Addressing client requests.</li><li>Improving the team’s process.</li><li>Improving the company’s process.</li><li>Mediating internal discussions.</li><li>Helping the team with technical decisions.</li></ol><p>In my first attempt to keep track of things, I bought a paper notebook. I would write every task on it, and every morning I would work on the items in the order I wrote them. The problem with this approach was that if something was critical, I would have to address it first. If I didn’t have time for the first one, I would need to move it to the next day. When this scenario happens once or twice, it’s okay. In a complex environment like mine though, it happens too often. At some point, I had thirty-two tasks spread across different pages mixed between completed, and not yet done; it was a mess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*tJAme3-mSVS9a22jSqHaZQ.jpeg" /></figure><p>At some point, I realized it was impossible to keep track of everything using a paper notebook. In my search for a more straightforward way to create dynamic task lists I found Todoist. Todoist worked well with my process, and gave me a better idea of what was waiting for me daily.</p><p>I still had a problem to solve: I had too many new tasks. Sometimes they came from email, sometimes Slack, and let’s not forget the dozens of calls a week. I was adding everything by hand, and realized I needed to automate it in some way.</p><p>Looking to solve this challenge, I found Zapier to be an excellent assistant. Through it, I could send tasks to my to-do list without having to type everything. My first test was to send a task to Todoist by starring it on Slack. I fell in love with the idea of not having to copy and paste any more.</p><p>Below you have the most notable automation examples that I’ve been using.</p><p>Tools used:</p><ul><li><a href="https://www.google.com/calendar">Google Calendar</a></li><li><a href="https://zapier.com/https://zapier.com/">Zapier</a></li><li><a href="https://slack.com/">Slack</a></li><li><a href="https://gmail.com/">Gmail</a></li><li><a href="https://getpocket.com/">GetPocket</a></li><li><a href="https://www.google.com/chrome/">Chrome</a></li><li>Todoist</li></ul><p>How I build my “To read list” from Slack</p><ol><li>Slack — When someone posts a management link I can tag 📗in the message and it goes to my Todoist “To Read” project with the tag “Management”.</li><li>Slack — When someone posts an engineering link I can tag 📘in the message and it goes to my Todoist “To Read” project with the tag “Engineering”.</li><li>Slack — When someone posts a none of the above link I can tag 📖 in the message and it goes to my Todoist “To Read” project.</li><li>GetPocket /Chrome — When I’m in a page and I want to add it to my Todoist “To Read” project, I press “ctrl + P” and it adds the page to Pocket, which sends it to todoist.</li></ol><p>How I keep up with what happens on the company</p><ol><li>Slack — When my name is mentioned in a channel that I have access to I receive an item on my Todoist “Mentions” project.</li><li>Slack — When I need to take action based on a Slack message I just need to star it to receive an item on my Todoist “Work” project.</li><li>Gmail — When I need to take action based on an Email message I just need to star it to receive an item on my Todoist “Work” project.</li><li>Github — When someone adds me to a Github review it goes to my Todoist “Work” project.</li></ol><p>Bonus:</p><p>Lately, I’ve been doing some effort to stop overworking, and <a href="https://en.wikipedia.org/wiki/Gargoyles_(TV_series)">Goliath</a> has an interesting way to warn me about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hy1NYjHIjmr0EXCmRtb0yw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df07fd1280e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/automating-your-task-list-building-and-focusing-on-what-matters-df07fd1280e8">Automating your task list building and focusing on what matters</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin — KTX Fragments, Palette & SQLite]]></title>
            <link>https://medium.com/codelitt/kotlin-ktx-fragments-palette-sqlite-bc6fe34a9976?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc6fe34a9976</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ktx]]></category>
            <dc:creator><![CDATA[Alejandro Moya]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 20:41:30 GMT</pubDate>
            <atom:updated>2019-06-13T14:06:56.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGCGWk7J1JJl6_zBr1QGcA.png" /></figure><h3>Kotlin — KTX Fragments, Palette &amp; SQLite</h3><p>To continue with the KTX series, we are going to talk about a couple of libraries and their extensions.</p><h4>Fragments</h4><p>We all know that in Android, fragments are an important part of UI construction. We use them many times to create reusable UI elements and to make the UX more flexible.</p><p>This library gives us some handy extensions that will help us on our every day development time.</p><ul><li>So, how do we add the library to the project?:</li></ul><pre>dependencies {<br>    implementation “androidx.fragment:fragment-ktx:$version&quot;<br>}</pre><p>$version will be the current version of the library.</p><ul><li>Now, let’s get the ViewModel‘s:</li></ul><pre>//The activity ViewModel<br>val viewmodel: TheViewModel by activityViewModels()<br>//The fragment ViewModel<br>val viewmodel: TheViewModel by viewModels()<br>//Create a ViewModel<br>val viewmodel: TheViewModel by <br>                        createViewModelLazy(TheViewModel::class, {getViewModelStore()})</pre><p>🚨Be careful, access the property after onAttach or you’ll get an exception💥</p><p>All of the methods are lazy and allow a custom ViewModelProvider.Factory and in the case of viewModels() you can customize the ViewModelStoreOwner.</p><ul><li>If we need to work with FragmentTransaction we can use these two methods:</li></ul><pre>commit(/* optional allowStateLoss */) { transaction -&gt;<br>    //block to be committed if no exception is triggered<br>}</pre><pre>commitNow(/* optional allowStateLoss */) { transaction -&gt;<br>    //block to be committed if no exception is triggered<br>}</pre><h4>Palette</h4><p>If we want to have a color palette available in our apps, we can use this library, so, let’s add it:</p><pre>dependencies {<br>    implementation “androidx.palette:palette-ktx:$version&quot;<br>}</pre><p>$version will be the current version of the library.</p><p>This library is really small, Palette creates a color palette from the “prominent” colors of a bitmap, this extension allows us to use the Target as a key [] . This means:</p><pre>val palette = Palette.from(bitmap).generate<br>val target = Target.VIBRANT<br>val selectedSwatch = palette[target]</pre><h4>SQLite</h4><p>As with our previous post about Anko and the SQLite extensions, we see that KTX wanted to give us some help to with the native database library present on Android. Here’s the snippet that includes this one:</p><pre>dependencies {<br>    implementation “androidx.palette:palette-ktx:$version&quot;<br>}</pre><p>In this case, they didn’t get much into the extensions, there’s only one extension available and it’s the same as the Anko version of the transaction with the block and auto-commit:</p><pre>db.transaction(exclusive = false /* default is true */) {<br>    //transaction related code<br>}</pre><p>In the next post we are going to check the collections extensions, hope you like me showing all the good things @ KTX 😄.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6fe34a9976" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/kotlin-ktx-fragments-palette-sqlite-bc6fe34a9976">Kotlin — KTX Fragments, Palette &amp; SQLite</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack and KTX]]></title>
            <link>https://medium.com/codelitt/jetpack-and-ktx-ea97b17d9977?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/ea97b17d9977</guid>
            <category><![CDATA[android-ktx]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Alejandro Moya]]></dc:creator>
            <pubDate>Tue, 28 May 2019 17:00:03 GMT</pubDate>
            <atom:updated>2019-05-28T17:00:03.363Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGCGWk7J1JJl6_zBr1QGcA.png" /></figure><h3>Kotlin — Jetpack and KTX</h3><p>After a series of posts about Anko, it was natural to move to KTX, on this post i’m going to show you the library from google that has many things similar to Anko and some new stuff.</p><h4>First of all, where does KTX come from?</h4><p>Well, google is revamping the set of libraries for android, the old support libraries meant to reduce the operating system fragmentation was renamed to <a href="https://developer.android.com/jetpack/androidx">androidx</a> and together with some new things including KTX they are now called <a href="https://developer.android.com/jetpack">Jetpack</a>. These tools are meant to help android developers not only avoid the system fragmentation, but also have a set of tools that make android development pleasant, more productive and performant.</p><h4>So, what’s the purpose of KTX specifically?</h4><p>As with Anko, this library contains a set of kotlin functions and extensions to different components that will help us with our daily work. Only the core of KTX contains tools for graphics, animations, content, preferences, text, views and widgets.</p><p>With the introduction properly done, let’s move to the real thing. We need to add the library to the project, this is done by adding these things:</p><pre>// in the project gradle file, the root gradle file just in case, <br>// we need to add the google repository<br>repositories {<br> google()<br>}</pre><pre>// on the module gradle file we need to add the library<br>dependencies {<br> implementation &#39;androidx.core:core-ktx:1.0.0&#39;<br>}</pre><p>Now we can start using the library! 🎉</p><p>In the case of KTX the documentation for all the tools is available as part of the android documentation, this is more straightforward than Anko, you don’t need to go thru the library files and check for the available functions and extensions.</p><p>Let’s start with some easy things from the core library:</p><p>We want to extract the color components:</p><pre>val theColor = Color.RED // this could be a Long or Float too, <br>//here it&#39;s Int</pre><pre>theColor.component1() //alpha<br>theColor.component2() //red<br>theColor.component3() //green<br>theColor.component4() //blue</pre><pre>//an Int value<br>theColor.toColorLong()<br>//a Long value<br>theColor.toColorInt()</pre><p>Kotlin has methods to create arrays, maps and other collections, with KTX you can create a ContentValues object in this way:</p><pre>contentValuesOf(Pair(&quot;a&quot;, 0), Pair(&quot;b&quot;, 1))</pre><p>You can edit preferences using this:</p><pre>//defaultSharedPreferences is from Anko, they work really well together huh?<br>//the commit is optional<br>`Context`.defaultSharedPreferences.edit(commit = true) {  <br>    putString(&quot;key&quot;, value)<br>}</pre><p>You can get a system service in this way:</p><pre>val powman = `Context`.getSystemService&lt;PowerManager&gt;()</pre><p>Some bitmap helpers?:</p><pre>myBitmap.toDrawable(getResources())<br>myBitmap.toAdaptiveIcon()<br>myBitmap.toIcon()<br>//also from a ByteArray<br>myByteArray.toIcon()<br>//And Uri<br>myUri.toIcon()<br>//from Drawable<br>//parameters are optional<br>myDrawable.toBitmap(width, height, config&#39;Bitmap.Config&#39;)<br>//Also here parameters are optional<br>myDrawable.updateBounds(left, top, right, bottom)</pre><p>Work with Animator?:</p><pre>myAnimator.addListener(onEnd = {animator -&gt; Unit},<br>      onStart = {animator -&gt; Unit},<br>      onCancel = {animator -&gt; Unit},<br>      onRepeat = {animator -&gt; Unit})<br>myAnimator.addPauseListener(onResume = {animator -&gt; Unit},<br>       onPause = {animator -&gt; Unit})<br>myAnimator.doOnCancel({animator -&gt; Unit})<br>myAnimator.doOnEnd({animator -&gt; Unit})<br>myAnimator.doOnPause({animator -&gt; Unit})<br>myAnimator.doOnRepeat({animator -&gt; Unit})<br>myAnimator.doOnResume({animator -&gt; Unit})<br>myAnimator.doOnStart({animator -&gt; Unit})</pre><p>Access a Location component?:</p><pre>myLocation.component1()<br>myLocation.component2()</pre><p>Some Uri helpers:</p><pre>myUri.toFile()<br>myFile.toUri()<br>myString.toUri()</pre><p>Create a bundle like you would do with other collections:</p><pre>bundleOf(Pair(&quot;a&quot;, 0), Pair(&quot;b&quot;, 1))<br>persistableBundleOf(Pair(&quot;a&quot;, 0), Pair(&quot;b&quot;, 1))</pre><p>Post at time?</p><pre>val time = //uptime in millis Long<br>myHandler.postAtTime(time) { }</pre><pre>val delay = //delay in millis Long<br>myHandler.postDelayed(delay) { }</pre><pre>//both have an optional token parameter</pre><p>We always need to work with text values, some helpers?</p><pre>val numbers = &quot;1234&quot;<br>if (numbers.isDigitsOnly()) { /*will execute this*/ }</pre><pre>val text = &quot;My text &quot;<br>val count = text.trimmedLength() //will return the lenght without the space</pre><pre>val htmlString = &quot;&lt;b&gt;MyBoldText&lt;/b&gt;&quot;<br>val spanned = htmString.parseAsHtml() //this method contains optional parameters to handle different scenarios<br>val newHtmlString = spanned.toHtml() //Also contains an optional parameter</pre><pre>val locale = Locale()<br>val direction = locale.layoutDirection</pre><p>To build spanned text there’s a variety of extension methods that allow to add text and formatting. You can go <a href="https://developer.android.com/reference/kotlin/androidx/core/text/package-summary">here</a> for details on the extension methods.</p><p>Along with these there are extensions for typed AtomicFile, SparseArray, LruCache, Range, extensions to convert to Half, Pair, Size, all of these are available in <a href="https://developer.android.com/reference/kotlin/androidx/core/util/package-summary">this link</a>.</p><p>On the next post we will see more on KTX as this one just covers the core, as with Anko there are lots of things that can be used from these libraries that will make your development experience in Kotlin really pleasant.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea97b17d9977" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/jetpack-and-ktx-ea97b17d9977">Jetpack and KTX</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anko & the SQLite]]></title>
            <link>https://medium.com/codelitt/anko-the-sqlite-1dafe7797449?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/1dafe7797449</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Alejandro Moya]]></dc:creator>
            <pubDate>Wed, 22 May 2019 17:39:37 GMT</pubDate>
            <atom:updated>2019-05-22T17:39:36.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGCGWk7J1JJl6_zBr1QGcA.png" /></figure><h3>Kotlin — Anko &amp; the SQLite</h3><p>In the previous post we went through a layout DSL from Anko that allows dynamic UI building entirely from code. Today we are going to check some great SQLite extensions that will make accessing a SQLite database look like one of the simplest things in our daily work.<br>I personally prefer <a href="https://realm.io/docs">Realm</a> over SQLite for speed, API and it’s core written in C++, but i know many projects rely on SQLite, and we are covering all the good things in Anko, so let’s be good with it.</p><p>In the regular way, to open a SQLite database we need to subclass SQLiteOpenHelper, in Anko we need to subclass ManagedSQLiteOpenHelper and override some methods:</p><pre>class MyDatabaseOpenHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, “MyDatabase”, null, 1) {<br>    companion object {<br>        private var instance: MyDatabaseOpenHelper? = null</pre><pre>        @Synchronized<br>        fun getInstance(ctx: Context): MyDatabaseOpenHelper {<br>            if (instance == null) {<br>                instance =             <br>                   MyDatabaseOpenHelper(ctx.getApplicationContext())<br>            }<br>            return instance!!<br>        }<br>    }</pre><pre>    override fun onCreate(db: SQLiteDatabase) {<br>        // Here you create tables<br>        db.createTable(“User”, true, <br>        “id” to INTEGER + PRIMARY_KEY + UNIQUE,<br>        “name” to TEXT,<br>        “email” to BLOB)<br>    }</pre><pre>    override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int,    <br>                                           newVersion: Int) {<br>        // Here you can upgrade tables, as usual<br>        db.dropTable(“User”, true)<br>    }<br>}</pre><pre>// Access property for Context<br>val Context.database: MyDatabaseOpenHelper<br> get() = MyDatabaseOpenHelper.getInstance(getApplicationContext())</pre><p>The access property created makes it easy to use the database:</p><pre>database.use {<br>    //’this’ refers to the SQLiteDatabase instance <br>}</pre><p>This is similar to:</p><pre>val db = database.writableDatabase</pre><p>But this last example requires running the commands and calling close() when finished.</p><p>In the previous snippet you see some details about how to create and drop tables:</p><pre>db.createTable(“User”, true, <br> “id” to INTEGER + PRIMARY_KEY + UNIQUE,<br> “name” to TEXT,<br> “email” to BLOB)</pre><pre>///</pre><pre>db.dropTable(“User”, true)</pre><p>Following we should see how to insert, update and delete:</p><pre>database.use {<br>    insert(“User”,<br>    “id” to 42,<br>    “name” to “John”,<br>    “email” to “<a href="/service/mailto:user@domain.org">user@domain.org</a>”)<br> <br>    update(“User”, “name” to “Alice”)<br>    .where(“id = {userId}”, “userId” to 42)<br>    .exec()<br>    //or<br>    update(“User”, “name” to “Alice”)<br>    .`whereSimple`(“id = ?”, 42)<br>    .exec()</pre><pre>    val numRowsDeleted = delete(“User”, <br>    “id = {userID}”, <br>    “userID” to 42)<br>}</pre><p>We could use a transaction for all these operations:</p><pre>database.use {<br>    transaction {<br>        insert(“User”,<br>        “id” to 42,<br>        “name” to “John”,<br>        “email” to “<a href="/service/mailto:user@domain.org">user@domain.org</a>”)<br> <br>        update(“User”, “name” to “Alice”)<br>        .where(“id = {userId}”, “userId” to 42)<br>        .exec()<br>        //or<br>        update(“User”, “name” to “Alice”)<br>        .`whereSimple`(“id = ?”, 42)<br>        .exec()</pre><pre>        val numRowsDeleted = delete(“User”, <br>        “id = {userID}”, <br>        “userID” to 42)<br>    }<br>}</pre><p>There are also replace() insertOrThrow() replaceOrThrow() methods that can be used accordingly.</p><p>Now we should know how to query data right?:</p><pre>val db = database.readableDatabase</pre><pre>db.select(“User”, “email”).exec {<br> //you receive a Cursor with the email column in the block<br>}</pre><pre>db.select(“User”).`whereSimple`(“id = ?”, 42).exec {<br> //you receive a Cursor with the User columns in the block<br>}</pre><p>There are more options for the query builder, also there’s a parsing helper that maps the cursor to an array or map.</p><p>This was the last post about Anko, i hope you found this helpful and encouraging to use these libraries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dafe7797449" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/anko-the-sqlite-1dafe7797449">Anko &amp; the SQLite</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anko & the layouts]]></title>
            <link>https://medium.com/codelitt/anko-the-layouts-c9ce6aadde2a?source=rss----ac51f56a4b70---4</link>
            <guid isPermaLink="false">https://medium.com/p/c9ce6aadde2a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Alejandro Moya]]></dc:creator>
            <pubDate>Tue, 14 May 2019 19:46:26 GMT</pubDate>
            <atom:updated>2019-05-15T13:51:20.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGCGWk7J1JJl6_zBr1QGcA.png" /></figure><h3>Kotlin — Anko &amp; the layouts</h3><p>In the previous post we found some good tools to help reduce code in Android apps. Now we are going to add a twist, we can remove the XML layouts and create a dynamic UI strictly from code, a real power tool from Anko, as this also makes this process really simple and flexible.</p><p>This part of the library is really flexible, you can replace or include xml layouts, and by include I mean you can keep your existing layouts and include them in the dynamic code.</p><p>A quick example:</p><pre>verticalLayout {<br>    padding = dip(5) //remember the dip method from commons?<br>    val user = editText {<br>        hint = “User name”<br>        textSize = 14f<br>    } <br>    val password = editText {<br>        hint = “Password”<br>        textSize = 14f<br>    }<br>    button(“Login”) {<br>        backgroundColor = Color.BLUE<br>        onClick {<br>            toast(“logged in with user ${user.text}”)<br>        }<br>    }<br>}.lparams {<br>    margin = dip(10)<br>}</pre><p>This code is self explanatory, you create a vertical layout with two EditText and one Button, the button is blue and the text size for both fields is 14f, when the button is clicked it shows a toast with the text supplied. The vertical layout has a padding of 5dp and a margin of 10dp, you can also set different sizes for vertical and horizontal, also the classic individual modifiers.</p><p>On the next post we will go through the sqlite tools available on the library.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9ce6aadde2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codelitt/anko-the-layouts-c9ce6aadde2a">Anko &amp; the layouts</a> was originally published in <a href="https://medium.com/codelitt">Codelitt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>