HNHacker News
TopNewBestAskShowJobs

joshwcomeau

2,790 karma · joined February 14, 2016

Software developer. Javascript and stuff.
submissionscomments
joshwcomeau··on Show HN: Guppy, a GUI desktop app that replaces the terminal for React dev
Hm, you might be right, but I think that people who have access to someone to guide them are in a different position than folks trying to make sense of it on their own. The subset of terminal commands needed for interacting with NPM is minimal, but I'd bet it would be a lot more daunting for someone trying to make sense of the universe of meta-react-stuff and unsure what stuff's important and what stuff isn't.

When I was 12 I decided I wanted to learn how to program, and I failed miserably because I didn't know where to start and very much picked the wrong place (I bought a massive reference manual for C from a bookstore). So I'm particularly sensitive to the fact that people have finite motivation and patience, and are sometimes trying to figure this out haphazardly (and so a friendly UI actually is important, because it'll stand out as something familiar in a sea of black terminal screenshots). The idealistic future I imagine is that Guppy provides built-in support for a bunch of common tasks (I definitely don't want it to include a whole Git client, for example, but maybe a limited subset would be helpful), and direction for the stuff it doesn't bundle (like choosing an IDE, debugging, whatever).

The larger philosophy is that tools designed for professionals will always be more complex than they need to be for beginners, and there should be a stepping stone.

But yeah, I am receptive to the idea that maybe this is the wrong approach. Maybe Codesandbox and online IDEs make more sense?

joshwcomeau··on Show HN: Guppy, a GUI desktop app that replaces the terminal for React dev
Hi HN!

This is a project of mine that has been in the works for the past couple months. The goal is to make modern web development more accessible for folks without a traditional programming background, by deferring the need to learn a command-line interface until later.

Specifically, it manages projects for you by solving 3 traditionally-CLI-only problems:

- Running a local dev server - Executing NPM scripts for building, testing, etc - Managing NPM dependencies

This is an early Alpha, and I have much larger ambitions for the project, but I'm releasing it early to collect feedback and see if this is indeed something that would benefit folks.

I do realize that the audience on HN will by-and-large already be comfortable on the command line, and so this is of limited utility for y'all, but if y'all have friends/family looking to learn modern web dev, I'd be keen to get their thoughts on this project.

joshwcomeau··on Light Phone 2: A simple 4G phone with e-ink
I like how so many of these comments are claiming that this company is missing the mark / doing it wrong / out of touch, and yet the project is >600% funded.
joshwcomeau··on Show HN: Faster.js – a micro-optimizing JavaScript compiler
This is cool, but array methods are so rarely the bottleneck; Even in the highly-specialized demo, the difference is near-negligible.

It's a fun project and might have application in specialized situations (and maybe for Node, where time spent in synchronous iteration blocks all other requests?). But I feel like this does more harm than good in most cases (larger bundle, extra build step, less readable output code can make debugging harder, etc)

joshwcomeau··on Let's Learn About Waveforms
Yeah, at the very bottom there's a link to my twitter, but you're right, it's not the most approachable way to collect feedback. Sorry about that!
joshwcomeau··on Let's Learn About Waveforms
Thanks for the feedback; I saw this further down the comments as well. Will give it a shot!

EDIT: Yep, sounds way better. Will definitely have to look more into this! Thanks again.

joshwcomeau··on Let's Learn About Waveforms
Interesting! I hadn't thought of it that way. Those examples are wild.

And yeah, human perception of sound was something I had wanted to explore more, but I didn't want it to be even longer... might be interesting as a follow-up (although I don't know exactly how to visualize it...

Thanks for the feedback :)

joshwcomeau··on Let's Learn About Waveforms
Glad to hear that! :D

