Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tored
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
241.
▲
by
tored
4y ago
session_* can be misused if developer is not careful be closing the session as soon as possible to avoid being open during the entire request (mostly a problem for the default file session storage). Personally I store a token in in my own c
242.
▲
by
tored
4y ago
Agree, if you examine Swedish modern history since the industrial revolution you will find that Sweden has always produced lots of startups (or the equivalent in the old days) with both low taxes and high taxes, with a welfare state and wit
243.
▲
by
tored
4y ago
Writing cross platform desktop applications is series of compromises in the technical requirements you may have. You should prioritize each requirement from top to bottom. Then start removing requirements from the bottom and compare against
244.
▲
by
tored
4y ago
These problems were fixed in PHP 8.0 and 8.1 https://wiki.php.net/rfc/engine_warnings https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_a...
245.
▲
by
tored
4y ago
Personally I prefer the opposite, I have managed many old projects (10+ years old) and I always prefer raw SQL over some outdated ORM that is hard to configure and finetune. With SQL I have access to one of the most powerful query languages
246.
▲
by
tored
4y ago
How is hand rolled SQL queries something bad?
247.
▲
by
tored
4y ago
xdebug 3 has been released with great performance improvements. https://php.watch/articles/xdebug2-vs-3-benchmark And you actually can have xdebug installed without performance degradation if it is not automatically en
248.
▲
by
tored
4y ago
Now I don't know how your PHP code was structured, but in my experience there usually three types of mistakes done with error handling in PHP code 1) not properly checking return values from standard library functions 2) not checking c
249.
▲
by
tored
4y ago
It depends entirely on what kind of immigration you are talking about, there are empirical evidence that certain type of immigration can be beneficial, but it also exist empirical evidence of the contrary, thus making a general claim is not
250.
▲
by
tored
4y ago
> Japan doesn’t like immigration at all. Thus you agree with me that integration is huge cost, because immigration will create big friction within the Japanese society and that is a cost. It is interesting that you admit that Japanese so
251.
▲
by
tored
4y ago
Oh, so you want low skilled immigration to Japan like in Europe, not high skilled immigration. How would that help anything? Sweden has about ~5 physicians per 1000 people, largest migration groups to Sweden, Syrians has a rate about ~1.3,
252.
▲
by
tored
4y ago
Then we should reform our economic system, endless growth is not viable, especially if you take into account climate and environmental issues. Again, band aid solutions does not work in the long run. We need to adress the real issue.
253.
▲
by
tored
4y ago
If Japan went from the current child birth rate to same same rate as Hungary then Japan would be almost be at equilibrium, Japan has the same child birth rate as Hungary ten years ago before Hungary added a tax credit program for new famili
254.
▲
by
tored
4y ago
Hungary has increased their number of births per woman from 1.23 ten years ago to 1.55 today by giving tax credits for new families.
255.
▲
by
tored
4y ago
The thing is if the idea is that women should equally participate in the labour market then child births will decline. Thus if immigrants already has or adopts the Japanese way of living then child births will still be low. Or if immigrants
256.
▲
by
tored
4y ago
There are other solutions of course, like automation. With technology we can do more work on less time, and that is something we have done since the industrial revolution. It is a bit bizarre that on technology forum this is not go-to answe
257.
▲
by
tored
4y ago
Immigration is not one-stop solution to fix GDP because integration is huge cost that is rarely taken into account. And of course it doesn't at all address the real problem, that men and women no longer creates families. This is typica
258.
▲
by
tored
4y ago
Interesting question, pike has a stable C API for creating C modules Step by step instructions https://pike.lysator.liu.se/docs/cmod-step-by-step/ What is CMOD? http://wiki.gotpike.org/index.pike?p
259.
▲
by
tored
4y ago
Good question, perhaps strictly typed dynamic C like language with an event loop and a large standard library.
260.
▲
by
tored
4y ago
- repo https://pike.lysator.liu.se/development/git/ - git mirror https://github.com/pikelang/Pike - web mailing list https://www.mail-archive.com/pike@roxen.com/ But yes
261.
▲
by
tored
4y ago
One unfortunately thing is that the industry in general struggles with incrementally improve functionality within a product over time, this goes for product managers, project manager, software developers etc. This is why everyone wants to m
262.
▲
by
tored
4y ago
I noticed a sharp decline in quality when Netflix started with their own original content, some of it was good but most of it was mass produced low quality trash. But it also an inherit problem with any movie streaming service that wants to
263.
▲
by
tored
4y ago
Yes I think so, Java(JavaEE?) did the same with jsessionid.
264.
▲
by
tored
4y ago
My proposal would be to let the community build a stdlib and after it is battle tested merge it with core PHP. It has been proposed before to have PHP source shipped with PHP (and also the possibility mix C and PHP) and think that would be
265.
▲
by
tored
4y ago
Not necessarily, because you have to consider the entire lifecycle. When doing frontend rendering you usually work against a REST(ful) API to fetch data, the idea is to reuse endpoints for multiple frontend components, because of this gener
266.
▲
by
tored
4y ago
Why so many failed to answer this questions is probably due to multiple reasons, here are a few 1) Some programmers are just either too lazy or too arrogant to read the manual, thus bad programmers. As a senior programmer that has helped nu
267.
▲
by
tored
4y ago
Above usage of filter_var is wrong, there is no need to cast $thing to int, filter_var already returns the filtered int or false on failure. The correct usage is therefore /** * Cast to int, fail if not a valid integer
268.
▲
by
tored
4y ago
stdlib will never change, because it would break every PHP project out there. Many of the previous deprecations as been relatively easy to handle, like switch from each to foreach , or make sure that you don't pass null to stdlib fu
269.
▲
by
tored
4y ago
Not OP, but the only one that I know of and that can trip you up without giving any form of warning is the change of resources types to class types for some of the libraries, like curl. Thus if your old code did a check like is_resource i
270.
▲
by
tored
4y ago
What is nice is that it easier than ever to write minimal framework, somethings I think you should accept, like using composer and some of the common libraries, however bootstrapping is something I prefer to do myself. I'm having a ren
More ›