Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
511.
▲
by
dgb23
2y ago
You can embed HTML in SVG, vice versa and use CSS on both. In fact one little trick if you are doing a complex animated layout with SVG is to nest HTML elements with it that you animate it via CSS transitions or keyframes, which are much mo
512.
▲
by
dgb23
2y ago
I don't quite understand your comment. You can embed SVG in HTML and vice versa and you can use CSS on it.
513.
▲
by
dgb23
2y ago
Not OP: I'm in the same boat, but I found XML has some nice properties that I sometimes miss in JSON, given that XML is used well ("correctly"), such as the differentiation of metadata (attributes) and data (nodes), namespace
514.
▲
by
dgb23
2y ago
This is an extremely cool project, thank you for sharing! Edit: I'm not familiar with scheme/guile (only dabbled with Racket and later Clojure). Are these real bytes that behave like actual bytes when you manipulate their bits (un
515.
▲
by
dgb23
2y ago
I didn't know WasmGC was a thing yet! https://developer.chrome.com/blog/wasmgc/ Some things that are at first glance surprising is that GC'ed languages might ship a smaller binary, because they don'
516.
▲
by
dgb23
2y ago
Most of the so called middle class are just well paid members of the working class. Small business owners and others who get much of their income via ownership rather than wages/salaries are often indirectly but strongly dependent on t
517.
▲
by
dgb23
2y ago
Let’s differentiate between technological innovation and capitalizing on it.
518.
▲
by
dgb23
2y ago
No, it’s an idiomatic way of expressing who’s in charge of a given piece of data. There’s nothing in the type system preventing data races. But that’s orthogonal to channels. They just help you to structure the code.
519.
▲
by
dgb23
2y ago
That's not how I would characterize philosophy. A lot of things that are very important in the pursuit of knowledge like logic, science or ethics are philosophical concepts and branches. It lays the foundation of what we call "obj
520.
▲
by
dgb23
2y ago
Instead of pushing the external, side-effecting thing down the stack, I put it up the stack and call the logic that generates the data for it from there. Now I don't need to mock an interface, I just need to test data in/out. If y
521.
▲
by
dgb23
2y ago
Ok, but C++ is a compiled language. Even though compilation speed doesn’t need to be that slow, at least you’re getting something out of it. JS is interpreted and JITed. The whole point of using it is having a very fast feedback loop. The t
522.
▲
by
dgb23
2y ago
Breaking code that doesn’t need to be broken is the biggest redflag for a platform or foundational library.
523.
▲
by
dgb23
2y ago
At this point we should rename "microtransactions" to "macrotransactions". From a quick search: $500 for a character cosmetic: https://www.si.com/esports/league-of-legends/ahri-ban-rate $50
524.
▲
by
dgb23
2y ago
Which makes the final remark quite funny: > Not too shabby for a hobby.
525.
▲
by
dgb23
2y ago
I agree with the general sentiment but want to add: Dogs certainly process human language very well. From anecdotal experience of our dogs: In terms of spoken language they are limited, but they surprise me all the time with terms they have
526.
▲
by
dgb23
2y ago
There are certainly cases where type hints could be leveraged. But ultimately the way a JIT like Turbofan works is that it will do better optimizations if your JS code is already monomorphic (functions signatures, object fields and so on).
527.
▲
by
dgb23
2y ago
Mice are fare more impressive though.
528.
▲
by
dgb23
2y ago
I love how you misspelled it as „gorilla marketing“. That’s exactly the kind of humor I‘ve seen on the author‘s social media posts.
529.
▲
by
dgb23
2y ago
Htmx is a very small, mostly AJAX related library with a nice structure that helps you do this in a principled way. There’s nothing special about it other thab doing pretty much exactly what you’d want.
530.
▲
by
dgb23
2y ago
You could call the data you generate for the tests "mocks". But they really aren't "mocks" in the sense of behavioral mocks via IoC/DI and you don't need to manipulate them via some kind of interface in or
531.
▲
by
dgb23
2y ago
Put a small data interface around your IO, have it return DATA | NOT_FOUND etc. Then your tests don't need behavioral mocks or DI, they just need the different shapes of data and you test your own code instead of whatever your IO depen
532.
▲
by
dgb23
2y ago
To me the interviewees didn't come off as you describe at all. They are discussing the subject matter, which is the focus of the book "craft of programming" (see: subtitle). Also most of them (at least) are known to have a fo
533.
▲
by
dgb23
2y ago
Honestly GP is making two very valid points though. Something that Clojure does is differentiating between () = lists of calls, [] = vectors (the go to sequential data structure), {} = maps. This definitely helps the eye to see more structu
534.
▲
by
dgb23
2y ago
Thank you! I read the article about quality attributes you linked. Interestingly it mixes attributes that are measurable, like performance and availability, but also ones that are very hard to measure like extensibility and adaptability. Th
535.
▲
by
dgb23
2y ago
We have or rather could have data and metrics. We just tend to ignore them outside of specific domains. For example, from glancing at this summary and table of contents, it seems like there’s no to little mention of performance metrics. Wha
536.
▲
by
dgb23
2y ago
Rust makes writing incorrect programs hard, Zig makes writing correct programs easy.
537.
▲
by
dgb23
2y ago
This is an effective, simple solution if the application doesn't have transactional constraints and authorization. The user is in full control of the data - and that's a good thing. It becomes a bit more complicated if the data ha
538.
▲
by
dgb23
2y ago
You might have misunderstood the quote? I think they said "apprenticeship" to emphasize practice over theory.
539.
▲
by
dgb23
2y ago
I identify as a craftsman but I resonate with the above comment. Ultimately programming is half technical (what does the computer do) and half human expression (reading and writing code). The latter [0] is really more of an art than a scien
540.
▲
by
dgb23
2y ago
Then you will likely enjoy this talk as well: "Programming for the Expression of Ideas" https://www.infoq.com/presentations/Expression-of-Ideas/ Very adjacent to the quote above. He talks about how progr
More ›