<?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 Tom Leskin on Medium]]></title>
        <description><![CDATA[Stories by Tom Leskin on Medium]]></description>
        <link>https://medium.com/@leskin?source=rss-1d4cbf99f333------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uYtq7NdSLSG6eW_k60sbJQ.jpeg</url>
            <title>Stories by Tom Leskin on Medium</title>
            <link>https://medium.com/@leskin?source=rss-1d4cbf99f333------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 02:24:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leskin/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[Why becoming a software developer can make you feel like you’re living in Denmark]]></title>
            <link>https://medium.com/@leskin/why-becoming-a-software-developer-can-make-you-feel-like-youre-living-in-denmark-c02021ea6f5c?source=rss-1d4cbf99f333------2</link>
            <guid isPermaLink="false">https://medium.com/p/c02021ea6f5c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[student-loans]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[denmark]]></category>
            <dc:creator><![CDATA[Tom Leskin]]></dc:creator>
            <pubDate>Tue, 14 Mar 2017 13:28:54 GMT</pubDate>
            <atom:updated>2017-03-14T13:33:14.496Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Before I get into my this, let me first say that I don’t live in Denmark, nor am I an expert on the country that many say is the happiest in the world. I read a few books about it recently, </em><a href="https://www.amazon.com/Year-Living-Danishly-Uncovering-Happiest/dp/1785780239"><em>this was one of them</em></a><em>, and exchanged a few messages with one of my former college professors who lives there and runs </em><a href="http://www.thesouthgatesociety.com/"><em>a creative writing school</em></a><em>. It all just got me thinking.</em></p><p>I wasn’t always a developer. Before I became a one, which I’ve been doing for almost two years now professionally, I had a college degree, lots of student loan debt and was working as a journalist making about $12.65 an hour and working about 45–50 hours a week, all while still living in my parent’s house. I’m not proud to admit it, but that was my life and I really never saw myself being able to get out of student loan debt or ever being able to make enough to raise and provide for a family — at least the way I wanted to in my mind.</p><p>While attending Penn State, I had no clue what I wanted to do with my life and settled on journalism, but had always fantasied about a job in tech after hearing about companies like Facebook and Google, where apart from amazing salaries, their employees worked in offices with free food, ping-pong/foosball tables and where you could bring your dog to work, if you wanted. Now that I’ve actually achieved my dream and I’m no longer in my early 20’s, I’ve come to realize that all those extra things aren’t what are most important and what should pull you into the field.</p><p>If you look at why people say Denmark is the happiest country in the world, a lot of it has to do with it having a system where everyone is taken care of, this includes with both with healthcare and jobs, and they really have figured out the whole <strong><em>work-life</em></strong> balance thing.</p><p>Looking to Denmark, they may pay a lot in taxes, which is why they have all these things, <em>I won’t get much more political than tha</em>t, but all Danes have the insurance they need so that their health is taken care of. Denmark also has programs in place so that education is free, plus they support lifelong learning, so if someone wanted to improve themselves or switch jobs, <a href="http://denmark.dk/en/society/welfare/education-for-all">they are able to get the training they need</a>.</p><p>How does this compare to being a software developer? Well, if you’re able to acquire the skills needed and can land at a great company, you can have all these things. Many companies will cover a significant portion if not all of your health benefits, plus you’d be in such an in-demand field, that you’ll never have to worry about being unemployable again. Nothing is permanent, as I’ve learned from working for a couple different companies, especially smaller startups, but there are always companies that need to hire developers. Plus, many companies will give you an education stipend that you can use to either take college classes or attend annual conferences. As an added bonus, education and personal betterment is just in the DNA of software engineering, so you’ll be in a career that automatically promotes lifelong learning. I can’t say I’ve heard of very many, if any, Meetup groups for newspaper reporters (not that I’ve actually looked or knew what <a href="http://www.meetup.com/">Meetup</a> was at that time).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tn_l9Pdd2Dp-JnLG0FPzHg.jpeg" /><figcaption>Me giving a talk at Denver Ember in Feb. 2016</figcaption></figure><p>The last thing I want to touch on, is this idea of a <strong><em>work-life balance</em></strong>. Before I got into my dev career, while transitioning and after I left my job as a writer, my partner and I had a hard life for a few years. We were working multiple jobs to try to make ends meet while also in school full-time, her in her master’s program and myself in my software training program. We each probably worked about 50–60 hours a week, working 7 days week and only had a day off once every few weeks. This was a tough few years, but I know there are people that this is their everyday lives.</p><p>In most jobs in America, there is this notion that you have to be working all the time, but that means that you have to make sacrifices in the rest of your life. You may have to go to work, even if you’re sick since you can’t afford to take any time off. You may not get to spend as much time with your family and friends. You may not get much time off when you need it like with a newborn baby in your life. You probably will burn out. You will probably be judged by how many hours you can put in at your desk, not on the quality of your work.</p><p>Going back to Denmark, according to my former professor, a typical work week in Denmark is about 37 hours.</p><blockquote>When the government proposed upping that by ONE hour, there were riots, and the government backed down. We also get 6 weeks of regular vacation, plus national holidays. And if you have children, you get a quarterly stipend to help pay for things your kids might need. We also get unlimited sick days.</blockquote><p>This, in my mind, is probably the best thing about been a developer. I’ve worked for a few companies where we had unlimited vacation time, so if you needed time off, and it was approved by your manager, you were able to take it. Many companies also tend to have a shorter work week and will give you a few hours to spend at the end of the week to just work on something fun or learn something new. Most companies are even giving paternity leave to new dads, which isn’t something you’ll find in too many other careers in the U.S., but <a href="http://www.oresunddirekt.se/in-english/in-english/family-parenting-in-denmark/parental-leave-when-you-work-in-denmark">again something they have in Denmark</a>.</p><p>Not all jobs are perfect, but software development can be a career where if you find the right position, you can work hard, enjoy the work you do and still enjoy everything else you love in life. If you’ve ever been unsatisfied with your work-life balance and want a change. It’s not impossible to change careers. It’s a lot of work, but it’s worth it and a way to have a happier, more fulfilling life. There are tons of free resources out there to start learning like <a href="https://www.freecodecamp.com/">freeCodeCamp</a> or <a href="https://www.codecademy.com/">codecademy</a> and programs like <a href="http://turing.io/">the one I attended</a>, plus the dev community loves fostering the education of new devs.</p><p>Even though I’ve been fascinated with this tiny Nordic country and want to visit someday, I know I’ll never live there, but at least I can enjoy a lot of the great benefits they have there just because of my career path.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c02021ea6f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lightweight cruiser or full-fledged beast? You decide.]]></title>
            <link>https://medium.com/@leskin/lightweight-cruiser-or-full-fledged-beast-you-decide-41c94eb7f935?source=rss-1d4cbf99f333------2</link>
            <guid isPermaLink="false">https://medium.com/p/41c94eb7f935</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[sinatra]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tom Leskin]]></dc:creator>
            <pubDate>Thu, 28 Jul 2016 04:56:14 GMT</pubDate>
            <atom:updated>2016-07-28T05:10:46.858Z</atom:updated>
            <content:encoded><![CDATA[<p>In a recent interview, I was asked a question about when I would chose to use a lightweight framework like Sinatra over a larger framework like Rails. This got me thinking since I really haven’t touched Sinatra in over a year when it was the first web framework I learned at <a href="https://medium.com/u/4d5de5a312c8">Turing School</a>. I’ve grown tremendously in my career and as a developer since then, but I didn’t truly appreciate it at the time. I think now I can offer some perspective that may be helpful to developers even younger in their careers than me.</p><p>To start, before diving into Sinatra, I’ll start with a simple explanation about what Ruby on Rails is, <em>Rails</em> for short, since you’ve probably heard of it.</p><p>Rails is an MVC (Model-View-Controller) web framework written in Ruby in 2004 by David Heinemeier Hansson (DHH). It was created to essentially drive developer happiness just like Ruby and make it very easy to create and manage large scale web apps. One thing to note about Rails though, is the magic. There is lots of what seems like magic under the hood and it has a very steep learning curve to understand all that is happening automatically for you.</p><p>Moving on, if you’re not familiar with Sinatra, it’s a web framework also built with Ruby, but without all the magic. What’s beautiful about Sinatra is its simplicity. It’s as small or as large as you need it to be and you can easily add routes or additional gems/functionality as needed. You can create a simple web app in just 5 lines, as you see I did below, and it’s very easy to understand what’s going on.</p><p>After installing the Sinatra gem, I created a Ruby file called <strong>‘hello.rb’</strong>, required the gem, created a get route at the root or <strong>‘/’</strong> that displays <strong>‘Hello World!’</strong> After that, from your command line you just run, <strong>‘ruby hello.rb’</strong> or whatever you named it and a server is started at <a href="http://localhost:4567."><strong><em>http://localhost:4567</em></strong>.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*cEWIZFy4mfQ6QfdWsx0vAw.png" /></figure><p>That’s it.</p><p>If you visit the browser at that address, you’ll see the text <strong>‘Hello World!’ </strong>This app we created may not do much but it is a web app nonetheless. This example shows exactly why you might choose Sinatra over Rails. If I’m making a simple app with limited functionality, routes and users, I may just want to use Sinatra. As an example, I’ll use one that I created in the past called <a href="https://burritofinder.herokuapp.com/"><strong>Burrito Finder</strong></a>. If all this app was doing was say making a single API call then outputting that data, it might be a bit overkill to make a Rails app. I did actually create the app with Rails, but now as I look back, it’s not too complicated and probably could have been built in Sinatra, Rails does make it easy though to have it fully tested with an integrated test suite and it comes with a database and Active Record out of the box. My Burrito Finder app is backed by a PostgreSQL database that stores user data, deals with authentication with Facebook OAuth, and has some JavaScripts and even a map with Mapbox on the front-end, but still not a ton of functionality that couldn’t have been done in Sinatra.</p><p>Apps can only get larger and more complicated from here. At my previous job, I worked on a platform for MVNOs, which are smaller wireless carriers that piggyback off large carriers like Sprint, purchasing data and voice airtime from them. Our app helped manage their businesses from activating and deactivating cellular devices on their network to managing customers, billing and data usage. It was probably the largest Rails app I’ve ever worked in since it’s been in development for a few years, is backed by thousands of tests and has an extremely complex database. If this app was built in a framework like Sinatra, it would just be a mess and extremely hard to manage.</p><p>When you start getting into an app like I was just describing, a framework like Sinatra would not only be more complicated for an app of that size, but also cause some issues with performance.</p><p>I wouldn’t limit this line of thinking to just the Ruby ecosystem, as there are plenty of other frameworks both on the front-end and backend where you can make similar arguments. Recently I’ve been learning a bit about another backend framework called Flask, which is similar to Sinatra but built with Python. The same arguments would hold true and you typically see people developing large web apps in Python being built with Django.</p><p>As far as lightweight vs. heavyweight frameworks on the front-end, two that I’ve been learning about lately have been React and Ember. While both require knowledge of JavaScript, a React app can get up and running in much less code and knowledge than an Ember app. Okay, React is actually a library and not a full-fledged framework, so you’ll have to build your own foundation and some glue code to get it all wired up, but it has the same philosophy as Sinatra. It can be as little or as much as you need it to be, using add ons like using Flux architecture or the numerous components and add-ons already created by the community. React now even has a way to quickly <a href="https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.html">get started without any configuration</a>.</p><p>With Ember, you have an MVC experience closer to Rails, where there is a command line interface with generators, a built-in dev server and a test suite. There’s lots of magic, but again it has a steep learning curve. Once you understand it though, it’s a great tool for creating and managing complicated UIs and has an add-on system with tons of support from the Ember community.</p><p>As developers, our job is to create amazing experiences and apps with whatever the best tool for the job is. You may initially only learn Rails or how to make simple apps made up of an HTML page, a stylesheet and some simple JavaScripts with jQuery, but as you grow, you’ll understand that there are more ways than one to do something and the way you know isn’t always the best way.</p><p>Sometimes something like a bicycle will get the job done when others you need a Ducati.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41c94eb7f935" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>