Better HN
topnewbestaskshowjobs
Log inSign up

goatslacker

336 karma · joined Aug 5, 2011 (15y ago) · 110 submissions

github.com/goatslacker
Submissions

comment 7y ago · link · parent

I’ve been enjoying the simplicity of keeping it plain using lit-html. It lets you write declarative markup and they’re template literals.

comment 8y ago · link · parent

Never found paddle shifters to be in the same league as a manual transmission even in modern high performance cars. There's always that bit of lag and delay with automatic that there isn't on a manual.

comment 8y ago · link · parent

Yes and no. Sometimes it's not about the destination but about experiencing the journey. From the post it seems like the author extracted the value they wanted to extract over the years. Knowing when to give up is difficult, especially when you've sunk a lot of cost into the project and feel like you have to finish it. The thing is, you don't have to and it's perfectly acceptable to put it on hold indefinitely.

In the end you'll still have all those experiences with you and that's what you paid for with your time.

comment 8y ago · link · parent

How much is this in Twilio fees each month?

comment 9y ago · link · parent

So long dear Wii U ! I'll always play and update you with neat hacks at my place. Seriously though, I don't understand people. For me the Wii U had way better games than the Wii and I would never trade my Wii U for any Playstation or Xbox. Smash Bros is way better, Mario Kart is way way way better (the best Mario Kart ever?)... Just lacked a really good 3D Mario Game.

comment 9y ago · link · parent

This was known and expected.

comment 10y ago · link · parent

Amazing work! I'll be following through your post on Saturday; it will be a pleasure to reproduce some of those attack vectors.

comment 10y ago · link · parent

I've been using this library to read screenshots of Pokemon Go to automatically calculate Individual Values for each Pokemon[1] It's worked great on desktop, but on mobile safari where it matters most the library causes the browser to crash :(

1: https://github.com/goatslacker/pokemon-go-iv-calculator/blob...

9.

Refactoring with Codemods(medium.com ↗)

5 points · by goatslacker · 10y ago · discuss

comment 10y ago · link · parent

Love seeing these microframeworks pop-up. I wrote my own a while back for kicks http://goatslacker.github.io/lotus.css/

I would love to be able to make a custom builds of milligram by shedding some of the modules I don't care about. This could also open it up to other modules being added like Modals or whatever.

11.

GitHub universe(githubuniverse.com ↗)

4 points · by goatslacker · 11y ago · discuss

comment 11y ago · link · parent

Reminds me of http://www.spammimic.com/encode.shtml

comment 11y ago · link · parent

I'll take you up on that offer. Having comprehensive examples, documentation, and tutorials is something that sets Alt apart and I'd definitely like to have more of it.

You, and anyone else, is free to also contribute to alt itself, check out the issues tagged with "help wanted" https://github.com/goatslacker/alt/issues?q=is%3Aopen+is%3Ai...

Patches are super welcome :)

comment 11y ago · link · parent

Alt author here. I've actually begun to integrate some of the microflux ideas into Alt itself. Alt already has a lot of the benefits mentioned in the post: time travel, revert, record and replay debugging; but stores as reducers and having them not own state makes for clean code. However, I don't think one size fits all here, some stores are good as reducers of state and others fit a larger role. There are actually many different types of stores that get created in an application. This is really powerful but also confusing for beginners coming from MVC.

Anyway I'm excited for what the future holds for flux and excited for relay.

comment 11y ago · link · parent

Hey - I was the person who used this tool the most while I was at FB. Thanks a bunch for open sourcing this I've been missing it.

comment 11y ago · link · parent

You can just define a class[1], but you'll need to transpile from ES6.

[1] https://github.com/goatslacker/alt/blob/master/examples/chat...

comment 11y ago · link · parent

Five thirty eight's website loads in the ads, images, and even tweets before it loads in the actual content. This is completely backwards from what a web experience should be like.

comment 11y ago · link · parent

Alt[1] has isomorphic support but there are some trade offs such as you're unable to use actions on the server. But you can still keep your stores as singletons and have them be concurrent. I'm still juggling on different ways to tackle this problem to offer more flexibility. There are a couple of example apps sitting in the iso[2] repo which is an isomorphic helper class.

1: https://github.com/goatslacker/alt

2: https://github.com/goatslacker/iso/tree/master/examples

comment 11y ago · link · parent

This is pretty cool. There have been a ton of flux frameworks floating around lately, glad that there's an app that deals with async data to be able to compare each on their merits.

comment 11y ago · link · parent

OT: This is the first time I hear about tab for a cause and it sounds very interesting. However, their Chrome plugin requests permissions to "read my entire browsing history". The privacy policy doesn't explain why this is needed, does anyone know?

21.

Show HN: A React 0.13 isomorphic flux example(github.com ↗)

2 points · by goatslacker · 11y ago · discuss

comment 11y ago · link · parent

Very nice, this is a great write up on an intro to flux. It feels like a lot of the learning curve on flux is spent trying to figure out exactly where to query data: in the actions, the store, or utils? And I feel like most of the pain in starting flux from scratch is creating all the constants, action creators, and registering the dispatcher.

After you've got everything set up it's smooth sailing though and you live with no regrets. Getting up that first hill though is tough.

I like thinking of my actions as where I fire off everything that will be fetching data. Then I keep the stores synchronous so that their only job is to get data from the dispatcher and store it. This makes the whole application pretty easy to reason about.

comment 11y ago · link · parent

The interesting bit of isomorphic applications isn't the fact that you can use JS on the server. For me, it's that you can keep all your UI and UI-related logic written in one language, and have your business logic, data fetching, and everything else in whatever language you prefer.

This has many benefits like code reusability and not having to write placeholders/render code twice -- in two different languages.

comment 11y ago · link · parent

It doesn't have to be that way. These lessons are no substitute for server side rendering although with more frameworks supporting isomorphism out of the box this will hopefully be a thing of the past.

comment 11y ago · link · parent

You should check out alt[1] and iso[2] which is isomorphic out of the box and it's pure flux. There are examples in both repos.

[1] https://github.com/goatslacker/alt [2] https://github.com/goatslacker/iso

comment 11y ago · link · parent

Curiously, what about marty do you really like that makes it feel like a good de-facto framework?

comment 11y ago · link · parent

Congrats, the site looks really nice and the devtools feature is great!

comment 11y ago · link · parent

I started with reflux but wanted something that was actual flux. So I ended up with

https://github.com/goatslacker/alt

which looks a bit like reflux in terms of terseness but it adds the ability to have snapshots and rollbacks, isomorphism, and it plays real well with ES6.

There's a few of the flux examples that compare flux to alt in the repo. And there are some good isomorphic examples in here https://github.com/goatslacker/iso/tree/master/examples

I'll be posting a write-up of all this pretty soon.

If you like reflux you'll like alt.

1234