Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
daliwali
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
daliwali
10y ago
REST describes relationships very well, via hyperlinks. You navigated to this page via a hyperlink. If your API doesn't do that, it's not REST, this is what people usually mean when they point out that an API isn't complying
182.
▲
by
daliwali
10y ago
The question asks about software and not specifically applications, so the worst software that I have to use are all of the web developer "tools" and frameworks that I have to deal with. I can write far more performant application
183.
▲
by
daliwali
10y ago
A lot of commenters are going to try to pick you apart, so instead of that I'm going to tell you an anecdote about what's wrong in this world. I know a guy who literally could not program, he was hired as a HTML & CSS front-
184.
▲
by
daliwali
10y ago
Any sort of public/private key would be pretty secure but humans would not be able to memorize them. And there's the usability problems for normal people, i.e. not knowing when to disclose public vs private key, generating them, k
185.
▲
by
daliwali
10y ago
I don't think that this is the solution to MongoDB problems mostly because they're unsolvable. Here's why: - When you update across multiple documents, you're not guaranteed that they all succeed or fail. This is why emb
186.
▲
by
daliwali
10y ago
If this were a student project or an intellectual exercise to implement Tetris in an obscure language, good on them. I can respect that. However it is undeniable that there are overkill levels of abstractions in play here, for the purpose o
187.
▲
by
daliwali
10y ago
>If you just want to come here and fart on people for not always being 100% focused on the market... why? We are posting on a website run by a venture capital firm, maybe you can explain why the market is not relevant here. As far as edu
188.
▲
by
daliwali
10y ago
It has a mostly-compatible API but strict conformance doesn't seem to be the goal here. If your application does not make use of obscure features provided by core http (it could probably be refactored to do without anyways), then it&#x
189.
▲
by
daliwali
10y ago
Cool, we have the technology and know-how to replicate a 1984 video game using the hottest JS framework. Does no one care what is the result as long as the developer put the "right" abstractions in making it?
190.
▲
by
daliwali
10y ago
State change, eh? There's this, which diffs only local updates and doesn't use a vDOM: http://simulacra.js.org/ Disclosure: I'm the author.
191.
▲
by
daliwali
10y ago
The end user doesn't know or care about implementation details. It's bikeshedding that nobody cares about except the developers themselves . Facebook could have built their web app with Angular or Ember or whatever and nobody wou
192.
▲
by
daliwali
10y ago
I think you just described one way of updating things on a web page . The paradigm which React uses is popular in this moment, but there are many other ways to update things on a web page. It does not actually do anything that couldn'
193.
▲
by
daliwali
10y ago
The article opens with: >Frameworks, libraries, package managers, guidelines… even languages and meta-languages themselves are changing so fast that there's little to no chance a common or standard way of building applications emerg
194.
▲
by
daliwali
10y ago
The title and description are very misleading: this is technically "pure JavaScript" but the JS is compiled from the original C++ library of the same name using emscripten. I think "pure JS" would imply that all of its s
195.
▲
by
daliwali
10y ago
I don't know why everyone wants to downvote this comment. It's absolutely right. I would add that REST has nothing to do with pretty URIs, JSON formatting, versioning, query strings, and more misconceptions that people seem to mis
196.
▲
by
daliwali
10y ago
Yes, but why is the question. I think that is seriously not given much thought and people just accept man-made complexity as essential. It seems tautological to say that higher order components extend components, but it is only due to the
197.
▲
by
daliwali
10y ago
>“How do you parameterize Y by X?” “Create a function that takes X and returns Y.” Doesn’t really seem React-specific. I'm not talking about the what, but why would anyone think of using higher order functions to build user interfac
198.
▲
by
daliwali
10y ago
>Higher-order functions are extremely common and useful in all functional languages. Yes but higher order components as you call them, seem to be an abstraction that you would only use because the base unit of organization is a React com
199.
▲
by
daliwali
10y ago
A corollary to what I'm saying is that the design patterns that are espoused by React authors can be eliminated by using another abstraction, they're specific to React and have nothing to do with programming in general. I wouldn&#
200.
▲
by
daliwali
10y ago
It doesn't fare well that a framework that is only 3 years old already has an extensive list of anti-patterns and tons of statements on what not to do. Also having to do manual performance optimizations using the framework is a hassle
201.
▲
by
daliwali
11y ago
It's worth pointing out that Lisp is homoiconic, meaning that the code you see has the same structure as its AST, so writing a parser for a Lisp is pretty trivial and is part of the reason why this compiler looks super short. Other lan
202.
▲
by
daliwali
11y ago
Actually it's quite faster to call the DOM API directly, even if the VDOM abstraction is very sophisticated it's still overhead. Facebook has convinced people that it's a necessary evil when it's not. It doesn't eve
203.
▲
by
daliwali
11y ago
Am I the only one who couldn't connect this to "making things move in a web browser" for a minute? It wasn't until I saw the pseudo-HTML (JSX) code that it clicked. Even the headline is full of jargon. Seems that everyon
204.
▲
by
daliwali
11y ago
Recently I've rewritten ES6 code to ES5, and have measured performance gains in doing so, not orders of magnitude faster but overall just a bit faster at everything. I think that even CoffeeScript does a better job at being succinct, a
205.
▲
by
daliwali
11y ago
I think this is incorrect, some features are by definition slower. Take for example the iterable protocol, it will always be slower than a traditional for loop [1] because the spec mandates a prototype lookup and function call [2]. So far t
206.
▲
by
daliwali
11y ago
Most ES6 features are either equal to or worse than their ES5 counterparts in terms of performance, some by orders of magnitude (!) For example, `class` has particularly bad performance characteristics because under the hood it has to set a
207.
▲
by
daliwali
11y ago
>It does require the structure of the HTML to be very similar to the object that's true, the basic nesting of objects has to be preserved in the html but i don't know how it could be possible otherwise. it just wouldn't ma
208.
▲
by
daliwali
11y ago
when installing modules from npm, it's customary to use commonjs and `require` them. or you could simply download the built version, include it as a script tag and use the global `window.simulacra`. I have yet to build a complex app us
209.
▲
by
daliwali
11y ago
someone posted a similar criticism on reddit: https://www.reddit.com/r/javascript/comments/3tqw5l/simulacr... it may have been a poor choice to use class names in the example, but I just wanted to demons
210.
▲
by
daliwali
11y ago
I added a benchmark folder: https://github.com/0x8890/simulacra/tree/master/benchmark cheers!
More ›