<?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[Crystal Helix | Facets - Medium]]></title>
        <description><![CDATA[Thoughts from the Crystal Helix team. - Medium]]></description>
        <link>https://medium.com/crystal-helix?source=rss----ccbf87a0a722---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Crystal Helix | Facets - Medium</title>
            <link>https://medium.com/crystal-helix?source=rss----ccbf87a0a722---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 10:35:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/crystal-helix" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning Elixir as a Python Developer]]></title>
            <link>https://medium.com/crystal-helix/learning-elixir-as-a-python-developer-1462169cec8f?source=rss----ccbf87a0a722---4</link>
            <guid isPermaLink="false">https://medium.com/p/1462169cec8f</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Alejandro Carlos]]></dc:creator>
            <pubDate>Sat, 13 Jan 2018 22:33:03 GMT</pubDate>
            <atom:updated>2018-01-13T22:48:29.371Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWUSdD37MGnB4e94eUkoHw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/mBHuEkka5wM?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Adrien Ledoux</a></figcaption></figure><p>Quick thoughts from a snake charmer dabbling in alchemy.</p><p>I’ve been writing code in Python for the past 4 years and have very much enjoyed the language. Recently I had the chance to work on a project using Elixir and I’ve taken quite the liking of this language. Elixir is a newish language (7 years old) that runs on the Erlang virtual machine (BEAM).</p><p>Here are some important lessons I’ve learned while working in Elixir:</p><h4>Immutability is great</h4><p>In Python we can take any variable and manipulate it’s value in place without ever having to reassign the value again. This is useful but can sometimes cause headaches due to side effects in our functions. In Elixir, variables are immutable. Every time you do any kind of operation using variables you get a brand new version of that data without altering the previous assignment (unless you do so explicitly). Here’s an example of this behavior:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae685cec15bafc59bcbc1cd7e4949ef3/href">https://medium.com/media/ae685cec15bafc59bcbc1cd7e4949ef3/href</a></iframe><p>Immutability shines the most in Elixir, because it allows multiple processes to use the same data without the risk of</p><h4>Everything has to live in a module</h4><p>Unlike Python, functions and classes which can live anywhere, Elixir functions need to live within a name spaced module. This is a bit different at first but it makes sense once you start using your code all over the place. All you have to do is reference the module name and the function you want to use within it and you’re set. The cool thing about Elixir is that it only allows you to create name spaces once, so if you try and redefine the same module more than once, it will cause an error that’s very clear about what’s happening.</p><h4>Imports are a thing of the past</h4><p>In Python, you have to import the functions or classes based on their path and name. In Elixir, you can use any name spaced module anywhere as long as the module is listed as a dependency in your application config file. It’s as simple as writing the module name and the function you want to use, with no need to import it in every file.</p><h4>Early Exits in functions aren’t a thing</h4><p>When you write a function in Elixir, all of the code within that function will be executed, period. The last statement in your function is the return value of that function. In Python, you can write guards to make a function exit early based on the function params. In Elixir, you write your guards into the function definitions and essentially run different versions of the same function based on the params (Hint: It uses Pattern Matching). Here are some equivalent examples in Python and Elixir:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e9f892e856655067b92684d80b3a1bc1/href">https://medium.com/media/e9f892e856655067b92684d80b3a1bc1/href</a></iframe><p>So you might be thinking that you have to write a lot more in Elixir but don’t let that stop you from using it. Since each function has it’s own definition, Elixir has the ability to pick the right signature based on the params with Pattern Matching at insanely fast speeds.</p><h4>Functional programming is the way to go</h4><p>I’ve been programming in OOP (Object Oriented Programming) since college. Although OOP has it’s advantages, sometimes it just makes things more complicated. I have been experimenting with an alternative to OOP called Functional Programming (FP). In FP, you only have to think in terms of inputs and outputs, which make it easier to think about a problem and also makes it easier to test.</p><p>In the web, everything is a series of transformations of data. A request is received, it’s parsed, your code creates new data from the request data, your data is prepared as a response and it’s returned to the end user. All in a series of data manipulations, a function in every step.</p><p>Although FP can be done in Python, the language allows modification of inputs in functions (since variables are passed by reference) which can affect other functions that are run after.</p><h4>Pattern matching is your friend</h4><p>This one was a bit hard getting use to since in Python you always think in terms of assignments. In Elixir, the equals operator is a “match” operator. When used in code it attempts to match the left side to the right side of the operation, it becomes something like a mathematical equation. If the equation is successful it returns the result, if it fails an error is raised. Here are some simple examples of pattern matching:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3466e96d0b41a9344cf2b1a8f4eb5819/href">https://medium.com/media/3466e96d0b41a9344cf2b1a8f4eb5819/href</a></iframe><p>As you can see you can do cool things like extract values from lists and assign them to variables at the same time. This is a very simple example compared to all the power that pattern matching has in Elixir.</p><h4>Piping is awesome</h4><p>Have you every used a bash terminal and passed the result of one command to the next? Well this is basically the same thing, except you’re passing the result of a function into another one. Here is an example of how piping works:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91c9eafd968df5db66cc5f5f2f67f54f/href">https://medium.com/media/91c9eafd968df5db66cc5f5f2f67f54f/href</a></iframe><p>As you can see in the examples above, piping allows you to make cleaner looking code that’s easier to understand.</p><h4>Hex is extremely useful</h4><p>We’ve all had to install pip to get all of the package we need for our python projects. Well Elixir comes with a package manager built in to the language, it’s called hex. There is a huge repository of packages out there for Elixir, the best part is that you can use any Erlang package as well since Elixir compiles down to Erlang byte code.</p><h4>Virtualenvs are obsolete</h4><p>You remember that time when you were installing packages on pip and your realized that you installed it in your global install of pip? Well you won’t have to worry about that with Elixir and Hex. Every project you create with Elixir has it’s own package setup within the same directory where your project lives.</p><p>You can define which version of Elixir, along with any other dependencies your project relies on within your mix.exs for your Elixir application. It looks something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1bfd10d32f17cdc7f8b355fcc9afc9c/href">https://medium.com/media/f1bfd10d32f17cdc7f8b355fcc9afc9c/href</a></iframe><p>All of the above is used in conjunction with hex to provide a very easy way to manage your project dependencies. You can also use git repositories as packages.</p><h4>Final Words</h4><p>Although I had a slightly hard time with the syntax, overall I’ve been very impressed with the power of Elixir. This is just the tip of the iceberg of all the power that this ecosystem provides. I hope you all saw some of the greatness I’ve seen and are willing to give it a try and see for your selves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1462169cec8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crystal-helix/learning-elixir-as-a-python-developer-1462169cec8f">Learning Elixir as a Python Developer</a> was originally published in <a href="https://medium.com/crystal-helix">Crystal Helix | Facets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cron tasks on Meteor]]></title>
            <link>https://medium.com/crystal-helix/cron-tasks-on-meteor-b88114b4d9b4?source=rss----ccbf87a0a722---4</link>
            <guid isPermaLink="false">https://medium.com/p/b88114b4d9b4</guid>
            <category><![CDATA[meteorjs]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[cronjob]]></category>
            <dc:creator><![CDATA[Alejandro Carlos]]></dc:creator>
            <pubDate>Tue, 29 Dec 2015 03:10:05 GMT</pubDate>
            <atom:updated>2015-12-30T00:39:31.893Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0x3emqJ7DBdeQZhorztPA.jpeg" /></figure><p>So you need to run a cron…</p><p>If you’ve ever done this before on any platform/programming language you know that most of the time it’s not a trivial task and you also know that there is some OS setup required to get them running. Most people just offload this task to a specialized server guru and forget about it; but what happens when you don’t have that guy around and you need to add a simple cron to your site?</p><p>Thankfully the community around Meteor has pretty much thought of everything when it comes to client/server frameworks. In other words whenever you think of something you need usually “There’s a package for that”.</p><p>What if I told you that if you can run a Meteor server on you computer you can easily setup a cron? It’s that easy. Let me show you how simple it is:</p><ol><li>Install meteor on your system (this varies by OS so I won’t go into detail)</li><li>Create a new meteor project: “<strong>meteor create cron-sample”</strong></li><li>Install the following package: <strong>“meteor add percolate:synced-cron”</strong></li><li>Add some code to your server to setup the cron</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2Fffynqn0m%2F&amp;src=https%3A%2F%2Fjsfiddle.net%2Fffynqn0m%2Fembedded%2F&amp;type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f41fcc844df1967cb123ac25b38dc1a/href">https://medium.com/media/3f41fcc844df1967cb123ac25b38dc1a/href</a></iframe><p>5. Configure how often you want your cron to run in the “schedule” function using the later.parse syntax.</p><p>6. Run the meteor server and what the logging magic happen: <strong>“meteor”</strong></p><h4>Final thoughts</h4><p>So how simple was that? I was amazed at how easy it was to get a cron up and running using Meteor as your framework. You can add as many cron tasks as necessary and you can have each one run on independent schedules. You also get a collection on your MongoDB that has a bunch of information regarding your run history and when the next scheduled runs are going to happen.</p><p>Overall you can enjoy your coding experience without having to worry about installing and configuring a bunch of system packages. Have fun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b88114b4d9b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crystal-helix/cron-tasks-on-meteor-b88114b4d9b4">Cron tasks on Meteor</a> was originally published in <a href="https://medium.com/crystal-helix">Crystal Helix | Facets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reaching For The Stars]]></title>
            <link>https://medium.com/crystal-helix/reaching-for-the-stars-f024c07ccd01?source=rss----ccbf87a0a722---4</link>
            <guid isPermaLink="false">https://medium.com/p/f024c07ccd01</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[meteor]]></category>
            <dc:creator><![CDATA[Nathan Cox]]></dc:creator>
            <pubDate>Sun, 20 Dec 2015 04:24:22 GMT</pubDate>
            <atom:updated>2015-12-20T19:51:05.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2wNzs-xTe4tVXvEx2Cegg.jpeg" /></figure><h4>Adventures with Meteor and React</h4><p>One thing that never ceases to amaze me is how quickly and eagerly the web community can adapt to change, while at the same time being vitriolically opposed to it. If you’ve worked in the industry for a while you have no doubt seen a familiar and highly amusing pattern of behavior towards new technologies; it goes something like this:</p><ol><li>A new concept, library, framework, et cetera is released which challenges something currently used.</li><li>The next day outrage ensues. The new whatever is terrible, doesn’t address points <em>A</em> through <em>F</em> of <em>current rant</em>, has no support and will die in a week.</li><li>One week later, the new something-or-other is amazing, and there’s just no damned point in using that <em>old</em> technology anymore. It would be foolish to even try.</li></ol><p>I am definitely guilty of this, and I’ll give you two real world examples off the top of my head.</p><p>When I first learned of a new trend in databases called ‘NoSQL’ I thought it was the dumbest, most poorly thought out, least useful technology anyone had ever designed. A decade of working with relational, ACID compliant databases had never steered me wrong, and losing referential integrity seemed like an absolute guarantee of failure.</p><p>Next, when I was first exposed to the idea of isomorphic javascript (i.e., NodeJS at the time) I thought it had finally usurped NoSQL as the worst thing ever created. Javascript was the bane of my existance, and I used it only because I didn’t have any choice. Any other language (barring <em>maybe </em>visual basic) would be better suited for any given task and I sure as hell didn’t want to burden myself trying to use it on the server; that was my <strong>escape</strong> from javascript!</p><p>Today I want to introduce you to two of the core components of my chosen tech stack: the isomorphic javascript framework Meteor; and MongoDB, the NoSQL database which powers its data layer.</p><h3>A brief history in the tech</h3><p>While my focus today is going revolve around my experiences using Meteor with React, I think it’s fair to give a brief overview of the tech stack in general.</p><h4>Meteor, isomorphic javascript it its best</h4><p>I’ve come a long way since my first (bigoted) impressions of Meteor, and in fairness so has Meteor. Over the last year I’ve watched it grow enormously and become a rock solid choice in the already overpopulated field of web technologies.</p><p>One of my favorite traits of Meteor is its amazing and enthusiastic community. There are plenty of role models to look up to and learn from (my personal hero is Arunoda of Kadira fame, you can <a href="https://voice.kadira.io/">read his blog here</a>), and a visit to <a href="https://atmospherejs.com/">Atmosphere</a>, the Meteor package repository, will probably cover most of your basic needs.</p><p>Meteor is basically magical when it comes to data integration; because of the way it integrates with Mongo changes to the database are instantly reflected on the page of every connected user, a technique known as reactivity. This is ideal for data driven apps, because it reduces the need for page reloads from the user and cuts down a ton of boilerplate AJAX code that developers would normally need to write.</p><h4>MongoDB, the NoSQL database which changed my mind</h4><p>Meteor sits on top of MongoDB in a very elegant way, and most of the time you won’t need to worry about exactly how Mongo works (which is awesome). This is partially because Mongo stores data in something equivalent to JSON format and the conversions are dead simple going from javascript to Mongo.</p><p>One of the nice things about working with an isomorphic framework is that you only need to know a single language to get everything to work, from the server to the client, and Mongo supports this fully. In fact, if you open a Mongo shell you can use pure javascript in the console, which definitely blew my mind.</p><h4>React, the thing I haven’t talked about yet</h4><p>React is a javascript library for creating web user interfaces, created by Facebook. You can frequently find it poking its head out of the turbulent waters created by Angular, Ember, Backbone, and all of the other javascript frameworks which on the surface seem to be trying to do the same thing.</p><p>What sets React apart is that it isn’t trying to be a single solution to all of your problems. React tackles interface implementation, and that’s all. It does one job, but it does it very well.</p><p>React is opinionated, and frequently attempts to guide you on the path to writing good, modular, encapsulated code.</p><h4>ES2015, the reason I gave JS a second chance</h4><p>A brief mention needs to go out to the fact that Meteor supports Babel transpilation of ES2015 to ES5 out of the box with no configuration needed. ES2015 addresses most of my scathing hatred of the javascript language and turns it into something that I actually quite enjoy working with. If you haven’t been exposed to it yet <a href="https://babeljs.io/docs/learn-es2015/">I highly suggest you take a look</a>.</p><h3>Making a good thing better</h3><p>Out of the box Meteor comes with a templating engine called Blaze, which uses the Spacebars templating language (there’s a theme here, if you haven’t noticed yet). Blaze is fine, but it doesn’t address one of the main problems I’ve always had with web tech stacks: the templating engine is trying to be something that it’s not.</p><h4>Enter JSX</h4><p>Most templating languages come with constructs that look a lot like javascript constructs. You can use an if block to conditionally print elements, for loops to iterate through server objects, et cetera. The problem is that while they work, they are never as good as the native versions of what they are trying to be.</p><p>React solves for this by giving you access to javascript everywhere. If you need to iterate through a list of objects, you just write a regular javascript for loop, or do something fancy like using a lodash forEach statement. If you can do it in javascript, you can do it in the template. To me, this is huge. It feels much more natural to write this way than to use any of the numerous alternatives out there.</p><p>To make this as simple as possible React provides the optional JSX format, which allows you to write your HTML directly inside of a javascript file without needing to use string concatenation. It is awesome, and you can <a href="https://facebook.github.io/react/docs/jsx-in-depth.html">learn more about it here</a>.</p><p>In practice, it looks something like this:</p><pre>Layout = React.createClass({</pre><pre>  renderArticle() {<br>    return (<br>      &lt;article&gt;<br>        This is some article content.</pre><pre>        It can &lt;span&gt;contain extra html too&lt;/span&gt;, or even<br>        &lt;a href=&quot;#&quot;&gt;have links and so forth&lt;/a&gt;<br>      &lt;/article&gt;<br>    );<br>  },</pre><pre>  render() {<br>    return (<br>      &lt;section&gt;<br>        &lt;h1&gt;This is a section!&lt;/h1&gt;<br>        {this.renderArticle()}<br>      &lt;/section&gt;<br>    );<br>  }<br>});</pre><h4>But isn’t it hard to get working with Meteor?</h4><p>Nope.</p><p>Meteor has an official integration with React which works great and includes automatic JSX transpilation. In fact, if the scope of this article were simply “how to get React and Meteor working together” the entire contents could have been:</p><pre>meteor add react</pre><h4>So what else you got?</h4><p>What if I told you that you could write your application’s templates entirely in React, without ever needing to have a plain HTML file to start including them? What if I also told you that it could be achieved as a robust SPA routing system?</p><p>For this we need to bring up my hero, Arunoda, again. He’s released a really kick-ass router system which the community has largely embraced called <a href="https://atmospherejs.com/kadira/flow-router">Flow Router</a>. Out of the box it works with Blaze, but he’s also created a tandem package <a href="https://atmospherejs.com/kadira/react-layout">React Layout</a> which can render React components directly from the router. It works great, and makes for some very clean, modular code. Rather than waste time trying to explain the implementation details here, you should go right to the source and <a href="https://kadira.io/academy/meteor-routing-guide">learn from the experts</a>.</p><h4>It can’t be that easy. What’s the catch?</h4><p>You’re right, nothing’s perfect. There are some gotchas involved which I’ve had to work my way through.</p><p>First and foremost, because you no longer have a direct HTML landing template, you don’t have direct access to the document head. This makes including things like meta tags virtually impossible. To address this you can use the killer <a href="https://atmospherejs.com/kadira/dochead">DocHead</a> package, which exposes an easy to use API for adding items to the document header on the fly. Using Flow router’s enter trigger you can easily set the title of the page, add open graph tags, et cetera.</p><p>Next, it’s more difficult to determine where to put google analytics. But that’s ok, because there’s an awesome package for that too: <a href="https://atmospherejs.com/okgrow/analytics">okgrow:analytics</a>.</p><p>After that… actually, that’s pretty much all the caveats I’ve run into so far.</p><h3>Final thoughts</h3><p>Hopefully today I’ve peaked your interest in using React with Meteor. Both of these awesome technologies deserve books worth of tutorials and information and I surely can’t have answered all of your questions here. In fact, I didn’t even try to help you with specific implementation.</p><p>A lot of prominent players in the field of Meteor are excited about React, and there are even rumors of a Blaze 2.0 which will be written on top of React to improve its Meteor reactivity out of the box. Like any solution, there are other alternatives. Aside from just using Blaze, Angular is officially supported by Meteor as well. However, because Angular is so large in scope it’s not ideal, in my mind, for use as a templating engine in a larger framework. Too many cooks in the kitchen and so forth.</p><p>Aside from Arunoda and the Kadira team, React is getting quite a bit of support from the folks at <a href="https://www.discovermeteor.com/">Discover Meteor</a>, who have recently published an <a href="https://www.discovermeteor.com/category/blaze-to-react/">excellent series</a> on integrating these two technologies and actually recommend that all new apps use React rather than Blaze.</p><p>The future is looking bright, and in keeping with the general theme: there is a universe of possibilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f024c07ccd01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crystal-helix/reaching-for-the-stars-f024c07ccd01">Reaching For The Stars</a> was originally published in <a href="https://medium.com/crystal-helix">Crystal Helix | Facets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transitioning to non relational databases]]></title>
            <link>https://medium.com/crystal-helix/transitioning-to-non-relational-databases-98a09500d9fd?source=rss----ccbf87a0a722---4</link>
            <guid isPermaLink="false">https://medium.com/p/98a09500d9fd</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Alejandro Carlos]]></dc:creator>
            <pubDate>Tue, 15 Dec 2015 16:10:34 GMT</pubDate>
            <atom:updated>2016-09-09T16:24:39.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtNr7TPadZ53EsJ265JZlw.jpeg" /></figure><p>During my many years of software development I have been using relational databases for every data driven application I’ve ever participated in. Thinking of entities and how they relate to each other is second nature now. Then along come NoSQL databases and screw up the way I’m thinking and my mind was blown along with all my pretty relational schemas.</p><p>At first I resisted the change and always found a reason why NoSQL databases would cause data integrity issues, were harder to use and made no sense. So why was I feeling this way? Because I was still in my relational mindset. Coming out this relational shell that was built around my mind for many years was tough.</p><p>After a while I saw the light at the end of the tunnel and started to realize that not everything was meant to be built in a relational system and certain things started becoming easier when using NoSQL databases.</p><p>There are a few points that I would like to discuss to show how good NoSQL databases can be in comparison to relational databases:</p><h4>Nested Documents</h4><p>If you come from relational databases you would say, what are those? In it’s simplest form a nested document is basically more data that inside of a “row” in a NoSQL database. This can be as simple as a list of strings or as complex as an object with keys that contain objects that contain objects. Simple right? It can and I can be depending on if you do it right.</p><p>In relational databases you need to create more tables and add foreign keys to add more data to an entity. In contrast in NoSQL you can just stick your simple or complex data inside your entity as a new key and that’s it.</p><h4>Migrations</h4><p>If you have done these before you know that these can go great or make you want to pull your hair out. Also depending on the type of database and the migration system you’re using there’s a lot of research you need to do to get things right.</p><p>In NoSQL you can just drop a new value into a “row” and not have to worry about integrity issues or the fact that all rows don’t have to have the same structure. This can be a blessing if done right or a curse if you’re not careful. As your application grows you can keep adding or removing data to a “table” without the need of complex logic and third party packages to manage these data changes.</p><h4>Database Shell</h4><p>We all know that working in database shells can sometimes be very hard given that each database engine has a slightly different syntax on how their SQL is implemented. In NoSQL databases like Mongo you can go into a shell and just start throwing JavaScript all over the place and rejoice.</p><p>You can query and manipulate the data with most of the standard JavaScript functions available. This makes it very simple for most people to pick up how to see the data and possibly make changes to it with simple syntax.</p><h4>Final Thoughts</h4><p>All in all working with NoSQL databases can be a bit frustrating in the beginning, especially if you’re from a relational database background but as you learn more about how they work and change the way you think of your data structures; you’ll be loving them in no time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98a09500d9fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crystal-helix/transitioning-to-non-relational-databases-98a09500d9fd">Transitioning to non relational databases</a> was originally published in <a href="https://medium.com/crystal-helix">Crystal Helix | Facets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts from a new business owner]]></title>
            <link>https://medium.com/crystal-helix/thoughts-from-a-new-business-owner-326cbb7af2b8?source=rss----ccbf87a0a722---4</link>
            <guid isPermaLink="false">https://medium.com/p/326cbb7af2b8</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Nathan Cox]]></dc:creator>
            <pubDate>Sun, 13 Dec 2015 03:51:51 GMT</pubDate>
            <atom:updated>2015-12-15T09:10:52.158Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9SDjff_XSe6Kl_LSJrsKg.jpeg" /></figure><p>Having something which you are truly passionate about is an amazing thing; it can inspire you, give you confidence and strength, and push you to be better each day than you were the day before. Passions are much like fire, in that once lit they can burn brightly and grow uncontrollably.</p><p>My passions are many, but the greatest of them is web design. I love to learn, to expand my mind with the great ideas of others, and I absolutely hate to stagnate. The arena of web technologies is like the chaos of an endless storm. It is unpredictable, constantly changing and evokes powerful emotions from the people involved with it. Every day there is something new to learn; a new technology to explore, a new philosophy to embrace, a new challenge to current convictions. The status quo is a never taken for granted, and what is accepted as <em>good</em> today is cast aside as <em>terrible</em> tomorrow.</p><h4>Taking the next step</h4><p>At some point I learned that floating through the industry wasn’t enough for me, and I made the decision to forge my own path and co-founded a small company. It did not end well, and suffice it to say I am no longer involved with that endeavor. It did however give me a wealth of knowledge (mostly in what <em>not</em> to do) and a lesson in not trusting blindly.</p><p>Today I’m proud to say that I’ve started again, armed with more experience and with a strengthened resolve. I have a strong team behind me, the support of my wonderful family and I’m taking every day as a lesson to be learned.</p><h4>So what have I learned?</h4><p>My first lesson is that <em>starting a business is </em><strong><em>hard</em></strong>. There are many things to do, and you lose the ability to just be lazy and defer to someone else. You have to find clients, write contracts, fill out dozens of packs of legal paperwork, hire employees and still find time to actually produce results.</p><p>It is also <strong><em>expensive</em></strong>. You have to pay for business licences, lawyers, state fees, employees, marketing and more. The glorious catch-22 here is that in order to pay for all of these things you have to make money, but to make money you pretty much have to pay for these things.</p><p>Partially because of the above, it can also be extremely <strong><em>stressful. </em></strong>As a business owner in charge of a team you are essentially taking responsibility for their livelihoods. There is an implicit understanding that if you were to fail you will be negatively impacting the lives of everyone who has placed their faith in you to succeed. This is a weight that I can’t accurately relate through written word, but trust me when I say that it is ever-present and causes sleepless nights in its own right.</p><p>The final take away for the moment is that despite everything I’ve said above, it can also be extremely rewarding. Every small victory seems like an enormous triumph, and every paycheck received is a battle won. For every night I lay awake staring at the ceiling worried about how I’m going to make it through tomorrow there is a moment of jubilant celebration that seems to make it worth the effort.</p><h4>Going forwards</h4><p>I can’t present myself as a business expert, and I won’t presume to try. I try to gain every bit of knowledge and experience I can by associating myself with people I know and trust who are much better at this than I am. Every day there is something new to learn, some new challenge to overcome, and much like I have in the technical world I’m learning to enjoy it in its own right.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=326cbb7af2b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crystal-helix/thoughts-from-a-new-business-owner-326cbb7af2b8">Thoughts from a new business owner</a> was originally published in <a href="https://medium.com/crystal-helix">Crystal Helix | Facets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>