<?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 Rogério Moreira on Medium]]></title>
        <description><![CDATA[Stories by Rogério Moreira on Medium]]></description>
        <link>https://medium.com/@rgllm?source=rss-ca625e1331c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nRgScD14_tv7LAVOvqACQw.jpeg</url>
            <title>Stories by Rogério Moreira on Medium</title>
            <link>https://medium.com/@rgllm?source=rss-ca625e1331c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:52:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rgllm/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[From monolithic to headless: how and why you should adapt your WordPress stack]]></title>
            <link>https://medium.com/pixelmatters/from-monolithic-to-headless-how-and-why-we-adapted-our-wordpress-stack-309f0536007e?source=rss-ca625e1331c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/309f0536007e</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[gatsbyjs]]></category>
            <dc:creator><![CDATA[Rogério Moreira]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 15:50:08 GMT</pubDate>
            <atom:updated>2020-07-13T09:07:14.982Z</atom:updated>
            <content:encoded><![CDATA[<h4>Every dynamic website consists of two main parts: the backend and the frontend. The backend, which in marketing websites is commonly a Content Management System (CMS), allows the website owners to manage as much content as needed without handling code changes. The frontend displays all of that content for the website users.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzi3W5EkcahgOzYS_0EImw.png" /></figure><p>We at Pixelmatters use a variety of CMS and frameworks to build websites. One of these solutions is WordPress, in which we have built large scale projects like <a href="https://www.pixelmatters.com/work/rubrik-corporate-website-design/">Rubrik</a>, using it for both the backend and frontend. This approach is very convenient however, there a lot of advantages of decoupling the two parts, especially performance. For these reasons, we decided to adapt our WordPress stack to use a more headless approach with newer technologies. This post aims to describe how we adapted our marketing websites stack maintaining high-quality standards.</p><h3>🗿Our old stack and the monolithic way to use WordPress</h3><p>We’ve used WordPress before with marketing websites at Pixelmatters. It allows our clients to edit website content independently and adding flexibility without compromising the overall design. These websites are built using this CMS, serving both as the backend and frontend, or what is called a monolithic approach.</p><p>On our old stack, the backend uses a combination of WordPress hooks and ACF to create custom blocks that are assigned to <a href="https://developer.wordpress.org/themes/template-files-section/page-template-files/">custom page templates</a>. The frontend is built on a custom theme that uses <a href="https://github.com/timber/timber">Timber</a>, a plugin that adds <a href="https://twig.symfony.com/">Twig Template Engine</a> support in WordPress, allowing us to separate PHP files and component/HTML files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aueQ84-lH7hfNrE54MEwTg.png" /></figure><h3>🎭 The future of WordPress is headless</h3><p>WordPress come a long way since the first introduction 17 years ago, evolving from a simple blog publishing platform to a fully-featured CMS, to an online store managing system. This freedom to use WordPress in very distinct scenarios resulted in increasing use of the CMS which is present now in more than 30% of the top 10 million sites, according to <a href="https://w3techs.com/technologies/history_overview/content_management/all">W3Techs</a>. These numbers allied with the large community caused more and more growing knowledge about WordPress itself, especially in marketing teams. However, WordPress is built in old technologies and its restrictive architecture doesn’t offer the possibilities that sometimes we need while working on client websites, especially when it comes to performance optimization, one of the key points <a href="https://developers.google.com/web/updates/2018/07/search-ads-speed">Google takes into account while ranking a website</a>.</p><p>Since the introduction of the REST API in WordPress, it can be used in a headless way, allowing developers to use it as a backend (where it really shines) and separating the frontend, where we can use frontend-focused technologies. This way the model and the controller are bundled together on the WordPress side, handling all data manipulation and database interaction and the frontend only interact with the REST API.</p><p>This way we ensure the correct separation of concerns since the frontend and the backend interact via endpoints making it possible to host them in separate servers specifically optimized for their purpose. A backend server optimized for PHP applications and a frontend server optimized to deal with Node.js applications. With this separation, we also ensure that exploiting the website through the backend becomes more difficult since it’s largely hidden from the public. Commonly exploited WordPress routes, like <em>wp-login.php</em> or <em>xmlrpc.php</em> are no longer available to the public.</p><p>In addition to this, using WordPress as a headless CMS makes it possible to use modern JS libraries like ReactJS, Vue.js, or Angular delivering highly dynamic web apps. This also future-proofs the website implementation, letting us redesign the site without re-implementing the CMS itself, and allows us to deliver more performant websites with minimum effort by shifting display logic to the client-side and streamlining the backend.</p><h3>💁 Choosing the frontend framework</h3><p>When it comes to creating a website, there’s no shortage of JS frameworks that allow us to create beautiful and functional frontends. However, when it comes to running WordPress headless it can become easy to get bogged down with the particulars of WordPress and the process of fetching data using the WordPress API. For this reason, one of the things we set up as a goal from the beginning was to choose a framework that natively supported the WordPress API. This led us to choose <a href="http://gatsbyjs.org/">GatsbyJS</a>, an open-source framework based on React with native support for modern technologies like GraphQL and Progressive Web Apps that have a lot of advantages.</p><p>It offers support for multiple data sources making it possible to combine, for example, data from WordPress and databases, APIs, or even Markdown files. The support for the WordPress REST API is done trough <a href="https://www.gatsbyjs.org/packages/gatsby-source-wordpress/">gatsby-source-wordpress</a>, which automatically pulls the data and makes all endpoints available for the frontend.</p><p>On the performance side, GatsbyJS brings some out of the box optimizations. It generates all the pages content during the build process making the website fast and once loaded. Gatsby prefetches resources for other pages so clicking around the site feels almost instantaneous.</p><p>On the other hand, the way GatsbyJS works and the reason why it can do these performance optimizations is the fact that it fetches all the needed data to populate the pages during the build process. This means that for each WordPress data update the frontend needs to rebuild, resulting in a big disadvantage for websites with a lot of content changes, for example, news websites.</p><h3>🏛️ Defining an architecture</h3><p>Early on the first project, we decided to use this new stack it was defined that in order to maintain a scalable and robust codebase we needed to correctly structure both the backend and the frontend before starting the development since this was a completely new way to work. This way we could ensure and maintain the project quality while introducing new features. Furthermore, this architecture could be reused in other projects, maintaining the same structure, and allowing developers to work on multiple projects using WordPress and GatsbyJS.</p><h3>📝 Backend Architecture</h3><p>In the WordPress backend, we follow an architecture similar to what we used on monolithic installations. We have a set of WordPress page templates and then we assigned custom ACF components to that page templates. Usually, these components are directly mapped to React components on the frontend. We also create Custom Post Types to define custom data structures, and that use the same components imported on the common pages.</p><h3>🖼️ Frontend Architecture</h3><p>On the frontend, we use a common Gatsby architecture. The framework pulls the data from WordPress REST API. This data includes posts, pages, custom post types, menus, and global options like for example logos. Thus, we ensure that the client has total flexibility on the backend to change any content that it’s loaded on the frontend. After pulling this data, during development, Gatsby transforms the WordPress REST API into a GraphQL API to be used on the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*neO1VfbkrUo3qJXg2xvHmQ.png" /></figure><p>During the production build, Gatsby pulls only the data used on the frontend and transforms it into JSON files that are then loaded by the pages, ensuring we only load necessary data.</p><p>We also developed an architecture for the frontend components taking into account the WordPress structure itself and the way Gatsby works internally, resulting in the following types of components:</p><ul><li><strong>Layout</strong> — The layout is the global component and the parent of all other components;</li><li><strong>Views</strong> — Views are connected to the router and directly mapped to WordPress page templates. So, for example, if we have a Contact Us page template we have a Contact Us View in the frontend that is responsible to fetch all the data used on the page through a GraphQL query and to importing all the children Partials and View Components used;</li><li><strong>Partials</strong> — Partials are reused across all the site with a particular difference to View Components, this type of component include the data fetch, which means they can connect to external data sources. On GatsbyJS we do this using <a href="https://www.gatsbyjs.org/docs/static-query/">GraphQL Static Queries</a>, commonly used for menus and sidebars that need to be independent of the page;</li><li><strong>Global Components</strong> — Components reused across all the websites and imported on Views or Partials.</li></ul><h3>🔮 Future improvements</h3><p>We’re now working on a new version of this stack to implement WPGraphQL and removing the middle step of transforming the WordPress REST API into a GraphQL API. This will be done using the upcoming gatsby-source-wordpress V4, rewritten from the ground up using WPGraphQL for data sourcing as well as a custom plugin WPGatsby to transform the WPGraphQL schema in Gatsby-specific ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcULMcaQvvXsOkwyX7RvHQ.png" /></figure><h3>🚀 Results and conclusions</h3><p>While the monolithic way to use WordPress is very convenient this new stack has proven to offer more advantages than disadvantages. We’ve now shipped two client websites using this stack and we noticed two big benefits. The first one is obviously the performance, we are getting really good results out of the box and without the need to assign specific tasks for this. For example, on one website we got from 24 to 93 points on Google PageSpeed Performance without any specific optimization, just using native GatsbyJS features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSDIevfx2XkygLy6A8EfWQ.png" /></figure><p>The second benefit is the use of new technologies that allow us to make the websites more dynamic. For example, we had recently to ship a new functionality in one website where the user has a favorite store, which is chosen taking into account their preference and location, and this selection is shared across all the website allowing the components to render specific information for that user. While this is also possible in a common WordPress website, the effort to do this is exponentially higher. Marketing websites become true interactive experiences for users. The backend becomes only the system of record and “state machine”, but back-and-forth interaction happens in real-time in the browser.</p><p>On the other hand, this type of stack requires some client education since they’ve to understand how all the stack works. One of the main things it’s the use of WordPress plugins and mirroring those plugins to the frontend. The two parts of the website are isolated, which means that if for example, you install a new plugin for custom buttons on WordPress those buttons will not be available on the frontend and require additional development. Also, another thing that comes to a lot of times is the build time. When publishing or editing a new page, clients need to understand that the frontend needs to rebuild and that is not instantaneous, though this is improved a lot with <a href="https://www.gatsbyjs.org/blog/2020-04-22-announcing-incremental-builds/">Gatsby Incremental Builds</a>.</p><p>In conclusion, we believe this new approach brought us a lot of benefits on our marketing websites stack, however, there are still a couple of pain points that we hope to solve with time.</p><p>If you enjoyed reading this post, please click on the <strong><em>Clap</em></strong> button below! ❤️👇</p><p><em>Follow </em><strong><em>Pixelmatters</em></strong><em> on </em><a href="http://twitter.com/pixelmatters_"><em>Twitter</em></a><em>, </em><a href="http://facebook.com/wearepixelmatters"><em>Facebook</em></a><em>, </em><a href="https://www.linkedin.com/company/pixelmatters"><em>LinkedIn</em></a><em>, and </em><a href="http://instagram.com/pixelmatters"><em>Instagram</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=309f0536007e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pixelmatters/from-monolithic-to-headless-how-and-why-we-adapted-our-wordpress-stack-309f0536007e">From monolithic to headless: how and why you should adapt your WordPress stack</a> was originally published in <a href="https://medium.com/pixelmatters">Pixelmatters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everyday Tools for a college student]]></title>
            <link>https://medium.com/@rgllm/everyday-tools-for-a-college-student-23fbbae32c5?source=rss-ca625e1331c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/23fbbae32c5</guid>
            <dc:creator><![CDATA[Rogério Moreira]]></dc:creator>
            <pubDate>Sat, 11 Oct 2014 22:21:41 GMT</pubDate>
            <atom:updated>2020-07-01T21:59:33.737Z</atom:updated>
            <content:encoded><![CDATA[<h2>Everyday tools for a college student</h2><h4>A collection of apps and useful tricks that can help you in your busy life at college. These are tools that I use and that I think are very useful. Feel free to share the ones you consider important.</h4><p>I’m a recent college student (3 months now) and for that time I’ve been searching the better tools to organize and make better my daily life in college. I have been use all of them for a month. This post is inspired in <a href="https://medium.com/@gabrieldombri/every-day-tools-for-a-startup-founder-751794c6109c">“Everyday Tools for a Startup Team”</a></p><h3>Organize tasks and notes</h3><h4>Wunderlist</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWSooLMpe_E6XlUMKsaMDw.png" /></figure><p>I create a list for subject that I have. I update it directly from my iPhone adding all the things that I have to do, from reports to homework.</p><h4>Evernote</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRB_46lpwfNUhc28JV5zqA.png" /></figure><p>I use Evernote to organize topics and notes for each subject. I creat a notepad for each subject and I have all the notes there. And best of all, it syncs with all my devices.</p><h3>Organize files</h3><h4>Dropbox</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*Vme6tKkQ2kbKaa2tKOjGQA.png" /></figure><p>I created a folder for each subject and there have all documents, organized between theoretical and practical.</p><h3>Comunication</h3><p>Not much to talk.</p><h4>WhatsApp , Skype, Facebook Messenger</h4><h3>Get things done</h3><h4>Google Calendar</h4><p>I put here all events delivery of homework or tests. One tip is to connect iCal to receive sms with the events.</p><h4>Pomodoro Timer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*d8g9lnhTLlsOVXi3YoEoMg.jpeg" /></figure><p>This is a cool and beautiful designed tool to keep doing an activity withou distractions for a 25 mins + 5 mins breaks in between. I use it when I’m studying too keep me out of distractions (Facebook). It’s basead on the <a href="http://en.wikipedia.org/wiki/Pomodoro_Technique">Pomodoro techinique</a>.</p><h4>Simple Note</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhGxLgMU-gZLcYsd6ZXyKw.png" /></figure><p>Really quickly notes, useful for taking notes during classes.</p><h3>News</h3><h4>Digg Reader</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lQtbRb-KNR5Y9puCR6m3Q.png" /></figure><p>My favorite RSS Reader.</p><h4>Morning Reader</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rddF92wxNaIIFC6s60lGbA.png" /></figure><p>A collection of the most popular stories of each day, useful to read at night or at the morning.</p><h4>Pocket</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWtMtMANvCYdbq7K4BX4vA.png" /></figure><p>At week I don’t have much time to spend reading all the articles that I want too, so I save them in Pocket and at saturday I read them.</p><h3>Social Networks</h3><h4>Facebook, LinkedIn, Twitter</h4><p>Is really good to maitain them update, especially LinkedIn. When you finish something put there or when you win something put there.</p><h3>Getting around</h3><h4>Foursquare and Swarm</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ubyh8X8HAvHVwyp9IUQVAg.png" /></figure><p>To see what the best restaurants, cafes, shops or just to check-in.</p><h4>Waze</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6v0c4C-NqqIKS-qNZg3kGg.png" /></figure><p>To know how the traffic is.</p><h4>Google Maps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qSsG_z9GRjfy4p8OKBIO-w.png" /></figure><p>To see routes by bus or on foot.</p><h4>Mandic Magic</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vjolMBT4YNdVa1khP_Bcaw.png" /></figure><p>Mandic magic is a social network to share wifi passwords, very useful when you are travelling and you want the wifi password of a hotel or a public wifi.</p><h3>Others</h3><h4>XMarks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wBHN1eFsDjra8o49SZrJFQ.png" /></figure><p>To keep my bookmarks synced between all my devices.</p><h4>Slack</h4><p><a href="https://www.youtube.com/watch?v=B6zVzWU95Sw">https://www.youtube.com/watch?v=B6zVzWU95Sw</a></p><p>I use it for group work and to assign tasks to a group work.</p><h4>iStudiez</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KAoGV3yGWyP6DDtulXkpWQ.png" /></figure><p>Here I have all of my evaluation marks and all of my subjects with the respective teacher and her email and phone number.</p><h4>Github</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6ippMV5LDyFc86NT4s0VQ.png" /></figure><p>I’m a computer engineering student, so GitHub is a good help to organize all the code and all the programs.</p><h4>IFTTT</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJCuN0NuBPDY-WQbMR8aJw.png" /></figure><p>IFTT is always running in my iPhone background, it organizes all the things. I use recipes like “Backup my contacts to a Google Spreadsheet”, in case I have some trouble with my phone, or “Send me a SMS every month with the text “Backup my MacBook””. IFTT is a tool that with imagination you can create very useful recipes to help you everyday.</p><h4>Letterboxd</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgn04A0mMmYwiu4VFvZ1hg.png" /><figcaption>Letterboxs homepage</figcaption></figure><p>Letterboxd is a really good alternative to IMBD. I use it to track the films that I watch and the ones I like most. The better is that Letterboxd gives me recommendations based in my favorite movies, which saves me lots of time to choose the movie I’ll see next.</p><h3>Bonus: GitHub student offer</h3><p>I recently discover an awesome offer from GitHub to students so I decide share with you. The pack that Github is offering to all studies with a student email includes an .me domain, a ssl certificate and a set of useful tools.</p><p>You can <a href="https://education.github.com/pack">see it here</a>. Hope you enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23fbbae32c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>