Nov. 21st, 2008

juan_gandhi: (Default)
Неделю пытался найти причину глюка в одном юниттесте вычислителя предела функтора. При этом, правда, параллельно внедрил понятие мономорфизма как подкласса функции.

В результате выяснилось, что, хотя это внедрение и могло бы пофиксить баг (как я во сне и вычислил), вставленный отладочный код бросал ошибку, потому что он расчитывал на старую структуру.

Сижу вот в автобусе и думаю теперь.

А ещё прикол - вместо Ctrl-Alt-N по рассеянности нажать Ctrl-Alt-Del.

codewtf...

Nov. 21st, 2008 09:23 am
juan_gandhi: (Default)
static String constructSomeKindOfShitRenamedForSecurityFormatString() {
     StringBuffer sbuf = new StringBuffer();
     sbuf.append("INPUT_FILE=").append("%s,");
     sbuf.append("SUCCESS_OUTPUT_FILE=").append("%s,");
     sbuf.append("FAIL_OUTPUT_FILE=").append("%s,");
     sbuf.append("DURATION_SEC=").append("%d,");
     sbuf.append("TEMPLATE_FILE=").append("%s");
     return sbuf.toString();
}



(no shit; colleagues, you can find this code using cs)
juan_gandhi: (Default)
  public abstract static class Isomorphism<X, Y> extends Monomorphism<X, Y> {
    abstract public X unapply(Y y);
  }
juan_gandhi: (Default)
  /**
   * Injection (?) function (if you are a c+ programmer, you'd call it "downcast").
   */
  public static class WHATSMYNAME???<T, T1 extends T> extends Monomorphism<T1, T> {
    public T apply(T1 t) {
      return t;
    }
  }



I just could not figure out what name to give to this simple function. It is almost an identity function, but it is not.
juan_gandhi: (Default)
"we run two parallel tests, and they collide with each other..."

wow...

Nov. 21st, 2008 05:30 pm
juan_gandhi: (Default)
I missed something during this years, obviously. Could never imagine the first company that called me would agree with the (unnamed here) outrageous figure I named.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
2425 26272829 30
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 2nd, 2025 09:15 am
Powered by Dreamwidth Studios