685 reputation
512
bio website
location
age
visits member for 3 years, 9 months
seen 2 days ago

Author of the Ruby ftpd gem.

Autobiography, in code:

1976:

C       WORKING FOR A LIVING
        IDAY = IDAY + 1
        IDOLLAR = IDOLLAR + 1

1978:

100 REM WORKING FOR A LIVING
110 D = D + 1
120 M = M + 1

1979:

        ; Working for a living
        INC DAY
        INC DOLLAR

1984:

(* Working for a living *)
day := day + 1
dollar := dollar + 1

1986:

/* Working for a living */
day++, dollar++;

1988:

// Working for a living
day.another(); dollar.another();

1999:

// Working for a living
public interface WorkForALiving {
  void another_day();
  void another_dollar();
}

2003:

# Working for a living
day += 1
dollar += 1

Feb
23
accepted Is this mini-DSL for hiding URI passwords compatible with the URI spec?
Feb
20
comment Is this mini-DSL for hiding URI passwords compatible with the URI spec?
@Pete I understand your incredulity. It is a crazy scheme, and not a well-advised one. Due to the crazy, labyrinthian system, it will cost more time to do it the right way, time that is a rare resource for me, but I think I may need to abandon this scheme even at the cost of more time. I tried this scheme today, and it is awful. The URIs are a monster to read and work with, and converting the existing URIs to this scheme would be quite a bit of work in itself.
Feb
20
comment Is this mini-DSL for hiding URI passwords compatible with the URI spec?
@Pete In this system there is, with few exceptions, a one-to-on mapping between URIs and passwords, so the lookup is generally per-URI.
Feb
20
comment Is this mini-DSL for hiding URI passwords compatible with the URI spec?
@Aaronaught - You're right. I plead "legacy code" and throw myself on the mercy of the court. The ability to transfer files by FTP &c. was grafted onto a system that thinks it is only sending email. At one time, these URIs were only email addresses.
Feb
20
asked Is this mini-DSL for hiding URI passwords compatible with the URI spec?
Feb
20
awarded  Scholar
Feb
20
accepted How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
Feb
20
comment Is it okay to hire a programmer of an open source software for a (closed source) fork?
A better question might be whether it is a generally accepted practice in the open source community, or to ask for case histories (where has it been known to happen? Where was it known to be refused, and why?)
Feb
20
answered How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
Feb
18
comment How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
Thank you for taking a stab at this odd question. I have now confirmed that the BASIC used in the book, when encountering the second FOR statement having the same counter variable, forgets about the first FOR statement and restarts the loop from the second one. This contradicts your stab in the dark. It's an odious way to write loops, but BASIC is smelly stuff anyway.
Feb
17
revised How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
basic tag first. typo.
Feb
17
comment How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
This is very helpful, thank you. The book has a DEC version, a TRS-80 version, and a microcomputer version. The programs in the microcomputer version are in Microsoft 8080 basic (MITS Altair Basic Rev 4.0); that is my interpreter's target.
Feb
17
awarded  Yearling
Feb
17
awarded  Student
Feb
16
asked How does BASIC locate an out-of-order NEXT statement when the loop body is skipped
Jan
24
revised Efficient way of evaluating an array of strings then add to an array in Ruby
Fix error in code
Jan
24
revised Efficient way of evaluating an array of strings then add to an array in Ruby
Remove redundant redundancy
Jan
24
revised Designing and refactoring of payment logic
spelling. Format pseudocode.
Jan
24
comment Ruby module namespacing advice
"simply prefix methods like sale_add and view_add?". I don't understand what you mean by this. Can you please clarify?
Jan
24
suggested suggested edit on Designing and refactoring of payment logic