5,880 reputation
1228
bio website javier.guerrag.com
location Lima, Peru
age 43
visits member for 3 years, 8 months
seen 7 hours ago
Love to learn, unfortunately that leaves very little time to use what's learned :-)

Jul
7
comment Can a version of Python's shelve module that knows when its entries have been modified be written in any programming language?
right, the whole wrapper implementation is more complex, but among the same line of what i've drafted here. I guess the mock library is a good example of how to do a wrapper that can fool most other code, including the recursive case.
Jul
7
answered Can a version of Python's shelve module that knows when its entries have been modified be written in any programming language?
May
29
revised Storing primary keys of objects in Redis and then querying them in Postgres through Django
added 655 characters in body
May
29
answered Storing primary keys of objects in Redis and then querying them in Postgres through Django
May
3
comment Should duck typing affect naming conventions?
-1 for "procedural is bad, object is good". No matter what somebody thinks about those approaches, procedural functions have their place. And this have nothing to do with the issue at hand.
Apr
9
comment Kibibtye or Kilobyte to represent 1024 bytes
"this has been updated by the community." Which community? there are lots of places that don't care about Kibibytes. Personally, I agree that Kilo was 10^3 far before it became 2^10, so we should get our own term; but Kibi-, Mebi- and Gibi- are just too awful to take seriously.
Mar
10
comment Disadvantages of scoped-based memory management
to using, with and try-with (on C#, Python and Java, respectively) you can add defer in Go.
Mar
8
revised What do you call a tree that grows in both directions?
added 392 characters in body
Mar
8
answered What do you call a tree that grows in both directions?
Mar
8
revised Virtual machine for a high level programming language vs an operating system
edited body
Feb
28
reviewed Approve suggested edit on Application Development: Python or Java (or PHP)
Feb
28
awarded  Nice Answer
Feb
27
comment Why is Encapsulation considered a primary principle in OOP?
I do consider encapsulaton+polymorphism a better definition of OOP. abstraction is great, but nothing to do with OOP, you could say that structured code is a requirement too.
Feb
27
comment Why is Encapsulation considered a primary principle in OOP?
+1 for ditching inheritance :-)
Feb
21
revised Why can't native machine code be easily decompiled?
loose != lose
Feb
19
comment Is there any difference learning OOP on different programming languages?
@WorldEngineer i'm not talking about being explicit/implicit (also, Python is not unusual on this), but about simply existing as a concept. Some languages do polymorphic dispatch on all parameters, not just on the first. Some use other hints for the specific version, and the main style might not privilege an argument as 'this'.
Feb
19
comment Is there any difference learning OOP on different programming languages?
@zeroth, and too specific too. The 'self' (or 'this') parameter is far from universal.
Feb
18
comment Is there any difference learning OOP on different programming languages?
@jozefg: right, Alan Kay once said "Actually I made up the term "object-oriented", and I can tell you I did not have C++ in mind."
Feb
18
answered Is there any difference learning OOP on different programming languages?
Feb
18
comment Why is the json format necessary over the normal javascript object format?
@david.pfx in what aspect is JSON not a subset of JS? the fact that JavaScript shouldn't just eval is only because of safety, not because JSON has any deviations from the JS format.