Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spdionis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
spdionis
9y ago
Keeping fiat money carries a risk of losing money due to unknowable future events (zombie apocalypse?). Is it gambling?
272.
▲
by
spdionis
9y ago
> My standard example why it sometimes does matter: PersonDAO.fetchAll().size() is silly because it forces the database to fetch all Person objects, send them over the network, your application creates the necessary objects for them - an
273.
▲
by
spdionis
9y ago
Agreed. I'd say my point still stands because duplicated database calls affect performance and scalability and this can grind the project to a halt at a certain point. Also this refactor is much more dangerous/probably buggy. On t
274.
▲
by
spdionis
9y ago
I think GP meant that you can't/it's hard to test the stored procedures themselves. In this case if you mock the database calls you will not test the database logic.
275.
▲
by
spdionis
9y ago
On the other hand learning javascript frameworks... /s
276.
▲
by
spdionis
9y ago
5 years down the road, good luck refactoring your application to not query the same object from the database 3-4 times, and load it only once instead.
277.
▲
by
spdionis
9y ago
Reminds me of that Black Mirror episode where you could block people. Sounds horrible.
278.
▲
by
spdionis
9y ago
I mean, the way people bash PHP and praise javascript is completely ridiculous. The two languages are comparable at best in the amount of warts they have, while my firm opinion is that the js ecosystem is the most horrible thing in the wo
279.
▲
by
spdionis
9y ago
Agreed. The way i see it for the web is PHP is just a better Ruby/Python in terms of libraries, package management, deployment, language features, performance, with the only drawback being a quirky standard library.
280.
▲
by
spdionis
9y ago
> fragile mess > or Node.js /s ?
281.
▲
by
spdionis
9y ago
> Always, really? The history of PHP opcode's caches is complex. Before PHP5.6 where Zend published their opcache+, I've seen the various solutions (APC and others) cause vicious bugs. First of all realpath_cache_size is unrela
282.
▲
by
spdionis
9y ago
The difficulty of mining adjusts every 2 weeks so that data is certainly outdated.
283.
▲
by
spdionis
9y ago
Unless you use a language that actually enforces you to pass required parameters to a function call.
284.
▲
by
spdionis
9y ago
You would have to modify bitcoin itself, probably through a hard fork, to implement such a blacklist. You don't need payment processors to transfer bitcoin, that's actually the point of it!
285.
▲
by
spdionis
9y ago
/s?
286.
▲
by
spdionis
9y ago
Use Lightshot for screenshots. Even better than native Mac screenshot tool.
287.
▲
by
spdionis
9y ago
Not when the application was to supposed to handle the invalid data anyway before. Because you had to handle the zero case before right? The idea is that in the worst case you get an error message, not an altogether crash.
288.
▲
Readers on food inequality in eastern Europe
(theguardian.com)
115 points
by
spdionis
9y ago
|
127 comments
289.
▲
by
spdionis
9y ago
In a way it's a pretty naive view. The rich person will have more influence over other people that will give him effectively more than 1 vote.
290.
▲
by
spdionis
9y ago
I hope this is trolling :D
291.
▲
by
spdionis
9y ago
And if a man comes to a woman's door in a bathrobe it's sexual harrassment but if it's the wother way around then the man should feel blessed for the honor right?
292.
▲
by
spdionis
9y ago
> What baffled me was that in the opening paragraphs she felt the need to point out that the powerful men were white. Exactly my thought. The moment I read that word I stopped being neutral towards the article and started considering it
293.
▲
by
spdionis
9y ago
> with no infrastructure management I do have doubts on that part. Well, unless you mean physical infrastructure.
294.
▲
by
spdionis
9y ago
I confirm for the GP based on my own personal experience.
295.
▲
by
spdionis
9y ago
And by "encouraged" you mean "highly incentivized by economical reasons" instead of "encouraged to like working in tech"?
296.
▲
by
spdionis
9y ago
If most devs don't have time to refactor, then most devs have not had much experience doing refactoring, thus most devs are bad at refactoring. Sounds reasonable.
297.
▲
by
spdionis
9y ago
This is the best situation for a TDD workflow, and the only situation I myself use TDD in. If you have complex calculations or data transformations or you know well the expected input and output of what you're trying to do TDD actually
298.
▲
by
spdionis
9y ago
Yeah but what's the point of having a good memory if you can't have a drink?
299.
▲
by
spdionis
9y ago
Do you mean Azure goes down or your application?
300.
▲
Stop dragging kids away from their screens
(thenextweb.com)
12 points
by
spdionis
9y ago
|
11 comments
More ›