News for hackers. Stuff that matters.

fwouts

You may want to check out previewjs.com (disclaimer I'm the author) although it's unfortunately not getting much love or attention lately, my kids are using all of that.
Re:Moving Beyond Type Systems on Friday May 31, 2024 @10:16PM (#40542322)
Unless I completely misunderstood the post, a function that calls another function with effects will indeed be "infected". That is, unless the effect ends up being local (such as passing a mutable reference to a local variable).
This is now implemented. Easier than expected!
Generating random values is live now :)
Oh, I was wondering if people would ask for that exact scenario! I'll see if I can make that happen, check again in a few days :)
Thanks for the feedback!

Random values sound like a fantastic idea. It shouldn't be too hard to implement in the current codebase either. I'll add it in the coming days/weeks.

Show HN: TypeScript Editor that generates structured forms from TypeScript types

https://tseditor.fwouts.com

Hey HN!I've been doing a lot of work with the TypeScript Compiler API[1] recently as part of my work on Preview.js[2], an IDE extension that lets you preview React/Solid/Vue components.One thing I noticed is that even with great autocomplete and type validation, creating/editing JS values that match a given TypeScript type can require a lot of typing. This is especially the case in Preview.js,...

( Read More... | 9 comments | 12 points | on HN )
Re:Show HN: A Visual IDE for React on Friday May 13, 2022 @09:58AM (#31367678)
Hey! Author of Preview.js here :)

It's early days and you might find that Preview.js can be a little difficult to set up in a large, complex project (working on improving that now) but please send through any feedback on the GitHub repo or Discord server, much appreciated!

Thank you, appreciate it! :)
Hi everyone, author here.

This was originally an extension for Visual Studio Code to preview React components directly in your IDE (that's still available too, as well as for IntelliJ now).

I've since gotten feedback that it's a useful alternative to Storybook, which people often find frustratingly slow, so I decided to build a CLI version as well.

React Preview is not yet open source (I'll probably end up switching to an open core model at some point) but it's based on ViteJS (which is significantly faster than webpack). It also uses the TypeScript Compiler API to resolve types and automatically generate valid props, so you don't need to configure custom stories like you would with Storybook (although that's supported too).

You can also check out the detailed docs at https://reactpreview.com

Please let me know what you think, any feedback is a gift!

Re:Show HN: React Preview on Wednesday July 14, 2021 @09:44AM (#27832899)
Hi everyone!

I've been working on React Preview for a few months. It's currently only available for Visual Studio Code, but an IntelliJ/WebStorm and CLI versions are also in the works and coming soon (you can subscribe to be notified at https://signup.reactpreview.com).

The plan is for React Preview to be a freemium product. The current features are all free, with more advanced paid features coming soon (e.g. integration with Storybook, mosaic of all your components, preview in multiple viewports, etc).

Please don't hesitate to send through bug reports on GitHub (https://github.com/zenclabs/reactpreview/issues) and let me know what you think in the comments!

This is a really cool idea!

A bit of self-promotion: I've been building something similar but without the visual editing, integrating directly in your VS Code editor (and soon IntelliJ/WebStorm too). See https://reactpreview.com for more info.

Direct link to the latest beta for Visual Studio Code for HN friends: https://reactpreview.com/download/releases/reactpreview-vsco...

(it's very early days, this beta isn't even a week old, so expect to find bugs)

Re:Ask HN: Tools you have made for yourself? on Sunday June 13, 2021 @02:53AM (#27490384)
I was frustrated with people missing emails/slack messages about GitHub pull requests.

I built a browser extension that shows a notification pop-up and updates the extension badge whenever you get a new pull request. Then I proceeded to convince my colleagues to use it.

For any Googlers out there, this is the same thing as CL Monitor, but for GitHub. I used to maintain CL Monitor back in the days (although I didn't invent it).

You can try it out at https://github.com/fwouts/prmonitor :)

Re:A Better Model for Stacked Pull Requests on Saturday April 24, 2021 @05:50AM (#26923661)
I really like seeing efforts being made in this direction. For the last few years I've been using git-town.com, which works quite well but I often end up having to work around it (especially when I have diamond-shaped branch dependencies, e.g. to refactor two independent things before implementing a small feature on top). I'll have to try this instead and compare!
Re:Ask HN: Advice for a new and inexperienced tech lead? on Thursday February 06, 2020 @04:26PM (#22260524)
A colleague of mine who I value as a good tech lead recently wrote some tips based on his experience: https://medium.com/swlh/two-lessons-youll-learn-in-your-firs...

He also just published another article about quality technical communication, which I'd highly recommend both you and your team read through: https://medium.com/@tpagram/a-guide-to-improving-your-techni...

Re:Visual Regression Testing on Wednesday December 18, 2019 @08:44PM (#21831343)
If you want visual regression testing and you use React, you can also try https://github.com/fwouts/react-screenshot-test

(disclaimer: I wrote this)

Re:Show HN: React Screenshot Test on Friday November 15, 2019 @05:44PM (#21549505)
That's interesting, I didn't know about this issue.

There are a couple of solutions in this GitHub issue FYI: https://github.com/typicode/husky/issues/108

Re:Show HN: React Screenshot Test on Friday November 15, 2019 @05:39PM (#21549478)
Indeed, that's why you'd want to use a solution like Git LFS to avoid bloating your repo. Basically, it only stores a link to the image, which is stored separately.

Older »