12 karma · joined Nov 24, 2019 (7y ago) · 15 submissions
comment 6y ago · link · parent
That is what I am interested in most. A pure html/css/js stack will probably last 10x longer then the typical stack developers use these days.
So if you are similarely productive with a pure stack, you are 10x more productive in the long run. As for the same work you get 10x more time of running software.
If you are 2x slower with a pure stack, you are still 5x more productive in the long run.
I find the question very interesting, where the optimum is.
Just pure html/css/js? html/css/js + a frontend template engine like handlebars? A framework like Vue that you include in the frontend? Or a heavy version of it that also requires something on the backend? Should there be a build process or not?
2.
Ask HN: What is a good location for digital nomads in December?
1 points · by Freegile · 6y ago · discuss
comment 7y ago · link · parent
Javascript: $square = $x => $x*$x;
PHP : $square = fn($x) => $x*$x;
Probably so that it works inside arrays: $a=[fn($x)=>$x*2,fn($x)=>$x*$x];
echo $a[1](5); // 25
Well, it also makes it a tad more readable, so I am ok with it.Since we are talking about new features of PHP: Does anybody else wish there were named parameters?
I think PHP is pretty complete. It is my favorite language and I don't really wish for anything added to it. Except for two things:
1: The named parameters of Python:
def paint(what,color='blue',tool='pen',layers=1)
...
paint('house',tool='brush')
2: The short object Syntax of Javascript: city={name: 'Berlin', population: 3748000}comment 7y ago · link · parent
Such a study would have to provide a measurement of the severity of the depression. Then split the patients in two groups. Give one group a placebo and the other one the inflammation treatment. And then compare the depression severity in those groups after the treatment.
comment 7y ago · link · parent
"clinical depression" vs. the run of the
mill use of "depression"
This is exactly what I am interested in. If it is a qualitative difference or a quantitative.If qualitative, it would be like a broken leg.
If quantitative it would be like high blood pressure.
I would be very interested if there is any research out there on this topic.
comment 7y ago · link · parent
Both, headaches and depression to me seem to have been "intentionally" developed by evolution. Pain has a reason: Tell you to not do certain things. Low energy / self esteem might also have a reason: Tell you to stay at home.
A broken leg on the other hand was not developed for a reason by evolution.