<?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 David Celis on Medium]]></title>
        <description><![CDATA[Stories by David Celis on Medium]]></description>
        <link>https://medium.com/@davidcelis?source=rss-fb7a1703993a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FQqnKsVmRgRZRElPhdCXkQ.jpeg</url>
            <title>Stories by David Celis on Medium</title>
            <link>https://medium.com/@davidcelis?source=rss-fb7a1703993a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:00:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidcelis/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[Some Thoughts on the 2018 XOXO Conference and Festival]]></title>
            <link>https://medium.com/@davidcelis/some-thoughts-on-the-2018-xoxo-conference-and-festival-b9adc8bd2858?source=rss-fb7a1703993a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9adc8bd2858</guid>
            <category><![CDATA[white-privilege]]></category>
            <category><![CDATA[xoxo]]></category>
            <category><![CDATA[diversity]]></category>
            <category><![CDATA[inclusion]]></category>
            <dc:creator><![CDATA[David Celis]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 23:30:01 GMT</pubDate>
            <atom:updated>2018-09-22T07:15:18.349Z</atom:updated>
            <content:encoded><![CDATA[<p>I had the privilege of attending this year’s <a href="https://2018.xoxofest.com/">XOXO Festival</a>, a festival and conference by and for creators and makers who live on the internet. There are artists, podcasters, comic book writers/illustrators, game designers, musicians… People with various creative backgrounds converge for a four day social event. XOXO is also known for its views on and approach to inclusion. The organizers, Andy Baio and Andy McMillan, do their best to make XOXO welcoming for people from all backgrounds, <em>especially</em> people who come from marginalized backgrounds. Content warnings are front and center. Everybody got enamel pins to advertise their pronouns. There is a strict Code of Conduct in an effort to make attendees, especially marginalized attendees, feel safe. XOXO, at its core, wants to be a safe space for those who have had difficulty finding one. I have some thoughts that I want to share about XOXO, especially with regards to this year’s iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*rowijY3-7no3vSijHdgKew.png" /><figcaption>The XOXO branding from their <a href="https://lineup.2018.xoxofest.com/">2018 lineup site</a></figcaption></figure><p>I’m incredibly conflicted about XOXO. While most people refer to the event aloud by simply saying the individual letters, “XOXO” (sometimes just shortened to “XO”), I usually encounter at least several other people who choose to pronounce XOXO as “chocho”. This year, I encountered not a single other person who said “chocho”.</p><p>Oh also I guess there’s this weird thing I keep seeing where white dudes who attended XOXO are dumping their <a href="https://www.juliandunn.net/2018/09/11/thoughts-on-xoxo-2018/">steamin’ hot takes</a> right onto the bird site and complaining about how uncomfortable XOXO’s inclusivity made them feel. Space is made for the marginalized and the vulnerable and now you’ve got these white dudes saying, <em>“Oh no, my space!”</em> and <em>“But why can’t I argue about all these content warnings? What about the discourse???” </em>and <a href="https://twitter.com/isaacw/status/1039234183824994304">making jokes that just punch down</a>.</p><p>Why are you made so uncomfortable by a content warning for pictures of raw meat? To you, that might seem frivolous and overly sensitive. Why do you care? Sure, for tons of people, pictures of raw meat are not graphic, but graphic is subjective. There are plenty of people who don’t want to see it, so how does it affect your life at all if they’re given a quick warning up front and allowed to make an exit before they’re <em>forced</em> to see it? “I’m uncomfortable because XOXO is trying to make everyone else just as comfortable as I get to be!” Get real. We’ve been hogging space for an eternity. Sharing it is not the same as giving it up.</p><p>The saddest narrative I keep seeing is that being “woke” (especially at XOXO) is a constantly moving target, us white dudes aren’t allowed to help define that moving target (or apparently even talk about it?), and us white dudes are afraid of accidentally saying something insensitive, having our badges revoked, and being asked to leave forever.</p><p>First off, yeah, being “woke” <em>is</em> a constantly moving target. As more and more marginalized people feel safer being vulnerable, you’re going to be presented with more and more behaviors to be cognizant of and try to avoid. The key word there is <em>try</em>. The nature of a constantly moving target means that you <em>will</em> slip up. You might say a word like “crazy” in front of someone who cares about how that flippant that word has become. If you’re not used to asking for pronouns or are speaking to someone not used to it being normalized to state their pronouns up front and clearly, you might accidentally refer to them using the wrong ones. You’re not going to be ostracized for this. You might get called out for it, but that should be a <em>good</em> thing!</p><p>Being called out is uncomfortable, but so is calling someone out. XOXO providing room for the marginalized to speak up is a beautiful thing, and it gives way for us white dudes to learn from them. Did you use an ableist term like “crazy”? Did you accidentally misgender someone? It’s not the end of the world, my dude. Say “Shit, sorry!” and commit yourself to doing better in the future. Don’t just stamp your feet and dig your heels into the ground and say, “Well, I didn’t INTEND to offend you.” That helps nobody, and you just gave up an opportunity to learn and be better.</p><p>Yeah, XOXO is unapologetically for everybody, and unapologetically focuses on those who have not been a focus in the past. If you’re a white dude who felt uncomfortable about sharing that space, maybe you should introspect and think about why instead of <a href="https://twitter.com/julian_dunn/status/1039422253018935297">digging your heels</a> in <a href="https://twitter.com/julian_dunn/status/1039672672873938945">further</a> and <a href="https://twitter.com/julian_dunn/status/1039673001447321600">further</a>. If you’re a white dude who feels this but is staying quiet <a href="https://twitter.com/downey/status/1039532395978883072">(or at least thinks they are 👀)</a>, cool. Please continue not writing your takes. But still, think about why you feel uncomfortable.</p><p>Anyway, the rest of the event was great, especially because of how inclusive it was. And I say this as someone who considers himself progressive and says “cho cho”.</p><h4>More where this came from</h4><p>This story is published in <a href="http://blog.usejournal.com/">Noteworthy</a>, where thousands come every day to learn about the people &amp; ideas shaping the products we love.</p><p>Follow our publication to see more product &amp; design stories featured by the <a href="https://usejournal.com/?utm_source=usejournal.com&amp;utm_medium=blog&amp;utm_campaign=guest_post">Journal</a> team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9adc8bd2858" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Give it a REST: use GraphQL for your APIs]]></title>
            <link>https://medium.com/free-code-camp/give-it-a-rest-use-graphql-for-your-apis-40a2761e6336?source=rss-fb7a1703993a------2</link>
            <guid isPermaLink="false">https://medium.com/p/40a2761e6336</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[David Celis]]></dc:creator>
            <pubDate>Thu, 05 Jan 2017 22:44:13 GMT</pubDate>
            <atom:updated>2017-01-17T21:53:01.838Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*IvCDlfi3vQfgyKO1eFv4jA.png" /></figure><p>In the world of API architecture, REST has been the reigning ruler for a decade or more. Chances are that you use software built on a REST API multiple times per day on your phone, computer, or some other device. Maybe you’ve even worked on a REST API or written one yourself! Despite REST’s popularity, however, it has a few glaring flaws.</p><h3>What is REST?</h3><p>In REST APIs, the server defines a specific set of resources that a client can request, and these resources are defined by unique URLs. For example, in the API for a generic microblogging platform, the URL /users/1<strong> </strong>may denote the first user in the system, /users/1/posts could return a collection of all posts that user has written, and /users/1/posts/327 could return a single post. REST has many nuances and a well-documented specification for behavior, but URL-based resources cover the basic idea. What is ultimately important is that the <em>server</em> defines the structure of the data that the client can request.</p><h3>What’s wrong with REST?</h3><p>Imagine you work for the aforementioned Generic Microblogginator™ company as a mobile app developer. You’re given the task of writing the mobile view for a user’s profile, which needs to show information about the user and list their posts. This isn’t too difficult; just hit the /users/{id} endpoint to get the former, and /users/{id}/posts to get the latter.</p><p>You ship the mobile view and wait to be ✨dazzled✨ by all of the customer feedback and app reviews. Next week, once all of the reviews have poured in, you get a new requirement. That Other Microblogger™ shows a couple of comments on each post in their profile view. Why don’t we do that, too? Luckily, your API already has an endpoint to get a blog post’s comments: /users/{id}/posts/{id}/comments. You change the view to hit that endpoint for each post you show on a user’s profile page, and you’re done.</p><p>But now your app is slow, and this leads us to one of the major problems with REST APIs:</p><h3>Too many HTTP requests</h3><p>Let’s face it: client applications rarely stay simple. More often than not, each client has a fairly specific set of requirements that reflect what data they need from your system. If you provide only one absolute way to request data, you’ll get clients trying to ram a rhomboid peg into a diamond-shaped hole.</p><p>In our previous example, our mobile app will become slower and slower with each post a user writes. If a user has twenty posts listed on their profile, we’re issuing <em>22 API requests</em>. One for information on the user, one for their list of posts, and then twenty requests to get each post’s comments.</p><p>As you add more components to your mobile app’s interface, this problem will get worse. With each new UI component comes a new API call or a new customization to existing API endpoints. You can nest objects within each other to avoid extra API calls, but as your view becomes more complex, you’ll inevitably start nesting irrelevant data. You’ll end up with endpoints that don’t describe a single resource but, instead, a view of multiple resources. Now your API doesn’t seem so RESTful anymore.</p><p>Even worse, you’ll need to support any old endpoints as long as there are old versions of clients in the wild lest you risk breaking those clients. This leads to another major problem with REST:</p><h3>“Versioning” REST APIs is a pain</h3><p>The structure of responses from REST APIs is important. Clients build themselves around the knowledge that each resource has a specific structure. When Generic Microblogginator™ first released their API, this is what the response for getting a single post looked like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/334bb64c27e7adb8310b556aa5ca67af/href">https://medium.com/media/334bb64c27e7adb8310b556aa5ca67af/href</a></iframe><p>After some time has passed, you decide there are a couple things you want to improve about a post’s structure in the API. Posts are about to get categories, so you’ll need to add those as a new field. You’ve also received feedback that the format for published_at isn’t very friendly. JavaScript clients can parse it okay, but you’d rather any tool be able to parse your timestamps easily, so you decide to change it to an ISO-8601 format. When all is said and done, you want the new structure to look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ccc3000831ec89e74d42a134e2118fe8/href">https://medium.com/media/ccc3000831ec89e74d42a134e2118fe8/href</a></iframe><p>Looking good! Unfortunately, one of your changes will break all of your existing clients. Every client expects published_at to be the less-friendly format, so that’s how they’ll try to parse it. If you want to update a field or remove a field, you have to version your API (whether it’s via the URL or an HTTP header) and try to get clients to upgrade. It’s unlikely you’d get every client to upgrade, so you have two choices:</p><ol><li>Be okay with breaking old versions of clients (including your own app)</li><li>Support old versions of your API until the day your company decides to <a href="https://ourincrediblejourney.tumblr.com/">announce a new chapter in their incredible journey</a>.</li></ol><p>The easiest thing to do is simply leave your old code alone, which means piling more and more versions of your API versions on top of the old ones.</p><h3>A challenger approaches</h3><p>Enter GraphQL, a technology written by Facebook. Facebook was facing major problems with the data pipeline for their mobile applications. Their mobile apps used to be wrappers around web views and, as the mobile apps increased in complexity, they began to suffer performance problems and frequent crashes. Facebook turned to writing native applications and found themselves needing a new API to retrieve data for their native views. They evaluated REST and other options but, given problems like those described above, ultimately took the opportunity to produce something truly new.</p><h4>What is GraphQL?</h4><p>GraphQL is, as the name might suggest, a query language. It’s also perfect for APIs. It allows you to define your data using a fully-fledged type system, forming a schema that is self-documenting. It also gives clients full control over the data they request.</p><h4>Too many HTTP requests? How about one HTTP request?</h4><p>With GraphQL, clients can get all of the data they need to render a view using only one request. With our previous profile page example, a client would need to issue one request to get a user’s information, one request to get that user’s posts, and then another request for each post to get a few comments. With GraphQL, that client could get all of the above data with one request:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e2dc8fcdedc7db5fb0219b2f73ea80f/href">https://medium.com/media/4e2dc8fcdedc7db5fb0219b2f73ea80f/href</a></iframe><p>Boom! 💥 There are other benefits to this aside from the fact that we went from 22 HTTP requests to one. For instance, your User may have other information attached to it. Maybe you expose the timestamp of when a user signed up. Maybe another client doesn’t care about a post’s categories. If a client doesn’t need to query for a piece of data, <em>neither does your server</em>. So when a client saves, you can save too by simplifying your own database queries.</p><h4>Versioning? Just deprecate!</h4><p>As with (most) REST APIs, you can add fields to GraphQL types without fear. To remove functionality, GraphQL includes deprecation as a feature. Instead of fully removing a field and breaking clients, you can declare a field as deprecated and hide it from tools as it ages.</p><h4>Documentation: you’ll barely need to worry about it</h4><p>Let me be real for a second here: I can count the number of times I’ve used a well-documented API on one hand. Many times, APIs remain undocumented or poorly documented. With GraphQL, your schema is practically self-documenting. All you have to do is give your types and fields descriptions when necessary, and this happens in the code itself. Clients can issue special GraphQL queries to introspect on your application’s schema and know, in one query, all of the data they can request, what it’s called, and what it describes. Developers can also use tools that are built on this introspection like <a href="https://github.com/graphql/graphiql">GraphiQL</a>, which allows clients to test their queries with live syntax highlighting and error detection.</p><h3>Get started with GraphQL</h3><p>Are you sold enough to try out GraphQL? There are plenty of resources to help you get started on your journey:</p><ul><li>Check out GraphQL’s <a href="http://graphql.org/">official website</a> for documentation and examples</li><li>Play around with an example, the <a href="http://graphql-swapi.parseapp.com/?query=%7B%0A%20%20film(id%3A%20%22ZmlsbXM6MQ%3D%3D%22)%20%7B%0A%20%20%20%20title%0A%20%20%20%20releaseDate%0A%20%20%7D%0A%7D">Star Wars GraphQL API</a></li><li>The working <a href="http://facebook.github.io/graphql/">GraphQL Specification</a> if you’re into the nitty gritty</li></ul><p>I’ll also be following this post up with one more, in which we’ll create a little GraphQL API together, so stay tuned! I’ve had the immense pleasure of working with GraphQL at GitHub and my experience leads me to believe wholeheartedly that it’s the API tool of the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40a2761e6336" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/give-it-a-rest-use-graphql-for-your-apis-40a2761e6336">Give it a REST: use GraphQL for your APIs</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>