I've been working with React almost exclusively for 2-3 years (I do occasionally experiment with Vue, or work with Backbone). Once you get used to thinking in React, it makes projects like this really easy; the data flow never got complicated, even though I'm not using any other "state management" library (don't believe the "React is just the V in MVC" saying!).

If you're interested in getting started with React, I wrote a "no fluff" blog post: https://hackernoon.com/simple-react-development-in-2017-113b...

My goal with the post was to cut out everything unnecessary, and focus on getting the user to build something with React with as little time/effort as possible. React now comes with an amazing build system that abstracts away all the configuration, but a lot of folks starting out don't know that, and wind up spending a week tinkering with Webpack and Babel and build config, and installing and learning dependencies they don't need.

joshwcomeau··on Let's Learn About Waveforms
(creator here)

Thanks for this! To be honest, my music theory isn't that deep; I had never heard of equal temperament or just intonation. I think I just did the math based on a note-to-frequency table I googled. Clearly I have some research to do!

I did find the chord a little "off", but I thought that was just me. Originally, the audible frequencies for the other bits were completely outside the western music scale, and so the chord sounded _really_ off.

joshwcomeau··on Let's Learn About Waveforms
Thank you! The pedagogy was super important to me (I work at Khan Academy, so I suppose that was a given, haha). I really tried to make it not just a gimmick, but have the interactions/animations help clarify what's difficult for words/static images to explain.
joshwcomeau··on Let's Learn About Waveforms
Interesting idea! I think that, as another commenter said, there's a lot in that "apart from..." - I feel like I risk oversimplifying it (plus, as I'm sure you know, convincing physical instruments are notoriously hard to reproduce with oscillators and envelopes and filters alone).

But yeah, maybe I could do more to show just how wide the application of this concept is... it's not just limited to abstract waveforms, it's the fundamental rules for all instruments. Will give this some thought (and if you have ideas for how to demo it, let me know!)

joshwcomeau··on Let's Learn About Waveforms
Hey there! Creator here.

I actually did set this up with i18n in the back of my mind; all of the copy lives in 1 file, so I imagine it wouldn't be _too_ much work!

If there are volunteers to copy it into other languages (the only other one I know is French and I wouldn't trust myself to get the details right), I can spend some time working on getting it to support it.

EDIT: Also, not a typo :) I wanted to make sure users try out both sliders in that section, since you get a lot of interesting effects. When the convergence is 100%, you get phase cancellation. When it's 50%, you get some really groovy looking waveforms.

joshwcomeau··on Let's Learn About Waveforms
The two are related :) I chose displacement because it's a simpler thing to explain visually, and didn't want to cover both.

In the bit with the air molecule grid, the areas where the molecules are clustered together are high-pressure, while the areas with large spaces between them are low. This is caused by the staggered nature of the displacement vibrations.

