Connect to the Data

When developing an applications, developers need a way to save modify and query the data. The application may use the a database management system (DBMS) to store the data but how to modify and retrieve data in the DBMS? DBMS has a set of raw commands to run operations on the system, for example SQL commands. We could use it in raw but it will make the codes look dirty.

Continue reading “Connect to the Data”


Creating a React Component in this project

In this post, I will guide you how to create a React Component step-by-step

Step 1: Create the Component

Create a new file in app/assets/javascripts/components , for example in this guide I will create a component called ProjectBar. So create a file named ProjectBar.jsx (use CamelCase!) Continue reading “Creating a React Component in this project”

Golden Way to Traverse React Components on Shallow Rendering Approach

On my last post, I’ve talked about shallow rendering to test React components. This post is the sequel of that post since I’ll also talk about testing React components. The shallow rendering that I’ve done on the last post is using the help from createRenderer function from React Addons Test Utils. Unfortunately, (until now) there are no function for traversing React element trees neatly just by using the help from React Addons Test Utils. If you want to check an element somewhere deep in the component tree, you will end up in a long chaining of props.children.props.children… which it also happened to me and I think it’s not elegant.

Continue reading “Golden Way to Traverse React Components on Shallow Rendering Approach”

Roses are Red, Bombs Explode; How I Failed to Test My Own Code

After my RbCAW-related tasks are (mostly) done on the last sprint, my current responsibility as a back-back-end developer is to implement caching so hopefully our homepage will load in less than half a minutecrosses finger. Unfortunately, testing the caching mechanism is a pain in the back.

Continue reading “Roses are Red, Bombs Explode; How I Failed to Test My Own Code”

Changes to Integrate

Collaborative coding, you code and submit your code to your “branch”, but there must be a time when you need to integrate your code with other programmers’ code. Git is one tool that can make life easier, by providing seamless ways to join codes.

Wait… there are more than one ways to do that? Yeah, for joining codes git has command merge and rebase. In git experiences, programmers must have been used merge before, but what rebase really is? Continue reading “Changes to Integrate”