Hacker Newsnew | past | comments | ask | show | jobs | submit | highpixels's commentslogin

Dynamic imports is standards-track JS :) http://2ality.com/2017/01/import-operator.html


It might be better to have runtime system load code dynamically when necessary, without programmer to care about this, e.g. on first invocation, maybe pre-loading it based on call statistics from previous app runs. People implement this already (I tried this too - https://github.com/avodonosov/pocl)


Preferences > Profile > Window > Style: "No Title Bar"

doesn't seem to then be anyway to move the window (just resize from the edges)


Mirroring my sibling comment here, but thanks for the detailed note on how to get rid of the bright white title bar :)

As far as resizing goes, I would suggest using one of the many pseudo tiling window managers available on mac. I strongly recommend spectacle [1]

[1] https://www.spectacleapp.com/


They recently announced a "cleaner" syntax for ES5 mode. Looks more like the Angular 1 syntax.

http://blog.thoughtram.io/angular/2015/07/06/even-better-es5...


await* is awesome too:

    let arr = [/* an array of promises *]
    await* arr;
Essentially the same as Promise.all

    let arr = [/* an array of promises *]
    await Promise.all(arr)


I've never quite understood Flux, partly due to all the cruft & boilerplate involved around Actions & Action Creators.

I've found a Command Bus pattern (a la CQRS) works much nicer, and cleaner.

1. Something happens in View (e.g. todo item is checked) 2. View passes a "CompleteTodoItemCommand" object to the Command Bus 3. Command Bus dispatches the Command to a registered Handler 4. Handler communicates with server, store etc. to handle the command; handing TodoItem to the store 5. Store triggers change event 6. View hears change event, renders self

That said, I've only built a few smaller projects in React, so perhaps I'm missing something important which Flux solves and I'm missing?


That's exactly how we build our Flux apps. We follow, roughly, the Flux naming patterns -- your "bus" is the dispatcher, "handler" is the store's dispatch handler, everything else is the same -- but we left out the action creator thingies and instead direct actions directly to stores and let them do the data state management.


Fonts have been fixed on GitHub now.


We're also using Prince, love it. We've previously used PdfCrowd and wkthml2pdf, but our customers were demanding more control of their reports (detailed footers, repeating headers, table of contents).


I also built a custom keyboard, designed specifically for Project Managers: http://posts.danharper.me/project-manager-keyboard-for-ios/


Don't suppose you have a link to that video? Or remember any more details so I could dig it up?


I think it was this one, but unfortunately I can't find the whole video.

https://www.youtube.com/watch?v=mp4z2eK1Avw

http://johannesbrodwall.com/2007/02/27/crud-rest-rails/


I'm guessing the Atom project was WAY different back then, and has probably gone through several ground-up re-writes.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: