Szymon Standarski
banner
standarski.bsky.social
Szymon Standarski
@standarski.bsky.social
Mostly a frontend developer 👨🏻‍💻 (Angular, React.js), but I also have experience with Node.js. In my free time, I’m an amateur cyclist 🚴🏻‍♂️.
A simple input tells Angular to create a binding to that property and check for a change at each change detection cycle. HostAttributeToken allows you to inject static values from the host component, which will only be retrieved at component initialization.
July 25, 2025 at 10:53 AM
Reposted by Szymon Standarski
stereotypical programmers by language, according to AI
March 27, 2025 at 3:37 PM
🚀 #Angular: how to react to input signal changes and fetch data from an API (without an effect)?

Connect toSignal + toObservable for auto-updating API calls!
Check example 👇
No manual subscriptions! Just reactive magic!
February 14, 2025 at 2:21 PM
🚀 #JavaScript: Meet set.intersection() – a built-in method for finding the intersection of sets! 🎉

Check example and polyfill 👇
February 11, 2025 at 2:38 PM
🚀 New in #JavaScript: Array.prototype.toSorted()!
Unlike sort(), it does NOT mutate the original array but returns a sorted copy.

Check example 👇
February 5, 2025 at 2:51 PM
📢 #JavaScript devs, meet array.with() from #ES2023! 🚀
Replace an array element without mutation.

✅ with() is cleaner and shorter!

Check example 👇
February 3, 2025 at 7:49 PM
🚀 Promise.try() – Your ally in handling async!

Instead of writing:
new Promise(resolve => resolve(myFunction()));

You can use:
Promise.try(myFunction);

✔️ Supports both async and sync functions
✔️ Catching Synchronous Errors
✔️ You can combine async and sync functions

Check examples! 👇

#JavaScript
January 31, 2025 at 2:20 PM
🚀 npm install vs. npm ci

• npm install: 📦 Installs dependencies from package.json, updates package-lock.json if needed. Flexible but slower.
• npm ci: ⚡ Clean, fast install based only on package-lock.json. Reproducible builds, perfect for CI/CD.

💡Tip: In CI? Use npm ci for stability!
#javascript
January 28, 2025 at 10:39 AM
📌 Object.groupBy()

Since #ES2023 you can use Object.groupBy() to group array elements based on key!

Check example 👇

Very useful! 🚀 #JavaScript
January 27, 2025 at 1:47 PM
🚀 ES13 #javascript feature: Error.cause!

Easier debugging by preserving the original cause of an error.
When you create a new error object (Error), you can pass an additional cause property that specifies what the original cause was.

Check out an example below 👇
January 22, 2025 at 9:26 PM
🚀 Angular Routing Debugging: enableTracing or withDebugTracing()

Need to debug Angular routes?
✅ Use enableTracing (for traditional RouterModule setup)
✅ Use withDebugTracing() (for standalone APIs)

📌 Both log detailed routing events to the console, helping you debug navigation issues in #Angular!
January 19, 2025 at 3:04 PM
🤔 What does NaN mean in JS?

NaN stands for “Not-a-Number”, but ironically, it’s of type number! 🤯

You can use Number.isNaN(x) to check if value is truly NaN.
NaN !== NaN (It’s the only value not equal to itself!).

🔥 Why is NaN !== NaN? A JS quirk or a hidden superpower? 🤯

#JavaScript #CodingTips
January 16, 2025 at 2:55 PM
🚀 TypeScript: Record<string, never> for an empty object!
Need to describe that a function returns exactly an empty object {}? Use Record<string, never>!

Why not just {}?
➡️ {} allows adding `any` properties.
➡️ Record<string, never> enforces absolute emptiness. 😎

Perfect for precise type modeling! 🛠️
January 15, 2025 at 2:40 PM
🧪 Do you know what `structuredClone()` is in JavaScript? It’s a method for deep-copying complex objects without issues like circular references! 🚀  It causes far fewer issues compared to JSON.stringify and ensures deep copying unlike the spread operator.
Check example! 👇 #JavaScript #CodingTips
January 15, 2025 at 8:49 AM