Undefined Rants

Code, Ramen and Avocado

Vue.js Server Side Rendered Data

Currently I had been using Vue.js in work and hobby so I would like to share something I learnt.

Note: Examples are tested in Vue.js 1.0

When you start your Vue.js application, the first thing you do is probably getting data from your backend or api. Let’s say we have a list of comments from our backend server.

2015 in Review

2015 is coming to the end, so I decided to sum up happenings and things I had learn in throughout this year related to programming.

End of Student life

Indeed this will be the last year of my student life (until March 2016, 3 more months to go). Being a student is really blissful. All you have to worry is to learn and feed yourself with knowledge everyday. Although I am not completely agree with Japanese education system but I had learn the most important thing in school – that is learning how to learn. In the next year (April 2016) I will start working in a Japanese IT company. Not sure what does working life is like but let’s face it.

Clojure Thread-first vs Thread-last Macros

In this post, I am going to show you {when|how} to use Clojure marcos, ->> aka thread-last and -> aka thread-first. In some case, -> and ->> may perform the same operation if you do not pay enough attention. So I will also show you what’s the difference between them. Note that doc -> and docs ->> din’t make sense for me at first, so if same thing happened to you I hope that this post will make it clear.

Update JVM Version in Mac OS

Being a newbie for Clojure, the problem I met when trying to use its other core library – clojure.core.reducers is the “namespace not found…”.

(require '[clojure.core.reducers :as r])

Get this:

clojure.lang.Compiler$CompilerException: java.lang.Exception: namespace ‘clojure.core.reducers’ not found, compiling: … … … Caused by: java.lang.Exception: namespace ‘clojure.core.reducers’ not found

Clojure Strings Are Sequence !!!

As a newbie to Clojure, I am sure all of us will meet one problem when dealing with string. Let’s say we have a long string.

"This is a long string !"
-> "This is a long string !"    // clojure will give us back this