<?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 hans torres on Medium]]></title>
        <description><![CDATA[Stories by hans torres on Medium]]></description>
        <link>https://medium.com/@hanseh?source=rss-105a85a5aa3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BiFoPBU3XgApN3Pd.png</url>
            <title>Stories by hans torres on Medium</title>
            <link>https://medium.com/@hanseh?source=rss-105a85a5aa3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 21:16:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hanseh/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[Meteor - React- Redux 101 (veedeo) Part 1]]></title>
            <link>https://medium.com/@hanseh/meteor-react-redux-101-veedeo-part-1-a0d079a2f32a?source=rss-105a85a5aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0d079a2f32a</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[hans torres]]></dc:creator>
            <pubDate>Fri, 01 Jul 2016 12:22:48 GMT</pubDate>
            <atom:updated>2016-07-01T12:22:48.578Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve been using meteor for quite a while now and so far, the experience was great. The time has come to add new flavours to our technology stack.</p><p>React and Redux are the buzz words around the company as of writing this blog. Several teams has started using it for some internal projects and there are plans of testing the two technologies to replace some production projects.</p><p>The usual questions would be, Why use react and redux? what does it add to the current stack? How’s the learning curve?</p><p>This blog tends to document my personal quest on understanding these technologies and adding it on top of our current setup.</p><p>To start things up, React is one of the new front-end tools that you can add to meteor. To read more about it, check this <a href="https://camjackson.net/post/9-things-every-reactjs-beginner-should-know">link</a></p><p>Redux on the other hand is predictable state container for javascript projects that tends to blend well with react in terms of managing project states. I tend to think that redux makes things a bit tedious but thanks to <a href="https://www.reddit.com/r/reactjs/comments/4npzq5/confused_redux_or_mobx/">this</a> good read, It changed my perception quickly.</p><p>through out this blog, we would be writing a simple ecommerce site for selling videos. It would just be a few screens with item search, checkout, comment and buy. There would be an admin module that would run on a separate meteor instance. Communication would be via API through DDP or restivus.</p><p>To start, first download and install <a href="https://www.meteor.com/">meteor</a>. I’ll be using meteor version 1.3.3 for this walkthrough. Afterwards, let us start creating and setting up our project. Type the following on the command line.</p><pre> meteor create meteor-react-redux-101<br> cd meteor-react-redux-101<br> meteor npm install<br> meteor</pre><p>This would create the initial project, install the npm modules and then would run the application. Next step is to add our libraries/ to the project</p><pre>meteor npm install --save react react-dom</pre><p>After this, we need to quickly set up React on out project. Open <em>main.html </em>on your editor and replace the current contents with :</p><pre>&lt;head&gt;<br> &lt;title&gt;Shop&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;div id=&quot;<strong>home-container</strong>&quot;&gt;&lt;/div&gt;<br>&lt;/body&gt;</pre><p>We should now create the jsx file that would serve as the entry point of our project. Rename <em>client/main.js </em>to <em>client/main.jsx </em>and replace the contents with the following :</p><pre>import React from &#39;react&#39;;<br>import { Meteor } from &#39;meteor/meteor&#39;;<br>import { render } from &#39;react-dom&#39;;</pre><pre>import App from &#39;../imports/ui/components/App.jsx&#39;;</pre><pre>Meteor.startup(() =&gt; {<br>  render(&lt;App /&gt;, document.getElementById(&#39;<strong>home-container</strong>&#39;));<br>});</pre><p>The js vs jsx extension might cause some confusion on your end, I tend to use jsx for files that has html or react related codes while I use js for files without it. The purpose is for easy viewing on the editor. I’m not that sure if It has other implications.</p><p>Now, create our first react component. Create a new file <em>imports/ui/components/App.jsx </em>then copy the codes below :</p><pre>import React, {Component} from <strong>&#39;react&#39;</strong>;<br><br>export default class App extends Component {<br>    render () {<br>        return (<br>            &lt;<strong>div</strong>&gt;<strong>Hello world!</strong>&lt;/<strong>div</strong>&gt;<br>        );<br>    }<br>}</pre><p>Now go to localhost:3000 to check your site. You should be seeing Hello world!</p><p>What we did was, we installed the meteor setup, added the react modules and linked them all together. The next part of this chapter is more on creating react components and understanding the concept of <em>states.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0d079a2f32a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should I “really” learn meteor ?]]></title>
            <link>https://medium.com/@hanseh/should-i-really-learn-meteor-657f0e308e0f?source=rss-105a85a5aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/657f0e308e0f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[hans torres]]></dc:creator>
            <pubDate>Thu, 28 Jan 2016 13:52:14 GMT</pubDate>
            <atom:updated>2016-01-28T13:52:14.732Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been dwelling on the same question for a few months now after deciding to use meteor on one of our production projects. Yes, meteor was able to deliver fast and with great results but there are still a few reasons why I don’t want to fully dive into the meteor bandwagon.</p><p>I’m coming as a php developer who had the same issues a few years back in choosing what framework to really master or use extensively. During that time, the choices were not as many as compared to the number of frameworks/library/tools for JS.</p><p>So, the fear of investing my precious time to learn/master a new tool is really there. Here’s a few things that i’ve considered prior to my decision of using meteor.</p><h4>1. Lots of things needed to become a good meteor developer</h4><p>While it is true that you just need the basic understanding of javascript and node to use meteor, but, you really need more than that. Javascript alone offers a wide variety of tools or libraries that does solve problems but, they tend to overshadow the javascript as a language. Do I need to learn jQuery? underscore maybe? should I write it using babel for me to learn ecma6 ahead? coffeescript maybe? Oh, and node is a different beast on top of that.</p><p>It seems very frustrating, but in reality it isn’t that bad. It boils down to just choosing which ones you would want to learn and use because most of them just does the same thing. On my end, I’ve stick with babel, node and plain JS( and meteor ofcourse). Plus, you would be probably using 20% max of the library specially node.</p><h4>2. Meteor changes so fast</h4><p>Not just meteor but javascript as a whole changes so fast. Better solutions to do a certain problem comes every other month or week maybe, displacing the current king of the hill. Take browserfy for example, I’ve just started learning/using it and after a month, guess what? hello webpack.</p><p>Meteor’s core might not change that fast but the community packages around it seems to be affected by how things go. I really like to use meteoric but the package is not on active maintenance anymore because of a possible shift in how hybrid would be handled in meteor.</p><p>On the most recent news, meteor would be stoping the development of blaze for react. It is a good move by MDG no doubt but still, it is a bit hard to let go of blaze.</p><p>This is actually one of my major turn offs before. The phasing in the javascript world is so fast. Back in my php days, it takes years for certain major changes.</p><p>But on the bright side. It aint that bad. Welcoming change is not that bad. Just don’t think on applying it on your production codes. I’ll stick with blaze and meteor 1.2 and would do baby prototype with the upcoming 1.3 while learning react.</p><h4>3. MongoDB ?</h4><p>And another tool that I need to learn. Sigh. Though, the difference is, i don’t want it. Relational is the way to go for me. We did try using meteor packages to use postgre and mysql but still end up using mongodb. Meteor is so tied to it like bacon and eggs. But, so far, it functions well.</p><p>There’s so much new alternatives though like graphQL and many more coming in 1.3 release.</p><h4>4. Does meteor scale?</h4><p>And the answer is… Yes, It does. Meteor is built on top of Node.js and MongoDB. Node is notoriously scalable — <a href="http://stackoverflow.com/questions/16578874/what-specifially-makes-node-js-more-scalable-than-apache">1 million concurrent connections</a>. The other proof is that node is used by big companies like paypal. So I guess, It really can scale. The question is how. I’ll learn that eventually.</p><p>Basically, that’s about the major questions that bugs me and took me quite a lot of research to answer on my own. More likely convince myself to dive in. 6 months into meteor/node/js thing now and so far I have no regrets. Just a few minor what ifs. I’ve wrote this blog for the sole purpose of reminding myself that I’ve chose to “really” learn meteor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=657f0e308e0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>