9,077 reputation
2144
bio website dmitry.cheryasov.in
location
age
visits member for 3 years, 7 months
seen 7 hours ago

I constantly try to expand the little I know about programming.

google profile


Jul
20
comment How to call packages which depend upon your package?
How about "client packages"?
Jul
18
comment Difference between Yesod and Ocsigen web frameworks
See also stackoverflow.com/a/5650715/223424
Jul
18
comment Object Design & Cohesion - Issue & potential refactoring
@GetFuzzy: I think exposing other interfaces' methods is a LoD violation, but exposing methods that return these interfaces, without meddling with the innards of their implementation, is its reverse. Maybe my answer was not clear enough. I proposed to have a WellFluids GetFluids() method that returns an (immutable view of) some private WellFuids well_fluids = SomeWellFuidsImpl(), following your ReferenceWellData design.
Jul
18
comment Object Design & Cohesion - Issue & potential refactoring
I wonder why do you use "proxy functions from each class to glue it all back together". Why don't you do something like RefWellData.GetFluids().AtDepth(100) or RefWellData.GetTemperatures().AtSurface()? To me, this looks like a simple composition exercise; is there something that makes such an approach inconvenient?
Jul
18
comment Is duplicate syntax for defining named functions a bad language design decision?
@jco: I would prefer that there was "one — and preferably only one — obvious way to do it", and the idea of returning from an enclosing scope looks dubious to me w.r.t. composability, but here I am firmly on the 'opinion-based' ground and thus should fall silent.
Jul
18
comment Python logging wont shutdown
I can imagine that shutdown() indeed flushes data and closes handlers, but a subsequent info() call re-initializes them, using the same settings. Nobody promises that shutdown() prevents further logging; it only promises that it's safe to exit the process afterwards.
Jul
18
comment Is duplicate syntax for defining named functions a bad language design decision?
I'd say that the def form is extraneous, because val works for everything and def special-cases functions. Note that anonymous functions work slightly differently, according to @jco's answer below. (And no, I don't like this kind of design, in languages or otherwise.)
Jul
16
comment Programming with emacs instead of a debugger-integrated IDE
As a long-time user of both Emacs and Vim and a former developer of an IDE I'd like to notice that while things like notepad.exe or nano may be "bare", serious editors (Emacs, Vim, TextMate, UltraEdit, Notepad++, you name it) are quite "furnished" and, what's important, extensible. They are quite sophisticated at one task: editing text.
Jul
16
revised Programming with emacs instead of a debugger-integrated IDE
better wording
Jul
15
answered Programming with emacs instead of a debugger-integrated IDE
Jul
9
reviewed Approve suggested edit on Pointer indexing
Jul
2
comment Passing two different types down a chain of calls because of an overload further down
@NathanCooper: I thought this type is reusable across CLR languages?
Jul
1
revised In what programming language did “let” first appear?
Typo: Suza → Zuse
Jul
1
answered Passing two different types down a chain of calls because of an overload further down
Jul
1
answered Alternative to Static Abstract Property/Method
Jun
30
answered What procedural languages support algebraic data types?
Jun
27
reviewed Approve suggested edit on Use and manage Front End Assets for Web
Jun
24
reviewed Approve suggested edit on How to name a method that both performs a task and returns a boolean as a status?
Jun
24
answered Should a variable name be changed if its purpose changes?
Jun
24
reviewed Reject suggested edit on How to avoid oscillation by async event based systems?