HN user

joshxyz

1,443 karma

goodbye miserable cunts

Posts32
Comments1,535
View on HN
github.com 2y ago

StableLib: A stable library of useful TypeScript/JavaScript code

joshxyz
2pts0
news.ycombinator.com 3y ago

Ask HN: Best Practices Guides You're Aware Of

joshxyz
62pts53
news.ycombinator.com 3y ago

[deleted]

joshxyz
2pts0
news.ycombinator.com 3y ago

Ask HN: What Happened to YC Startup School Forums?

joshxyz
1pts0
twitter.com 3y ago

I've just applied for YC S23, who else did?

joshxyz
1pts1
playground.crestfall.sh 3y ago

Hi HN, may I ask for your feedback?

joshxyz
1pts1
news.ycombinator.com 3y ago

Ask HN: What's your favorite rust binaries?

joshxyz
1pts2
twitter.com 3y ago

Revolut locked account with $700k for 5 months and ongoing, is this legal?

joshxyz
7pts7
news.ycombinator.com 3y ago

Ask HN: Protonmail Alternative?

joshxyz
20pts27
github.com 3y ago

StableLib: A stable library of useful TypeScript/JavaScript code

joshxyz
3pts2
news.ycombinator.com 3y ago

Ask HN: Recommended Rust Resources?

joshxyz
27pts14
app.getvero.com 3y ago

CodeSandbox free-tier private repos will be public on Nov 14

joshxyz
1pts0
jxyz.me 3y ago

Inconveniences with Conventional REST APIs

joshxyz
2pts0
www.youtube.com 3y ago

Blitzscaling 08: Eric Schmidt on Structuring Teams and Scaling Google

joshxyz
1pts0
www.youtube.com 3y ago

OpenAI CEO Sam Altman – AI for the Next Era

joshxyz
4pts0
github.com 3y ago

Nhost: The Open Source Firebase Alternative with GraphQL

joshxyz
2pts0
github.com 3y ago

Show HN: Task management web app, uses LocalStorage

joshxyz
1pts0
jxyz.me 3y ago

JavaScript Design Systems and Icons

joshxyz
1pts1
news.ycombinator.com 3y ago

Ask HN: What are the best learning references that have you found?

joshxyz
6pts2
www.youtube.com 4y ago

1974: The Peter Principle

joshxyz
2pts0
www.forentrepreneurs.com 4y ago

SaaS Metrics 2.0 – A Guide to Measuring and Improving What Matters (2017)

joshxyz
2pts0
news.ycombinator.com 4y ago

Show HN: Rubick, Data API and Search API for commonly used datasets

joshxyz
1pts0
github.com 4y ago

GitHub Issues: 50m+ open, 162m+ closed

joshxyz
1pts0
altinity.com 4y ago

Altinity: ClickHouse and Elasticsearch FAQs

joshxyz
2pts0
devblueprints.substack.com 4y ago

Dev Blueprints: User Sign-Up Flow

joshxyz
3pts1
news.ycombinator.com 4y ago

Ask HN: Forgot this name of product design book, any ideas?

joshxyz
7pts4
kkovacs.eu 4y ago

Software project best practices checklists

joshxyz
1pts0
brandur.org 5y ago

Implementing Stripe-like idempotency keys in Postgres (2017)

joshxyz
62pts2
news.ycombinator.com 5y ago

Dear DigitalOcean

joshxyz
2pts1
paulskallas.substack.com 5y ago

Lindy Talk with Marc Andreessen

joshxyz
2pts0

More like personal dumb takes.

I admired him in his early days too. Yet lately he really stands out as a fucking idiot in my twitter timeline every once in a while to the point of having to block him.

A full-grown adult man just chasing clout, what a fucking clown.

1. decide on an industry you have a bit of experience in.

2. look where those users are. they might be in subreddits or fb groups or wherever.

3. look for apps they use. there are lots of it in android play store and apple store.

4. read the helpful and critical reviews. these statements prove that there is demand, that some people like it, and that some people care enough to voice out their frustrations.

5. if you havent read the mom test, find a pirated copy, or just buy it. this book will course correct your interactions and expectations with your users.

it says in their docs that they recommend Vite https://vitejs.dev/

it goes like this.

1. you create a repo folder, you cd into it.

2. you create a client template using vite which can be plain typescript, or uses frameworks such as react or vue, at https://vitejs.dev/guide/

3. you cd in that client directory, you npm install, then you npm run dev, it should show you that it works at localhost:5173

4. you follow the instructions on your url, you do npm install @web3modal/wagmi @wagmi/core @wagmi/connectors viem

5. you follow the further instructions.

It seems like this is for npm or yarn to pull from a remote repository maintained by @wagmi for instance. But then what?

you install the wagmi modules, then you import them in your js code, those code can run upon being loaded or upon user actions such as button clicks

Do I just symlink to the node_modules directory somehow? Use browserify? Or these days I'd use webpack or whatever the cool kids are using these days?

no need for those. browserify is old school way of transpiling commonjs modules into browser-compatible modules. webpack is similar. vite replaces both webpack and browserify. vite also uses esbuild and swc under the hood which replaces babel.

I totally get how node package management works ... for NODE. But all these client-side JS projects these days have docs that are clearly for the client-side but the ES2015 module examples they show seem to leave out all instructions for how to actually get the files there, as if it's obvious.

pretty much similar actually. except on client-side, you have src and dist folders. when you run "npm run build" vite will compile the src dir into dist dir. the outputs are the static files that you can serve with any http server such as npx serve, or caddy, or anything really.

What gives? And finally, what exactly does "browserify" do these days, since I think Node supports both ES modules and and CJS modules? I also see sometimes UMD universal modules

vite supports both ecmascript modules and commonjs modules. but these days you'll just want to stick with ecmascript which makes your code consistently use import and export syntax, and you get the extra benefit of it working well with your vscode intellisense.

In short, I'm a bit confused how to use package management properly with browsers in 2024: https://modern-web.dev/guides/going-buildless/es-modules/

if people want plain js there is unpkg.com and esm.sh way, but the vite route is the best for you as it's recommended and tested by the providers of your modules.

And finally, if you answer this, can you spare a word about typescript? Do we still need to use Babel and Webpack together to transpile it to JS, and minify and tree-shake, or what?

I recommend typescript, as it gives you better type-safety and better intellisense, but it really depends. If you're new to it, it can slow you down at first. But as your project grows you'll eventually see the value of it. In vite there are options to scaffold your project in pure js or ts.

paying the bills? fuckin hell man it feels more like being held at gunpoint that being naturally inspired and motivated, but it works well for me.

when things are comfy and convenient i find myself slacking. having accountabilities and responsibilities forces me to perform and compete whether i like it or not. i hate it, a lot, but it keeps me alive. capitalism meets stockholm syndrome.

I don't vote. The statistical insignificance of me changing the outcomes and the net benefit I get from it is a joke.

These people don't even know I exist.

edit:

also, biden is not my president.

(bc im not a us citizen lol, we have other clowns in our local circus)

MLM web app. I created a membership referral system that works so well it led to hundreds of new members. I was getting paid peanuts, I stopped providing support. Threw a wrench to their biz model. Costed me money but I have better peace of mind now.

sometimes if you submit early you get acceptance and rejections early.

i got rejections early last season. haventcapplied this season yet, maybe at 22.

[dead] 2 years ago

most will just laugh their way to the bank..

business as usual.

ESLint v9.0 2 years ago

i usually wait at least a month on semver majors and at least a week on semver minors before i upgrade. its good.