9,565 reputation
2348
bio website dmitry.cheryasov.in
location
age
visits member for 3 years, 10 months
seen 4 hours ago

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

google profile


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 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?
Jun
23
reviewed Approve suggested edit on Understanding how variable assignment works
Jun
22
comment All programming functions always return to the If or If/Else statement?
In many cases there is indeed a pattern of endless ifs, often quite noticeable in C and Go programs. If you're not afraid to read long articles using unfamiliar languages, but with nice pictures, try reading "Railway-based programming" which explores this pattern and shows a way to tackle the problem, in a way common to functional programming.
Jun
16
revised Easily moving both direction of time during a rebase
typos
Jun
12
awarded  Guru