Adam Laiacano

I'm a data engineer at tumblr and this is my blog. I write mostly about personal projects, data science, R/python, and various curiosities. You can read more about me here if you'd like.

  1. The March of Progress

    alandipert:

    • 1980: C

      printf("%10.2f", x);
    • 1988: C++

      cout << setw(10) << setprecision(2) << showpoint << x;
    • 1996: Java

      java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance(); formatter.setMinimumFractionDigits(2); formatter.setMaximumFractionDigits(2); String s = formatter.format(x); for (int i = s.length(); i < 10; i++) System.out.print(' '); System.out.print(s);
    • 2004: Java

      System.out.printf("%10.2f", x);
    • 2008: Scala and Groovy

      printf("%10.2f", x)

    via horstmann.com

  2. 2012-05-12
    #programming #java #c #scala #groovy
  3. The Dusty Programmer: Most Pressed Keys and Programming Syntaxes

    dustyprogrammer:

    I switch between programming languages quite a bit; I often wondered what happens when having to deal with the different syntaxes, does the syntax allow you to be more expressive or faster at coding in one language or another. I dont really know about that; but what I do know what keys are pressed…

    These heatmaps are really cool (click through to see them), but they’re completely dominated by the letter e. I’d like to see how they look with all alphanumeric characters removed. 

  4. 2011-09-12
    #programming #languages #syntaxes #php #java #js #python #ruby #cpp #c #objc #shell #perl #developers #code #developer