<?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 Sean Cannon on Medium]]></title>
        <description><![CDATA[Stories by Sean Cannon on Medium]]></description>
        <link>https://medium.com/@seancannon?source=rss-3cafc5c830b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Zrwx6A4-AGotx9p1BrdCbg.jpeg</url>
            <title>Stories by Sean Cannon on Medium</title>
            <link>https://medium.com/@seancannon?source=rss-3cafc5c830b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:02:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@seancannon/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[8 Things I Wish I Knew When Starting Daz and Ren’Py]]></title>
            <link>https://medium.com/@seancannon/8-things-i-wish-i-knew-when-starting-daz-and-renpy-53356c957a18?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/53356c957a18</guid>
            <category><![CDATA[renpy]]></category>
            <category><![CDATA[daz]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 17:25:25 GMT</pubDate>
            <atom:updated>2022-04-28T17:25:25.247Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been developing software and making games for years, and I decided recently to try making a visual novel with Ren’Py and Daz Studio. As fun as it is to work with these tools, I had a bit of a rough start. Here are 10 things I wish I knew beforehand that would have saved me some headaches.</p><ol><li>Nvidia<br>Having recently upgraded my MacBook Pro for work (software development) a few weeks before starting my Daz adventure, I assumed it would be just fine, and made it really far down the Daz tunnel before realizing that the renders were not using my GPU (AMD Radeon). Some brief reading disclosed to me Daz’s iRay renders use CUDA cores, exclusively from Nvidia. I ended up just buying a refurbished PC with a RTX 2080 Ti to do the renders for me, which went from averaging 20–60 minutes to 1–5 minutes for my particular scenes.</li><li>Lock your cameras<br>One of my opening scenes involves some dialog with a fixed character on a couch. I rendered the environment without the character/couch, and then proceeded to create several renders of various expressions and positions of the character for the dialog. I kept the character and couch together to preserve the iRay shadows of the character <em>on</em> the couch. I imported all the renders into my game at once only to realize I had nudged my viewport a few times and the scenes didn’t line up. The couch was jumping all over the place, couple inches here and there, so I had to start over. I then learned you can lock your camera position. It also helped to save as scene subset or camera preset so I could import it later on if I ever screwed up again.</li><li>Check your scale<br>In the same vein as #2, I had an entire sequence of renders before I realized the main subject in the scene had been scaled to 96.5% somehow. I certainly didn’t do it on purpose and after playing through the sequence it appears they <em>all</em> scaled down, so I just finished the sequence with a slightly smaller model, which bugs me like crazy but I assume nobody will notice, but moving forward I’m paranoid about this.</li><li>Cheap content sucks. <br>When I first started, I didn’t want to pay a bundle on the Daz marketplace for content that I really didn’t know how to use yet, and I stopped being a pirate like 20 years ago so as a compromise I loaded up with legal “freebie” content from various websites like Daz3d.com, Renderosity, Deviant Art, etc., and only realized after several weeks how useless so much of it really was. Clothing and props from Genesis 1,2,3 characters that don’t convert over to Genesis 8 easily and whatnot. Several artists on Daz’s marketplace too are making really bad stuff. Once you find a reputable artist, stick with him/her as much as possible.</li><li>Smoothing iterations for under-boob<br>I realize this one is very specific, and debatably inappropriate, but here we go. Clothing sticks to Genesis models like cling-wrap, and one issue in particular is how nearly all clothing clings up underneath female breasts. It looks ridiculous and unnatural. I spent a lot of money on tools in the Daz store like Fit Control to try to handle the problem, but then discovered in one of the forums that you can just crank the “Smoothing Iterations” slider up and it magically gets rid of the cling so clothing will have more of a straight line from breasts to midsection. Some people on the forum said it didn’t work for them but so far I’m batting 1000 on every model and every piece of clothing I’ve tried. It <em>does</em> have some side-effects though. If the model’s arms are too close to her side, the clothing can bridge across and make it appear like the arms are inside the shirt instead of in sleeves, for example.</li><li>Post work<br>There’s actually a lot of post work required, especially with iRay renders. If you use the de-noiser you will lose a lot of detail, which is fine for certain environment renders or like toon shaders, but for photorealism with people, the de-noiser will also remove the subtle highlights that make the render look so real. That said, I opted to keep the detail and do cleanup after. In the same vein of my “cheap content” point above, I would constantly have “poke-through” areas where my character’s skin would show through clothing. Adjusting sliders all day didn’t help on some clothing items, including sliders for smoothing/collision, matching up subdivisions, etc. I just ended up getting really good with the clone stamp tool in Affinity Photo to cover up those spots. Full disclosure I am not an expert at this, but this where I am now and it would have been nice to know ahead of time how much post work I’d be doing.</li><li>Render big and scale down<br>This is actually an amazing trick. If a scene takes 5 minutes to completely render at 1920x1080, it doesn’t <em>actually</em> take 10 minutes to completely render 3840x2160, but more like 7–8 minutes. The key word here is completely. The final iterations of a render is usually super subtle details. Rendering for 3–4 minutes at 3840 and then scaling the image <em>down</em> to 1920 in your post-processing app will get rid of all the noise and make the photo look very good. You save on render time <em>and</em> get a better final result. For times when I’m only scaling, I just create a batch job in Affinity Photo to scale all my renders for me at once. If you have to do any cover-up work like I mentioned in #6, do that <em>before</em> scaling the photo down.</li><li>Use a 3D mouse<br>Daz has a terrible UX. I’m just going to say that bluntly. Everything from finding content to using the UI with all the menus and tabs. For this point, navigating around your scene with that one little cube you have to drag is just awful and using the mouse scroll wheel is insulting considering how many spins it takes to <em>actually</em> zoom in on something. I already had a 3DConnexion space mouse that I’ve used on previous projects for creating 3d printer models. By default in Daz it will map to the active camera’s viewport so with your left hand you essentially fly through your scene and aim the viewport at what you want. You can also configure it so that the mouse controls your model, but that can become madness trying to get the fine tuning just right. The mouse is already sensitive and you have to do some adjustments for Daz so you aren’t flying at warp 3. The mouse is a HUGE time saver, I highly recommend it. It doesn’t replace my normal mouse. I put the 3D mouse on the left side of my keyboard so my left hand controls the camera and my right hand can control the model with my regular mouse or just standby.</li></ol><p>I hope this helps you when you start your Daz and Ren’Py adventure! Post a link to your game/novel in the comments :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53356c957a18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Steps To Build A Successful MVP]]></title>
            <link>https://medium.com/presence-product-group/10-steps-to-build-a-successful-mvp-bc569e776ee?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc569e776ee</guid>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Sat, 25 Nov 2017 18:11:03 GMT</pubDate>
            <atom:updated>2021-09-08T21:50:25.312Z</atom:updated>
            <content:encoded><![CDATA[<p>Congratulations! Our agency has been commissioned to build and deliver a MVP for a respectable client. What next?</p><p>Before we begin, I want to solidify some nomenclature. I propose “MVP” differs from “prototype”. Prototypes are typically investor-facing or board-facing. Something to prove a concept for securing funding and/or budget for the real thing. I propose MVP is customer-facing, and may even come directly from prototype approval. It’s a brand new thing that the client believes will gain traction and grow. Prototypes do not grow. We build them as fast and as affordable as we can to prove that the ask is technically possible so the client can make some decisions. Once that is proven, we have options on how to turn it into a product, but none of those options should be extending the prototype code. That should be used as reference only. I’ll use a web app as an example for this article, but the concepts translate across industries regardless.</p><p>I also want to make a point to mention that I try really hard to stay out of the weeds in this list. I reference some coding patterns and bash commands, and provide some screen grabs from IntelliJ here and there, and I’m happy to offer further explanation in a comment, but ultimately I don’t want to define the syntax for how you accomplish this goal — just the process.</p><p>Let’s start with the [not-so] common sense check list:</p><h4>1. Define Success</h4><p>Before we write any user stories or code anything, we need to understand what defines success for this project. In other words, what measurable acceptance criteria will prove the app is doing what it needs to do and that our agency delivered what was asked? <em>Never, </em><strong><em>ever</em></strong><em>, begin development until client-subjective becomes agency-objective</em>.</p><h4>2. Define The MV</h4><ul><li><strong>Minimum</strong> : We scope <strong>ONLY</strong> the features required to deliver the MVP. Zero <em>nice-to-have</em> features will be built for 1.0.0. If it’s not in the acceptance criteria from the success definition, it’s a <em>nice-to-have</em> feature.</li><li><strong>Viable</strong> : We scope <strong>ALL</strong> the features required to deliver the MVP. Zero <em>must-have</em> features will be omitted. All <em>must-have</em> features should appear in the acceptance criteria from the success definition.</li></ul><h4>3. Define Services</h4><p>Here is where we start making epics. Some examples:</p><ul><li>E-mail</li><li>SMS</li><li>Authentication</li><li>Static Assets</li><li>Search</li><li>Cache</li><li>Databases</li><li>Message Queue</li><li>Social Networking</li><li>Analytics</li><li>Logging</li></ul><p><strong>Note</strong> : <em>We will want our list to line up nicely with our M and V. For example, if our client is a bank, and the SMS is intended for two-factor auth, it’s a must-have. If it is intended for happy-birthday messages, it is a nice-to-have.</em></p><p>Notice at this point we don’t have any epics for the application logic. Just the service layer and the utility layer. Our app’s IP will leverage these services agnostically. The client needs to be able to swap out any provider of any of the above services or use various providers on a given condition within reasonable expectations. The core IP shouldn’t know or care when that happens.</p><h4>4. Define The Stack</h4><p>At this point we should understand what the MVP should do and who the target audience is. We want to ensure the stack can support the following :</p><ul><li>Request load from users</li><li>Communication with all the external services (REST, SOAP, etc)</li><li>Most common (highest-revenue-potential) user-agent</li><li>Internally-managed services (infrastructure not dependent on a 3rd party API)</li></ul><p>My rule of thumb is to create the app in a way that it doesn’t know if it’s being run on my Mac or in a node cluster in AWS. Using Docker for the app is sometimes a bit cumbersome but it forces us to deal with dependency I/O in an elegant way from the start. Scaling and environment control is a DevOps task — our job at this level is to sandbox our app so it makes no assumptions and makes DevOps easy. Use environment variables when at all possible, allow for easy key rotation, etc.</p><h4>5. Define The Persistence Layers</h4><p>Is our MVP relational or not? Do we need strict schemas or flexible models? Answer these questions and we’ll filter our database and cache options. I typically recommend leaning towards whatever database we’re most comfortable with and which lets us scale appropriately. 90%+ of our projects work beautifully in front of Redis/MySQL. AWS has flavors of these which scale just fine, and both of these are very easy to mock out and setup locally. MySQL 5.7 offers JSON support so if most of our app is relational but we still want to support some schema-less entities, we can. Whatever flavor of cache/db you choose is up to you. Just don’t back yourself into a corner.</p><p>Slow MVPs are bad news. All our reads should come from Redis when possible, regardless of indexes on the db. I put hooks in my controllers to sync up with Redis on every level of CRUD so the cache gets invalidated and updated in real time. Redis is actually extremely powerful for querying and filtering, and makes dealing with the API layer concise, intuitive, and simple.</p><h4>6. Start Coding</h4><p>I highly recommend test-driven, functional programming. 100% code coverage is just a starting point. We absolutely can not afford to spend time fixing bugs for an MVP. <strong>Be disciplined and write tests</strong>. Clients often think that skipping tests will save them money, but in reality it costs them much more. Debugging always takes more time than writing tests, and dealing with customer-facing bugs often requires patch-code to be written with a hasty deployment, as well as some inconvenience-apology to be written and sent to the customers. That’s never cool.</p><ul><li>Write the initial database migration SQL with all the tables, constraints, etc. I typically put placeholder strings in the file so I can regex-replace them with environment variables at demo time/test time and have a unique database per environment if necessary. This makes it really easy to unit test as well as have a demo database we can use for consistent presentations to the client. Consider the following — migrationSql.replace(/__CORE_DB_NAME__/g, process.env.CORE_DB_NAME) — against this SQL (below), where CORE_DB_NAME could equal ‘core-test-client-mvp’ or ‘core-demo-client-mvp’:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*WefDk7EpJx9D4XFmDsZY7A.png" /></figure><ul><li>Write some mock data to be inserted into each table during the unit tests. I prefer CSVs, but choose what works best for you. Every test tears down the database, re-runs the migration SQL (pre-cached), and seeds (LOAD DATA LOCAL INFILE). Every test is 100% pure and has no side effects. No tests depend on any other tests. Writing these CSVs also produces early indications of any mistakes in foreign key mappings and we can get those ironed out. All these initial CSVs should live in a test folder. That folder conveniently matches the NODE_ENV variable:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*OG1pj1o7HWtLHZgCg7ergA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bBNWrNMG6lLh0o-IcSM0hw.png" /></figure><p><em>As seen above, we should also copy those into a </em><em>demo folder and populate the files with some more demo-friendly values.</em></p><ul><li>Make the CRUD. Models and controllers for each table in the database. Unit tests for each method (controller tests and model tests). Unit tests should test each validation rule, and each validation rule should line up with the database column definition. For example, a column of VARCHAR(30) NOT NULL should have validation ensuring a string of length between 1 and 30, and we should have tests proving all that. Make both the controllers and the models pure. For example, a controller that accepts and mutates the req object in Express is not pure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYEe6-6alaBXeId6hquVyQ.png" /></figure><ul><li>Once the CRUD is done and tested, we need to write a demo script which launches our app with NODE_ENV=demo and runs the same script that loads CSVs into our database. Prove that it all works with Postman or another XHR tool.</li></ul><h4>7. Define The First Strategy For Each Service</h4><p>We should not assume a service provider is permanent enough to be referenced in our application logic, ever. They change all the time.</p><p>Take Email for example. We have options: Mandrill/MailChimp, Sendgrid, etc. The MVP probably defines that users can receive emails for sign-up verification, password-reminders, etc. What tool is used is likely just a budget decision — they all live in the cloud these days and scale pricing.</p><p>Our application code should <strong>not</strong> care about any of that. It should only know about <em>Email</em>. How do we accomplish this? We define an interface with methods that every Email provider would reasonably satisfy in their own API or SDK. Let’s assume the client chose Mandrill — the docs might have 20+ functions we can call, but right now our MVP only needs send so let’s start there.</p><p>Continue this process for each of the services required in the success definition. It should start to look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*jkilro7NFWh4BNmvGyKM3Q.png" /></figure><p>Of course it goes without saying that as we’re coding up these files, we’re also coding up tests.</p><h4>8. Develop The IP</h4><p>All this time we’ve been coding, the product manager has been working with the client and they’ve been changing their mind on things. Every project ever, this happens. I hope, though, that you can see what we did while that was happening. Changes at this point now are extremely easy. They don’t ruin our app, and they don’t create technical debt. They’re isolated and can actually be scoped. We can actually answer the question “How long will it take if we want to switch to Sendgrid? The Mandrill contract was more than we thought it would be?” — in all actuality how long does it take to copy the Mandrill strategy folder, look at the Sendgrid docs, swap in the API calls, and copy over some tests with a new mock? Not long. Bonus, they can keep the Mandrill strategy because deleting it serves no benefit.</p><p>Another benefit of having setup our services the way we did is that the services and their tests know nothing about the client or the MVP being developed. Pending contractual permission, we can leverage any or all of these services for the next project and have options on a more competitive price or a better ROI.</p><p>Now that the services and CRUD are complete, we can build the application logic. This is the business logic that makes our MVP unique compared to other apps. Lots of apps send emails, but only ours can _____. We already have controllers and models setup nicely with established patterns and cache syncing. Let’s copy the patterns already in place from the CRUD, leverage the services we developed and now, finally, we can write the code the client cares about. We will work directly with the client at this stage to make sure the app is doing exactly what the client wants.</p><p>If the IP primarily lives on the server, great — we haven’t built any UI yet so let’s keep going with the JSON. Our unit tests are proving everything is wired up and Postman is proving that our app works in the application framework like ExpressJS.</p><p>If the IP primarily lives on the front-end, we can start building this out. I recommend starting a brand new repo for the front-end at this point. It makes scaling easier and DevOps will appreciate the abstraction. It’s also fantastically easy to have two apps talk to each other on a local machine. Docker compose, a shell script, or just open them both up in your IDE and yarn run demo on each. Lastly, it makes it such that when we decide to support the next client type (kiosk, mobile app, electron app, .NET app, etc) we won’t have to worry about dealing with the API server being baked into the first client.</p><h4>9. Deploy</h4><p>Awesome. The MVP does exactly what it needs to do, and all that time spent setting up our services and writing the tests made it such that the business logic was a breeze and the client feels free to grow and adapt as the market demands. DevOps can take over from here.</p><p>We have patterns and tests in place now that allow for new services and CRUD to be implemented intuitively and safely in the future. The client is able to leverage a more novice and affordable team to take over who can copy those patterns outright.</p><p>Complete test coverage allows the client to perform rapid A/B testing and implement throwaway marketing campaigns against the app without worrying about breaking the UX or worse.</p><p>We also have a collection of patterns and scripts that we can use again and again and again. These scripts are separate from the intellectual property, and are merely boilerplate which allow us to write modular software. Nobody can claim ownership of patterns or open source code libraries, and so establishing these is what will make us a profitable, competitive and competent agency.</p><h4>10. Celebrate</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*prLnoy7ZALDBnqCcaFI05Q.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc569e776ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/presence-product-group/10-steps-to-build-a-successful-mvp-bc569e776ee">10 Steps To Build A Successful MVP</a> was originally published in <a href="https://medium.com/presence-product-group">Presence Press</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Mostly StackExchange Links To Bookmark Right Now]]></title>
            <link>https://medium.com/hackernoon/five-mostly-stackexchange-links-to-bookmark-right-now-5152cf16bd1?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5152cf16bd1</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Mon, 26 Dec 2016 21:18:55 GMT</pubDate>
            <atom:updated>2019-05-14T05:10:29.330Z</atom:updated>
            <content:encoded><![CDATA[<h4>Counting down from 5….</h4><p>5) <a href="http://serverfault.com/questions/293217/our-security-auditor-is-an-idiot-how-do-i-give-him-the-information-he-wants">Our security auditor is an idiot. How do I give him the information he wants?</a> — The story about a <a href="https://hackernoon.com/tagged/security">security</a> auditor demanding that a <a href="https://hackernoon.com/tagged/sysadmin">sysadmin</a> hand over plain text usernames and passwords, and much more.</p><p>4) <a href="http://softwareengineering.stackexchange.com/questions/333317/why-do-trampolines-work">Why do Trampolines work?</a> — JavaScript (≤ ES5) does not support tail call optimization and risks blowing the stack on recursion. Trampolining gets around this, and it’s brilliant. Read the 2nd answer (Jack).</p><p>3) <a href="http://kunststube.net/encoding/">What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text</a> — If you’ve ever wondered when to encode or decode UTF-8, read this.</p><p>2) <a href="https://github.com/vhf/free-programming-books">List Of Freely Available Programming Books</a> — A treasure.</p><p>1) <a href="https://www.gitbook.com/book/drboolean/mostly-adequate-guide">Professor Frisby’s Mostly Adequate Guide To Functional Programming</a> — This really solidified my decision to switch into the world of FP and adopt currying, compositions, etc into my JS code and start playing with Haskell and LISP.</p><h4>Honorable Mention:</h4><p><a href="http://stackoverflow.com/questions/6590902/please-help-make-3d-images-in-php">Please help make 3d images in php [closed]</a></p><p>So unless you have a relatively good score on StackOverflow, you might not see that one since it was closed, so I’ll post some screen grabs here. It’s the best answer on StackOverflow.com, hands down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjDrsslPeCaenv31kgKVuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXE2xXwd_s5igNDYXLLLaQ.png" /></figure><p><em>If you liked this, please click the 💚 below so others can enjoy!</em></p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5152cf16bd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/five-mostly-stackexchange-links-to-bookmark-right-now-5152cf16bd1">Five Mostly StackExchange Links To Bookmark Right Now</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why a Senior Dev?]]></title>
            <link>https://medium.com/@seancannon/why-a-senior-dev-d3fede7eacf8?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3fede7eacf8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Fri, 09 Dec 2016 22:53:53 GMT</pubDate>
            <atom:updated>2016-12-18T18:09:38.928Z</atom:updated>
            <content:encoded><![CDATA[<p>Old developers can bring a lot of under-appreciated value to firms.</p><p>I just turned 37, which makes me somewhat old compared to most devs in the Bay Area. The only thing I have going for me is that I’m self-motivated and have a lot of experience, which can often be overlooked by young San Francisco firms, which will hire 20 year old devs with a few weeks of bootcamp training under their belt for critical roles, simply because the devs are very familiar with latest stack. There’s a lot of risk there though.</p><p>Let’s teleport back a few years and imagine a 6-week bootcamp which covered the following tech:</p><ul><li>Backbone.js</li><li>Underscore.js</li><li>SVN</li><li>Dojo</li><li>YUI</li><li>Mootools</li><li>Dart</li><li>Require.js</li><li>jQuery</li></ul><p>At one point all that tech was bleeding edge and very popular. I vividly remember the Mootools/Dojo/jQuery war, and I feel bad both for the people who invested in Mootools, and worse for the people who picked YUI. I also wish Dojo had won, but they made one small mistake and lost everybody in a matter of weeks. I vividly remember “DHTML” — yes that was also cutting edge and everybody was doing it (<em>hint, it’s just JavaScript</em>).</p><p>I think we can agree that all the above were simply fads and were replaced by other libraries that made a few small improvements over existing tech and labeled themselves “the answer”. So if someone graduated that bootcamp as an expert at any or all of those libraries, how long would he/she remain useful? At the current pace of rotating technologies, probably 3–6 months. Other skills would have to come into play: how quickly the dev can learn new tech, abandon old tech, collaborate, and retain/apply common concepts and patterns which are tech agnostic for starters.</p><p>That’s quite a lot to ask of someone with a month and a half of experience. In my personal opinion, the best developers have learned through struggle and failure over time. Lot’s of struggle, and lots of failure. We’ve been burned by bad decisions, swiss-cheese docs, flaky dependencies, environment variances, and varying, poorly-communicated expectations from non-tech-savvy key stakeholders to whom we report.</p><p>So what comes from all that struggle and failure that can bring value to a firm which can’t be matched by a bootcamp grad?</p><h4>Planning</h4><p>I believe in TDD and iterative development. I understand the need for “demo code” before “production code”. If we can understand and agree that no code is ever permanent, and that any code could and should be able to be refactored at any given moment, it drastically changes our approach to how the code gets in the system in the first place.</p><p>All devs have coded in haste at some point(s) and have gotten too deep in the weeds before realizing that a particular logic branch is doing the wrong thing. Something needs to be changed to make the system more efficient, or it handles <strong>X</strong> and <strong>Y</strong>, but not <strong>Z</strong>. Well, does changing that one thing break other things? Will several other unrelated files need to be updated to reflect new paths or parameters? Does a dependency neglect <strong>Z</strong> completely?</p><p>That sucks.</p><p>The senior value? A senior dev went through this phase years ago, probably a few times, and has eventually learned from it — we just don’t do it anymore because it’s painful and unproductive. Drawing things out on a white board or in a notebook can save hours and hours of “undoing” code that was written before planning. Yes, coding is more fun, and yes white board sessions are really boring, but I can personally vouch that they work. I have a family and enjoy my evenings away from the computer, so getting it right the first time (while at work) is important to me. Coincidentally, it’s important to the firm too; both for costs and delivery expediency.</p><h4>Hesitance</h4><p>Senior devs are like that one friend we all have who has the worst luck with romance. That friend who has put his/her heart and soul into every new relationship only to be cheated on, lied to, and worse. That friend becomes untrusting of your match-making abilities and keeps new prospects at arms length until hearing the full story. “Doesn’t like dogs? Not wasting my time!” It’s good to learn those pitfalls early on, amirite?</p><p>When starting a new greenfield project, I see time and time again the young devs pick their stack off NPM like they’re window shopping for the hottest holiday toys.</p><p>Senior devs were young once and blindly trusted new libraries too; and then those libraries betrayed us. They weren’t ready for production. They made breaking changes in every update and left pull requests neglected for weeks at a time because the libraries were written by one person and not actually “maintained” by anybody.</p><p>We experienced the struggle of trying to replace broken libraries with new libraries, but the new libraries were the same old story, and it seemed like we just couldn’t win, until we realized that the older, more stable libraries which didn’t necessarily offer all the bells and whistles allowed us to polyfill our own bells and whistles (which could be swapped out if/when they became available in the core).</p><p>Those libraries didn’t make breaking changes often (<em>hence stable</em>), and provided deprecation warnings for several releases to give us time to prepare. Stable libraries will almost <em>always</em> deliver an MVP to a 1.0 audience with the least dev headache for the best ROI to the client.</p><p>Senior devs aren’t afraid to learn new things — we simply have some insight as to what libraries and tech appear eerily untrustworthy and have learned to trust our gut instead when it comes to deciding what new tech is worth incorporating.</p><h4>Adherence</h4><p>All devs have coding preferences. Everything from tabs/spaces, 2/4/* character indentation, casing of variables and file names.. the list goes on.</p><p>Senior devs are able to let go of personal preferences when working on a collaborative project. They will vote for them if applicable, but if there’s an established codebase, they typically adhere to the existing standards.</p><p>For example, I prefer camelCase, but if the file I’m working on uses underscores, so do I. In JavaScript I prefer assigning anonymous functions to variables or constants instead of using the function keyword. If the file uses it though, you better believe I do to. I also prefer to align stacked property assignments on the colon — I think it reads more clearly; but if I’m adding to a file that doesn’t do that, neither do I.</p><p>This might sound silly and obvious, but believe me it’s not. It actually takes a lot to win the inner conflict of wanting to take ownership of your code, while at the same time not being upset that it’s “not the way you’d do it on your own project.”</p><p>All bad code was recommended code at some point. Why else would it be supported in the language? We learn and improve at different paces, and some clients aren’t ready to skip ahead to the latest patterns. And that’s perfectly ok.</p><p>Senior devs have learned over the years that there is no <em>correct</em> way to code. There are trade-offs in every area: performance vs readability vs intuitiveness. In my personal opinion, the <em>best</em> code is that which is most easily understood by the dev team. Period. If something needs to be perf-tuned or do something unintuitive to accommodate some edge-case, it’s abstracted out into its own named function so the story still flows as intended and the weird stuff isn’t mixed in with the expected stuff.</p><p>Since each dev is used to coding a certain way, each project will have different “most easily understood” syntax. And that’s also ok.</p><p>Adherence doesn’t just apply to the code itself. It carries over to all steps in the workflow of a team. I do a lot of consulting and team-augmentation roles, and every single team is different. Some use Jira, some use Pivotal, some use sticky notes. Some use Git, some use Perforce. Some have daily scrums, some pair, some stick you in the corner in a cubicle and expect you to learn everything on your own.</p><p>A senior dev understands and accepts these unique workflows. The trick is to simply comply — be a part of that team. We won’t be the “this is how we did it at my last job” dev. If there are meetings where we bring up workflow improvements, we might bring up some alternatives that have worked out well in the past, but we always keep in mind that “what worked well” at a previous team is not guaranteed to work well for the new team. Keep in mind, we’re still human, and we still get frustrated; we’ll just keep our venting out of earshot from the client and the supporting dev team, and maybe do a little meditating to let go of that which we cannot control.</p><p>I typically have OCD with unit test coverage and aim for 100% with my Jasmine specs. I recently worked on a project where the team had &lt;10% coverage and some even failed so they just skipped the tests when deploying. It wasn’t my job to overhaul the workflow, and since the client made it clear to me they didn’t want to pay me to write tests, I didn’t write tests. It killed me inside writing untested code, but the client is paying for a service so it doesn’t matter what I want. I simply made sure to avoid mutability and kept my functions ridiculously concise.</p><h4>Balance</h4><p>All high-performance devs burn out. We work so hard on code because it’s like art to us. Solving problems in the most elegant way possible doesn’t always come to us in an 8-hour shift. However, most senior devs I know have a healthy work-life balance. We’ve figured it out. It took trial and error and lots of years, but we’ve learned how to deliver top notch code in a promised work day.</p><p>Unplugging after a shift means we’re charged and motivated the next morning. We’re not Facebooking throughout the day and reading hacker news because we’re working on exactly what the client wants us to work on.</p><p>Iterative development philosophies allow us to write “working code” which isn’t “finished code”. Since end-users shouldn’t experience any differences between the two types of code, it allows us to deliver quickly and comfortably manage our technical debt behind the scenes. Ironically, countless times I’ve had specs change on me based on customer feedback and A/B testing, and the “finished code” became irrelevant and was removed from the back log.</p><p>Remember, all code is throw-away code. Some just might last a little longer in the repo.</p><p>While part of being able to maintain balance as a senior dev certainly comes from being able to deliver at a high velocity, part of it also comes from being able to set realistic expectations with clients. We’ve learned which types of tasks appear “quick and easy” in a Jira ticket but actually require a lot of boilerplate behind the scenes that goes unmentioned.</p><p>We don’t typically agree to tasks which would require us to put in 70 hours a week because we’ve learned that end-users usually don’t care about every roadmap feature being available in a 1.0 release. Sometimes we have to, but it rarely comes to that. Many of us have also learned that a broken 1.0 with hastily-written or untested features is disastrous. We’ve also learned that delaying features yields better profits and retention for most sites anyway, as it gives a reason for the sites to repeatedly reach out to existing customers with announcements of “new features.”</p><h4>Agnosticism</h4><p>Many senior devs have worked on so many projects over the years that we’ve had to learn completely unique languages unrelated to our daily skill set and apply them with a sense of comprehension. What we’ve learned is that most languages do most of the same stuff, just with a slightly different syntax and a slightly different rule set.</p><p>Iteration is iteration, lists are lists, variables are variables functions are functions. The first couple “new languages” are scary. Most new devs in the Bay Area are neck deep in JavaScript because of Node so they can be full stack, which is very limiting in my opinion. There are also frameworks like Titanium and React Native that allow JS devs to build mobile apps, and even Unity has a crappy JS API. So much focus on JS is ok but we need to remember that JS can’t do everything, nor should it be expected to.</p><p>There comes a time when Titanium or Cordova or React Native just can’t deliver; the UI is choppy or the available hardware API is limited to one device. Maybe Titanium offers microphone monitoring for Apple devices but not for Android. Titanium in particular offers modules to be built in Objective C or Java for the respective build, but with enough modules being built to comply with the feature set, it might make more sense just to build it natively instead of using a hybrid framework. Having a senior dev who can understand how to quickly read docs and apply core programming concepts without much struggle is extremely valuable to tech firms.</p><p>This value can also be applied to version updates of core technologies. Keeping JavaScript as an example, ES6 is gaining a lot of traction but it really does the same thing as it did before. We still have functions but they treat scope slightly differently. They now behave more like other languages. JS now has constants, but that’s nothing new in programming. ES6 also has a lot of classical support, which after coding functional JS for years seems completely backwards and silly, so I won’t be adopting it voluntarily.</p><p>A senior dev can apply a relaxed transition from ES5 to ES6, or from Swift 2 to Swift 3, etc. I remember when PHP 5 came out and offered a full-blown object model. It was drastically different from PHP4 but since I had coded Java a lot of the new features immediately made sense. I think had I started with PHP4 and never expanded, that shift to PHP5 would have really set me back. It’s like Angular 1 vs 2.</p><p>The real takeaway here is that a senior dev understands that languages are just tools on a belt. Some are better at some things than other things. We will recommend the best language for the task. It might not be our favorite to code but it’s the one that will be the most appropriate for its intention.</p><h4>Final Thoughts</h4><p>If you’re building a new team or filling a role, consider the value that experience brings, because today’s “everybody is moving to this” technology is tomorrow’s “why are we still using this?” technology. Having someone on the team who has gone through those phases and can calm all the kids down and make sure the tech decisions are in the best interest of the company is a really, <em>really</em> good idea.</p><p><em>If you liked this, please click the 💚 below so others can enjoy!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3fede7eacf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Gender Wage Gap is Real]]></title>
            <link>https://medium.com/@seancannon/the-gender-wage-gap-is-real-a8e620a2ae76?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e620a2ae76</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[women]]></category>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[gender-pay-gap]]></category>
            <category><![CDATA[gender-equality]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Fri, 14 Oct 2016 19:47:38 GMT</pubDate>
            <atom:updated>2016-10-14T20:30:16.118Z</atom:updated>
            <content:encoded><![CDATA[<h4>Right?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwGb23K0GhjwsLuTkNfCCA.jpeg" /></figure><p>I’m in a debate with a long-time friend of mine who doesn’t believe the gender gap exists. He’s trying to justify any gender-specific pay differences by claiming that women earn less because they don’t work as many hours as men do, and they take more time off to raise children.</p><p>1950 called.</p><p>He claims that “studies” calculate the pay differences by income over time, and since women are home more raising children, that’s lost income. He’s asking for proof and why I think differently. My obvious responses, like “I know several women in my industry who work 2–3 times as many hours as I do”, and “of the large pool of women in my field of work, only a small handful are new moms”, and “new dads take time off too” aren’t working because he’s a skeptic and has already formed an opinion from his initial research.</p><p>I’ve interviewed maybe 60–80 tech candidates for various roles in the Bay Area since ~2010 when I shifted from contracting to corporate work, and the candidate positions ranged from intern to Technical Director and everywhere in-between. I did these interviews as a Senior Dev, Tech Lead, and Tech Director at various companies, and was typically part of an interview process where many of us would interview these candidates and then have a collaborative retrospective to consolidate our thoughts.</p><p>What I personally see is that each “tier” of the role (software developer in this example) has an offer range of maybe 20–30k which gradually expands as the salary increases. For example, “Junior Developer” can negotiate between $60–80k, “Mid Developer” can negotiate between $80–110, “Senior Developer” between $100–140, “Tech Lead” between $120–160, and so on. Those wages vary from year to year, company to company, dev language to language, and more noticeably from city to city (for example, Foster City wages are <em>much</em> lower across the board than San Francisco wages for the same role).</p><p>While it’s never been so obvious as having two competing candidates for the same exact role and the male was blatantly offered more money than the female, I have seen the scenario where the male had “negotiated” a higher salary — basically insisting on the upper range of the tier and getting it. For females I’ve noticed the negotiations aren’t typically as lengthly and even a handful of times, a lesser role has been offered. I can’t speak to that personally, but I’ll touch on it in a bit.</p><blockquote><em>“The team has talked it over and we really like you but we don’t feel you’re quite senior enough for the Senior dev position. Instead we’d like to offer you the mid-level dev position, and we’ll put you at the pay cap for that, which would be $80k”</em></blockquote><p>Wow that’s a great pitch right? But what really just happened? $80k is the lowest of the Senior title in my example. So why not just offer her the senior title at the base wage? It’s almost as if the company is telling her she should know her place, and that money is just a thing, as if to say “we’ve got plenty, it’s not about the money”. Maybe I’m reading into it too much, but I’d like to be proven wrong if so.</p><p>I’ve worked for 18 years in tech and in my personal experience, “junior/mid/senior” titles are just titles — no project management tasks or any actual responsibilities are given specifically based on that title. At best, when developers are brought to a client-pitch meeting, the title gets prepended when introducing the team: “This is Derek, he’s one of the senior devs on the team, and this is Jen, she’s also a developer.” The client may or may not feel special that the tech company brought a “senior” dev along with the sales team. Typically a senior dev might become a team lead or something, but at that point, that’s the new title: “Team Lead”, which isn’t what I’m talking about here. The gender gap in this case is both money <em>and</em> respect.</p><p>I’d like to point out that from my personal experience with bringing on new team members, this doesn’t happen as the norm, but it does happen. It doesn’t it happen at every company, but it does at some. When the situation arises, the person responsible for the company’s wage negotiations at that moment has a lot of influence on what happens next and can very easily bring personal bias into that formula, maybe without even realizing it. I’ve never been a member of HR or had a final decision on what a new hire should be offered. I’ve only known what each tier is paying, and what the final salaries/roles have been given, and sometimes it just feels wrong.</p><p>There is a company in SF called <a href="http://www.presencepg.com/">Presence</a> with whom I’ve done a lot of contract work over the past few years. They are an example of a stellar role model that all companies should follow. There is really no gender there, just people. I love it. Everybody has a part to play and a job to do, and we all just do our best in the interest of the client. Presence is large enough to tackle huge projects for huge companies (Google, SalesForce, Discovery, etc), yet small enough that there is no corporate ladder, no back-stabbing, no pressure to sacrifice personal integrity for a deadline.</p><p>I’ve noticed at companies similar in size to Presence, there isn’t a vast detachment between the hiring manager and the employee, so there’s some accountability and respect in play. Simply, “I will be working directly with you, and I want you to be happy and both respect me and recognize that I respect you.” That can’t happen when the employee’s wage is negotiated down to the very bare minimum she will accept. When a hiring manager will never have to work directly with a new-hire, accountability is lost, and therefore it’s much easier to exploit people and get away with it. It’s so easy to cast blame to another tier on the ladder when a ladder exists.</p><p>I’d like to ask for some comments by females in tech (or any corporate field I suppose with a similar ladder structure) who can either personally vouch for or against the wage gap. I expect there will be some of both sides. I would really like to understand your perspective, since mine is simply from observation.</p><ul><li>Have you ever learned that a male counterpart with less/equivalent experience was earning more than you?</li><li>Have you ever been offered an inferior job title or pay range that was lower than that for which you were interviewing, even though you feel you did well at the interview?</li><li>Have you ever worked with a male counterpart who had a higher title than you, yet you felt you were clearly more qualified?</li></ul><p>I don’t have an agenda with this article and I appreciate any help so I can understand better. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e620a2ae76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop burning calories]]></title>
            <link>https://medium.com/@seancannon/stop-burning-calories-283cc45ab79d?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/283cc45ab79d</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[training]]></category>
            <category><![CDATA[metabolism]]></category>
            <category><![CDATA[weight-loss]]></category>
            <category><![CDATA[fitness]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Thu, 08 Sep 2016 17:08:08 GMT</pubDate>
            <atom:updated>2016-12-18T18:10:09.517Z</atom:updated>
            <content:encoded><![CDATA[<p>Metabolism 101. It’s simple, I promise.</p><p>Imagine you’re having a barbecue. You have charcoal, lighter fluid, and a pot of water sitting on the grill. Because, we vegans grill water instead of steaks and stuff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F993njeMjO9yCYBHdbu-EA.png" /><figcaption>I actually found a picture of a pot of water on a grill. Hilarious.</figcaption></figure><p>The pot has one kilogram of water. Pretend you don’t live in America and use the metric system like the rest of the world, and pretend you weigh your water instead of measure its volume like the rest of the world.</p><p>Ok so it’s time to heat up the water. The charcoal, while barely lit, is emitting heat very slowly, so you dump some lighter fluid on the hot coals — WHOOSH, big flame, and then it’s gone. Pour some more on, WHOOSH, aaaaand it’s gone.</p><p>SUCCESS! The charcoal and lighter fluid have teamed up and increased the temperature of the water by one degree Celsius.</p><p>What kind of lame ass cook out is this? Are all closet American vegans like this?? Shhhhh….I know a few, but let’s proceed.</p><p>So, what just happened? Well, first let’s all understand that a calorie isn’t a <em>thing</em>. It’s a unit of measurement, like a pound, or a gallon, or a meter or a kilogram, or a mile, or a degree, or a Siriometer, or a microfortnight, or a dog year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*tl7cnZnTkIsboxA3mgtQuw.png" /></figure><p>A calorie is the amount of energy required to raise the temperature of one gram of water one degree Celsius. When referring to food, we use a “kilocalorie” which is (wait for it) 1000 calories that we just call “one calorie”, so it would be the amount of energy required to raise our kilogram of water (wait for iiiit) one degree Celsius.</p><p>So — knowing what just happened to our water, did we burn any calories? I don’t recall any calories being poured on the fire. We burned charcoal, and lighter fluid. Importantly and metaphorically here, charcoal burns slowly and lasts much longer than lighter fluid, which burns faster but also depletes more quickly.</p><p>Do you see where this is going?</p><p>On our bodies, our fat is the charcoal, and our carbohydrates (glycogen in the muscles) is the lighter fluid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*A4WC6O4cyAB0lIF4QKI8Jg.jpeg" /></figure><p>When you do low-intensity activities, like walking or easy swimming, you burn FAT, almost exclusively, because there’s plenty of oxygen available in your blood stream to remain aerobic. The fat being burned produces energy which is measured in calories.</p><p>When you do high-intensity activities, like Crossfit, mosh-pitting, or extreme kegel exercises, you burn CARBOHYDRATES, almost exclusively, because the muscles are demanding so much fuel that your heart can’t keep up with the oxygen supply which is required to burn fat, so your muscles pull glycogen locally and use that as the fuel. There isn’t nearly as much fuel there but it burns really fast. It also means that, because oxygen isn’t there, the muscles build up CO2, of which the byproduct is lactic acid (that obnoxious / amazing burning sensation that doesn’t require any topical cream). The carbs being burned produce energy which is measured in what? Calories.</p><p>Most of your daily life you burn a combination of fat and carbs. You can train your body to burn more fat <em>instead</em> of carbs, but that’s for a future article which will focus on heart-rate zone training, intensity intervals, and the benefits of lean muscle mass.</p><p>To summarize —<strong> stop burning calories</strong>. It doesn’t make any sense. It’s like counting pounds or kilos on the scale, which don’t tell you anything about what is contributing to that weight. I’ve personally trained a 150lb morbidly obese person with around 28% body fat, as well as a a 150lb fitness competitor who had 5.5% body fat. Use common sense, revisit your 8th grade biology notes, and go workout, like right now. Do 20 pushups. Go!</p><p><em>If you liked this, please click the 💚 below so others can enjoy!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=283cc45ab79d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Excuse me, your code is bleeding.]]></title>
            <link>https://medium.com/@seancannon/excuse-me-your-code-is-bleeding-5e89b2b3470f?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e89b2b3470f</guid>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[san-francisco]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[millennials]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Fri, 05 Aug 2016 16:34:23 GMT</pubDate>
            <atom:updated>2016-08-05T16:34:23.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yJShgQjbU01VWWqX." /></figure><p>Our competitors use cutting edge technology. We use <em>bleeding edge </em>technology. Our technology is so bleeding edge, it hasn’t even started to bleed yet. We use code that hasn’t even been written yet. We’re leveraging ideas that haven’t even been reinvented yet. We haven’t even incorporated yet. We’re so start-up we haven’t even <em>started</em> yet.</p><p>This is San Francisco.</p><p>Every morning, while walking the 5 blocks from BART to the office, I pass maybe 500 people. 490 of them are in technology — proudly sporting their Adverbly and Verbify shirts and stickers — while the remaining 10 folks are asking for spare change or screaming at fire hydrants. In this city, we have a ton of influence on the world when it comes to defining what makes tech companies great, and what “best practices” really mean to the world. Contrary to what a Millennial might tell you, the NPM library that’s coming out next week that’s a fork of another one nobody’s heard of isn’t what makes our companies great. Security, dependability, scalability, security (yes it’s that important), and the ability to assess and analyze new tech as it becomes available is what makes our companies great.</p><h4>Slow and Stable</h4><p>I believe that one of the main challenges with the scalability and security of start-ups might actually derive from all the new devs not having experienced Internet tech before the dotcom boom. Look at any of the top 20 most profitable E-Commerce companies and you’ll notice something in common: a lack of trust in new platform technology. New technology means new risk, and if I was a new developer, screaming all I want through my flower beard wouldn’t convince their security teams to let me use that open source fork I just stumbled upon that seemingly fixed that one bug I didn’t really understand in the first place.</p><p>I spent the first decade or so of my career on Linux building websites with MySQL and PHP. Ya I know, “PHP Sucks lolz”… bear with me here. This was before websites were called “web apps”, when JavaScript was used to wire up buttons and make AJAX calls and didn’t account for 99% of the codebase; when devs knew what JScript was and <em>why</em> Internet Explorer was such a pain. Those websites didn’t break often, were fast, simple to comprehend in the source code, and made money. As a career developer, I was content and my clients were happy.</p><p>PHP has accumulated a pretty bad reputation throughout its life, for several reasons; the biggest in my opinion is that it allows people who don’t know what they’re doing to make websites that appear to work as expected but are terribly insecure behind the curtain. The language is extremely forgiving and doesn’t enforce any best practices unless you explicitly tell it to, which leads to novices suppressing errors and writing plugins for Wordpress, Joomla and Drupal that would reference globals and break other plugins, writing SQL-injection-prone queries and using them as blog tutorials, and storing passwords as plain text, because, if I don’t know I’m being hacked then no harm done, right? Impossibly frustrating stuff.</p><h4>Fast and Risky</h4><p>In 2012 I switched over to NodeJS as my primary go-to server-side development language because I enjoyed the modularity and the community which seemed to really aspire to best practice adherence. I was already very comfortable with vanilla JS and was also fed up with CodeIgniter being the new hotness for everybody and their brother who wanted a PHP website. Have you ever tried running PHPUnit on a CI Controller? Of course you have; who hasn’t? It sucks, right? *High five.</p><p>For all the great things that the Node and JavaScript communities bring to the table, I think that the notion of “we <em>have</em> to use the latest thing” needs to chill. I think the real power of open source is to expose the masses to our software <em>intentions</em> so that crowd intuition can be applied, therein securing and optimizing said intentions. I don’t think the benefit of open source is so that we can choose from 70 libraries that only uppercase the first letter of a word and haven’t been updated in a year.</p><h4>Newer !== Better</h4><p>On the client-side, when Single-page apps first came to light, we had Backbone, then Spine, then Ember, then Angular, then Durandal, and so on. Can you still build a solid SPA in Backbone in 2016? Yep. So why do I sense judgement when I tell people I haven’t upgraded to Angular 2 yet and still use 1.5? Do you know how many times Angular 2 has changed since its inception? If I had built a site in Angular 2, it would be the buggiest, most-refactored-to-keep-up-with-changes app in my career. For what benefit? Where is the gain? Bragging rights? How does that help a client? In 6 months to a year from now, it’ll certainly look very different, be a little more baked and patched, and a little more ready for consideration — but until then I would be doing a disservice to my clients by even suggesting it as an option. It’s in the list with about 5,000 other open source projects I’ve never heard of that came out yesterday that I won’t be suggesting. Don’t get me wrong — I’m 1000% in favor of open source code diversity. It prevents another Microsoft. I just think we need to stop treating all the new scripts like black belts and let them earn their ranks. Blindly trusting scripts is how exploits like Heartbleed sneak up on us.</p><h4>Libraries !== Frameworks</h4><p>When ReactJS came out, Facebook very clearly stated that it was <em>only</em> the view layer. As in, you can actually quite successfully replace your AngularJS directives with React components and your Ng app will work just fine…and ironically not any faster. When I saw the presentation by the FB devs on why they created React (<em>to solve the unread message icon bug</em>) I was legitimately surprised. “One-way data flow” they said. Solved “two-way binding chaos” they said. <strong>A fundamental misunderstanding of MVC by novice developers led to the creation of an entirely new library which was adopted by the entire fucking community as a solution to a problem nobody else had, because “Facebook”.</strong> Ok, so all the PHP, Perl, JSP, ASP and ColdFusion sites that had been around for over a decade prior which used that exact data persistence flow didn’t count?</p><p>But… but Facebook! Ok. Then why do companies keep comparing AngularJS to React as if they’re one in the same? Without Flux or Redux helping React, you can’t begin to compare the two — so for companies to consider React <em>over</em> Angular just because it’s the new hotness shows a clear lack of understanding of the driving technology behind the name, which is really frustrating in this industry where “buzzwords” sell products. Angular now has a one-way data binding option. Your move, Facebook.</p><h4>No, Really. Libraries !== Frameworks</h4><p>A few years ago, Knockout.js was introduced. I worked on a project for a client who’s internal dev team required that we use it because a quick Google search by one of their developers turned up KO as the new hotness. Well for one, KO is just a binding library. There’s no routing, no http service API layer, no modularity with native dependency injection; so those features had to be cherry-picked from other libraries and stitched together to form our stack — that’s not always bad, but for this project it was pretty chaotic. The one thing that KnockoutJS <em>does </em>do is binding, and it’s awful. Any variable you want to be <em>observable</em> becomes a function, so <em>foo(“bar”)</em> acts as a setter so that <em>foo()</em> would then return <em>“bar”</em>. Ok, ugly but fine, until you want to send that data in an API call — have you ever tried to <em>JSON.stringify() </em>an object containing functions? Of course you have and you know it doesn’t work! *High five! So KO offers <em>ko.toJS()</em> and <em>ko.fromJS()</em> functions to convert values to and from observables, which need to be called before sending data to an API. Yes, keeping track of all that was a nightmare. Why did it gain any traction at all? Because it was new. And Millennials love new shit.</p><h4>MongoDB Is Not For Data You Care About</h4><p>I had a former CTO tell me once when I suggested that we had a graph model and should be using <a href="http://neo4j.com/">Neo4j</a>: “Investors love MongoDB — they’ve heard the name now, and it’s hot and sexy.” I replied, “Why would we use a document-driven db for a graph model just because investors think Mongo is sexy?” I lost that argument thanks to some buzzword-drunk investors, and unfortunately my concerns came to fruition 8 or 9 months later when the queries became impossibly complicated and underperforming in Mongo and the entire project was dropped, which accounted for several people losing their jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*wzTnAxXs3aN2Txci." /></figure><p>Lamborghini’s are sexy too, but they would not do well in the Baja 500. We need to pick the right tool for the job — one that makes sense, is supported and to which is actively contributed, and that has been proven to work. I don’t think we — as companies — should be part of the demographic who experiences release-candidate pain. I assert that there are plenty of devs in the community (including myself) who tinker with new releases on our own R&amp;D time and offer feedback and pull requests to help stabilize libraries so that we can eventually use them at work.</p><h4>Exceptions?</h4><p>I’d be remiss if I was implying that “all new libraries are bad”. New libraries that compete with other libraries for brand traction are one thing. New libraries that solve legitimate problems are another. Take RamdaJS for example. Unlike the Underscore-&gt;Lodash utility library transition everybody lost their shit over because we all gained 0.5ms of processing power, Ramda solves real problems in JavaScript: mainly that of mutation and scope control. Ramda never mutates objects, and always returns altered copies of whatever you give it. All functions in the library are curried which means arity actually matters. Ramda takes the functional programming concepts from Scheme and Haskell and makes them available in JavaScript, which solves SO MANY PROBLEMS! So, that said, currently at 0.21.0 at the time of this writing, I consider it a must-have for my applications. Unfortunately, frameworks like Angular and Express which depend on mutation don’t appreciate the reference loss so use it with some planning in those scenarios. If you don’t want to take my word for it, or if you just really like Lodash, look into the “fp” branch which offers currying and composition.</p><h4>TL;DR</h4><p>The takeaway here is that not all third party code will jive with your app’s intentions. Not all developers take security precautions. Not all libraries on NPM are worthy of being a part of your application. The moment your own code becomes the minority shareholder in the repo and you’re depending <em>more</em> other developers around the world to keep your company afloat than you are yourself, you better make sure you have vetted the code upon which you’re depending. If the head of dev-ops tells you you can’t use a library, trust her judgement before resorting to Millennial cynicism.</p><p>On our own projects and experimental R&amp;D efforts, let’s have at it and <em>make</em> bleeding edge code that changes every day. In a professional environment on code that will be used in production in E-Commerce scenarios, though, for the sake of all that is sane in the world, let it bake. Let the community vet it for us! We need to build sites on stacks that don’t implement breaking-changes every week simply because the primary contributor had a stylistic change of heart. We need to use libraries and frameworks that recognize exploits and take extra security measures. Customers trust us with their personal information, credit card numbers, photos and media. We owe it to them to give a shit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e89b2b3470f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Ways Being a Fitness Instructor has Helped Me as a Software Developer]]></title>
            <link>https://medium.com/@seancannon/how-personal-training-has-helped-my-software-development-4845ab2f5878?source=rss-3cafc5c830b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4845ab2f5878</guid>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[exercise]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Sean Cannon]]></dc:creator>
            <pubDate>Mon, 25 Jul 2016 19:22:54 GMT</pubDate>
            <atom:updated>2018-10-15T21:02:45.320Z</atom:updated>
            <content:encoded><![CDATA[<p>My career is split in two: fitness and software. When I’m not training clients at a health club I’m developing applications for a firm in San Francisco. Having such a drastic balance allows me not only to keep a mental sanity by not sitting too long at the computer but also to share and apply concepts across each realm. Here are five focus items in fitness that I apply regularly in the code.</p><h3>Underlying Motivation</h3><p>Always question the reason why a feature is requested. So often a client will ask for a feature that doesn’t jive with the flow of the other moving parts in the system. Blindly implementing a feature can potentially waste time and cause frustration — not only from the customer potentially not getting the result he/she was hoping for, but also from the dev going against a gut feeling and years of experience that pulls the other direction.</p><p>In fitness, this is typically presented as “<em>I want to work on my mid section</em>” or “<em>I want to lose ten pounds.</em>” Okay, why? Knowing that spot-reduction is a myth and you can’t burn fat in one part of the body simply by contracting nearby muscles, “<em>working the mid section</em>” doesn’t really make sense to achieve any sensible goal when accompanied with weight loss as an objective. Are we talking about alleviating back pain or trying to correct hip posture? Great. Toning the tummy? Nope. As a trainer I could have you doing ab work for 2 hours and you won’t tone your tummy. You’ll just get sore and frustrated.</p><p>Why ten pounds? What happens at ten pounds? Does the ten pounds have to be fat? Because I can put you in the sauna and you can lose a lot of water weight. But that makes no sense and is dangerous. Muscle is denser than fat so it weighs more by volume. Should we catabolize muscle for a quick ten pound muscle loss? Of course neither of those suggestions are what the client really wants. Typically, ten pounds means “<em>I want to lose enough weight to notice and so my peers notice</em>”, and ten pounds is the magic number that appears on so many magazines near the check-out counter.</p><p>Okay what will happen when your peers notice you’ve lost some weight? You’ll maybe get some compliments and feel good. Now we’re getting somewhere. Getting a haircut or new shoes often yields similar results. Why 5 weeks with a trainer at $100/hour instead of a $100 haircut that would offer instant gratification? Ultimately, clients want to be happy. They see fit people around them and want to be like them because they think it will bring happiness. This is an intrinsic need vs a confused and misled extrinsic want. Knowing that happiness is all the client wants, I can prescribe an extremely enjoyable fitness session that he/she will want to continue indefinitely and will likely no longer care about the ten pounds and toned tummy. Those things will happen as a side effect and since they&#39;re not the main focus, both the trainer and the client satisfaction will greatly improve.</p><p>Applying this to a software application, clients often ask for minute and unwarranted visual changes. “<em>Darken the purple on this button</em>”, for example. Why? Was there an A-B test I didn’t know about where a darker purple button yielded a higher click-through? Or does the client just like dark purple? At the end of the day we do what the clients ask of us, but we can’t forget that usually what they want is a profitable product and a justifiable ROI on development services. If the client wants a higher click through, lets A-B test some things: color, placement, and call-to-action text perhaps. It’s no longer about purple, then, but rather about monetization strategy. If the client just really likes purple, he/she then probably just wants the app to reflect his/her personality more. The app can then be shown to peers and customers with more of a “<em>this represents me</em>” dialog. If that is the case, it really helps to bring up a branding strategy with the client to eliminate one-off color changes that seemingly waste a dev’s time. The client will be happier that we deeply understand the underlying motivation and the deliverable will be <strong>exactly</strong> what the client wants.</p><h3>Core</h3><p>Most people confuse abs with core. This is because cheap fitness equipment informercials falsely market on the word to make more money. It’s a buzz word.</p><p>Your superficial abs that you see in the mirror (or will soon!) are not your core. Your core are your deep tissue spinal stabilizer complex. They work to keep your spine in alignment when resistance and support stray from the mid section. Think of holding a weight at shoulder height with your arm straight. In front of you or out to the side, your core works to keep you from falling over. In a push up, your core helps keep your hips from sagging and actually plays a much larger role than your chest and triceps.</p><p>When your core is weak, all exercises suffer. Push ups are hard, squats are hard, and any overhead press is hard and also dangerous. Focusing on auxiliary muscle groups while neglecting your core is how people get injured: it develops a false sense of confidence and people think they are ready for advanced exercise programs. Then they slip a disc in their back and are out for 6 months or more. This typically occurs from training exclusively on selectorized machines, which support your weight and isolate auxiliary muscles so your core doesn’t have to work at all during the exercise.</p><p>In software, I never forget the importance of the concept of a core. Foundational code and design patterns that can’t and won’t break, and allow us to grow the application outwards, are critical to have in place before focusing on auxiliary application logic. For example, in NodeJS I have my core patterns for authentication, permissions handling, cache, service layers, and utilities. My application logic then is simply compositions of those core modules. This often clashes with agile and iterative development projects where “quick prototyping” has to be done to show investors demos of “working concepts.” Sure, fine. But the moment we pretend that demo code is permanent and will live inside the application is the moment upon which we can all look back after the app fails and say “<em>that’s where things started to go wrong.</em>”</p><h3>Misdirection</h3><p>The human body can fool the brain. Often times a signal will be fired along a neurological pathway and the brain will interpret the signal incorrectly. This happens all the time and with a wide range of scenarios. For example, when we feel hungry, we’re often thirsty. When we feel mildly thirsty, we’re often already dehydrated. Drinking a glass of water and waiting 5 minutes can often make hunger go away. I live by this, and so should you! Staying hydrated while controlling calorie consumption is 90% of “how to get a 6-pack”. Another common scenario is sciatica. The sciatic nerve runs all the way down the leg and up behind your piriformis, near your sacrum. Often times sitting too much will cause the piriformis to inflame from the sacrum pressure, and will transition that pressure to the sciatic nerve. Often times, the pain is felt locally (in the glute region), but equally as often, the pain is felt remotely near the knee. Clients will complain about knee pain and don’t realize it’s being generated nowhere near the knee. Foam rolling and stretching out the glutes and piriformis alleviates their “knee pain” and what appears to be a miracle is basic physiology.</p><p>In software, this is extremely common. A dev will hit a bug and get tunnel vision trying to fix it, not realizing the cause of the bug is in another function or another file. This often happens in mutable state applications where function <strong>A</strong> accepts a reference to an object and mutates it. Then function <strong>B</strong> uses an externally scoped reference to that object and expects it to have been affected by function <strong>A</strong>. Using pure functions who’s output are defined by their input and have no side effects can greatly reduce occurrences of this headache. Function <strong>A</strong> receives an object and returns an altered copy. Function <strong>B</strong> should accept that copy and not know anything about function <strong>A</strong>. This style of programming can save hours and days of debugging time which can add up to several thousand dollars.</p><p>Having said that, legacy and monolithic code bases exist and mutation is real. Taking the sciatic nerve example, I always propagate up the reference tree to reserve blame and let the code prove itself. Just because you see an error on line 150 doesn’t mean it was thrown on 149, and knowing this sooner than later is crucial to maintaining a high development velocity.</p><h3>Kinetic Chain</h3><p>The kinetic chain in the human body is simply the idea that movement in a joint can affect movement in another joint. This is caused by muscle origin and insertion points and how flexion and extension of a joint will change the point of tension. For example, one of the most important form corrections I give as a trainer is keeping the knees back behind the toes while doing a squat or a lunge. If the knees travel forward past the toes it typically creates an acute knee flexion angle which requires the quads to do all the work to re-extend the knee so you can stand up again. All that force has to go somewhere and it typically gets passed down to the anterior cruciate ligament (ACL), which is arguably the most commonly injured connective tissue in the body. What we want is for the hamstrings and glutes to do most of the work, so the force remains in the muscles and in strong joint positions. How we do that is by keeping the knees back and pushing off the heel instead of the toe. How we do <em>that</em> is by forcing an anterior pelvic tilt, and how we do <strong><em>that</em></strong> is by sticking our butts out and forcing a lower back curvature.</p><p>Just as it’s not intuitive for most people to think “<em>I should focus on my glutes and back position to avoid a knee injury</em>” while doing a squat, it’s arguably just as unintuitive for most developers to think “<em>I should write a strategy for this remote service so that I won’t have to change the expected payload on the client if/when we change service vendors.</em>”</p><p>When writing modules, I always consider that other parts of the application will depend on this module behaving a certain way, and so if the module ever changes, how can I minimize that ripple effect?</p><h3>Measurable Goals</h3><p>Just as I mentioned earlier, clients often want to lose ten pounds. And yes, we can measure that with a scale, and yes, the scale has no idea what accounted for the ten pounds: fat, muscle, hair, clothes, pee, poo, etc. For this scenario I always measure and compare body fat percentage. Most clients aren’t even close to that level of goal setting, and request “<em>I want a bikini body</em>” or “<em>I want my high school body back.</em>” Not all are that superficial, and say things like “<em>I just want to be healthy.</em>”</p><p>How do I as a trainer know if I’ve succeeded for any of those subjective requests? What I think is a bikini body might be nothing like what the client expects. Setting realistic, measurable goals that are checked and prioritized regularly keeps everybody on a clear path to success. “I want to run a marathon in under four hours” : yes, let’s start training. I can plan an exercise prescription for that, and we’ll both know when the goal has been reached!</p><p>In development, it’s absolutely critical to set measurable goals, or as I typically refer to them: acceptance criteria. When a user story is created in Jira or Pivotal, it’s fine to be vague in the title to spawn some dialog among the team. “<em>As a user, I can find products I like.</em>” Great, now what the hell does that mean? Some people search, some browse the catalog, some expect a “recommended for you” list on their landing page. That story is useless without one or several end-to-end UX definition(s), each accompanied by itemized steps of confirmed success. Providing that not only keeps the dev focused and on a fast pace, but also removes debate from the client or PM when ticket is resolved because the tasks are objective instead of subjective.</p><p>Finding commonality across various industries I think can really solidify best practices all around. As we learn, let’s share the knowledge and experience gained with our peers and move forward to be the best we can be.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4845ab2f5878" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>