HNHacker News
TopNewBestAskShowJobs

mrozbarry

366 karma · joined May 22, 2018

submissionscomments
mrozbarry··on Hyperapp – A tiny framework for building web interfaces
The `h` function isn't too bad to read if you keep small/manageable components. Obviously, any component, whether JSX or something else, with enough content in it, becomes quite hard to read.

Personally, I like using `h` over JSX - JSX can be nice to read, but for people that don't know how it works behind the scenes, it makes things look like magic.

Once you know how Hyperapp works behind the scenes, it's much easier to make the decision to JSX if that's something you care about when developing. I have the same opinion about React, and other libraries that have a strong preference to JSX over their native/function implementations.

mrozbarry··on Hyperapp – A tiny framework for building web interfaces
Bit of a Hyperapp fanboy here, so bare with me.

First, I think Hyperapp can make both small and big applications, opposed to u/PufPufPuf's opinion. A lot of people have this opinion because they are more familiar with v1's wired-in actions, which can become quite unruly. In the latest version, actions are decoupled, and can be organized/extracted however you see fit.

I've made a handful of applications in both v1 and the current released Hyperapp, and they work very well. If you want to see the latest Hyperapp in action, you can check these out:

- A timer for mob programming: https://github.com/mrozbarry/mobtime

- A canvas game, using Hyperapp for dom/state: https://github.com/mrozbarry/smash

- A router for Hyperapp: https://github.com/mrozbarry/hyperapp-router

I have a handful of older youtube videos regarding v1, you can check them out here:

- Intro to Hyperapp (v1): https://youtu.be/uWIyjI8nkz0

- Hyperapp (v1) forms and localstorage: https://youtu.be/qpt6aaMxm1E

- Unit testing hyperapps (v1): https://youtu.be/5wvPUj--HaA

Note, they are outdated, but there isn't much on youtube about Hyperapp in general.

One thing to keep in mind is the naming. A lot of people talk about "Hyperapp" as the first version, and "v2" as the current version, but this is wrong. It's more like "v1" (legacy) and "Hyperapp" (current). It gets confusing, because not everyone is on the same page with that, but this the the naming Jorge (primary author/creator of Hyperapp) has mentioned several times.

mrozbarry··on Ask HN: What's your quarantine side project?
We do mob programming at work, and one of the main tools we use is a timer. Plenty of apps out there for timing on one machine, not many for sharing the timer. I started spiking out a shared/collaborative timer.

That eventually became https://mobti.me , and it's working well for us. If anyone else tries it, I'd be very happy to get feedback here or on twitter ( @mobtime_app ).

mrozbarry··on A Critique of React Hooks
One thing that baffles me is that no one has brought up that hooks don't have an obvious context.

For instance, if I have a single app and component, and use a hook, I understand that the hook and app have some sort of implicit connection.

But what happens when I have two distinct react apps on a page - does that break the ordering that hooks require? How does a hook have any affinity to the app, or does that even matter?

I'm sure looking at the code will cause a "oh, I get it" moment, but that doesn't mean it's obvious to anyone just picking up hooks.

Honestly, I think hooks are fine, but I'd almost prefer a signature like `const MyComponent = (props, { ...hooksHere })` so there's at least a false affinity between the application and the component.

mrozbarry··on Why I’m Leaving Elm
To be clear, I don't have a problem with Luke posting his experience, but there's a difference between reporting the news and reporting your feelings.

I think about half that article could be deleted, and it would still hold content of "why I'm leaving," but without building this huge drama oriented narrative.

mrozbarry··on Why I’m Leaving Elm
Original author of the elm-firebase ( https://github.com/pairshaped/elm-firebase ) here. While I think Elm certainly has some rough patches in both their aggressively PC community and the immaturity of the language (still many breaking changes, not 1.x, etc.), it's not that awful. I was told that elm-firebase was basically a waste, and don't use native modules, so I stopped development. I didn't need to make a big stink, and write a huge blog post on why I'm leaving Elm and how the community is toxic.

If the author needs to leave the community, then do it, but no one needs to leave a community with so much drama.

mrozbarry··on Show HN: Ferp, a Functional JavaScript Framework
Author here. While the README doesn't dive in too much on how to use Ferp, you can checkout the gitbook documentation here: https://ferp.mrbarry.com, and I also have more real-world examples here: https://github.com/ferp-js/examples .
mrozbarry··on Show HN: Video Course, Hands-On Web Development with Hyperapp V2
Full disclosure, I am the author of this course, and it is available on Packt, Udemy, and others to come in the next couple of days.

If you prefer not to go to twitter with their link tracking, the course links are as follows:

Packt: https://www.packtpub.com/application-development/hands-web-d...

Udemy: https://www.udemy.com/hands-on-web-development-with-hyperapp...

Currently, both Packt and Udemy have the course up at a discounted price, and I will be distributing some discount codes over the next few weeks via twitter.

← PreviousPage 6 of 6