The Open Source Pledge is such an important endeavor. We need companies to start paying for the value they're extracting from open source software. Please share everywhere, including with your manager.
Notices by Nicholas C. Zakas (nzakas@fosstodon.org)
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Sunday, 13-Oct-2024 18:53:04 JST Nicholas C. Zakas -
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Thursday, 07-Mar-2024 00:56:31 JST Nicholas C. Zakas I’m interested to see what happens with JSR. npm has had remarkable resiliency against alternatives, proving once again that “good enough” technology can win against superior features and performance.
Even GitHub’s own package registry couldn’t compete.
JSR 👀🍿
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Tuesday, 27-Feb-2024 09:07:48 JST Nicholas C. Zakas What I want: To write JavaScript tests once and be able to run them across Node.js, Bun, and Deno.
Problem: Bun and Deno have built-in test runners you have to import from to run tests. I use Mocha. This doesn't work.
Solution: ???
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Sunday, 04-Feb-2024 04:28:34 JST Nicholas C. Zakas For humanfs, I'm using a kind of TypeScript-JavaScript hybrid setup for the first time, and I'm kind of loving it.
Interfaces are written in TypeScript files, while the functionality is written in JavaScript files with JSDoc type annotations.
One of my big complaints about TypeScript is when people mix type/interface definitions with functionality. When 75% of a file is long type definitions, it's maddening for me.
This way, I'm writing mostly clean JavaScript, but still get type checking.
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Thursday, 25-Jan-2024 04:41:22 JST Nicholas C. Zakas JavaScript tip: Number.isNaN() is not the same as isNaN().
Number.isNaN() checks if the value is exactly equal to NaN:
Number.isNaN(NaN) === true;
Number.isNaN("foo") === false;isNaN() checks if the value isn't a number:
isNaN(NaN) === true;
isNaN("foo") === true; -
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Wednesday, 10-Jan-2024 04:25:49 JST Nicholas C. Zakas Part of your job as a technologist is to stay up on the latest tech. Your employer knows this and expects it. That's why it's okay to carve out time at work for exploration and learning. It *is* part of the job.
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Tuesday, 28-Nov-2023 08:13:02 JST Nicholas C. Zakas @functionalscript if I’m targeting the platform, then no extra dependency to manage.
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Tuesday, 28-Nov-2023 05:52:21 JST Nicholas C. Zakas I find the .only behavior of the Node.js built-in test runner maddening. Not only do I need to include --test-only on the CLI, but I also need to .only each "describe" and "it" all the way down to get a test to run?
🤬
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Wednesday, 15-Nov-2023 01:13:54 JST Nicholas C. Zakas One of the most impactful pieces of feedback I ever received was from my manager at Yahoo who said (paraphrasing): “People know you are usually right. But you could be nicer about it.”
How you treat people matters. It *does* affect your career. I’m grateful for that feedback.
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Friday, 30-Jun-2023 07:29:21 JST Nicholas C. Zakas Repeat after me: Blocking paste on a form textbox is not a security feature.
-
Embed this notice
Nicholas C. Zakas (nzakas@fosstodon.org)'s status on Friday, 31-Mar-2023 02:21:45 JST Nicholas C. Zakas I’m still of the mind that AI-assisted programming is more like streamlining the typical Google or StackOverflow searches we all do throughout the day.
I don’t see it as a paradigm shift that fundamentally changes how code is created.
Yet.