(I'm sure there's a more sophisticated way to explain this, but that's as I understand it)

joshwcomeau··on Let's Learn About Waveforms
The biggest problem was that the waveforms are animated in some parts, and they actually move in-speed (so 1Hz does 1 cycle a second). If it was, say, 50Hz, the inaccuracy would shift so that it was moving at 1/50th speed, and that seems harder to explain (even here, I'm not sure if my explanation makes sense!)

And yeah, hah. My goal was to not mention his name anywhere, since "fourier transforms" just sounds scary and jargony.

joshwcomeau··on Let's Learn About Waveforms
Hi Chris! Creator here, I'm a subscriber to Web Audio Weekly. Appreciate the work you do, always excited when I receive it :)
joshwcomeau··on Let's Learn About Waveforms
Oh wow, this is awesome! Thanks for sharing.
joshwcomeau··on Let's Learn About Waveforms
Oh wow, awesome! I've never heard of this, but it seems really great.
joshwcomeau··on Let's Learn About Waveforms
Thanks for the kind words :D
joshwcomeau··on Let's Learn About Waveforms
Cool!
joshwcomeau··on Let's Learn About Waveforms
Creator here, also keen to know if anyone has suggestions. The r2d3 one was (obviously) a huge inspiration, it's such a nice way to learn things.

I can't seem to find it now, but either the NY Times or the Washington Post built something similar, for the 2018 US house/senate races. Lots of graphs as you scroll, with scroll-based events, IIRC.

EDIT: ah, how could I forget Nicky Case's explorabl.es! Was a huge inspiration for me as well.

joshwcomeau··on Let's Learn About Waveforms
Hah, thanks! I open-sourced the counter separately (although beware, it's a React component): https://github.com/joshwcomeau/react-retro-hit-counter

Also, for any folks who immediately scroll down to see it: the hit-counter only loads a few seconds after the page initializes. This was done intentionally to avoid adding yet another thing to the busy period of initial mount. It means visits of less than a few seconds aren't counted, but -shrugs-.

joshwcomeau··on Let's Learn About Waveforms
(creator here)

Sorry it bugged you! I learned when showing this to people that not everyone focuses their eyes on the same part of the screen, and so the focusing thing might not align to where you like to read.

I needed some way to make it clear which "step" the user is on, since the stuff the waveform does changes from step to step.

Open to suggestions for future audio things I do if you have ideas for how to align them without faded text!

joshwcomeau··on Learn to sell
> It doesn’t matter how brilliant your software engineering is if no one buys it.

Right, because so many people buy Facebook products, or Twitter, or Google...

Many, if not most, software products don't sell anything. While there are tons of problems with getting 100% of your revenue from ads, the fact remains that many companies don't have anything to sell to their consumers.

Of course, you have to make a good, sticky product, and so there is marketing involved... just not the sort of 1930s handshake-and-a-smile that this article seems to be describing.

That said, my own experience is biased (I currently work for a non-profit!), and so the snarkiness of this reply probably isn't warranted. Surely for many places, sales experience is valuable... but I certainly wouldn't rank it higher over software development, at least not with the places I've worked at.

joshwcomeau··on Modern Front-end in Rails
Yeah, really good point; this article is kinda halfway between "modern client-side app" and "traditional server-controlled app", and it kinda feels like the worst of both worlds (added complexity without many of the benefits)
joshwcomeau··on Modern Front-end in Rails
Hm. While I think it's awesome that the Rails community is moving towards adopting modern JS practices, from this post, it's not making a very good case for _why_ you'd want to do this.

Modern JS is lovely to write compared to ES5, but this tutorial doesn't write any yet! Perhaps this'll be addressed in the next part of the tutorial (although doing it in a framework-agnostic way seems tough).

Also, if I'm reading this correctly, they're still attaching an `erb` for each component, and using Rails to determine how they relate to each other? This feels a bit wrong to me, at least for dynamic web applications; when you have a framework like React controlling all of your front-end rendering, it's easy to integrate client-side routing and make it a single-page app, which means lightning-quick page transitions.

So yeah, delighted to see Rails move towards this direction, and this post is super helpful in explaining the "how" for a basic setup, but not the "why"; it also falls a bit short IMO in going "all the way", to have the front-end truly control its destiny and reap the benefits associated with that.

joshwcomeau··on Against an Increasingly User-Hostile Web
There are certainly times when video is appropriate, but I feel like we can all relate to the times that it's not; when someone has a list of 6 things, and instead of just listing them, they make a snazzy video. The video is still text-based; maybe there's an image slideshow as well, but it's effectively the same information in the same format, just spread out over a 2 minute video.
joshwcomeau··on Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies
Yeah, it's fair to provide criticism... my issue was more with the idea that the library author is responsible for doing what the consumers request, that the burden is 100% on the author. In my ideal world, this project would now be a community effort, and anything the community wants can be implemented by the community.
joshwcomeau··on Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies
The library author has already invested probably hundreds of hours creating the library; if someone who benefits from it only has to spend tens of hours writing the unit tests, they've saved an order of magnitude of time.

We need to stop thinking of OSS as something we're entitled to, that if a stranger doesn't put in enough free labour we're allowed to complain about it. I try to view my dependencies as favours other people have done for me. You wouldn't nitpick about a lack of tests after someone wrote a whole charting library for you; you'd thank them and add your own tests.

joshwcomeau··on Show HN: Arxiv Vanity – Read academic papers from Arxiv as responsive web pages
Really neat!! Thanks for sharing :)
joshwcomeau··on Show HN: Tello, a simple way to manage TV shows – built with React/Redux
Right, yeah. Mine doesn't support that either :( sounds like a good feature though!
← PreviousPage 4 of 7Next →