Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arkh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
661.
▲
by
arkh
8y ago
> It's a sci-fi book with an impressive sense of scale Which is not really new. The three books could be condensed a lot. It felt like reading the Dune prequels and sequels: useless details not advancing any plot just to make the bo
662.
▲
by
arkh
8y ago
Currently trying to debug some microservice based system: I read your text with red meat being the microservices. Things are always perfect when reading a simple blog post presenting the happy path. How to check what services are down, how
663.
▲
by
arkh
8y ago
Or let's get crazy: they are the problem. People tend to think other people think and act like them. That's why often the first to be vocal against some behavior are part of those displaying this behavior.
664.
▲
by
arkh
8y ago
You don't change your schema to add some json field. When querying you do something like select p.name, json_agg(l.value) as labels from product p, label l
665.
▲
by
arkh
8y ago
One thing I like is when getting data from multiple tables. Let's say you have a product with multiple labels: usually you'll get one line per (product, label) tuple so you'll have to do some job application side if you what
666.
▲
by
arkh
8y ago
Get a copy of "Working effectively with Legacy Code". The definition of Legacy Code for the author is "untested code". The book is mainly a list of situations a code base can be in and how to add tests. Once your applica
667.
▲
by
arkh
8y ago
You can mix php and html. A minimal php hello world would just be "Hello World" in a file. I expect a templating engine equivalent to php's twig becoming the standard way to separate the views from the behavior soon enough.
668.
▲
by
arkh
8y ago
So JSX is like pure php templates.
669.
▲
by
arkh
8y ago
Bruce Schneier had a really good essay on what happenned: https://www.schneier.com/blog/archives/2013/01/power_and_the... > What we forgot is that technology magnifies power in both directions. When
670.
▲
by
arkh
8y ago
Inspired from it you also have pev if you prefer something more visual : http://tatiyants.com/postgres-query-plan-visualization/
671.
▲
by
arkh
8y ago
> One part of the functional promise seems to be that if every piece of functionality is small, isolated and easy to understand that the whole of the application becomes easy to understand. This part is wrong. Your huge components are ma
672.
▲
by
arkh
8y ago
> I took a course in prolog, really seemed to help get my mind in the right place. I have the reverse problem: every time I motivate myself to learn Prolog I feel like I could just input the constraints in a db and use SQL to get my res
673.
▲
by
arkh
8y ago
The problem is the meaning of most symbols depends on your culture.
674.
▲
by
arkh
8y ago
> if you encode all your edge cases into end-to-end integration tests I think that's what you should do. Your integration tests should check that all your specifications are validated. And your specifications should cover all edge c
675.
▲
by
arkh
8y ago
Test coverage is useful: it helps you see what code you should remove as it is never hit.
676.
▲
by
arkh
8y ago
> Are you aware of the Test Pyramid Yes. > and why it exists? Because the xUnit consultant crowd worked a lot, it is easier to make unit tests (which fossilize your code) so there's a lot of tooling around it. And the reliance on
677.
▲
by
arkh
8y ago
> customers don't pay for code either! Customers pay for solutions to their problems. And that's why you don't test code. You test that your application comply with your customer's requirements. I'm happy to see
678.
▲
by
arkh
8y ago
Why fire low performers? Why not try to make them become average performer? Maybe they have children to care for at home and doing remote work would help? Maybe they don't like some of their colleagues and a team change is in order. Ma
679.
▲
by
arkh
8y ago
Here is a crazy trick with CSS: read the specifications and take notes. The cascading and the different display contexts should be enough to get you through most pitfalls.
680.
▲
by
arkh
8y ago
> Yes it is, but you aren't going to solve it without rolling back women's rights. You know you can also have men keeping an eye on children while their spouse (of any gender) work.
681.
▲
by
arkh
8y ago
But it is the problem of Oauth 2.0. Every implementer has a choice for lot of things. When you get a token you are not sure to get it as a JWT. If it is a JWT, the issuer is not enough to know what endpoints it provides. You still have to c
682.
▲
by
arkh
8y ago
> If you're accepting things that aren't JWTs then you're not doing oauth. As a resource server: https://tools.ietf.org/html/rfc6749#page-10 Access tokens don't have to be JWT. And some OpenID au
683.
▲
by
arkh
8y ago
And a problem for the Resource Server: no common way to check the validity of a token. You may be lucky and get a JWT but even then there's no specified URL to get the keys to check it. Usually you get an opaque token and hope the clie
684.
▲
by
arkh
8y ago
> I have got nothing to hide So if you don't mind would you share some nudes, your CC numbers and your medical history with us?
685.
▲
by
arkh
8y ago
Most young devs use a mac. And from what I understand Firefox is slow on macOS.
686.
▲
by
arkh
8y ago
Keeping some people even if they're "redundant" for some time can also be considered an investment in your workforce. You keep those people's experience so when activity go back up they're already there. And if you
687.
▲
by
arkh
8y ago
From the link it does not look like anything changed. There will be more communication from the vendor to the buyer. That's all.
688.
▲
by
arkh
8y ago
> It is a huge help to get an identical environment to develop on. Until you stumble on some file permission problems if you use volumes; or some difference if the host is linux or macOS. Pure VM are the best: copy your virtual server, l
689.
▲
by
arkh
8y ago
Let's say you want to change things one day in your country: you get into politics or unionize. Too bad, your opponent has a back-channel access to data about you which could be used against you if made public. Or some law is passed an
690.
▲
by
arkh
8y ago
> But other people might enjoy a book more for its plot or ideas. I'm on the "don't care about character development" side. But those books are atrociously slow. The whole "3 body problem" could be condensed
More ›