339 reputation
310
bio website
location
age
visits member for 2 years
seen 23 hours ago

I am.


2d
revised Haskell syntax for type definitions: why the equality sign?
clarify the title a bit
Jul
29
accepted Haskell syntax for type definitions: why the equality sign?
Jul
29
asked Haskell syntax for type definitions: why the equality sign?
Jul
2
awarded  Curious
Feb
12
comment A pattern to “atomically” update a pair of objects
Probably instead of Account there should be Bank, as there are much fewer banks than accounts. Then each bank would have to manage its accounts.
Feb
12
comment A pattern to “atomically” update a pair of objects
This is just a general idea, this exact code would not be very efficient, i suppose.
Feb
12
revised A pattern to “atomically” update a pair of objects
reformat
Feb
12
answered A pattern to “atomically” update a pair of objects
Jan
27
comment A pattern to “atomically” update a pair of objects
@Kaerber, but the Updates defined in Transaction can only modify Accounts through their public methods, so what public methods would the Accounts have?
Jan
27
revised A pattern to “atomically” update a pair of objects
improve Ruby example
Jan
27
comment A pattern to “atomically” update a pair of objects
Which methods would be exposed as public? How a method sent to one Account can change another Account?
Jan
27
comment A pattern to “atomically” update a pair of objects
Could you tell please how and where UpdateSource and UpdateDestiantion are defined?
Jan
27
revised A pattern to “atomically” update a pair of objects
slightly change my example
Jan
27
revised A pattern to “atomically” update a pair of objects
add an example in Ruby
Jan
27
comment A pattern to “atomically” update a pair of objects
I am only playing with OOP in Racket. The question is not about data integrity, but about the class interface: it does not seem possible to me to expose somehow a single public method (or maybe this is not how it should be done?) to update both states without exposing public methods for updating just one state. I suspect the answer can be very language-specific, but if i see the keywords, maybe i'll be able to search for it myself. If this is not clear, maybe i'll add an example later.
Jan
27
asked A pattern to “atomically” update a pair of objects
Jan
7
comment Why does DrRacket IDE considers some identifiers as “symbols” and some as “keywords”? What is the difference?
I mean, who decides which identifiers are keywords? How should i maintain the lists of keywords?
Jan
6
comment Why does DrRacket IDE considers some identifiers as “symbols” and some as “keywords”? What is the difference?
Is this a bug then?
Jan
1
revised In Scheme, what is formally a program's state?
Add a long quote from Racket reference, and more personal opinion
Jan
1
comment If immutable objects are good, why do people keep creating mutable objects?
I cannot find yet where i've read this about the origins of OOP, but according to Wikipedia, some Integrated Regional Information System of a large container shipping company OOCL is written in Smalltalk.