Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
571.
▲
by
dgb23
3y ago
Hugo has some very hairy parts that make it very fast. I wouldn’t assume that it’s easily replaceable if you want the same performance?
572.
▲
by
dgb23
3y ago
It’s funny but also sad. There is a very simple and productive subset of PHP that I feel got neglected over the last 1-2 decades. The simple, but relatively fast “array”, which has value semantics. The batteries included networking (HTTP, S
573.
▲
by
dgb23
3y ago
HTML templating in PHP is unfortunately unsafe. It has some nice properties: streams by default, it’s pretty fast for a templating language and you get a lot of stuff for free that you eventually need. However, you have to escape and saniti
574.
▲
by
dgb23
3y ago
Doesn’t go template have a way to define functions? You could then use a function to do w/e you like.
575.
▲
by
dgb23
3y ago
We generally have to invent so many names it’s dizzying. No wonder we’re using analogies. Also, terms like “pirate” and “rockstar” are fun to use. Maybe we like to use names that distract us from the purely abstract, digital reality.
576.
▲
by
dgb23
3y ago
There are many good tutorials, free and paid books. However, if you just want to get started and have a minimal thing working without much fuss I recommend this one: https://clojure-doc.org/articles/tutorials/basic
577.
▲
by
dgb23
3y ago
With VSCode, you can use "// @ts-check", which essentially turns on a linter that assumes JS is strongly typed and respects any provided TS definitions and jsdoc comments. It's not the same as actual strong typing (
578.
▲
by
dgb23
3y ago
Depends on the tooling you use and how you program. An REPL that is integrated with your editor is key. A good linter such as clj-kondo (comes with Calva on VSCode), helps a lot to avoid typing errors and a lot more. Using a REPL middleware
579.
▲
by
dgb23
3y ago
Comprehensive frameworks include: biff, kit. Both of these rely on some of the most popular and simple libraries for web dev. Most seem to simply use said libraries directly, mix and match what is needed. If you’re an experienced web develo
580.
▲
by
dgb23
3y ago
They are tagged unions right? "Enum" is not the worst term here. In fact you are enumerating the variants. It's only slightly misleading. It implies that you're comparing an integer. There is an actual enum backing it to
581.
▲
by
dgb23
3y ago
Even if adjusted for inflation, it seems middling rather than "nowhere near what it was" and it seems to grow as well. The 90's were an outlier IMO, because we got CD's for easy distribution but it was before the interne
582.
▲
by
dgb23
3y ago
Tangent: And if you then tell about the pattern/technique/architecture etc. to someone who’s been around for a while: „Well, we already did that in the 80‘s, it was called Foobar. We just had to do it barefeet in the snow with our
583.
▲
by
dgb23
3y ago
Free exchange obviously and provably is, but that's not _quite_ what's going on. I see a rapid trend towards regulatory capture, monopolization and setting up to siphon out money. All from the same few actors. And if history aroun
584.
▲
by
dgb23
3y ago
Indeed it seems like all of this recent drama and moving around is exactly for this purpose. Starting as a Non-Profit, naming it "Open" (the implication of the term Open in software is radically different from how they operate) et
585.
▲
by
dgb23
3y ago
I think your definition of API is very useful, but API is the wrong term. It’s much more general than that and is used in contexts where these constraints don’t even make sense. Specifically a hypermedia API is something browsers (and the i
586.
▲
by
dgb23
3y ago
Both file extensions and query parameters are functionally very similar. What I don’t necessarily like about query params for this, is that their usage implies filtering. It’s a cultural assumption but it’s there. Another point: you might a
587.
▲
by
dgb23
3y ago
It seems like people care more about internet drama than about actual exploitation and oppression… The former seems to be something we can get involved in, but the latter seems insurmountable.
588.
▲
by
dgb23
3y ago
Any context would do. I only see some allegations that link to other allegations. My gut reaction to claims like these, especially such severe ones, is always to be extremely suspicious about them. Especially if they are made about someone
589.
▲
by
dgb23
3y ago
Thank you for sharing this. This is such a deliciously cartoonish fact. If this weren't true, people would possibly make it up in order joke about how autocratic, out of touch and futile such regulation is.
590.
▲
by
dgb23
3y ago
Are you claiming that 2-3h of sleep is enough or healthy?
591.
▲
by
dgb23
3y ago
Angry Birds itself was sufficiently fresh and well made so people liked it. But it wasn’t really original in a true sense. One of the most appreciated games in nerd culture currently is the new Baldur’s Gate. It’s extremely well made, but n
592.
▲
by
dgb23
3y ago
Serverless is just someone else's bash script.
593.
▲
by
dgb23
3y ago
The problem is that in the end, power, negotiation and social currency often dominate over merit (such as effort, experience etc.) when it comes to compensation. Even if you actually do measure and agree on metrics, then the measurement can
594.
▲
by
dgb23
3y ago
You're right that it is descriptive and not normative. But the underlying belief of paying someone according to their effort, is very much based on the same premise. What I'm saying is that nobody is _really_ paid according to the
595.
▲
by
dgb23
3y ago
> I don't think salary should be tied to location, but it should be tied to experience, ability, and effort. That's the labor theory of value (see: Smith, Marx), which in theory sounds meritocratic but it can't really be m
596.
▲
by
dgb23
3y ago
If an exception breaks business logic, then you can test the code by testing business logic. How do null pointer exceptions arise? Inconsistent data: you have code paths that implicitly assume invariants. Trivial cases like “this field is n
597.
▲
by
dgb23
3y ago
I've seen some of the videos published by Hamas. Some of them are literally filmed with "gopro" or similar cameras during their attacks. Generally I don't recommend watching these. These kinds of videos are incredibly di
598.
▲
by
dgb23
3y ago
I agree with this. I struggled the same thing as GP mentioned, and worse. And from my experience it’s a vicious cycle. I don’t necessarily agree with the specific “get up at T”, but generally working towards getting rid of bad sleeping habi
599.
▲
by
dgb23
3y ago
Because the % of the slow part grows.
600.
▲
by
dgb23
3y ago
Please note that “hello world” or echo server benchmarks are typically unrealistic and misleading as comparisons between different performance categories. A PHP, JS etc. runtime is always going to perform worse, the larger the codebase grow
More ›