Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grayrest
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
grayrest
11y ago
Not so much confusing as my own ignorance. My last pass through Polymer was two years (I think) ago and there's been a number of changes to the components specs that I've been ignoring. At the time I saw a lot of excellent example
242.
▲
by
grayrest
11y ago
I can! The idea of unidirectional dataflow is pretty good but the rest of the ideas in Flux aren't as good. For Facebook's implementation, I find making a change requires a bunch of related changes in a bunch of files and I don&#x
243.
▲
by
grayrest
11y ago
I interpret it as shared state concurrency. That is, multiple threads sharing the same address space performing reads and writes on shared data: atomics, mutexes, etc. From the update I understand that he's considering things like Acto
244.
▲
by
grayrest
11y ago
The basic idea is to have your components take optional params that are themselves components. ESPseudoish code: // In your components... let DefaultListItem = (content) => <li className="foo">{content
245.
▲
by
grayrest
11y ago
I've thought about why widget libraries don't work on the web since 2008. In 2007 I was making iOS webapps, in 2008 Apple put out the SDK and the native apps were better. I decided that the native apps were better because the devs
246.
▲
by
grayrest
11y ago
Daala came up in the HN thread when Cisco announced Thor: https://news.ycombinator.com/item?id=10042849
247.
▲
by
grayrest
11y ago
> You've written a ClojureScript webapp using the Angular framework I know this is an example but Angular is terrible with Clojurescript. Clojure has an opinionated idea of how state should change over time and that opinion does not
248.
▲
by
grayrest
11y ago
If it's particularly confusing you can always use swiss arrows[0] instead: (-<> (range 10) (map #(+ % 2) <>) (reduce + <>)) [0] https://github.com/rplevy/swiss-arrows It&
249.
▲
by
grayrest
11y ago
This is an extension of Ambly [0], which is basically the same thing but for iOS. I believe Ambly was developed because Clojurescript's startup time makes it more practical than clojure on a mobile device. David Nolen has posted benchm
250.
▲
by
grayrest
11y ago
Processor power use scales with frequency as well. See [0], specifically the 'Low Memory and Power Devices' section, which shows power savings running 4 cores at lower frequency versus 1 core at max frequency. I think they eventua
251.
▲
by
grayrest
11y ago
If you're interested in checking out the progress, the build process[0] is really easy. Here's the current page: http://i.imgur.com/NmRNaRz.png If you want to poke around more, servo shell[1] lets you switch start
252.
▲
by
grayrest
11y ago
I doubt he's specifically looking for Angular jobs or likely any job at all. It's likely he's getting contacted by recruiters or just seeing job ads. The current trend is react but I run across node+angular postings regularly
253.
▲
by
grayrest
11y ago
You're more or less correct. One of the not-immediately-obvious problems with the React pattern of passing data in via attrs and actions via callbacks is that the parent component needs to accept all the data/callbacks that all it
254.
▲
by
grayrest
11y ago
Is there an RFC or thread covering the IDE integration plans?
255.
▲
by
grayrest
11y ago
Does it open the door to being able to incrementally update the representation and have the compiler used as a library for IDE support?
256.
▲
by
grayrest
11y ago
> How did you capture and render text input, and how did you handle new lines when the text wrapped? How do you handle paragraphs, especially when a user would delete text? For rendering, I had a component that rendered the block element
257.
▲
by
grayrest
11y ago
> Have you done large apps ? At work we're at 10k loc which isn't huge but it's fairly large for a clojurescript app. Middleware on event handlers is a great abstraction. It's only been a few weeks since the refactor
258.
▲
by
grayrest
11y ago
I've done a basic RTE in React for a client. I've done three now and RTEs are always annoying but the difficulty in this case is largely in how you model it. I chose to create a JS object per block element (usually a paragraph) co
259.
▲
by
grayrest
11y ago
Not at all. I've written/cleaned-up a few dozen Backbone apps. They work great when they're small and are generally a mess once they scale. An example: how do you use a datepicker component in your pure state->DOM system a
260.
▲
by
grayrest
11y ago
It's Backbone. A pure state -> DOM function is also called a template. It works when the app is simple. The problem is that you do NOT want a pure state -> DOM function. It blows away state of things like mounted subcomponents an
261.
▲
by
grayrest
11y ago
Have you done Backbone? The idea is that you define everything in terms of models and that when one of those models change you call render() to run it through your templates and you're done. This is a simple conceptual model, the frame
262.
▲
by
grayrest
11y ago
> I've been thinking a lot about how to bring this back into the JS world. I have yet to find any good literature on it, but I will be exploring this area more. The JS equivalent of figwheel is React Hot Loader[1]. There's a po
263.
▲
by
grayrest
11y ago
You need leiningen (it's in most package managers): https://github.com/technomancy/leiningen Clone the repo, `lein figwheel`, http://localhost:3449/index.html
264.
▲
by
grayrest
11y ago
Background processes don't block the main thread, the extension points are better thought out and the development experience in working on extensions is a LOT better, js/coffee are better languages than vimL, and display is not li
265.
▲
by
grayrest
11y ago
If you have a setup that works for you, probably not. Atom's main advantage is that it's in a DOM environment and people could do neat things with it but at the moment the efforts have gone into putting it roughly at feature par
266.
▲
by
grayrest
11y ago
It's not something I've explored or really care to pursue, but I've sat though at least a half dozen talks on audio synthesis in Clojure including one by Rich himself. They do signal generation in Clojure that feeds data into
267.
▲
by
grayrest
11y ago
There aren't that many things you can't do in Clojure, the main place Rust has an edge is in efficiency. I plan on doing an Avro implementation but other projects (mostly work-related) have a higher priority. In terms of larger pr
268.
▲
by
grayrest
11y ago
Editing text in Atom isn't instantaneous for me like MacVim or Sublime but the typing latency is low enough to not bother me (roughly 1-2 frames), roughly the same as the jetBrains family of IDEs. When I load up atom-typescript, typing
269.
▲
by
grayrest
11y ago
> An inherent problem with Javascript is that it has no macro support, unlike other Lisp like languages. http://sweetjs.org/ There are macro systems for Javascript, just not native ones.
270.
▲
by
grayrest
11y ago
I believe that humans are terrible at predicting the outcomes of complex systems over time and that software you get paid to write is always a complex system. Therefore, the best way to make your software better is to choose the option that
More ›