Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slver
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
72 ms
·
721.
▲
by
slver
5y ago
The behavior doesn’t change. The implementation does. Those are orthogonal. And yes I see it every day. The collection interfaces in Java have countless swappable implementations. Those are basically getters and setters on a vector. I also
722.
▲
by
slver
5y ago
It actually happens a lot for me.
723.
▲
by
slver
5y ago
It takes two seconds in a hello world demo. It takes probably more in a millions of lines project.
724.
▲
by
slver
5y ago
Good code doesn’t have concepts like “typically doesn’t mutate”. It’s either mutable or immutable.
725.
▲
by
slver
5y ago
It can be done in theory, but the JVM does nothing of the sort right now.
726.
▲
by
slver
5y ago
That honestly won’t be very useful.
727.
▲
by
slver
5y ago
I'm referring to Java.
728.
▲
by
slver
5y ago
So this custom code font not only looks like Apple II, but it also works like Apple II. Amazing.
729.
▲
by
slver
5y ago
The real question is why is the convention getFoo() setFoo(foo) and not foo() and foo(foo).
730.
▲
by
slver
5y ago
get()/set() is the same as a public property, until you change the implementation, while maintaining interface compatibility, which is the point. In C# you'd have a point, they have parametric properties and readonly properties. S
731.
▲
by
slver
5y ago
I've been thinking about structural vs nominal. As you say, both have use cases. How would you combine both in one language so it's not confusing?
732.
▲
by
slver
5y ago
"This escalated quickly" https://scholar.google.com/scholar?hl=en&as_sdt=0%2C21&q=%E2...
733.
▲
by
slver
5y ago
The elevator-pitch is "WASM first language". Which is good, I guess we'll see some unique capabilities here? But we get something that's very close to JavaScript, and with no discernible benefits. So in a way, while I co
734.
▲
by
slver
5y ago
I choose to imagine they’re API endpoints communicating lists of entities with similar data causing the patterns.
735.
▲
by
slver
5y ago
Memory is allocated in pages, which are split in subpages, etc., then you throw at it heaps, queues, linked lists and so on. All of this structure doesn't exist in the memory. So you need transactions at the page level which is too cru
736.
▲
by
slver
5y ago
> This is difficult as your need is not someone else's It helps when the config accepts functions who are given suitable context about the content they're filtering. I also agree 100% about everything you've noticed.
737.
▲
by
slver
5y ago
There's honestly no such thing as "safe HTML". It's all very contextual. It can be safe in one context and unsafe in another. So trying to type it is futile. I've seen similar attempts with "taint flags" a
738.
▲
by
slver
5y ago
It would be fantastic for the user. But you can’t be bothered wrapping it in an app. I guess either it’s not fantastic enough, or we’re missing something.
739.
▲
by
slver
5y ago
This is from MySQLs C library.
740.
▲
by
slver
5y ago
Oh I see, thanks. It's a good start, but the attributes should be specified both globally and per node type, I don't see this. Also a blacklist (the "drop" variations) is a really bad idea.
741.
▲
by
slver
5y ago
I'm not against this, it can be used to replace lots of custom parsing for WYSIWYG editors that paste HTML from the clipboard (for example what happens when you copy content from Word, or from a site). But it seems awfully underspecifi
742.
▲
by
slver
5y ago
I'm gonna start returning this every time my APIs have an error.
743.
▲
by
slver
5y ago
Is "PHP had something like this once" your only argument?
744.
▲
by
slver
5y ago
I'm still waiting for this new persistent memory IBM had. But anyway, I'm happy to see this density is even possible. Exciting times ahead.
745.
▲
by
slver
5y ago
Of course Apple wants their cut, but you know offering services and getting paid is not a dirty thing, is it? Everyone keeps talking about how they "intentionally hamstring PWAs". They kicked off HTML5, remember? They shipped the
746.
▲
by
slver
5y ago
I’m not sure that was an insult. It was just a honest assessment. Everyone cares about themselves. But Apple has to put users before developers.
747.
▲
by
slver
5y ago
All right, so you know native apps are better, but you don't care. So you put yourself before your users. But you don't like Apple puts themselves & their users before you. Turns out users should side with Apple in this case..
748.
▲
by
slver
5y ago
> The point of PWA'S are, that if I develope one, I don't have to go to Apples app store. I as a web developer don't know how it works and I don't want to have to know Unfortunately that's often what it comes dow
749.
▲
by
slver
5y ago
> I like apps that keep my data on my phone. I like apps that act like apps, and sites that act like sites. There's a reason we don't drive-by install apps on our phone just by clicking a link. But you do drive-by install site
750.
▲
by
slver
5y ago
A bit overly dramatic, don't you think? "Apple rolling out anti-PWA practices" refers to them clearing local state after 7 days of no use. How is that going to stop anyone from having a PWA app? Web browsers have to prune the
More ›