aguea asia
A diary of a web dev
@webdevdaily
Joined June 2013
Tweets
49
Following
0
Followers
3
Likes
0
1 Photos and videos
1 Photos and videos
Tweets
A diary of a web dev
@webdevdaily
12 Mar 2018
"Does your job give you a creative outlet? Do you often feel that you're bringing your art to the job, and not just your labor?"
A diary of a web dev
@webdevdaily
8 Apr 2017
Two of the reasons are duck typing and ability to reopen the classes. 2/2
A diary of a web dev
@webdevdaily
8 Apr 2017
In Ruby, DI is not discussed as extensively as in Java/Scala because DI impl. is easier in Ruby. 1/2
A diary of a web dev
@webdevdaily
5 Apr 2017
DI eliminates that dependence by passing the instance as a parameter. 2/2
A diary of a web dev
@webdevdaily
5 Apr 2017
Dependency Injection: if a class instantiate another class, it is said to be dependent on that another class 1/2
A diary of a web dev
@webdevdaily
5 Apr 2017
Inheritance vs Mixin: mixins are modules that are not supposed to be used alone or instantiated where the super class in inheritance can.
A diary of a web dev
@webdevdaily
30 Mar 2017
Ruby is a language of mutable references. No concurrency library can prevent the user from making thread safety mistakes.
A diary of a web dev
@webdevdaily
30 Mar 2017
Changing a global variable from a thread breaks thread safety. Two or more threads can change its value at any time.
A diary of a web dev
@webdevdaily
30 Mar 2017
Multithreading in Ruby can be done via "Thread" class
A diary of a web dev
@webdevdaily
28 Feb 2017
Scala has
@tailrec
annotation. 2/2
A diary of a web dev
@webdevdaily
28 Feb 2017
Tail recursive function is a function that has recursion at the end of the function. Many languages have optimization for such func. 1/2
A diary of a web dev
@webdevdaily
18 Jan 2017
Never declare connection to external sys (DB, Kafka, etc.) as class/instance variable. Initialize it or construct it.
A diary of a web dev
@webdevdaily
8 Dec 2016
How to show git graph? Add the following under the [alias] section:
1
A diary of a web dev
@webdevdaily
11 Aug 2016
"If the code deserves to be written, it deserves to have tests".
A diary of a web dev
@webdevdaily
4 Jun 2016
Hate Capistrano v much. Can't get remote user's home folder easily, makes it very hard to compile-locally-deploy-remotely among others!!
A diary of a web dev
@webdevdaily
12 Dec 2015
Homebrew - a package manager for OSX
A diary of a web dev
@webdevdaily
8 Dec 2015
For example, V8 javascript engine (use in Chrome) compiles javascript - scripting language - into binary code rather than interprets it.
A diary of a web dev
@webdevdaily
8 Dec 2015
Nowadays, the line between compiled and interpreted implementations becomes blur. Partly due to on-the-fly compilers. 1/2
A diary of a web dev
@webdevdaily
8 Dec 2015
PHP/Perl/Ruby are scripting languages and the implementation of which does not require an explicit compilation steps.
A diary of a web dev
@webdevdaily
8 Dec 2015
Pure compiled implementation can be seen at C for example. The compiler compiles C source code into binary code for underlying machine.
Load more